20241107@153728.3594 hrefhitb3mvlukfepaea5l3f5n Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@153728.3615 hrefhitb3mvlukfepaea5l3f5n Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241107@153728.3647 hrefhitb3mvlukfepaea5l3f5n Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut672cd26469672cdeb856',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut672cd61848672cdeb775' ,0,0 ,2,23.00,80000,?,?,?)
20241107@153728.3966 hrefhitb3mvlukfepaea5l3f5n Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut672cd61848672cdeb775','2407352','wait',39,'adm09112754980.682000002')
20241107@153728.4145 hrefhitb3mvlukfepaea5l3f5n Query : use flama_phc
20241107@153728.4243 hrefhitb3mvlukfepaea5l3f5n Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20241107@153728.4296 hrefhitb3mvlukfepaea5l3f5n Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='3161';
20241107@153728.4388 hrefhitb3mvlukfepaea5l3f5n Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='3161';
20241107@153728.4486 hrefhitb3mvlukfepaea5l3f5n Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='3161';
20241107@153728.4528 hrefhitb3mvlukfepaea5l3f5n Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='3161';
20241107@153728.5070 ig2kvbsf5dht0agab4u1dupdpp Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20241107@153728.5084 ig2kvbsf5dht0agab4u1dupdpp Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20241107@153728.5185 ig2kvbsf5dht0agab4u1dupdpp Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='3162';
20241107@153728.5283 ig2kvbsf5dht0agab4u1dupdpp Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='3162';
20241107@153728.5355 ig2kvbsf5dht0agab4u1dupdpp Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='3162';
20241107@153728.5401 ig2kvbsf5dht0agab4u1dupdpp Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='3162';
20241107@153728.5941 ig2kvbsf5dht0agab4u1dupdpp Query : use flama_phc
20241107@153728.5983 ig2kvbsf5dht0agab4u1dupdpp Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20241107@153728.6809 ig2kvbsf5dht0agab4u1dupdpp Query : use flama_phc
20241107@153728.6851 ig2kvbsf5dht0agab4u1dupdpp Query : select no, estab,szadrsdesc from szadrs where u_coddest=4740
20241107@153728.7157 ig2kvbsf5dht0agab4u1dupdpp Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.988.00.01'
20241107@153728.7358 ig2kvbsf5dht0agab4u1dupdpp Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2073 and bo.obrano = 2407353 and bi.ref ='324.988.00.01' and bi.lordem =1
20241107@153728.7681 ig2kvbsf5dht0agab4u1dupdpp Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.988.00.01'
20241107@153728.7704 ig2kvbsf5dht0agab4u1dupdpp Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2073 and bo.obrano = 2407353 and bi.ref ='324.988.00.01' and bi.lordem =1
20241107@153728.7724 ig2kvbsf5dht0agab4u1dupdpp Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.988.00.01'
20241107@153728.7745 ig2kvbsf5dht0agab4u1dupdpp Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2073 and bo.obrano = 2407353 and bi.ref ='324.988.00.01' and bi.lordem =1
20241107@153728.7763 ig2kvbsf5dht0agab4u1dupdpp Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.988.00.01'
20241107@153728.7787 ig2kvbsf5dht0agab4u1dupdpp Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2073 and bo.obrano = 2407353 and bi.ref ='324.988.00.01' and bi.lordem =1
20241107@153728.7806 ig2kvbsf5dht0agab4u1dupdpp Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.988.00.01'
20241107@153728.7830 ig2kvbsf5dht0agab4u1dupdpp Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2073 and bo.obrano = 2407353 and bi.ref ='324.988.00.01' and bi.lordem =1
20241107@153728.7849 ig2kvbsf5dht0agab4u1dupdpp Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.988.00.01'
20241107@153728.7873 ig2kvbsf5dht0agab4u1dupdpp Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2073 and bo.obrano = 2407353 and bi.ref ='324.988.00.01' and bi.lordem =1
20241107@153728.7894 ig2kvbsf5dht0agab4u1dupdpp Query : use flama_phc
20241107@153728.7898 ig2kvbsf5dht0agab4u1dupdpp Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20241107@153728.8048 ig2kvbsf5dht0agab4u1dupdpp Query : use flama_phc
20241107@153728.8171 ig2kvbsf5dht0agab4u1dupdpp Query : select top 1 1 valor from td where td.ndoc = 39
20241107@153728.9296 ig2kvbsf5dht0agab4u1dupdpp Query : use flama_phc
20241107@153728.9300 ig2kvbsf5dht0agab4u1dupdpp 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')
20241107@153728.9335 ig2kvbsf5dht0agab4u1dupdpp 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
20241107@153728.9375 ig2kvbsf5dht0agab4u1dupdpp Query : use flama_phc
20241107@153728.9378 ig2kvbsf5dht0agab4u1dupdpp Query : select top 1 ~inactivo valor from cl where no = '100810' and estab = 0 order by inactivo desc
20241107@153728.9413 ig2kvbsf5dht0agab4u1dupdpp Query : use flama_phc
20241107@153728.9417 ig2kvbsf5dht0agab4u1dupdpp Query : select top 1 tipodoc,regrd from td where ndoc = 39
20241107@153728.9458 ig2kvbsf5dht0agab4u1dupdpp Query : use flama_phc
20241107@153728.9462 ig2kvbsf5dht0agab4u1dupdpp Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20241107@153728.9508 ig2kvbsf5dht0agab4u1dupdpp Query : use flama_phc
20241107@153728.9513 ig2kvbsf5dht0agab4u1dupdpp Query : select szadrsstamp valor from szadrs where szadrsdesc='100810 - worten-equipamentos para o lar,sa.'
20241107@153728.9578 ig2kvbsf5dht0agab4u1dupdpp Query : use flama_phc
20241107@153728.9582 ig2kvbsf5dht0agab4u1dupdpp Query : select 1 valor from td where ndoc = 39
20241107@153728.9611 ig2kvbsf5dht0agab4u1dupdpp Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20241107@153728.9630 ig2kvbsf5dht0agab4u1dupdpp Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@153728.9649 ig2kvbsf5dht0agab4u1dupdpp Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20241107@153728.9671 ig2kvbsf5dht0agab4u1dupdpp Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@153728.9688 ig2kvbsf5dht0agab4u1dupdpp Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20241107@153728.9720 ig2kvbsf5dht0agab4u1dupdpp Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@153728.9736 ig2kvbsf5dht0agab4u1dupdpp Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20241107@153728.9750 ig2kvbsf5dht0agab4u1dupdpp Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20241107@153728.9818 ig2kvbsf5dht0agab4u1dupdpp Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20241107@153728.9834 ig2kvbsf5dht0agab4u1dupdpp Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@153728.9851 ig2kvbsf5dht0agab4u1dupdpp Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20241107@153728.9870 ig2kvbsf5dht0agab4u1dupdpp Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut672cd56906672cdeb8ee' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20241107@153729.5700 ig2kvbsf5dht0agab4u1dupdpp Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@153729.7800 ig2kvbsf5dht0agab4u1dupdpp Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20241107@153729.1170 ig2kvbsf5dht0agab4u1dupdpp Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20241107@153729.1330 ig2kvbsf5dht0agab4u1dupdpp Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20241107@153729.1460 ig2kvbsf5dht0agab4u1dupdpp Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20241107@153729.1610 ig2kvbsf5dht0agab4u1dupdpp Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20241107@153729.1880 ig2kvbsf5dht0agab4u1dupdpp Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20241107@153729.2010 ig2kvbsf5dht0agab4u1dupdpp Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20241107@153729.2140 ig2kvbsf5dht0agab4u1dupdpp Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut672cd56906672cdeb8ee',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20241107@153729.4990 ig2kvbsf5dht0agab4u1dupdpp Query : select top 1 fno valor from wsftdata order by fno desc
20241107@153729.5300 ig2kvbsf5dht0agab4u1dupdpp Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@153729.5470 ig2kvbsf5dht0agab4u1dupdpp Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20241107@153729.6390 ig2kvbsf5dht0agab4u1dupdpp Query : select 'normal' from dummy
20241107@153729.6570 ig2kvbsf5dht0agab4u1dupdpp Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut672cd56906672cdeb8ee',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',1732,100810,0,'2024-11-07',39,'euro',0,0,2024 ,?,?)
20241107@153729.1010 ig2kvbsf5dht0agab4u1dupdpp Query : use flama_phc
20241107@153729.1013 ig2kvbsf5dht0agab4u1dupdpp Query : select st.usalote valor from st where st.ref = '324.988.00.01'
20241107@153729.1088 ig2kvbsf5dht0agab4u1dupdpp 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.988.00.01'
20241107@153729.1280 ig2kvbsf5dht0agab4u1dupdpp Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@153729.1298 ig2kvbsf5dht0agab4u1dupdpp Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241107@153729.1354 ig2kvbsf5dht0agab4u1dupdpp Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@153729.1376 ig2kvbsf5dht0agab4u1dupdpp Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241107@153729.1386 ig2kvbsf5dht0agab4u1dupdpp Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241107@153729.1400 ig2kvbsf5dht0agab4u1dupdpp Query : select sestamp valor from se where ref ='324.988.00.01' and lote = 'r2400410200a'
20241107@153729.1425 ig2kvbsf5dht0agab4u1dupdpp Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@153729.1442 ig2kvbsf5dht0agab4u1dupdpp Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241107@153729.1456 ig2kvbsf5dht0agab4u1dupdpp Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut672cd02984672cdeb922','aut672cd56906672cdeb8ee' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241107@153729.1529 ig2kvbsf5dht0agab4u1dupdpp Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@153729.1580 ig2kvbsf5dht0agab4u1dupdpp Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241107@153729.1627 ig2kvbsf5dht0agab4u1dupdpp Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut672cd02984672cdeb922',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',22.000 ,'aut672cd56906672cdeb8ee' ,0,0 ,2,23.00,10000,?,?,?,?,?)
20241107@153729.1963 ig2kvbsf5dht0agab4u1dupdpp Query : use flama_phc
20241107@153729.1968 ig2kvbsf5dht0agab4u1dupdpp Query : select st.usalote valor from st where st.ref = '324.988.00.01'
20241107@153729.1989 ig2kvbsf5dht0agab4u1dupdpp 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.988.00.01'
20241107@153729.2088 ig2kvbsf5dht0agab4u1dupdpp Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@153729.2106 ig2kvbsf5dht0agab4u1dupdpp Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241107@153729.2170 ig2kvbsf5dht0agab4u1dupdpp Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@153729.2203 ig2kvbsf5dht0agab4u1dupdpp Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241107@153729.2218 ig2kvbsf5dht0agab4u1dupdpp Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241107@153729.2233 ig2kvbsf5dht0agab4u1dupdpp Query : select sestamp valor from se where ref ='324.988.00.01' and lote = 'r2400410200a'
20241107@153729.2273 ig2kvbsf5dht0agab4u1dupdpp Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@153729.2291 ig2kvbsf5dht0agab4u1dupdpp Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241107@153729.2306 ig2kvbsf5dht0agab4u1dupdpp Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut672cd01343672cdeb937','aut672cd56906672cdeb8ee' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241107@153729.2311 ig2kvbsf5dht0agab4u1dupdpp Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@153729.2329 ig2kvbsf5dht0agab4u1dupdpp Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241107@153729.2385 ig2kvbsf5dht0agab4u1dupdpp Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut672cd01343672cdeb937',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',10.000 ,'aut672cd56906672cdeb8ee' ,0,0 ,2,23.00,20000,?,?,?,?,?)
20241107@153729.2684 ig2kvbsf5dht0agab4u1dupdpp Query : use flama_phc
20241107@153729.2688 ig2kvbsf5dht0agab4u1dupdpp Query : select st.usalote valor from st where st.ref = '324.988.00.01'
20241107@153729.2711 ig2kvbsf5dht0agab4u1dupdpp 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.988.00.01'
20241107@153729.2726 ig2kvbsf5dht0agab4u1dupdpp Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@153729.2743 ig2kvbsf5dht0agab4u1dupdpp Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241107@153729.2816 ig2kvbsf5dht0agab4u1dupdpp Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@153729.2832 ig2kvbsf5dht0agab4u1dupdpp Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241107@153729.2841 ig2kvbsf5dht0agab4u1dupdpp Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241107@153729.2858 ig2kvbsf5dht0agab4u1dupdpp Query : select sestamp valor from se where ref ='324.988.00.01' and lote = 'r2400410200a'
20241107@153729.2872 ig2kvbsf5dht0agab4u1dupdpp Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@153729.2888 ig2kvbsf5dht0agab4u1dupdpp Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241107@153729.2913 ig2kvbsf5dht0agab4u1dupdpp Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut672cd80831672cdeb946','aut672cd56906672cdeb8ee' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241107@153729.2919 ig2kvbsf5dht0agab4u1dupdpp Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@153729.2935 ig2kvbsf5dht0agab4u1dupdpp Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241107@153729.2971 ig2kvbsf5dht0agab4u1dupdpp Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut672cd80831672cdeb946',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',42.000 ,'aut672cd56906672cdeb8ee' ,0,0 ,2,23.00,30000,?,?,?,?,?)
20241107@153729.3290 ig2kvbsf5dht0agab4u1dupdpp Query : use flama_phc
20241107@153729.3294 ig2kvbsf5dht0agab4u1dupdpp Query : select st.usalote valor from st where st.ref = '324.988.00.01'
20241107@153729.3315 ig2kvbsf5dht0agab4u1dupdpp 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.988.00.01'
20241107@153729.3337 ig2kvbsf5dht0agab4u1dupdpp Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@153729.3354 ig2kvbsf5dht0agab4u1dupdpp Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241107@153729.3392 ig2kvbsf5dht0agab4u1dupdpp Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@153729.3408 ig2kvbsf5dht0agab4u1dupdpp Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241107@153729.3418 ig2kvbsf5dht0agab4u1dupdpp Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241107@153729.3459 ig2kvbsf5dht0agab4u1dupdpp Query : select sestamp valor from se where ref ='324.988.00.01' and lote = 'r2400410200a'
20241107@153729.3474 ig2kvbsf5dht0agab4u1dupdpp Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@153729.3490 ig2kvbsf5dht0agab4u1dupdpp Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241107@153729.3517 ig2kvbsf5dht0agab4u1dupdpp Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut672cd20618672cdeb954','aut672cd56906672cdeb8ee' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241107@153729.3522 ig2kvbsf5dht0agab4u1dupdpp Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@153729.3541 ig2kvbsf5dht0agab4u1dupdpp Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241107@153729.3598 ig2kvbsf5dht0agab4u1dupdpp Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut672cd20618672cdeb954',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',42.000 ,'aut672cd56906672cdeb8ee' ,0,0 ,2,23.00,40000,?,?,?,?,?)
20241107@153729.3892 ig2kvbsf5dht0agab4u1dupdpp Query : use flama_phc
20241107@153729.3896 ig2kvbsf5dht0agab4u1dupdpp Query : select st.usalote valor from st where st.ref = '324.988.00.01'
20241107@153729.3923 ig2kvbsf5dht0agab4u1dupdpp 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.988.00.01'
20241107@153729.3938 ig2kvbsf5dht0agab4u1dupdpp Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@153729.3954 ig2kvbsf5dht0agab4u1dupdpp Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241107@153729.4012 ig2kvbsf5dht0agab4u1dupdpp Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@153729.4034 ig2kvbsf5dht0agab4u1dupdpp Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241107@153729.4044 ig2kvbsf5dht0agab4u1dupdpp Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241107@153729.4059 ig2kvbsf5dht0agab4u1dupdpp Query : select sestamp valor from se where ref ='324.988.00.01' and lote = 'r2400410200a'
20241107@153729.4098 ig2kvbsf5dht0agab4u1dupdpp Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@153729.4115 ig2kvbsf5dht0agab4u1dupdpp Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241107@153729.4128 ig2kvbsf5dht0agab4u1dupdpp Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut672cd88455672cdeb964','aut672cd56906672cdeb8ee' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241107@153729.4136 ig2kvbsf5dht0agab4u1dupdpp Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@153729.4151 ig2kvbsf5dht0agab4u1dupdpp Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241107@153729.4268 ig2kvbsf5dht0agab4u1dupdpp Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut672cd88455672cdeb964',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',42.000 ,'aut672cd56906672cdeb8ee' ,0,0 ,2,23.00,50000,?,?,?,?,?)
20241107@153729.4571 ig2kvbsf5dht0agab4u1dupdpp Query : use flama_phc
20241107@153729.4574 ig2kvbsf5dht0agab4u1dupdpp Query : select st.usalote valor from st where st.ref = '324.988.00.01'
20241107@153729.4598 ig2kvbsf5dht0agab4u1dupdpp 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.988.00.01'
20241107@153729.4616 ig2kvbsf5dht0agab4u1dupdpp Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@153729.4636 ig2kvbsf5dht0agab4u1dupdpp Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241107@153729.4689 ig2kvbsf5dht0agab4u1dupdpp Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@153729.4727 ig2kvbsf5dht0agab4u1dupdpp Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241107@153729.4737 ig2kvbsf5dht0agab4u1dupdpp Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241107@153729.4753 ig2kvbsf5dht0agab4u1dupdpp Query : select sestamp valor from se where ref ='324.988.00.01' and lote = 'r2400410200a'
20241107@153729.4768 ig2kvbsf5dht0agab4u1dupdpp Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@153729.4786 ig2kvbsf5dht0agab4u1dupdpp Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241107@153729.4799 ig2kvbsf5dht0agab4u1dupdpp Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut672cd86316672cdeb974','aut672cd56906672cdeb8ee' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241107@153729.4807 ig2kvbsf5dht0agab4u1dupdpp Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@153729.4826 ig2kvbsf5dht0agab4u1dupdpp Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241107@153729.4857 ig2kvbsf5dht0agab4u1dupdpp Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut672cd86316672cdeb974',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',42.000 ,'aut672cd56906672cdeb8ee' ,0,0 ,2,23.00,60000,?,?,?,?,?)
20241107@153729.5138 ig2kvbsf5dht0agab4u1dupdpp Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut672cd56906672cdeb8ee','2407353','wait',39,'adm09112754980.682000002')
20241107@153729.5216 ig2kvbsf5dht0agab4u1dupdpp Query : use flama_phc
20241107@153729.5220 ig2kvbsf5dht0agab4u1dupdpp Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20241107@153729.5253 ig2kvbsf5dht0agab4u1dupdpp Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='3162';
20241107@153729.5293 ig2kvbsf5dht0agab4u1dupdpp Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='3162';
20241107@153729.5341 ig2kvbsf5dht0agab4u1dupdpp Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='3162';
20241107@153729.5372 ig2kvbsf5dht0agab4u1dupdpp Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='3162';
20241107@153729.6000 vhn9c0gl4f5r8lsgbevalqtcoo Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20241107@153729.6013 vhn9c0gl4f5r8lsgbevalqtcoo Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20241107@153729.6112 vhn9c0gl4f5r8lsgbevalqtcoo Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='3163';
20241107@153729.6181 vhn9c0gl4f5r8lsgbevalqtcoo Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='3163';
20241107@153729.6270 vhn9c0gl4f5r8lsgbevalqtcoo Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='3163';
20241107@153729.6411 vhn9c0gl4f5r8lsgbevalqtcoo Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='3163';
20241107@153729.6529 vhn9c0gl4f5r8lsgbevalqtcoo Query : use flama_phc
20241107@153729.6536 vhn9c0gl4f5r8lsgbevalqtcoo Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20241107@153729.6622 vhn9c0gl4f5r8lsgbevalqtcoo Query : use flama_phc
20241107@153729.6626 vhn9c0gl4f5r8lsgbevalqtcoo Query : select no, estab,szadrsdesc from szadrs where u_coddest=4779
20241107@153729.6737 vhn9c0gl4f5r8lsgbevalqtcoo Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.4840.00.1'
20241107@153729.6911 vhn9c0gl4f5r8lsgbevalqtcoo Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2073 and bo.obrano = 2407355 and bi.ref ='324.4840.00.1' and bi.lordem =1
20241107@153729.7245 vhn9c0gl4f5r8lsgbevalqtcoo Query : use flama_phc
20241107@153729.7248 vhn9c0gl4f5r8lsgbevalqtcoo Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20241107@153729.7281 vhn9c0gl4f5r8lsgbevalqtcoo Query : use flama_phc
20241107@153729.7284 vhn9c0gl4f5r8lsgbevalqtcoo Query : select top 1 1 valor from td where td.ndoc = 39
20241107@153729.7403 vhn9c0gl4f5r8lsgbevalqtcoo Query : use flama_phc
20241107@153729.7406 vhn9c0gl4f5r8lsgbevalqtcoo 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')
20241107@153729.7438 vhn9c0gl4f5r8lsgbevalqtcoo 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
20241107@153729.7511 vhn9c0gl4f5r8lsgbevalqtcoo Query : use flama_phc
20241107@153729.7516 vhn9c0gl4f5r8lsgbevalqtcoo Query : select top 1 ~inactivo valor from cl where no = '101900' and estab = 0 order by inactivo desc
20241107@153729.7666 vhn9c0gl4f5r8lsgbevalqtcoo Query : use flama_phc
20241107@153729.7669 vhn9c0gl4f5r8lsgbevalqtcoo Query : select top 1 tipodoc,regrd from td where ndoc = 39
20241107@153729.7702 vhn9c0gl4f5r8lsgbevalqtcoo Query : use flama_phc
20241107@153729.7705 vhn9c0gl4f5r8lsgbevalqtcoo Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20241107@153729.7750 vhn9c0gl4f5r8lsgbevalqtcoo Query : use flama_phc
20241107@153729.7754 vhn9c0gl4f5r8lsgbevalqtcoo Query : select szadrsstamp valor from szadrs where szadrsdesc='101900 - pd - alcochete'
20241107@153729.7807 vhn9c0gl4f5r8lsgbevalqtcoo Query : use flama_phc
20241107@153729.7810 vhn9c0gl4f5r8lsgbevalqtcoo Query : select 1 valor from td where ndoc = 39
20241107@153729.7826 vhn9c0gl4f5r8lsgbevalqtcoo Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20241107@153729.7843 vhn9c0gl4f5r8lsgbevalqtcoo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@153729.7865 vhn9c0gl4f5r8lsgbevalqtcoo Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20241107@153729.7889 vhn9c0gl4f5r8lsgbevalqtcoo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@153729.7908 vhn9c0gl4f5r8lsgbevalqtcoo Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20241107@153729.7941 vhn9c0gl4f5r8lsgbevalqtcoo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@153729.7965 vhn9c0gl4f5r8lsgbevalqtcoo Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20241107@153729.7982 vhn9c0gl4f5r8lsgbevalqtcoo Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20241107@153729.8045 vhn9c0gl4f5r8lsgbevalqtcoo Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20241107@153729.8058 vhn9c0gl4f5r8lsgbevalqtcoo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@153729.8075 vhn9c0gl4f5r8lsgbevalqtcoo Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20241107@153729.8097 vhn9c0gl4f5r8lsgbevalqtcoo Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut672cd66264672cdeb9c2' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20241107@153729.8279 vhn9c0gl4f5r8lsgbevalqtcoo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@153729.8298 vhn9c0gl4f5r8lsgbevalqtcoo Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20241107@153729.8336 vhn9c0gl4f5r8lsgbevalqtcoo Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20241107@153729.8349 vhn9c0gl4f5r8lsgbevalqtcoo Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20241107@153729.8364 vhn9c0gl4f5r8lsgbevalqtcoo Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20241107@153729.8381 vhn9c0gl4f5r8lsgbevalqtcoo Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20241107@153729.8396 vhn9c0gl4f5r8lsgbevalqtcoo Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20241107@153729.8411 vhn9c0gl4f5r8lsgbevalqtcoo Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20241107@153729.8425 vhn9c0gl4f5r8lsgbevalqtcoo Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut672cd66264672cdeb9c2',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20241107@153729.8742 vhn9c0gl4f5r8lsgbevalqtcoo Query : select top 1 fno valor from wsftdata order by fno desc
20241107@153729.8768 vhn9c0gl4f5r8lsgbevalqtcoo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@153729.8785 vhn9c0gl4f5r8lsgbevalqtcoo Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20241107@153729.8813 vhn9c0gl4f5r8lsgbevalqtcoo Query : select 'normal' from dummy
20241107@153729.8830 vhn9c0gl4f5r8lsgbevalqtcoo Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut672cd66264672cdeb9c2',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',1733,101900,0,'2024-11-07',39,'euro',0,0,2024 ,?,?)
20241107@153729.9167 vhn9c0gl4f5r8lsgbevalqtcoo Query : use flama_phc
20241107@153729.9170 vhn9c0gl4f5r8lsgbevalqtcoo Query : select st.usalote valor from st where st.ref = '324.4840.00.1'
20241107@153729.9192 vhn9c0gl4f5r8lsgbevalqtcoo 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.4840.00.1'
20241107@153729.9345 vhn9c0gl4f5r8lsgbevalqtcoo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@153729.9363 vhn9c0gl4f5r8lsgbevalqtcoo Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241107@153729.9393 vhn9c0gl4f5r8lsgbevalqtcoo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@153729.9410 vhn9c0gl4f5r8lsgbevalqtcoo Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241107@153729.9421 vhn9c0gl4f5r8lsgbevalqtcoo Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241107@153729.9436 vhn9c0gl4f5r8lsgbevalqtcoo Query : select sestamp valor from se where ref ='324.4840.00.1' and lote = 'r2400064200a'
20241107@153729.9459 vhn9c0gl4f5r8lsgbevalqtcoo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@153729.9477 vhn9c0gl4f5r8lsgbevalqtcoo Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241107@153729.9490 vhn9c0gl4f5r8lsgbevalqtcoo Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut672cd49131672cdeb9e6','aut672cd66264672cdeb9c2' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241107@153729.9494 vhn9c0gl4f5r8lsgbevalqtcoo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@153729.9511 vhn9c0gl4f5r8lsgbevalqtcoo Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241107@153729.9545 vhn9c0gl4f5r8lsgbevalqtcoo Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut672cd49131672cdeb9e6',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',4.000 ,'aut672cd66264672cdeb9c2' ,0,0 ,2,23.00,10000,?,?,?,?,?)
20241107@153729.9869 vhn9c0gl4f5r8lsgbevalqtcoo Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut672cd66264672cdeb9c2','2407355','wait',39,'adm09112754980.682000002')
20241107@153729.9943 vhn9c0gl4f5r8lsgbevalqtcoo Query : use flama_phc
20241107@153729.9946 vhn9c0gl4f5r8lsgbevalqtcoo Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20241107@153729.9977 vhn9c0gl4f5r8lsgbevalqtcoo Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='3163';
20241107@153730.2600 vhn9c0gl4f5r8lsgbevalqtcoo Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='3163';
20241107@153730.7600 vhn9c0gl4f5r8lsgbevalqtcoo Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='3163';
20241107@153730.1130 vhn9c0gl4f5r8lsgbevalqtcoo Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='3163';
20241107@153730.1723 fb7kdtce5hblo80kb61he8ospu Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20241107@153730.1735 fb7kdtce5hblo80kb61he8ospu Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20241107@153730.1799 fb7kdtce5hblo80kb61he8ospu Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='3164';
20241107@153730.1864 fb7kdtce5hblo80kb61he8ospu Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='3164';
20241107@153730.1925 fb7kdtce5hblo80kb61he8ospu Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='3164';
20241107@153730.1958 fb7kdtce5hblo80kb61he8ospu Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='3164';
20241107@153730.2014 fb7kdtce5hblo80kb61he8ospu Query : use flama_phc
20241107@153730.2018 fb7kdtce5hblo80kb61he8ospu Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20241107@153730.2088 fb7kdtce5hblo80kb61he8ospu Query : use flama_phc
20241107@153730.2091 fb7kdtce5hblo80kb61he8ospu Query : select no, estab,szadrsdesc from szadrs where u_coddest=2171
20241107@153730.2190 fb7kdtce5hblo80kb61he8ospu 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'
20241107@153730.2221 fb7kdtce5hblo80kb61he8ospu Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2073 and bo.obrano = 2407356 and bi.ref ='327.8253.00.1' and bi.lordem =1
20241107@153730.2565 fb7kdtce5hblo80kb61he8ospu Query : use flama_phc
20241107@153730.2569 fb7kdtce5hblo80kb61he8ospu Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20241107@153730.2602 fb7kdtce5hblo80kb61he8ospu Query : use flama_phc
20241107@153730.2605 fb7kdtce5hblo80kb61he8ospu Query : select top 1 1 valor from td where td.ndoc = 39
20241107@153730.2636 fb7kdtce5hblo80kb61he8ospu Query : use flama_phc
20241107@153730.2639 fb7kdtce5hblo80kb61he8ospu 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')
20241107@153730.2668 fb7kdtce5hblo80kb61he8ospu 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
20241107@153730.2705 fb7kdtce5hblo80kb61he8ospu Query : use flama_phc
20241107@153730.2708 fb7kdtce5hblo80kb61he8ospu Query : select top 1 ~inactivo valor from cl where no = '101404' and estab = 0 order by inactivo desc
20241107@153730.2861 fb7kdtce5hblo80kb61he8ospu Query : use flama_phc
20241107@153730.2864 fb7kdtce5hblo80kb61he8ospu Query : select top 1 tipodoc,regrd from td where ndoc = 39
20241107@153730.2908 fb7kdtce5hblo80kb61he8ospu Query : use flama_phc
20241107@153730.2911 fb7kdtce5hblo80kb61he8ospu Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20241107@153730.2953 fb7kdtce5hblo80kb61he8ospu Query : use flama_phc
20241107@153730.2956 fb7kdtce5hblo80kb61he8ospu Query : select szadrsstamp valor from szadrs where szadrsdesc='armenio madeira inÁcio'
20241107@153730.3007 fb7kdtce5hblo80kb61he8ospu Query : use flama_phc
20241107@153730.3010 fb7kdtce5hblo80kb61he8ospu Query : select 1 valor from td where ndoc = 39
20241107@153730.3022 fb7kdtce5hblo80kb61he8ospu Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20241107@153730.3035 fb7kdtce5hblo80kb61he8ospu Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@153730.3050 fb7kdtce5hblo80kb61he8ospu Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20241107@153730.3071 fb7kdtce5hblo80kb61he8ospu Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@153730.3089 fb7kdtce5hblo80kb61he8ospu Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20241107@153730.3120 fb7kdtce5hblo80kb61he8ospu Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@153730.3135 fb7kdtce5hblo80kb61he8ospu Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20241107@153730.3147 fb7kdtce5hblo80kb61he8ospu Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20241107@153730.3208 fb7kdtce5hblo80kb61he8ospu Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20241107@153730.3221 fb7kdtce5hblo80kb61he8ospu Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@153730.3236 fb7kdtce5hblo80kb61he8ospu Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20241107@153730.3251 fb7kdtce5hblo80kb61he8ospu Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut672cd31662672cdeba4c' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20241107@153730.3696 fb7kdtce5hblo80kb61he8ospu Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@153730.4190 fb7kdtce5hblo80kb61he8ospu Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20241107@153730.4713 fb7kdtce5hblo80kb61he8ospu Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20241107@153730.4726 fb7kdtce5hblo80kb61he8ospu Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20241107@153730.4738 fb7kdtce5hblo80kb61he8ospu Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20241107@153730.4750 fb7kdtce5hblo80kb61he8ospu Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20241107@153730.4762 fb7kdtce5hblo80kb61he8ospu Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20241107@153730.4774 fb7kdtce5hblo80kb61he8ospu Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20241107@153730.4785 fb7kdtce5hblo80kb61he8ospu Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut672cd31662672cdeba4c',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20241107@153730.5094 fb7kdtce5hblo80kb61he8ospu Query : select top 1 fno valor from wsftdata order by fno desc
20241107@153730.5129 fb7kdtce5hblo80kb61he8ospu Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@153730.5152 fb7kdtce5hblo80kb61he8ospu Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20241107@153730.5188 fb7kdtce5hblo80kb61he8ospu Query : select 'normal' from dummy
20241107@153730.5205 fb7kdtce5hblo80kb61he8ospu Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut672cd31662672cdeba4c',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',1734,101404,0,'2024-11-07',39,'euro',0,0,2024 ,?,?)
20241107@153730.5595 fb7kdtce5hblo80kb61he8ospu Query : use flama_phc
20241107@153730.5599 fb7kdtce5hblo80kb61he8ospu Query : select st.usalote valor from st where st.ref = '327.8253.00.1'
20241107@153730.5636 fb7kdtce5hblo80kb61he8ospu 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'
20241107@153730.5689 fb7kdtce5hblo80kb61he8ospu Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@153730.5708 fb7kdtce5hblo80kb61he8ospu Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241107@153730.5746 fb7kdtce5hblo80kb61he8ospu Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@153730.5761 fb7kdtce5hblo80kb61he8ospu Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241107@153730.5770 fb7kdtce5hblo80kb61he8ospu Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241107@153730.5813 fb7kdtce5hblo80kb61he8ospu Query : select sestamp valor from se where ref ='327.8253.00.1' and lote = 'r2400073100b'
20241107@153730.5826 fb7kdtce5hblo80kb61he8ospu Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@153730.5842 fb7kdtce5hblo80kb61he8ospu Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241107@153730.5863 fb7kdtce5hblo80kb61he8ospu Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut672cd07389672cdeba8e','aut672cd31662672cdeba4c' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241107@153730.5868 fb7kdtce5hblo80kb61he8ospu Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@153730.5883 fb7kdtce5hblo80kb61he8ospu Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241107@153730.5928 fb7kdtce5hblo80kb61he8ospu Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut672cd07389672cdeba8e',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',1.000 ,'aut672cd31662672cdeba4c' ,0,0 ,2,23.00,10000,?,?,?,?,?)
20241107@153730.6233 fb7kdtce5hblo80kb61he8ospu Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@153730.6250 fb7kdtce5hblo80kb61he8ospu Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241107@153730.6314 fb7kdtce5hblo80kb61he8ospu Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@153730.6331 fb7kdtce5hblo80kb61he8ospu Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241107@153730.6360 fb7kdtce5hblo80kb61he8ospu Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241107@153730.6374 fb7kdtce5hblo80kb61he8ospu Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@153730.6390 fb7kdtce5hblo80kb61he8ospu Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241107@153730.6412 fb7kdtce5hblo80kb61he8ospu Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut672cd74563672cdeba9b','aut672cd31662672cdeba4c' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241107@153730.6417 fb7kdtce5hblo80kb61he8ospu Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@153730.6432 fb7kdtce5hblo80kb61he8ospu Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241107@153730.6483 fb7kdtce5hblo80kb61he8ospu Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut672cd74563672cdeba9b',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut672cd31662672cdeba4c' ,0,0 ,2,23.00,20000,?,?,?)
20241107@153730.6783 fb7kdtce5hblo80kb61he8ospu Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut672cd31662672cdeba4c','2407356','wait',39,'adm09112754980.682000002')
20241107@153730.6857 fb7kdtce5hblo80kb61he8ospu Query : use flama_phc
20241107@153730.6861 fb7kdtce5hblo80kb61he8ospu Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20241107@153730.6893 fb7kdtce5hblo80kb61he8ospu Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='3164';
20241107@153730.6933 fb7kdtce5hblo80kb61he8ospu Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='3164';
20241107@153730.7002 fb7kdtce5hblo80kb61he8ospu Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='3164';
20241107@153730.7041 fb7kdtce5hblo80kb61he8ospu Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='3164';
20241107@153730.7559 qsrhuucau374tsqtm7jsrqrlm9 Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20241107@153730.7571 qsrhuucau374tsqtm7jsrqrlm9 Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20241107@153730.7633 qsrhuucau374tsqtm7jsrqrlm9 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='3165';
20241107@153730.7694 qsrhuucau374tsqtm7jsrqrlm9 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='3165';
20241107@153730.7751 qsrhuucau374tsqtm7jsrqrlm9 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='3165';
20241107@153730.7783 qsrhuucau374tsqtm7jsrqrlm9 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='3165';
20241107@153730.7841 qsrhuucau374tsqtm7jsrqrlm9 Query : use flama_phc
20241107@153730.7844 qsrhuucau374tsqtm7jsrqrlm9 Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20241107@153730.7905 qsrhuucau374tsqtm7jsrqrlm9 Query : use flama_phc
20241107@153730.7908 qsrhuucau374tsqtm7jsrqrlm9 Query : select no, estab,szadrsdesc from szadrs where u_coddest=6258
20241107@153730.7993 qsrhuucau374tsqtm7jsrqrlm9 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.958.00.01'
20241107@153730.8030 qsrhuucau374tsqtm7jsrqrlm9 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2073 and bo.obrano = 2407359 and bi.ref ='324.958.00.01' and bi.lordem =1
20241107@153730.8349 qsrhuucau374tsqtm7jsrqrlm9 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.945.00.01'
20241107@153730.8507 qsrhuucau374tsqtm7jsrqrlm9 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2073 and bo.obrano = 2407359 and bi.ref ='324.945.00.01' and bi.lordem =2
20241107@153730.8832 qsrhuucau374tsqtm7jsrqrlm9 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1462.00.1'
20241107@153730.8869 qsrhuucau374tsqtm7jsrqrlm9 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2073 and bo.obrano = 2407359 and bi.ref ='324.1462.00.1' and bi.lordem =3
20241107@153730.9186 qsrhuucau374tsqtm7jsrqrlm9 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1407.00.1'
20241107@153730.9350 qsrhuucau374tsqtm7jsrqrlm9 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2073 and bo.obrano = 2407359 and bi.ref ='324.1407.00.1' and bi.lordem =4
20241107@153730.9652 qsrhuucau374tsqtm7jsrqrlm9 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1406.00.1'
20241107@153730.9805 qsrhuucau374tsqtm7jsrqrlm9 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2073 and bo.obrano = 2407359 and bi.ref ='324.1406.00.1' and bi.lordem =5
20241107@153731.1420 qsrhuucau374tsqtm7jsrqrlm9 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.2231.00.2'
20241107@153731.3010 qsrhuucau374tsqtm7jsrqrlm9 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2073 and bo.obrano = 2407359 and bi.ref ='324.2231.00.2' and bi.lordem =6
20241107@153731.6280 qsrhuucau374tsqtm7jsrqrlm9 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'
20241107@153731.6590 qsrhuucau374tsqtm7jsrqrlm9 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2073 and bo.obrano = 2407359 and bi.ref ='324.642.00.01' and bi.lordem =7
20241107@153731.9960 qsrhuucau374tsqtm7jsrqrlm9 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.678.00.01'
20241107@153731.1160 qsrhuucau374tsqtm7jsrqrlm9 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2073 and bo.obrano = 2407359 and bi.ref ='324.678.00.01' and bi.lordem =8
20241107@153731.1474 qsrhuucau374tsqtm7jsrqrlm9 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.678.00.01'
20241107@153731.1495 qsrhuucau374tsqtm7jsrqrlm9 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2073 and bo.obrano = 2407359 and bi.ref ='324.678.00.01' and bi.lordem =8
20241107@153731.1513 qsrhuucau374tsqtm7jsrqrlm9 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.644.00.01'
20241107@153731.1694 qsrhuucau374tsqtm7jsrqrlm9 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2073 and bo.obrano = 2407359 and bi.ref ='324.644.00.01' and bi.lordem =9
20241107@153731.2009 qsrhuucau374tsqtm7jsrqrlm9 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'
20241107@153731.2047 qsrhuucau374tsqtm7jsrqrlm9 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2073 and bo.obrano = 2407359 and bi.ref ='324.692.00.01' and bi.lordem =10
20241107@153731.2505 qsrhuucau374tsqtm7jsrqrlm9 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'
20241107@153731.2527 qsrhuucau374tsqtm7jsrqrlm9 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2073 and bo.obrano = 2407359 and bi.ref ='324.692.00.01' and bi.lordem =10
20241107@153731.2661 qsrhuucau374tsqtm7jsrqrlm9 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.691.00.01'
20241107@153731.2965 qsrhuucau374tsqtm7jsrqrlm9 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2073 and bo.obrano = 2407359 and bi.ref ='324.691.00.01' and bi.lordem =11
20241107@153731.3544 qsrhuucau374tsqtm7jsrqrlm9 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.691.00.01'
20241107@153731.3568 qsrhuucau374tsqtm7jsrqrlm9 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2073 and bo.obrano = 2407359 and bi.ref ='324.691.00.01' and bi.lordem =11
20241107@153731.3584 qsrhuucau374tsqtm7jsrqrlm9 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.691.00.01'
20241107@153731.3721 qsrhuucau374tsqtm7jsrqrlm9 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2073 and bo.obrano = 2407359 and bi.ref ='324.691.00.01' and bi.lordem =11
20241107@153731.3738 qsrhuucau374tsqtm7jsrqrlm9 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1642.00.2'
20241107@153731.3765 qsrhuucau374tsqtm7jsrqrlm9 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2073 and bo.obrano = 2407359 and bi.ref ='324.1642.00.2' and bi.lordem =12
20241107@153731.4080 qsrhuucau374tsqtm7jsrqrlm9 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1684.00.1'
20241107@153731.5535 qsrhuucau374tsqtm7jsrqrlm9 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2073 and bo.obrano = 2407359 and bi.ref ='324.1684.00.1' and bi.lordem =13
20241107@153731.5923 qsrhuucau374tsqtm7jsrqrlm9 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.5343.00.1'
20241107@153731.6045 qsrhuucau374tsqtm7jsrqrlm9 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2073 and bo.obrano = 2407359 and bi.ref ='324.5343.00.1' and bi.lordem =14
20241107@153731.6494 qsrhuucau374tsqtm7jsrqrlm9 Query : use flama_phc
20241107@153731.6497 qsrhuucau374tsqtm7jsrqrlm9 Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20241107@153731.6550 qsrhuucau374tsqtm7jsrqrlm9 Query : use flama_phc
20241107@153731.6558 qsrhuucau374tsqtm7jsrqrlm9 Query : select top 1 1 valor from td where td.ndoc = 39
20241107@153731.6590 qsrhuucau374tsqtm7jsrqrlm9 Query : use flama_phc
20241107@153731.6593 qsrhuucau374tsqtm7jsrqrlm9 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')
20241107@153731.6629 qsrhuucau374tsqtm7jsrqrlm9 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
20241107@153731.6672 qsrhuucau374tsqtm7jsrqrlm9 Query : use flama_phc
20241107@153731.6675 qsrhuucau374tsqtm7jsrqrlm9 Query : select top 1 ~inactivo valor from cl where no = '200500' and estab = 0 order by inactivo desc
20241107@153731.6811 qsrhuucau374tsqtm7jsrqrlm9 Query : use flama_phc
20241107@153731.6817 qsrhuucau374tsqtm7jsrqrlm9 Query : select top 1 tipodoc,regrd from td where ndoc = 39
20241107@153731.6849 qsrhuucau374tsqtm7jsrqrlm9 Query : use flama_phc
20241107@153731.6853 qsrhuucau374tsqtm7jsrqrlm9 Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20241107@153731.6931 qsrhuucau374tsqtm7jsrqrlm9 Query : use flama_phc
20241107@153731.6937 qsrhuucau374tsqtm7jsrqrlm9 Query : select szadrsstamp valor from szadrs where szadrsdesc='iiruñadis sl'
20241107@153731.7000 qsrhuucau374tsqtm7jsrqrlm9 Query : use flama_phc
20241107@153731.7004 qsrhuucau374tsqtm7jsrqrlm9 Query : select 1 valor from td where ndoc = 39
20241107@153731.7031 qsrhuucau374tsqtm7jsrqrlm9 Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20241107@153731.7048 qsrhuucau374tsqtm7jsrqrlm9 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@153731.7072 qsrhuucau374tsqtm7jsrqrlm9 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20241107@153731.7093 qsrhuucau374tsqtm7jsrqrlm9 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@153731.7112 qsrhuucau374tsqtm7jsrqrlm9 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20241107@153731.7143 qsrhuucau374tsqtm7jsrqrlm9 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@153731.7203 qsrhuucau374tsqtm7jsrqrlm9 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20241107@153731.7218 qsrhuucau374tsqtm7jsrqrlm9 Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20241107@153731.7298 qsrhuucau374tsqtm7jsrqrlm9 Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20241107@153731.7315 qsrhuucau374tsqtm7jsrqrlm9 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@153731.7333 qsrhuucau374tsqtm7jsrqrlm9 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20241107@153731.7350 qsrhuucau374tsqtm7jsrqrlm9 Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut672cd02651672cdebbb0' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20241107@153731.7563 qsrhuucau374tsqtm7jsrqrlm9 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@153731.7651 qsrhuucau374tsqtm7jsrqrlm9 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20241107@153731.7697 qsrhuucau374tsqtm7jsrqrlm9 Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20241107@153731.7711 qsrhuucau374tsqtm7jsrqrlm9 Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20241107@153731.7726 qsrhuucau374tsqtm7jsrqrlm9 Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20241107@153731.7739 qsrhuucau374tsqtm7jsrqrlm9 Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20241107@153731.7755 qsrhuucau374tsqtm7jsrqrlm9 Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20241107@153731.7769 qsrhuucau374tsqtm7jsrqrlm9 Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20241107@153731.7783 qsrhuucau374tsqtm7jsrqrlm9 Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut672cd02651672cdebbb0',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20241107@153731.8069 qsrhuucau374tsqtm7jsrqrlm9 Query : select top 1 fno valor from wsftdata order by fno desc
20241107@153731.8099 qsrhuucau374tsqtm7jsrqrlm9 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@153731.8117 qsrhuucau374tsqtm7jsrqrlm9 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20241107@153731.8143 qsrhuucau374tsqtm7jsrqrlm9 Query : select 'normal' from dummy
20241107@153731.8160 qsrhuucau374tsqtm7jsrqrlm9 Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut672cd02651672cdebbb0',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',1735,200500,0,'2024-11-07',39,'euro',0,0,2024 ,?,?)
20241107@153731.8506 qsrhuucau374tsqtm7jsrqrlm9 Query : use flama_phc
20241107@153731.8510 qsrhuucau374tsqtm7jsrqrlm9 Query : select st.usalote valor from st where st.ref = '324.958.00.01'
20241107@153731.8537 qsrhuucau374tsqtm7jsrqrlm9 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.958.00.01'
20241107@153731.8562 qsrhuucau374tsqtm7jsrqrlm9 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@153731.8580 qsrhuucau374tsqtm7jsrqrlm9 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241107@153731.8628 qsrhuucau374tsqtm7jsrqrlm9 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@153731.8645 qsrhuucau374tsqtm7jsrqrlm9 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241107@153731.8656 qsrhuucau374tsqtm7jsrqrlm9 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241107@153731.8671 qsrhuucau374tsqtm7jsrqrlm9 Query : select sestamp valor from se where ref ='324.958.00.01' and lote = 'r2400240200a'
20241107@153731.8686 qsrhuucau374tsqtm7jsrqrlm9 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@153731.8703 qsrhuucau374tsqtm7jsrqrlm9 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241107@153731.8718 qsrhuucau374tsqtm7jsrqrlm9 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut672cd94438672cdebbd4','aut672cd02651672cdebbb0' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241107@153731.8730 qsrhuucau374tsqtm7jsrqrlm9 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@153731.8745 qsrhuucau374tsqtm7jsrqrlm9 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241107@153731.8776 qsrhuucau374tsqtm7jsrqrlm9 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut672cd94438672cdebbd4',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',16.000 ,'aut672cd02651672cdebbb0' ,0,0 ,2,23.00,10000,?,?,?,?,?)
20241107@153731.9074 qsrhuucau374tsqtm7jsrqrlm9 Query : use flama_phc
20241107@153731.9078 qsrhuucau374tsqtm7jsrqrlm9 Query : select st.usalote valor from st where st.ref = '324.945.00.01'
20241107@153731.9103 qsrhuucau374tsqtm7jsrqrlm9 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.945.00.01'
20241107@153731.9271 qsrhuucau374tsqtm7jsrqrlm9 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@153731.9290 qsrhuucau374tsqtm7jsrqrlm9 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241107@153731.9317 qsrhuucau374tsqtm7jsrqrlm9 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@153731.9334 qsrhuucau374tsqtm7jsrqrlm9 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241107@153731.9344 qsrhuucau374tsqtm7jsrqrlm9 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241107@153731.9356 qsrhuucau374tsqtm7jsrqrlm9 Query : select sestamp valor from se where ref ='324.945.00.01' and lote = 'r2400091100a'
20241107@153731.9379 qsrhuucau374tsqtm7jsrqrlm9 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@153731.9394 qsrhuucau374tsqtm7jsrqrlm9 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241107@153731.9406 qsrhuucau374tsqtm7jsrqrlm9 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut672cd74214672cdebbe4','aut672cd02651672cdebbb0' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241107@153731.9410 qsrhuucau374tsqtm7jsrqrlm9 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@153731.9426 qsrhuucau374tsqtm7jsrqrlm9 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241107@153731.9454 qsrhuucau374tsqtm7jsrqrlm9 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut672cd74214672cdebbe4',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',8.000 ,'aut672cd02651672cdebbb0' ,0,0 ,2,23.00,20000,?,?,?,?,?)
20241107@153731.9737 qsrhuucau374tsqtm7jsrqrlm9 Query : use flama_phc
20241107@153731.9741 qsrhuucau374tsqtm7jsrqrlm9 Query : select st.usalote valor from st where st.ref = '324.1462.00.1'
20241107@153731.9760 qsrhuucau374tsqtm7jsrqrlm9 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.1462.00.1'
20241107@153731.9782 qsrhuucau374tsqtm7jsrqrlm9 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@153731.9799 qsrhuucau374tsqtm7jsrqrlm9 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241107@153731.9829 qsrhuucau374tsqtm7jsrqrlm9 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@153731.9856 qsrhuucau374tsqtm7jsrqrlm9 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241107@153731.9865 qsrhuucau374tsqtm7jsrqrlm9 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241107@153731.9879 qsrhuucau374tsqtm7jsrqrlm9 Query : select sestamp valor from se where ref ='324.1462.00.1' and lote = 'r2101096200a'
20241107@153731.9905 qsrhuucau374tsqtm7jsrqrlm9 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@153731.9921 qsrhuucau374tsqtm7jsrqrlm9 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241107@153731.9933 qsrhuucau374tsqtm7jsrqrlm9 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut672cd23792672cdebbf1','aut672cd02651672cdebbb0' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241107@153731.9938 qsrhuucau374tsqtm7jsrqrlm9 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@153731.9953 qsrhuucau374tsqtm7jsrqrlm9 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241107@153731.9990 qsrhuucau374tsqtm7jsrqrlm9 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut672cd23792672cdebbf1',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',4.000 ,'aut672cd02651672cdebbb0' ,0,0 ,2,23.00,30000,?,?,?,?,?)
20241107@153732.2820 qsrhuucau374tsqtm7jsrqrlm9 Query : use flama_phc
20241107@153732.2860 qsrhuucau374tsqtm7jsrqrlm9 Query : select st.usalote valor from st where st.ref = '324.1407.00.1'
20241107@153732.3090 qsrhuucau374tsqtm7jsrqrlm9 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.1407.00.1'
20241107@153732.4770 qsrhuucau374tsqtm7jsrqrlm9 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@153732.4950 qsrhuucau374tsqtm7jsrqrlm9 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241107@153732.5240 qsrhuucau374tsqtm7jsrqrlm9 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@153732.5400 qsrhuucau374tsqtm7jsrqrlm9 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241107@153732.5510 qsrhuucau374tsqtm7jsrqrlm9 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241107@153732.5660 qsrhuucau374tsqtm7jsrqrlm9 Query : select sestamp valor from se where ref ='324.1407.00.1' and lote = 'r2100703100a'
20241107@153732.5890 qsrhuucau374tsqtm7jsrqrlm9 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@153732.6060 qsrhuucau374tsqtm7jsrqrlm9 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241107@153732.6200 qsrhuucau374tsqtm7jsrqrlm9 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut672cd05530672cdebc0e','aut672cd02651672cdebbb0' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241107@153732.6250 qsrhuucau374tsqtm7jsrqrlm9 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@153732.6440 qsrhuucau374tsqtm7jsrqrlm9 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241107@153732.6850 qsrhuucau374tsqtm7jsrqrlm9 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut672cd05530672cdebc0e',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',6.000 ,'aut672cd02651672cdebbb0' ,0,0 ,2,23.00,40000,?,?,?,?,?)
20241107@153732.9750 qsrhuucau374tsqtm7jsrqrlm9 Query : use flama_phc
20241107@153732.9790 qsrhuucau374tsqtm7jsrqrlm9 Query : select st.usalote valor from st where st.ref = '324.1406.00.1'
20241107@153732.1002 qsrhuucau374tsqtm7jsrqrlm9 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.1406.00.1'
20241107@153732.1168 qsrhuucau374tsqtm7jsrqrlm9 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@153732.1183 qsrhuucau374tsqtm7jsrqrlm9 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241107@153732.1208 qsrhuucau374tsqtm7jsrqrlm9 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@153732.1227 qsrhuucau374tsqtm7jsrqrlm9 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241107@153732.1235 qsrhuucau374tsqtm7jsrqrlm9 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241107@153732.1247 qsrhuucau374tsqtm7jsrqrlm9 Query : select sestamp valor from se where ref ='324.1406.00.1' and lote = 'r2400744200a'
20241107@153732.1260 qsrhuucau374tsqtm7jsrqrlm9 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@153732.1275 qsrhuucau374tsqtm7jsrqrlm9 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241107@153732.1287 qsrhuucau374tsqtm7jsrqrlm9 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut672cd12161672cdebc1e','aut672cd02651672cdebbb0' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241107@153732.1291 qsrhuucau374tsqtm7jsrqrlm9 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@153732.1306 qsrhuucau374tsqtm7jsrqrlm9 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241107@153732.1345 qsrhuucau374tsqtm7jsrqrlm9 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut672cd12161672cdebc1e',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',6.000 ,'aut672cd02651672cdebbb0' ,0,0 ,2,23.00,50000,?,?,?,?,?)
20241107@153732.1614 qsrhuucau374tsqtm7jsrqrlm9 Query : use flama_phc
20241107@153732.1617 qsrhuucau374tsqtm7jsrqrlm9 Query : select st.usalote valor from st where st.ref = '324.2231.00.2'
20241107@153732.1646 qsrhuucau374tsqtm7jsrqrlm9 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.2231.00.2'
20241107@153732.1798 qsrhuucau374tsqtm7jsrqrlm9 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@153732.1814 qsrhuucau374tsqtm7jsrqrlm9 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241107@153732.1839 qsrhuucau374tsqtm7jsrqrlm9 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@153732.1853 qsrhuucau374tsqtm7jsrqrlm9 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241107@153732.1881 qsrhuucau374tsqtm7jsrqrlm9 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241107@153732.1893 qsrhuucau374tsqtm7jsrqrlm9 Query : select sestamp valor from se where ref ='324.2231.00.2' and lote = 'r230114127'
20241107@153732.1903 qsrhuucau374tsqtm7jsrqrlm9 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@153732.1918 qsrhuucau374tsqtm7jsrqrlm9 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241107@153732.1930 qsrhuucau374tsqtm7jsrqrlm9 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut672cd24059672cdebc2e','aut672cd02651672cdebbb0' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241107@153732.1948 qsrhuucau374tsqtm7jsrqrlm9 Query : use flama_phc
20241107@153732.1952 qsrhuucau374tsqtm7jsrqrlm9 Query : select top 1 errorresult result ,errornumber errornumber ,descriptionpt description ,isnull(descriptionen,'') descriptionen ,isnull(descriptionfr,'') descriptionfr from wserrorcodes where errornumber = -116
20241107@153732.2025 qsrhuucau374tsqtm7jsrqrlm9 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='3165';
20241107@153732.2059 qsrhuucau374tsqtm7jsrqrlm9 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='3165';
20241107@153732.2639 b93vcae6coau7579pqllko4qtp Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20241107@153732.2650 b93vcae6coau7579pqllko4qtp Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20241107@153732.2711 b93vcae6coau7579pqllko4qtp Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='3166';
20241107@153732.2774 b93vcae6coau7579pqllko4qtp Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='3166';
20241107@153732.2831 b93vcae6coau7579pqllko4qtp Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='3166';
20241107@153732.2859 b93vcae6coau7579pqllko4qtp Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='3166';
20241107@153732.2909 b93vcae6coau7579pqllko4qtp Query : use flama_phc
20241107@153732.2912 b93vcae6coau7579pqllko4qtp Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20241107@153732.2974 b93vcae6coau7579pqllko4qtp Query : use flama_phc
20241107@153732.2977 b93vcae6coau7579pqllko4qtp Query : select no, estab,szadrsdesc from szadrs where u_coddest=1403
20241107@153732.3072 b93vcae6coau7579pqllko4qtp Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.5501.00.1'
20241107@153732.3098 b93vcae6coau7579pqllko4qtp Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2073 and bo.obrano = 2407361 and bi.ref ='324.5501.00.1' and bi.lordem =1
20241107@153732.3409 b93vcae6coau7579pqllko4qtp Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '304.2186.00.1'
20241107@153732.3559 b93vcae6coau7579pqllko4qtp Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2073 and bo.obrano = 2407361 and bi.ref ='304.2186.00.1' and bi.lordem =2
20241107@153732.4397 b93vcae6coau7579pqllko4qtp Query : use flama_phc
20241107@153732.4478 b93vcae6coau7579pqllko4qtp Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20241107@153732.5082 b93vcae6coau7579pqllko4qtp Query : use flama_phc
20241107@153732.5085 b93vcae6coau7579pqllko4qtp Query : select top 1 1 valor from td where td.ndoc = 39
20241107@153732.5114 b93vcae6coau7579pqllko4qtp Query : use flama_phc
20241107@153732.5118 b93vcae6coau7579pqllko4qtp 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')
20241107@153732.5154 b93vcae6coau7579pqllko4qtp 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
20241107@153732.5188 b93vcae6coau7579pqllko4qtp Query : use flama_phc
20241107@153732.5191 b93vcae6coau7579pqllko4qtp Query : select top 1 ~inactivo valor from cl where no = '100309' and estab = 0 order by inactivo desc
20241107@153732.5324 b93vcae6coau7579pqllko4qtp Query : use flama_phc
20241107@153732.5326 b93vcae6coau7579pqllko4qtp Query : select top 1 tipodoc,regrd from td where ndoc = 39
20241107@153732.5358 b93vcae6coau7579pqllko4qtp Query : use flama_phc
20241107@153732.5361 b93vcae6coau7579pqllko4qtp Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20241107@153732.5399 b93vcae6coau7579pqllko4qtp Query : use flama_phc
20241107@153732.5402 b93vcae6coau7579pqllko4qtp Query : select szadrsstamp valor from szadrs where szadrsdesc='armando antunes barata'
20241107@153732.5450 b93vcae6coau7579pqllko4qtp Query : use flama_phc
20241107@153732.5453 b93vcae6coau7579pqllko4qtp Query : select 1 valor from td where ndoc = 39
20241107@153732.5465 b93vcae6coau7579pqllko4qtp Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20241107@153732.5478 b93vcae6coau7579pqllko4qtp Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@153732.5494 b93vcae6coau7579pqllko4qtp Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20241107@153732.5512 b93vcae6coau7579pqllko4qtp Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@153732.5527 b93vcae6coau7579pqllko4qtp Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20241107@153732.5554 b93vcae6coau7579pqllko4qtp Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@153732.5568 b93vcae6coau7579pqllko4qtp Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20241107@153732.5581 b93vcae6coau7579pqllko4qtp Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20241107@153732.5642 b93vcae6coau7579pqllko4qtp Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20241107@153732.5655 b93vcae6coau7579pqllko4qtp Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@153732.5909 b93vcae6coau7579pqllko4qtp Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20241107@153732.6606 b93vcae6coau7579pqllko4qtp Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut672cd83889672cdebc88' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20241107@153732.7062 b93vcae6coau7579pqllko4qtp Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@153732.7081 b93vcae6coau7579pqllko4qtp Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20241107@153732.7154 b93vcae6coau7579pqllko4qtp Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20241107@153732.7178 b93vcae6coau7579pqllko4qtp Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20241107@153732.7203 b93vcae6coau7579pqllko4qtp Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20241107@153732.7217 b93vcae6coau7579pqllko4qtp Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20241107@153732.7229 b93vcae6coau7579pqllko4qtp Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20241107@153732.7243 b93vcae6coau7579pqllko4qtp Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20241107@153732.7255 b93vcae6coau7579pqllko4qtp Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut672cd83889672cdebc88',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20241107@153732.7559 b93vcae6coau7579pqllko4qtp Query : select top 1 fno valor from wsftdata order by fno desc
20241107@153732.7586 b93vcae6coau7579pqllko4qtp Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@153732.7614 b93vcae6coau7579pqllko4qtp Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20241107@153732.7639 b93vcae6coau7579pqllko4qtp Query : select 'normal' from dummy
20241107@153732.7654 b93vcae6coau7579pqllko4qtp Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut672cd83889672cdebc88',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',1735,100309,0,'2024-11-07',39,'euro',0,0,2024 ,?,?)
20241107@153732.7971 b93vcae6coau7579pqllko4qtp Query : use flama_phc
20241107@153732.7974 b93vcae6coau7579pqllko4qtp Query : select st.usalote valor from st where st.ref = '324.5501.00.1'
20241107@153732.7996 b93vcae6coau7579pqllko4qtp Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.5501.00.1'
20241107@153732.8018 b93vcae6coau7579pqllko4qtp Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@153732.8033 b93vcae6coau7579pqllko4qtp Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241107@153732.8058 b93vcae6coau7579pqllko4qtp Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@153732.8072 b93vcae6coau7579pqllko4qtp Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241107@153732.8080 b93vcae6coau7579pqllko4qtp Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241107@153732.8092 b93vcae6coau7579pqllko4qtp Query : select sestamp valor from se where ref ='324.5501.00.1' and lote = 'r2300908100a'
20241107@153732.8111 b93vcae6coau7579pqllko4qtp Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@153732.8126 b93vcae6coau7579pqllko4qtp Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241107@153732.8137 b93vcae6coau7579pqllko4qtp Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut672cd93157672cdebcc6','aut672cd83889672cdebc88' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241107@153732.8141 b93vcae6coau7579pqllko4qtp Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@153732.8155 b93vcae6coau7579pqllko4qtp Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241107@153732.8181 b93vcae6coau7579pqllko4qtp Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut672cd93157672cdebcc6',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',2.000 ,'aut672cd83889672cdebc88' ,0,0 ,2,23.00,10000,?,?,?,?,?)
20241107@153732.8443 b93vcae6coau7579pqllko4qtp Query : use flama_phc
20241107@153732.8447 b93vcae6coau7579pqllko4qtp Query : select st.usalote valor from st where st.ref = '304.2186.00.1'
20241107@153732.8468 b93vcae6coau7579pqllko4qtp 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.2186.00.1'
20241107@153732.8613 b93vcae6coau7579pqllko4qtp Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@153732.8628 b93vcae6coau7579pqllko4qtp Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241107@153732.8651 b93vcae6coau7579pqllko4qtp Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@153732.8665 b93vcae6coau7579pqllko4qtp Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241107@153732.8673 b93vcae6coau7579pqllko4qtp Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241107@153732.8685 b93vcae6coau7579pqllko4qtp Query : select sestamp valor from se where ref ='304.2186.00.1' and lote = '241301'
20241107@153732.8705 b93vcae6coau7579pqllko4qtp Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@153732.8721 b93vcae6coau7579pqllko4qtp Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241107@153732.8732 b93vcae6coau7579pqllko4qtp Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut672cd30436672cdebcd4','aut672cd83889672cdebc88' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241107@153732.8736 b93vcae6coau7579pqllko4qtp Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@153732.8749 b93vcae6coau7579pqllko4qtp Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241107@153732.8787 b93vcae6coau7579pqllko4qtp Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut672cd30436672cdebcd4',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',1.000 ,'aut672cd83889672cdebc88' ,0,0 ,2,23.00,20000,?,?,?,?,?)
20241107@153732.9081 b93vcae6coau7579pqllko4qtp Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@153732.9097 b93vcae6coau7579pqllko4qtp Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241107@153732.9124 b93vcae6coau7579pqllko4qtp Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@153732.9138 b93vcae6coau7579pqllko4qtp Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241107@153732.9146 b93vcae6coau7579pqllko4qtp Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241107@153732.9158 b93vcae6coau7579pqllko4qtp Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@153732.9173 b93vcae6coau7579pqllko4qtp Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241107@153732.9184 b93vcae6coau7579pqllko4qtp Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut672cd79207672cdebcdf','aut672cd83889672cdebc88' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241107@153732.9189 b93vcae6coau7579pqllko4qtp Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@153732.9203 b93vcae6coau7579pqllko4qtp Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241107@153732.9230 b93vcae6coau7579pqllko4qtp Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut672cd79207672cdebcdf',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut672cd83889672cdebc88' ,0,0 ,2,23.00,30000,?,?,?)
20241107@153732.9500 b93vcae6coau7579pqllko4qtp Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut672cd83889672cdebc88','2407361','wait',39,'adm09112754980.682000002')
20241107@153732.9573 b93vcae6coau7579pqllko4qtp Query : use flama_phc
20241107@153732.9576 b93vcae6coau7579pqllko4qtp Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20241107@153732.9605 b93vcae6coau7579pqllko4qtp Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='3166';
20241107@153732.9642 b93vcae6coau7579pqllko4qtp Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='3166';
20241107@153732.9685 b93vcae6coau7579pqllko4qtp Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='3166';
20241107@153732.9712 b93vcae6coau7579pqllko4qtp Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='3166';

20241107@174317.5203 4n4gpa53nts2n8tra4eudeos7l Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='3167';
20241107@174317.5267 4n4gpa53nts2n8tra4eudeos7l Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='3167';
20241107@174317.5299 4n4gpa53nts2n8tra4eudeos7l Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='3167';
20241107@174317.5364 4n4gpa53nts2n8tra4eudeos7l Query : use flama_phc
20241107@174317.5367 4n4gpa53nts2n8tra4eudeos7l Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20241107@174317.5510 4n4gpa53nts2n8tra4eudeos7l Query : use flama_phc
20241107@174317.5514 4n4gpa53nts2n8tra4eudeos7l Query : select no, estab,szadrsdesc from szadrs where u_coddest=7117
20241107@174317.5625 4n4gpa53nts2n8tra4eudeos7l 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'
20241107@174317.5876 4n4gpa53nts2n8tra4eudeos7l Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2073 and bo.obrano = 2407363 and bi.ref ='324.642.00.01' and bi.lordem =1
20241107@174317.6214 4n4gpa53nts2n8tra4eudeos7l 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'
20241107@174317.6236 4n4gpa53nts2n8tra4eudeos7l Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2073 and bo.obrano = 2407363 and bi.ref ='324.642.00.01' and bi.lordem =1
20241107@174317.6256 4n4gpa53nts2n8tra4eudeos7l 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'
20241107@174317.7690 4n4gpa53nts2n8tra4eudeos7l Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2073 and bo.obrano = 2407363 and bi.ref ='324.4980.00.1' and bi.lordem =2
20241107@174317.8019 4n4gpa53nts2n8tra4eudeos7l Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.4988.00.1'
20241107@174317.8178 4n4gpa53nts2n8tra4eudeos7l Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2073 and bo.obrano = 2407363 and bi.ref ='324.4988.00.1' and bi.lordem =4
20241107@174317.8508 4n4gpa53nts2n8tra4eudeos7l Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.2066.00.1'
20241107@174317.8674 4n4gpa53nts2n8tra4eudeos7l Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2073 and bo.obrano = 2407363 and bi.ref ='324.2066.00.1' and bi.lordem =6
20241107@174317.9024 4n4gpa53nts2n8tra4eudeos7l Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1407.00.1'
20241107@174317.9185 4n4gpa53nts2n8tra4eudeos7l Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2073 and bo.obrano = 2407363 and bi.ref ='324.1407.00.1' and bi.lordem =8
20241107@174317.9526 4n4gpa53nts2n8tra4eudeos7l Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '323.367.09.00'
20241107@174317.9696 4n4gpa53nts2n8tra4eudeos7l Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2073 and bo.obrano = 2407363 and bi.ref ='323.367.09.00' and bi.lordem =10
20241107@174318.4600 4n4gpa53nts2n8tra4eudeos7l Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '326.597.00.01'
20241107@174318.1544 4n4gpa53nts2n8tra4eudeos7l Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2073 and bo.obrano = 2407363 and bi.ref ='326.597.00.01' and bi.lordem =11
20241107@174318.1872 4n4gpa53nts2n8tra4eudeos7l Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.4930.00.1'
20241107@174318.2034 4n4gpa53nts2n8tra4eudeos7l Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2073 and bo.obrano = 2407363 and bi.ref ='324.4930.00.1' and bi.lordem =12
20241107@174318.2353 4n4gpa53nts2n8tra4eudeos7l 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'
20241107@174318.2510 4n4gpa53nts2n8tra4eudeos7l Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2073 and bo.obrano = 2407363 and bi.ref ='323.318.09.00' and bi.lordem =14
20241107@174318.2835 4n4gpa53nts2n8tra4eudeos7l Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '326.595.00.01'
20241107@174318.3047 4n4gpa53nts2n8tra4eudeos7l Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2073 and bo.obrano = 2407363 and bi.ref ='326.595.00.01' and bi.lordem =15
20241107@174318.3456 4n4gpa53nts2n8tra4eudeos7l Query : use flama_phc
20241107@174318.3459 4n4gpa53nts2n8tra4eudeos7l Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20241107@174318.3654 4n4gpa53nts2n8tra4eudeos7l Query : use flama_phc
20241107@174318.3658 4n4gpa53nts2n8tra4eudeos7l Query : select top 1 1 valor from td where td.ndoc = 39
20241107@174318.3771 4n4gpa53nts2n8tra4eudeos7l Query : use flama_phc
20241107@174318.3774 4n4gpa53nts2n8tra4eudeos7l 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')
20241107@174318.3845 4n4gpa53nts2n8tra4eudeos7l 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
20241107@174318.3985 4n4gpa53nts2n8tra4eudeos7l Query : use flama_phc
20241107@174318.3988 4n4gpa53nts2n8tra4eudeos7l Query : select top 1 ~inactivo valor from cl where no = '102155' and estab = 0 order by inactivo desc
20241107@174318.4117 4n4gpa53nts2n8tra4eudeos7l Query : use flama_phc
20241107@174318.4121 4n4gpa53nts2n8tra4eudeos7l Query : select top 1 tipodoc,regrd from td where ndoc = 39
20241107@174318.4222 4n4gpa53nts2n8tra4eudeos7l Query : use flama_phc
20241107@174318.4225 4n4gpa53nts2n8tra4eudeos7l Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20241107@174318.4268 4n4gpa53nts2n8tra4eudeos7l Query : use flama_phc
20241107@174318.4272 4n4gpa53nts2n8tra4eudeos7l Query : select szadrsstamp valor from szadrs where szadrsdesc='eternobom - loja leiria'
20241107@174318.4315 4n4gpa53nts2n8tra4eudeos7l Query : use flama_phc
20241107@174318.4318 4n4gpa53nts2n8tra4eudeos7l Query : select 1 valor from td where ndoc = 39
20241107@174318.4405 4n4gpa53nts2n8tra4eudeos7l Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20241107@174318.4498 4n4gpa53nts2n8tra4eudeos7l Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@174318.4844 4n4gpa53nts2n8tra4eudeos7l Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20241107@174318.4905 4n4gpa53nts2n8tra4eudeos7l Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@174318.4920 4n4gpa53nts2n8tra4eudeos7l Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20241107@174318.4950 4n4gpa53nts2n8tra4eudeos7l Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@174318.4965 4n4gpa53nts2n8tra4eudeos7l Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20241107@174318.4980 4n4gpa53nts2n8tra4eudeos7l Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20241107@174318.5181 4n4gpa53nts2n8tra4eudeos7l Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20241107@174318.5275 4n4gpa53nts2n8tra4eudeos7l Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@174318.5291 4n4gpa53nts2n8tra4eudeos7l Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20241107@174318.5337 4n4gpa53nts2n8tra4eudeos7l Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut672cf99096672cfc3679' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20241107@174318.5537 4n4gpa53nts2n8tra4eudeos7l Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@174318.5554 4n4gpa53nts2n8tra4eudeos7l Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20241107@174318.5600 4n4gpa53nts2n8tra4eudeos7l Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20241107@174318.5705 4n4gpa53nts2n8tra4eudeos7l Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20241107@174318.5804 4n4gpa53nts2n8tra4eudeos7l Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20241107@174318.5943 4n4gpa53nts2n8tra4eudeos7l Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20241107@174318.6045 4n4gpa53nts2n8tra4eudeos7l Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20241107@174318.6146 4n4gpa53nts2n8tra4eudeos7l Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20241107@174318.6252 4n4gpa53nts2n8tra4eudeos7l Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut672cf99096672cfc3679',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20241107@174318.6717 4n4gpa53nts2n8tra4eudeos7l Query : select top 1 fno valor from wsftdata order by fno desc
20241107@174318.6852 4n4gpa53nts2n8tra4eudeos7l Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@174318.6869 4n4gpa53nts2n8tra4eudeos7l Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20241107@174318.6895 4n4gpa53nts2n8tra4eudeos7l Query : select 'normal' from dummy
20241107@174318.6932 4n4gpa53nts2n8tra4eudeos7l Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut672cf99096672cfc3679',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',1736,102155,0,'2024-11-07',39,'euro',0,0,2024 ,?,?)
20241107@174318.7750 4n4gpa53nts2n8tra4eudeos7l Query : use flama_phc
20241107@174318.7792 4n4gpa53nts2n8tra4eudeos7l Query : select st.usalote valor from st where st.ref = '324.642.00.01'
20241107@174318.8222 4n4gpa53nts2n8tra4eudeos7l 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'
20241107@174318.8889 4n4gpa53nts2n8tra4eudeos7l Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@174318.8906 4n4gpa53nts2n8tra4eudeos7l Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241107@174318.8933 4n4gpa53nts2n8tra4eudeos7l Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@174318.8947 4n4gpa53nts2n8tra4eudeos7l Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241107@174318.8956 4n4gpa53nts2n8tra4eudeos7l Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241107@174318.9014 4n4gpa53nts2n8tra4eudeos7l Query : select sestamp valor from se where ref ='324.642.00.01' and lote = 'r2100892200a'
20241107@174318.9051 4n4gpa53nts2n8tra4eudeos7l Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@174318.9070 4n4gpa53nts2n8tra4eudeos7l Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241107@174318.9084 4n4gpa53nts2n8tra4eudeos7l Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut672cf66120672cfc36dc','aut672cf99096672cfc3679' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241107@174318.9141 4n4gpa53nts2n8tra4eudeos7l Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@174318.9184 4n4gpa53nts2n8tra4eudeos7l Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241107@174318.9216 4n4gpa53nts2n8tra4eudeos7l Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut672cf66120672cfc36dc',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',2.000 ,'aut672cf99096672cfc3679' ,0,0 ,2,23.00,10000,?,?,?,?,?)
20241107@174318.9582 4n4gpa53nts2n8tra4eudeos7l Query : use flama_phc
20241107@174318.9586 4n4gpa53nts2n8tra4eudeos7l Query : select st.usalote valor from st where st.ref = '324.642.00.01'
20241107@174318.9605 4n4gpa53nts2n8tra4eudeos7l 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'
20241107@174318.9619 4n4gpa53nts2n8tra4eudeos7l Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@174318.9636 4n4gpa53nts2n8tra4eudeos7l Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241107@174318.9662 4n4gpa53nts2n8tra4eudeos7l Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@174318.9677 4n4gpa53nts2n8tra4eudeos7l Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241107@174318.9687 4n4gpa53nts2n8tra4eudeos7l Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241107@174318.9700 4n4gpa53nts2n8tra4eudeos7l Query : select sestamp valor from se where ref ='324.642.00.01' and lote = 'r2100892200a'
20241107@174318.9714 4n4gpa53nts2n8tra4eudeos7l Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@174318.9729 4n4gpa53nts2n8tra4eudeos7l Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241107@174318.9774 4n4gpa53nts2n8tra4eudeos7l Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut672cf17758672cfc36ed','aut672cf99096672cfc3679' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241107@174318.9779 4n4gpa53nts2n8tra4eudeos7l Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@174318.9794 4n4gpa53nts2n8tra4eudeos7l Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241107@174318.9822 4n4gpa53nts2n8tra4eudeos7l Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut672cf17758672cfc36ed',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',4.000 ,'aut672cf99096672cfc3679' ,0,0 ,2,23.00,20000,?,?,?,?,?)
20241107@174319.1150 4n4gpa53nts2n8tra4eudeos7l Query : use flama_phc
20241107@174319.1190 4n4gpa53nts2n8tra4eudeos7l Query : select st.usalote valor from st where st.ref = '324.4980.00.1'
20241107@174319.1440 4n4gpa53nts2n8tra4eudeos7l 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'
20241107@174319.2970 4n4gpa53nts2n8tra4eudeos7l Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@174319.3160 4n4gpa53nts2n8tra4eudeos7l Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241107@174319.3490 4n4gpa53nts2n8tra4eudeos7l Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@174319.3640 4n4gpa53nts2n8tra4eudeos7l Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241107@174319.3720 4n4gpa53nts2n8tra4eudeos7l Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241107@174319.3850 4n4gpa53nts2n8tra4eudeos7l Query : select sestamp valor from se where ref ='324.4980.00.1' and lote = 'r2400145100a'
20241107@174319.3990 4n4gpa53nts2n8tra4eudeos7l Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@174319.4150 4n4gpa53nts2n8tra4eudeos7l Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241107@174319.4280 4n4gpa53nts2n8tra4eudeos7l Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut672cf31082672cfc3709','aut672cf99096672cfc3679' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241107@174319.4330 4n4gpa53nts2n8tra4eudeos7l Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@174319.4480 4n4gpa53nts2n8tra4eudeos7l Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241107@174319.5020 4n4gpa53nts2n8tra4eudeos7l Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut672cf31082672cfc3709',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',4.000 ,'aut672cf99096672cfc3679' ,0,0 ,2,23.00,30000,?,?,?,?,?)
20241107@174319.7910 4n4gpa53nts2n8tra4eudeos7l Query : use flama_phc
20241107@174319.7940 4n4gpa53nts2n8tra4eudeos7l Query : select st.usalote valor from st where st.ref = '324.4988.00.1'
20241107@174319.8170 4n4gpa53nts2n8tra4eudeos7l Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.4988.00.1'
20241107@174319.9710 4n4gpa53nts2n8tra4eudeos7l Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@174319.9900 4n4gpa53nts2n8tra4eudeos7l Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241107@174319.1020 4n4gpa53nts2n8tra4eudeos7l Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@174319.1039 4n4gpa53nts2n8tra4eudeos7l Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241107@174319.1049 4n4gpa53nts2n8tra4eudeos7l Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241107@174319.1065 4n4gpa53nts2n8tra4eudeos7l Query : select sestamp valor from se where ref ='324.4988.00.1' and lote = 'r2100754100a'
20241107@174319.1094 4n4gpa53nts2n8tra4eudeos7l Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@174319.1114 4n4gpa53nts2n8tra4eudeos7l Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241107@174319.1125 4n4gpa53nts2n8tra4eudeos7l Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut672cf32265672cfc371a','aut672cf99096672cfc3679' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241107@174319.1130 4n4gpa53nts2n8tra4eudeos7l Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@174319.1171 4n4gpa53nts2n8tra4eudeos7l Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241107@174319.1200 4n4gpa53nts2n8tra4eudeos7l Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut672cf32265672cfc371a',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',4.000 ,'aut672cf99096672cfc3679' ,0,0 ,2,23.00,40000,?,?,?,?,?)
20241107@174319.1509 4n4gpa53nts2n8tra4eudeos7l Query : use flama_phc
20241107@174319.1512 4n4gpa53nts2n8tra4eudeos7l Query : select st.usalote valor from st where st.ref = '324.2066.00.1'
20241107@174319.1537 4n4gpa53nts2n8tra4eudeos7l 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.2066.00.1'
20241107@174319.1706 4n4gpa53nts2n8tra4eudeos7l Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@174319.1722 4n4gpa53nts2n8tra4eudeos7l Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241107@174319.1753 4n4gpa53nts2n8tra4eudeos7l Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@174319.1768 4n4gpa53nts2n8tra4eudeos7l Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241107@174319.1777 4n4gpa53nts2n8tra4eudeos7l Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241107@174319.1788 4n4gpa53nts2n8tra4eudeos7l Query : select sestamp valor from se where ref ='324.2066.00.1' and lote = 'r2400051100a'
20241107@174319.1808 4n4gpa53nts2n8tra4eudeos7l Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@174319.1823 4n4gpa53nts2n8tra4eudeos7l Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241107@174319.1835 4n4gpa53nts2n8tra4eudeos7l Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut672cf33242672cfc372c','aut672cf99096672cfc3679' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241107@174319.1840 4n4gpa53nts2n8tra4eudeos7l Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@174319.1855 4n4gpa53nts2n8tra4eudeos7l Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241107@174319.1884 4n4gpa53nts2n8tra4eudeos7l Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut672cf33242672cfc372c',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',12.000 ,'aut672cf99096672cfc3679' ,0,0 ,2,23.00,50000,?,?,?,?,?)
20241107@174319.2534 4n4gpa53nts2n8tra4eudeos7l Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@174319.3118 4n4gpa53nts2n8tra4eudeos7l Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241107@174319.4571 4n4gpa53nts2n8tra4eudeos7l Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@174319.4588 4n4gpa53nts2n8tra4eudeos7l Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241107@174319.4597 4n4gpa53nts2n8tra4eudeos7l Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241107@174319.4610 4n4gpa53nts2n8tra4eudeos7l Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@174319.4634 4n4gpa53nts2n8tra4eudeos7l Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241107@174319.4686 4n4gpa53nts2n8tra4eudeos7l Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut672cf45365672cfc3770','aut672cf99096672cfc3679' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241107@174319.4691 4n4gpa53nts2n8tra4eudeos7l Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@174319.4705 4n4gpa53nts2n8tra4eudeos7l Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241107@174319.4732 4n4gpa53nts2n8tra4eudeos7l Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut672cf45365672cfc3770',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut672cf99096672cfc3679' ,0,0 ,2,23.00,60000,?,?,?)
20241107@174319.5003 4n4gpa53nts2n8tra4eudeos7l Query : use flama_phc
20241107@174319.5006 4n4gpa53nts2n8tra4eudeos7l Query : select st.usalote valor from st where st.ref = '324.1407.00.1'
20241107@174319.5027 4n4gpa53nts2n8tra4eudeos7l 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.1407.00.1'
20241107@174319.5181 4n4gpa53nts2n8tra4eudeos7l Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@174319.5198 4n4gpa53nts2n8tra4eudeos7l Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241107@174319.5273 4n4gpa53nts2n8tra4eudeos7l Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@174319.5293 4n4gpa53nts2n8tra4eudeos7l Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241107@174319.5325 4n4gpa53nts2n8tra4eudeos7l Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241107@174319.5338 4n4gpa53nts2n8tra4eudeos7l Query : select sestamp valor from se where ref ='324.1407.00.1' and lote = 'r2100703100a'
20241107@174319.5359 4n4gpa53nts2n8tra4eudeos7l Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@174319.5375 4n4gpa53nts2n8tra4eudeos7l Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241107@174319.5387 4n4gpa53nts2n8tra4eudeos7l Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut672cf08888672cfc3782','aut672cf99096672cfc3679' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241107@174319.5391 4n4gpa53nts2n8tra4eudeos7l Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@174319.5406 4n4gpa53nts2n8tra4eudeos7l Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241107@174319.5437 4n4gpa53nts2n8tra4eudeos7l Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut672cf08888672cfc3782',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',12.000 ,'aut672cf99096672cfc3679' ,0,0 ,2,23.00,80000,?,?,?,?,?)
20241107@174319.5786 4n4gpa53nts2n8tra4eudeos7l Query : use flama_phc
20241107@174319.5789 4n4gpa53nts2n8tra4eudeos7l Query : select st.usalote valor from st where st.ref = '323.367.09.00'
20241107@174319.5813 4n4gpa53nts2n8tra4eudeos7l 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.367.09.00'
20241107@174319.5979 4n4gpa53nts2n8tra4eudeos7l Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@174319.5996 4n4gpa53nts2n8tra4eudeos7l Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241107@174319.6026 4n4gpa53nts2n8tra4eudeos7l Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@174319.6041 4n4gpa53nts2n8tra4eudeos7l Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241107@174319.6050 4n4gpa53nts2n8tra4eudeos7l Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241107@174319.6063 4n4gpa53nts2n8tra4eudeos7l Query : select sestamp valor from se where ref ='323.367.09.00' and lote = 'r2400053200a'
20241107@174319.6077 4n4gpa53nts2n8tra4eudeos7l Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@174319.6092 4n4gpa53nts2n8tra4eudeos7l Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241107@174319.6105 4n4gpa53nts2n8tra4eudeos7l Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut672cf77433672cfc3794','aut672cf99096672cfc3679' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241107@174319.6110 4n4gpa53nts2n8tra4eudeos7l Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@174319.6127 4n4gpa53nts2n8tra4eudeos7l Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241107@174319.6159 4n4gpa53nts2n8tra4eudeos7l Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut672cf77433672cfc3794',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',2.000 ,'aut672cf99096672cfc3679' ,0,0 ,2,23.00,90000,?,?,?,?,?)
20241107@174319.6480 4n4gpa53nts2n8tra4eudeos7l Query : use flama_phc
20241107@174319.6484 4n4gpa53nts2n8tra4eudeos7l Query : select st.usalote valor from st where st.ref = '326.597.00.01'
20241107@174319.6505 4n4gpa53nts2n8tra4eudeos7l Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '326.597.00.01'
20241107@174319.6667 4n4gpa53nts2n8tra4eudeos7l Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@174319.6682 4n4gpa53nts2n8tra4eudeos7l Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241107@174319.6707 4n4gpa53nts2n8tra4eudeos7l Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@174319.6722 4n4gpa53nts2n8tra4eudeos7l Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241107@174319.6730 4n4gpa53nts2n8tra4eudeos7l Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241107@174319.6741 4n4gpa53nts2n8tra4eudeos7l Query : select sestamp valor from se where ref ='326.597.00.01' and lote = 'r2400936200a'
20241107@174319.6755 4n4gpa53nts2n8tra4eudeos7l Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@174319.6771 4n4gpa53nts2n8tra4eudeos7l Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241107@174319.6782 4n4gpa53nts2n8tra4eudeos7l Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut672cf13507672cfc37a4','aut672cf99096672cfc3679' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241107@174319.6786 4n4gpa53nts2n8tra4eudeos7l Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@174319.6801 4n4gpa53nts2n8tra4eudeos7l Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241107@174319.6829 4n4gpa53nts2n8tra4eudeos7l Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut672cf13507672cfc37a4',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',2.000 ,'aut672cf99096672cfc3679' ,0,0 ,2,23.00,100000,?,?,?,?,?)
20241107@174319.7105 4n4gpa53nts2n8tra4eudeos7l Query : use flama_phc
20241107@174319.7109 4n4gpa53nts2n8tra4eudeos7l Query : select st.usalote valor from st where st.ref = '324.4930.00.1'
20241107@174319.7129 4n4gpa53nts2n8tra4eudeos7l 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.4930.00.1'
20241107@174319.7280 4n4gpa53nts2n8tra4eudeos7l Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@174319.7297 4n4gpa53nts2n8tra4eudeos7l Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241107@174319.7328 4n4gpa53nts2n8tra4eudeos7l Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@174319.7357 4n4gpa53nts2n8tra4eudeos7l Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241107@174319.7365 4n4gpa53nts2n8tra4eudeos7l Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241107@174319.7394 4n4gpa53nts2n8tra4eudeos7l Query : select sestamp valor from se where ref ='324.4930.00.1' and lote = 'r2400066200a'
20241107@174319.7407 4n4gpa53nts2n8tra4eudeos7l Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@174319.7422 4n4gpa53nts2n8tra4eudeos7l Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241107@174319.7433 4n4gpa53nts2n8tra4eudeos7l Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut672cf75058672cfc37b4','aut672cf99096672cfc3679' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241107@174319.7438 4n4gpa53nts2n8tra4eudeos7l Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@174319.7453 4n4gpa53nts2n8tra4eudeos7l Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241107@174319.7485 4n4gpa53nts2n8tra4eudeos7l Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut672cf75058672cfc37b4',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',6.000 ,'aut672cf99096672cfc3679' ,0,0 ,2,23.00,110000,?,?,?,?,?)
20241107@174319.7779 4n4gpa53nts2n8tra4eudeos7l Query : use flama_phc
20241107@174319.7782 4n4gpa53nts2n8tra4eudeos7l Query : select st.usalote valor from st where st.ref = '323.318.09.00'
20241107@174319.7802 4n4gpa53nts2n8tra4eudeos7l 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'
20241107@174319.7947 4n4gpa53nts2n8tra4eudeos7l Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@174319.7964 4n4gpa53nts2n8tra4eudeos7l Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241107@174319.7988 4n4gpa53nts2n8tra4eudeos7l Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@174319.8003 4n4gpa53nts2n8tra4eudeos7l Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241107@174319.8012 4n4gpa53nts2n8tra4eudeos7l Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241107@174319.8024 4n4gpa53nts2n8tra4eudeos7l Query : select sestamp valor from se where ref ='323.318.09.00' and lote = 'r2400053200a'
20241107@174319.8064 4n4gpa53nts2n8tra4eudeos7l Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@174319.8079 4n4gpa53nts2n8tra4eudeos7l Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241107@174319.8092 4n4gpa53nts2n8tra4eudeos7l Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut672cf62156672cfc37c4','aut672cf99096672cfc3679' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241107@174319.8098 4n4gpa53nts2n8tra4eudeos7l Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@174319.8114 4n4gpa53nts2n8tra4eudeos7l Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241107@174319.8143 4n4gpa53nts2n8tra4eudeos7l Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut672cf62156672cfc37c4',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',2.000 ,'aut672cf99096672cfc3679' ,0,0 ,2,23.00,120000,?,?,?,?,?)
20241107@174319.8435 4n4gpa53nts2n8tra4eudeos7l Query : use flama_phc
20241107@174319.8438 4n4gpa53nts2n8tra4eudeos7l Query : select st.usalote valor from st where st.ref = '326.595.00.01'
20241107@174319.8459 4n4gpa53nts2n8tra4eudeos7l Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '326.595.00.01'
20241107@174319.8682 4n4gpa53nts2n8tra4eudeos7l Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@174319.8699 4n4gpa53nts2n8tra4eudeos7l Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241107@174319.8725 4n4gpa53nts2n8tra4eudeos7l Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@174319.8741 4n4gpa53nts2n8tra4eudeos7l Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241107@174319.8750 4n4gpa53nts2n8tra4eudeos7l Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241107@174319.8762 4n4gpa53nts2n8tra4eudeos7l Query : select sestamp valor from se where ref ='326.595.00.01' and lote = 'r2400411200a'
20241107@174319.8782 4n4gpa53nts2n8tra4eudeos7l Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@174319.8797 4n4gpa53nts2n8tra4eudeos7l Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241107@174319.8808 4n4gpa53nts2n8tra4eudeos7l Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut672cf14021672cfc37d6','aut672cf99096672cfc3679' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241107@174319.8813 4n4gpa53nts2n8tra4eudeos7l Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@174319.8829 4n4gpa53nts2n8tra4eudeos7l Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241107@174319.8858 4n4gpa53nts2n8tra4eudeos7l Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut672cf14021672cfc37d6',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',2.000 ,'aut672cf99096672cfc3679' ,0,0 ,2,23.00,130000,?,?,?,?,?)
20241107@174319.9208 4n4gpa53nts2n8tra4eudeos7l Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut672cf99096672cfc3679','2407363','wait',39,'adm09112754980.682000002')
20241107@174319.9325 4n4gpa53nts2n8tra4eudeos7l Query : use flama_phc
20241107@174319.9328 4n4gpa53nts2n8tra4eudeos7l Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20241107@174319.9357 4n4gpa53nts2n8tra4eudeos7l Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='3167';
20241107@174319.9393 4n4gpa53nts2n8tra4eudeos7l Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='3167';
20241107@174319.9437 4n4gpa53nts2n8tra4eudeos7l Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='3167';
20241107@174319.9467 4n4gpa53nts2n8tra4eudeos7l Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='3167';
20241107@174320.1114 ukilma5tvbh3p385in9ftrnie6 Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20241107@174320.1124 ukilma5tvbh3p385in9ftrnie6 Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20241107@174320.1182 ukilma5tvbh3p385in9ftrnie6 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='3168';
20241107@174320.1242 ukilma5tvbh3p385in9ftrnie6 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='3168';
20241107@174320.1297 ukilma5tvbh3p385in9ftrnie6 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='3168';
20241107@174320.1332 ukilma5tvbh3p385in9ftrnie6 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='3168';
20241107@174320.1388 ukilma5tvbh3p385in9ftrnie6 Query : use flama_phc
20241107@174320.1391 ukilma5tvbh3p385in9ftrnie6 Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20241107@174320.1452 ukilma5tvbh3p385in9ftrnie6 Query : use flama_phc
20241107@174320.1455 ukilma5tvbh3p385in9ftrnie6 Query : select no, estab,szadrsdesc from szadrs where u_coddest=5084
20241107@174320.1540 ukilma5tvbh3p385in9ftrnie6 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'
20241107@174320.1559 ukilma5tvbh3p385in9ftrnie6 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2073 and bo.obrano = 2407364 and bi.ref ='324.642.00.01' and bi.lordem =1
20241107@174320.1875 ukilma5tvbh3p385in9ftrnie6 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'
20241107@174320.1896 ukilma5tvbh3p385in9ftrnie6 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2073 and bo.obrano = 2407364 and bi.ref ='324.4980.00.1' and bi.lordem =2
20241107@174320.2242 ukilma5tvbh3p385in9ftrnie6 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.4988.00.1'
20241107@174320.2263 ukilma5tvbh3p385in9ftrnie6 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2073 and bo.obrano = 2407364 and bi.ref ='324.4988.00.1' and bi.lordem =3
20241107@174320.2602 ukilma5tvbh3p385in9ftrnie6 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.2066.00.1'
20241107@174320.2625 ukilma5tvbh3p385in9ftrnie6 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2073 and bo.obrano = 2407364 and bi.ref ='324.2066.00.1' and bi.lordem =4
20241107@174320.2960 ukilma5tvbh3p385in9ftrnie6 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1407.00.1'
20241107@174320.2980 ukilma5tvbh3p385in9ftrnie6 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2073 and bo.obrano = 2407364 and bi.ref ='324.1407.00.1' and bi.lordem =5
20241107@174320.3321 ukilma5tvbh3p385in9ftrnie6 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '323.367.09.00'
20241107@174320.3342 ukilma5tvbh3p385in9ftrnie6 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2073 and bo.obrano = 2407364 and bi.ref ='323.367.09.00' and bi.lordem =6
20241107@174320.3661 ukilma5tvbh3p385in9ftrnie6 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '326.597.00.01'
20241107@174320.3683 ukilma5tvbh3p385in9ftrnie6 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2073 and bo.obrano = 2407364 and bi.ref ='326.597.00.01' and bi.lordem =7
20241107@174320.4034 ukilma5tvbh3p385in9ftrnie6 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.4930.00.1'
20241107@174320.4057 ukilma5tvbh3p385in9ftrnie6 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2073 and bo.obrano = 2407364 and bi.ref ='324.4930.00.1' and bi.lordem =8
20241107@174320.4388 ukilma5tvbh3p385in9ftrnie6 Query : use flama_phc
20241107@174320.4392 ukilma5tvbh3p385in9ftrnie6 Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20241107@174320.4429 ukilma5tvbh3p385in9ftrnie6 Query : use flama_phc
20241107@174320.4433 ukilma5tvbh3p385in9ftrnie6 Query : select top 1 1 valor from td where td.ndoc = 39
20241107@174320.4464 ukilma5tvbh3p385in9ftrnie6 Query : use flama_phc
20241107@174320.4467 ukilma5tvbh3p385in9ftrnie6 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')
20241107@174320.4497 ukilma5tvbh3p385in9ftrnie6 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
20241107@174320.4534 ukilma5tvbh3p385in9ftrnie6 Query : use flama_phc
20241107@174320.4537 ukilma5tvbh3p385in9ftrnie6 Query : select top 1 ~inactivo valor from cl where no = '102155' and estab = 0 order by inactivo desc
20241107@174320.4569 ukilma5tvbh3p385in9ftrnie6 Query : use flama_phc
20241107@174320.4572 ukilma5tvbh3p385in9ftrnie6 Query : select top 1 tipodoc,regrd from td where ndoc = 39
20241107@174320.4602 ukilma5tvbh3p385in9ftrnie6 Query : use flama_phc
20241107@174320.4605 ukilma5tvbh3p385in9ftrnie6 Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20241107@174320.4646 ukilma5tvbh3p385in9ftrnie6 Query : use flama_phc
20241107@174320.4649 ukilma5tvbh3p385in9ftrnie6 Query : select szadrsstamp valor from szadrs where szadrsdesc='eternobom-electrodomÉsticos, lda.- ourem( novo)'
20241107@174320.4702 ukilma5tvbh3p385in9ftrnie6 Query : use flama_phc
20241107@174320.4706 ukilma5tvbh3p385in9ftrnie6 Query : select 1 valor from td where ndoc = 39
20241107@174320.4721 ukilma5tvbh3p385in9ftrnie6 Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20241107@174320.4736 ukilma5tvbh3p385in9ftrnie6 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@174320.4753 ukilma5tvbh3p385in9ftrnie6 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20241107@174320.4774 ukilma5tvbh3p385in9ftrnie6 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@174320.4792 ukilma5tvbh3p385in9ftrnie6 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20241107@174320.4826 ukilma5tvbh3p385in9ftrnie6 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@174320.4844 ukilma5tvbh3p385in9ftrnie6 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20241107@174320.4859 ukilma5tvbh3p385in9ftrnie6 Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20241107@174320.4975 ukilma5tvbh3p385in9ftrnie6 Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20241107@174320.5051 ukilma5tvbh3p385in9ftrnie6 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@174320.5073 ukilma5tvbh3p385in9ftrnie6 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20241107@174320.5234 ukilma5tvbh3p385in9ftrnie6 Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut672cf52677672cfc3876' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20241107@174320.5440 ukilma5tvbh3p385in9ftrnie6 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@174320.5461 ukilma5tvbh3p385in9ftrnie6 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20241107@174320.5574 ukilma5tvbh3p385in9ftrnie6 Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20241107@174320.5591 ukilma5tvbh3p385in9ftrnie6 Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20241107@174320.5603 ukilma5tvbh3p385in9ftrnie6 Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20241107@174320.5643 ukilma5tvbh3p385in9ftrnie6 Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20241107@174320.5657 ukilma5tvbh3p385in9ftrnie6 Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20241107@174320.5670 ukilma5tvbh3p385in9ftrnie6 Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20241107@174320.5710 ukilma5tvbh3p385in9ftrnie6 Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut672cf52677672cfc3876',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20241107@174320.6004 ukilma5tvbh3p385in9ftrnie6 Query : select top 1 fno valor from wsftdata order by fno desc
20241107@174320.6029 ukilma5tvbh3p385in9ftrnie6 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@174320.6045 ukilma5tvbh3p385in9ftrnie6 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20241107@174320.6067 ukilma5tvbh3p385in9ftrnie6 Query : select 'normal' from dummy
20241107@174320.6202 ukilma5tvbh3p385in9ftrnie6 Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut672cf52677672cfc3876',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',1737,102155,0,'2024-11-07',39,'euro',0,0,2024 ,?,?)
20241107@174320.6706 ukilma5tvbh3p385in9ftrnie6 Query : use flama_phc
20241107@174320.6709 ukilma5tvbh3p385in9ftrnie6 Query : select st.usalote valor from st where st.ref = '324.642.00.01'
20241107@174320.6729 ukilma5tvbh3p385in9ftrnie6 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'
20241107@174320.6743 ukilma5tvbh3p385in9ftrnie6 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@174320.6759 ukilma5tvbh3p385in9ftrnie6 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241107@174320.6858 ukilma5tvbh3p385in9ftrnie6 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@174320.6873 ukilma5tvbh3p385in9ftrnie6 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241107@174320.6884 ukilma5tvbh3p385in9ftrnie6 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241107@174320.6896 ukilma5tvbh3p385in9ftrnie6 Query : select sestamp valor from se where ref ='324.642.00.01' and lote = 'r2100892200a'
20241107@174320.6909 ukilma5tvbh3p385in9ftrnie6 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@174320.6924 ukilma5tvbh3p385in9ftrnie6 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241107@174320.6936 ukilma5tvbh3p385in9ftrnie6 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut672cf56339672cfc38a8','aut672cf52677672cfc3876' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241107@174320.6951 ukilma5tvbh3p385in9ftrnie6 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@174320.6968 ukilma5tvbh3p385in9ftrnie6 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241107@174320.6999 ukilma5tvbh3p385in9ftrnie6 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut672cf56339672cfc38a8',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',2.000 ,'aut672cf52677672cfc3876' ,0,0 ,2,23.00,10000,?,?,?,?,?)
20241107@174320.7292 ukilma5tvbh3p385in9ftrnie6 Query : use flama_phc
20241107@174320.7295 ukilma5tvbh3p385in9ftrnie6 Query : select st.usalote valor from st where st.ref = '324.4980.00.1'
20241107@174320.7316 ukilma5tvbh3p385in9ftrnie6 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'
20241107@174320.7330 ukilma5tvbh3p385in9ftrnie6 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@174320.7345 ukilma5tvbh3p385in9ftrnie6 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241107@174320.7371 ukilma5tvbh3p385in9ftrnie6 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@174320.7385 ukilma5tvbh3p385in9ftrnie6 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241107@174320.7394 ukilma5tvbh3p385in9ftrnie6 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241107@174320.7405 ukilma5tvbh3p385in9ftrnie6 Query : select sestamp valor from se where ref ='324.4980.00.1' and lote = 'r2400145100a'
20241107@174320.7418 ukilma5tvbh3p385in9ftrnie6 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@174320.7433 ukilma5tvbh3p385in9ftrnie6 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241107@174320.7446 ukilma5tvbh3p385in9ftrnie6 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut672cf82680672cfc38b5','aut672cf52677672cfc3876' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241107@174320.7450 ukilma5tvbh3p385in9ftrnie6 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@174320.7479 ukilma5tvbh3p385in9ftrnie6 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241107@174320.7511 ukilma5tvbh3p385in9ftrnie6 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut672cf82680672cfc38b5',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',4.000 ,'aut672cf52677672cfc3876' ,0,0 ,2,23.00,20000,?,?,?,?,?)
20241107@174320.7807 ukilma5tvbh3p385in9ftrnie6 Query : use flama_phc
20241107@174320.7811 ukilma5tvbh3p385in9ftrnie6 Query : select st.usalote valor from st where st.ref = '324.4988.00.1'
20241107@174320.7832 ukilma5tvbh3p385in9ftrnie6 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.4988.00.1'
20241107@174320.7856 ukilma5tvbh3p385in9ftrnie6 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@174320.7872 ukilma5tvbh3p385in9ftrnie6 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241107@174320.7899 ukilma5tvbh3p385in9ftrnie6 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@174320.7914 ukilma5tvbh3p385in9ftrnie6 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241107@174320.7922 ukilma5tvbh3p385in9ftrnie6 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241107@174320.7935 ukilma5tvbh3p385in9ftrnie6 Query : select sestamp valor from se where ref ='324.4988.00.1' and lote = 'r2100754100a'
20241107@174320.7948 ukilma5tvbh3p385in9ftrnie6 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@174320.7965 ukilma5tvbh3p385in9ftrnie6 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241107@174320.7977 ukilma5tvbh3p385in9ftrnie6 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut672cf06628672cfc38c2','aut672cf52677672cfc3876' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241107@174320.7982 ukilma5tvbh3p385in9ftrnie6 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@174320.7999 ukilma5tvbh3p385in9ftrnie6 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241107@174320.8031 ukilma5tvbh3p385in9ftrnie6 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut672cf06628672cfc38c2',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',4.000 ,'aut672cf52677672cfc3876' ,0,0 ,2,23.00,30000,?,?,?,?,?)
20241107@174320.8326 ukilma5tvbh3p385in9ftrnie6 Query : use flama_phc
20241107@174320.8330 ukilma5tvbh3p385in9ftrnie6 Query : select st.usalote valor from st where st.ref = '324.2066.00.1'
20241107@174320.8351 ukilma5tvbh3p385in9ftrnie6 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.2066.00.1'
20241107@174320.8366 ukilma5tvbh3p385in9ftrnie6 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@174320.8382 ukilma5tvbh3p385in9ftrnie6 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241107@174320.8421 ukilma5tvbh3p385in9ftrnie6 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@174320.8437 ukilma5tvbh3p385in9ftrnie6 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241107@174320.8447 ukilma5tvbh3p385in9ftrnie6 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241107@174320.8484 ukilma5tvbh3p385in9ftrnie6 Query : select sestamp valor from se where ref ='324.2066.00.1' and lote = 'r2400051100a'
20241107@174320.8498 ukilma5tvbh3p385in9ftrnie6 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@174320.8515 ukilma5tvbh3p385in9ftrnie6 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241107@174320.8528 ukilma5tvbh3p385in9ftrnie6 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut672cf68625672cfc38cf','aut672cf52677672cfc3876' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241107@174320.8533 ukilma5tvbh3p385in9ftrnie6 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@174320.8549 ukilma5tvbh3p385in9ftrnie6 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241107@174320.8578 ukilma5tvbh3p385in9ftrnie6 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut672cf68625672cfc38cf',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',6.000 ,'aut672cf52677672cfc3876' ,0,0 ,2,23.00,40000,?,?,?,?,?)
20241107@174320.8867 ukilma5tvbh3p385in9ftrnie6 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@174320.8886 ukilma5tvbh3p385in9ftrnie6 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241107@174320.8915 ukilma5tvbh3p385in9ftrnie6 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@174320.8931 ukilma5tvbh3p385in9ftrnie6 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241107@174320.8943 ukilma5tvbh3p385in9ftrnie6 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241107@174320.8959 ukilma5tvbh3p385in9ftrnie6 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@174320.8978 ukilma5tvbh3p385in9ftrnie6 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241107@174320.8999 ukilma5tvbh3p385in9ftrnie6 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut672cf29847672cfc38da','aut672cf52677672cfc3876' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241107@174320.9006 ukilma5tvbh3p385in9ftrnie6 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@174320.9025 ukilma5tvbh3p385in9ftrnie6 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241107@174320.9061 ukilma5tvbh3p385in9ftrnie6 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut672cf29847672cfc38da',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut672cf52677672cfc3876' ,0,0 ,2,23.00,50000,?,?,?)
20241107@174320.9380 ukilma5tvbh3p385in9ftrnie6 Query : use flama_phc
20241107@174320.9383 ukilma5tvbh3p385in9ftrnie6 Query : select st.usalote valor from st where st.ref = '324.1407.00.1'
20241107@174320.9405 ukilma5tvbh3p385in9ftrnie6 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.1407.00.1'
20241107@174320.9420 ukilma5tvbh3p385in9ftrnie6 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@174320.9437 ukilma5tvbh3p385in9ftrnie6 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241107@174320.9464 ukilma5tvbh3p385in9ftrnie6 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@174320.9479 ukilma5tvbh3p385in9ftrnie6 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241107@174320.9488 ukilma5tvbh3p385in9ftrnie6 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241107@174320.9504 ukilma5tvbh3p385in9ftrnie6 Query : select sestamp valor from se where ref ='324.1407.00.1' and lote = 'r2100703100a'
20241107@174320.9517 ukilma5tvbh3p385in9ftrnie6 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@174320.9532 ukilma5tvbh3p385in9ftrnie6 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241107@174320.9562 ukilma5tvbh3p385in9ftrnie6 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut672cf91844672cfc38e8','aut672cf52677672cfc3876' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241107@174320.9567 ukilma5tvbh3p385in9ftrnie6 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@174320.9584 ukilma5tvbh3p385in9ftrnie6 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241107@174320.9613 ukilma5tvbh3p385in9ftrnie6 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut672cf91844672cfc38e8',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',6.000 ,'aut672cf52677672cfc3876' ,0,0 ,2,23.00,70000,?,?,?,?,?)
20241107@174320.9909 ukilma5tvbh3p385in9ftrnie6 Query : use flama_phc
20241107@174320.9912 ukilma5tvbh3p385in9ftrnie6 Query : select st.usalote valor from st where st.ref = '323.367.09.00'
20241107@174320.9931 ukilma5tvbh3p385in9ftrnie6 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.367.09.00'
20241107@174320.9945 ukilma5tvbh3p385in9ftrnie6 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@174320.9961 ukilma5tvbh3p385in9ftrnie6 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241107@174320.9986 ukilma5tvbh3p385in9ftrnie6 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@174321.1000 ukilma5tvbh3p385in9ftrnie6 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241107@174321.1100 ukilma5tvbh3p385in9ftrnie6 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241107@174321.2400 ukilma5tvbh3p385in9ftrnie6 Query : select sestamp valor from se where ref ='323.367.09.00' and lote = 'r2400053200a'
20241107@174321.3800 ukilma5tvbh3p385in9ftrnie6 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@174321.1170 ukilma5tvbh3p385in9ftrnie6 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241107@174321.1310 ukilma5tvbh3p385in9ftrnie6 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut672cf66636672cfc3900','aut672cf52677672cfc3876' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241107@174321.1350 ukilma5tvbh3p385in9ftrnie6 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@174321.1530 ukilma5tvbh3p385in9ftrnie6 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241107@174321.3280 ukilma5tvbh3p385in9ftrnie6 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut672cf66636672cfc3900',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',2.000 ,'aut672cf52677672cfc3876' ,0,0 ,2,23.00,80000,?,?,?,?,?)
20241107@174321.6250 ukilma5tvbh3p385in9ftrnie6 Query : use flama_phc
20241107@174321.6300 ukilma5tvbh3p385in9ftrnie6 Query : select st.usalote valor from st where st.ref = '326.597.00.01'
20241107@174321.6620 ukilma5tvbh3p385in9ftrnie6 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '326.597.00.01'
20241107@174321.6760 ukilma5tvbh3p385in9ftrnie6 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@174321.6970 ukilma5tvbh3p385in9ftrnie6 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241107@174321.7360 ukilma5tvbh3p385in9ftrnie6 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@174321.7730 ukilma5tvbh3p385in9ftrnie6 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241107@174321.7830 ukilma5tvbh3p385in9ftrnie6 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241107@174321.7970 ukilma5tvbh3p385in9ftrnie6 Query : select sestamp valor from se where ref ='326.597.00.01' and lote = 'r2400936200a'
20241107@174321.8160 ukilma5tvbh3p385in9ftrnie6 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@174321.8360 ukilma5tvbh3p385in9ftrnie6 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241107@174321.8600 ukilma5tvbh3p385in9ftrnie6 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut672cf93661672cfc3913','aut672cf52677672cfc3876' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241107@174321.8680 ukilma5tvbh3p385in9ftrnie6 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@174321.8850 ukilma5tvbh3p385in9ftrnie6 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241107@174321.9710 ukilma5tvbh3p385in9ftrnie6 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut672cf93661672cfc3913',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',2.000 ,'aut672cf52677672cfc3876' ,0,0 ,2,23.00,90000,?,?,?,?,?)
20241107@174321.1329 ukilma5tvbh3p385in9ftrnie6 Query : use flama_phc
20241107@174321.1333 ukilma5tvbh3p385in9ftrnie6 Query : select st.usalote valor from st where st.ref = '324.4930.00.1'
20241107@174321.1353 ukilma5tvbh3p385in9ftrnie6 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.4930.00.1'
20241107@174321.1366 ukilma5tvbh3p385in9ftrnie6 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@174321.1394 ukilma5tvbh3p385in9ftrnie6 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241107@174321.1425 ukilma5tvbh3p385in9ftrnie6 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@174321.1444 ukilma5tvbh3p385in9ftrnie6 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241107@174321.1454 ukilma5tvbh3p385in9ftrnie6 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241107@174321.1476 ukilma5tvbh3p385in9ftrnie6 Query : select sestamp valor from se where ref ='324.4930.00.1' and lote = 'r2400066200a'
20241107@174321.1491 ukilma5tvbh3p385in9ftrnie6 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@174321.1516 ukilma5tvbh3p385in9ftrnie6 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241107@174321.1528 ukilma5tvbh3p385in9ftrnie6 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut672cf94526672cfc3924','aut672cf52677672cfc3876' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241107@174321.1533 ukilma5tvbh3p385in9ftrnie6 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@174321.1548 ukilma5tvbh3p385in9ftrnie6 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241107@174321.1603 ukilma5tvbh3p385in9ftrnie6 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut672cf94526672cfc3924',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',6.000 ,'aut672cf52677672cfc3876' ,0,0 ,2,23.00,100000,?,?,?,?,?)
20241107@174321.1931 ukilma5tvbh3p385in9ftrnie6 Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut672cf52677672cfc3876','2407364','wait',39,'adm09112754980.682000002')
20241107@174321.2017 ukilma5tvbh3p385in9ftrnie6 Query : use flama_phc
20241107@174321.2021 ukilma5tvbh3p385in9ftrnie6 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20241107@174321.2050 ukilma5tvbh3p385in9ftrnie6 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='3168';
20241107@174321.2097 ukilma5tvbh3p385in9ftrnie6 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='3168';
20241107@174321.2181 ukilma5tvbh3p385in9ftrnie6 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='3168';
20241107@174321.2226 ukilma5tvbh3p385in9ftrnie6 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='3168';
20241107@174321.2949 72urdfk0jugf12jn1jm4mv6v63 Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20241107@174321.2961 72urdfk0jugf12jn1jm4mv6v63 Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20241107@174321.3022 72urdfk0jugf12jn1jm4mv6v63 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='3169';
20241107@174321.3086 72urdfk0jugf12jn1jm4mv6v63 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='3169';
20241107@174321.4547 72urdfk0jugf12jn1jm4mv6v63 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='3169';
20241107@174321.4600 72urdfk0jugf12jn1jm4mv6v63 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='3169';
20241107@174321.4752 72urdfk0jugf12jn1jm4mv6v63 Query : use flama_phc
20241107@174321.4755 72urdfk0jugf12jn1jm4mv6v63 Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20241107@174321.4818 72urdfk0jugf12jn1jm4mv6v63 Query : use flama_phc
20241107@174321.4821 72urdfk0jugf12jn1jm4mv6v63 Query : select no, estab,szadrsdesc from szadrs where u_coddest=1596
20241107@174321.4974 72urdfk0jugf12jn1jm4mv6v63 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'
20241107@174321.4993 72urdfk0jugf12jn1jm4mv6v63 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2073 and bo.obrano = 2407365 and bi.ref ='324.642.00.01' and bi.lordem =1
20241107@174321.5340 72urdfk0jugf12jn1jm4mv6v63 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'
20241107@174321.5360 72urdfk0jugf12jn1jm4mv6v63 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2073 and bo.obrano = 2407365 and bi.ref ='324.4980.00.1' and bi.lordem =2
20241107@174321.5677 72urdfk0jugf12jn1jm4mv6v63 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.4988.00.1'
20241107@174321.5703 72urdfk0jugf12jn1jm4mv6v63 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2073 and bo.obrano = 2407365 and bi.ref ='324.4988.00.1' and bi.lordem =3
20241107@174321.6019 72urdfk0jugf12jn1jm4mv6v63 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.2066.00.1'
20241107@174321.6038 72urdfk0jugf12jn1jm4mv6v63 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2073 and bo.obrano = 2407365 and bi.ref ='324.2066.00.1' and bi.lordem =4
20241107@174321.6380 72urdfk0jugf12jn1jm4mv6v63 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1407.00.1'
20241107@174321.6399 72urdfk0jugf12jn1jm4mv6v63 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2073 and bo.obrano = 2407365 and bi.ref ='324.1407.00.1' and bi.lordem =5
20241107@174321.6745 72urdfk0jugf12jn1jm4mv6v63 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '323.367.09.00'
20241107@174321.6764 72urdfk0jugf12jn1jm4mv6v63 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2073 and bo.obrano = 2407365 and bi.ref ='323.367.09.00' and bi.lordem =6
20241107@174321.7117 72urdfk0jugf12jn1jm4mv6v63 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '326.597.00.01'
20241107@174321.7136 72urdfk0jugf12jn1jm4mv6v63 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2073 and bo.obrano = 2407365 and bi.ref ='326.597.00.01' and bi.lordem =7
20241107@174321.7555 72urdfk0jugf12jn1jm4mv6v63 Query : use flama_phc
20241107@174321.7558 72urdfk0jugf12jn1jm4mv6v63 Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20241107@174321.7625 72urdfk0jugf12jn1jm4mv6v63 Query : use flama_phc
20241107@174321.7629 72urdfk0jugf12jn1jm4mv6v63 Query : select top 1 1 valor from td where td.ndoc = 39
20241107@174321.7809 72urdfk0jugf12jn1jm4mv6v63 Query : use flama_phc
20241107@174321.7812 72urdfk0jugf12jn1jm4mv6v63 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')
20241107@174321.7859 72urdfk0jugf12jn1jm4mv6v63 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
20241107@174321.7947 72urdfk0jugf12jn1jm4mv6v63 Query : use flama_phc
20241107@174321.7950 72urdfk0jugf12jn1jm4mv6v63 Query : select top 1 ~inactivo valor from cl where no = '102155' and estab = 0 order by inactivo desc
20241107@174321.7978 72urdfk0jugf12jn1jm4mv6v63 Query : use flama_phc
20241107@174321.7981 72urdfk0jugf12jn1jm4mv6v63 Query : select top 1 tipodoc,regrd from td where ndoc = 39
20241107@174321.8010 72urdfk0jugf12jn1jm4mv6v63 Query : use flama_phc
20241107@174321.8013 72urdfk0jugf12jn1jm4mv6v63 Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20241107@174321.8054 72urdfk0jugf12jn1jm4mv6v63 Query : use flama_phc
20241107@174321.8057 72urdfk0jugf12jn1jm4mv6v63 Query : select szadrsstamp valor from szadrs where szadrsdesc='eternobom-electrodomÉsticos, lda. - crainha'
20241107@174321.8101 72urdfk0jugf12jn1jm4mv6v63 Query : use flama_phc
20241107@174321.8103 72urdfk0jugf12jn1jm4mv6v63 Query : select 1 valor from td where ndoc = 39
20241107@174321.8116 72urdfk0jugf12jn1jm4mv6v63 Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20241107@174321.8129 72urdfk0jugf12jn1jm4mv6v63 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@174321.8145 72urdfk0jugf12jn1jm4mv6v63 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20241107@174321.8227 72urdfk0jugf12jn1jm4mv6v63 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@174321.8242 72urdfk0jugf12jn1jm4mv6v63 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20241107@174321.8468 72urdfk0jugf12jn1jm4mv6v63 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@174321.8487 72urdfk0jugf12jn1jm4mv6v63 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20241107@174321.8500 72urdfk0jugf12jn1jm4mv6v63 Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20241107@174321.8583 72urdfk0jugf12jn1jm4mv6v63 Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20241107@174321.8596 72urdfk0jugf12jn1jm4mv6v63 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@174321.8620 72urdfk0jugf12jn1jm4mv6v63 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20241107@174321.8635 72urdfk0jugf12jn1jm4mv6v63 Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut672cf68715672cfc39cf' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20241107@174321.8832 72urdfk0jugf12jn1jm4mv6v63 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@174321.8849 72urdfk0jugf12jn1jm4mv6v63 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20241107@174321.8956 72urdfk0jugf12jn1jm4mv6v63 Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20241107@174321.8969 72urdfk0jugf12jn1jm4mv6v63 Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20241107@174321.8980 72urdfk0jugf12jn1jm4mv6v63 Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20241107@174321.8992 72urdfk0jugf12jn1jm4mv6v63 Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20241107@174321.9003 72urdfk0jugf12jn1jm4mv6v63 Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20241107@174321.9016 72urdfk0jugf12jn1jm4mv6v63 Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20241107@174321.9027 72urdfk0jugf12jn1jm4mv6v63 Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut672cf68715672cfc39cf',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20241107@174321.9286 72urdfk0jugf12jn1jm4mv6v63 Query : select top 1 fno valor from wsftdata order by fno desc
20241107@174321.9354 72urdfk0jugf12jn1jm4mv6v63 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@174321.9452 72urdfk0jugf12jn1jm4mv6v63 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20241107@174321.9475 72urdfk0jugf12jn1jm4mv6v63 Query : select 'normal' from dummy
20241107@174321.9492 72urdfk0jugf12jn1jm4mv6v63 Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut672cf68715672cfc39cf',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',1738,102155,0,'2024-11-07',39,'euro',0,0,2024 ,?,?)
20241107@174321.9819 72urdfk0jugf12jn1jm4mv6v63 Query : use flama_phc
20241107@174321.9822 72urdfk0jugf12jn1jm4mv6v63 Query : select st.usalote valor from st where st.ref = '324.642.00.01'
20241107@174321.9842 72urdfk0jugf12jn1jm4mv6v63 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'
20241107@174321.9855 72urdfk0jugf12jn1jm4mv6v63 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@174321.9872 72urdfk0jugf12jn1jm4mv6v63 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241107@174321.9895 72urdfk0jugf12jn1jm4mv6v63 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@174321.9911 72urdfk0jugf12jn1jm4mv6v63 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241107@174321.9919 72urdfk0jugf12jn1jm4mv6v63 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241107@174321.9930 72urdfk0jugf12jn1jm4mv6v63 Query : select sestamp valor from se where ref ='324.642.00.01' and lote = 'r2100892200a'
20241107@174321.9943 72urdfk0jugf12jn1jm4mv6v63 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@174321.9958 72urdfk0jugf12jn1jm4mv6v63 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241107@174321.9969 72urdfk0jugf12jn1jm4mv6v63 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut672cf77237672cfc39f2','aut672cf68715672cfc39cf' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241107@174321.9973 72urdfk0jugf12jn1jm4mv6v63 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@174321.9987 72urdfk0jugf12jn1jm4mv6v63 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241107@174322.1500 72urdfk0jugf12jn1jm4mv6v63 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut672cf77237672cfc39f2',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',4.000 ,'aut672cf68715672cfc39cf' ,0,0 ,2,23.00,10000,?,?,?,?,?)
20241107@174322.3090 72urdfk0jugf12jn1jm4mv6v63 Query : use flama_phc
20241107@174322.3130 72urdfk0jugf12jn1jm4mv6v63 Query : select st.usalote valor from st where st.ref = '324.4980.00.1'
20241107@174322.3340 72urdfk0jugf12jn1jm4mv6v63 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'
20241107@174322.3490 72urdfk0jugf12jn1jm4mv6v63 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@174322.3900 72urdfk0jugf12jn1jm4mv6v63 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241107@174322.4180 72urdfk0jugf12jn1jm4mv6v63 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@174322.4340 72urdfk0jugf12jn1jm4mv6v63 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241107@174322.4440 72urdfk0jugf12jn1jm4mv6v63 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241107@174322.4580 72urdfk0jugf12jn1jm4mv6v63 Query : select sestamp valor from se where ref ='324.4980.00.1' and lote = 'r2400145100a'
20241107@174322.4710 72urdfk0jugf12jn1jm4mv6v63 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@174322.4890 72urdfk0jugf12jn1jm4mv6v63 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241107@174322.5030 72urdfk0jugf12jn1jm4mv6v63 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut672cf35860672cfc3a0b','aut672cf68715672cfc39cf' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241107@174322.5080 72urdfk0jugf12jn1jm4mv6v63 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@174322.5230 72urdfk0jugf12jn1jm4mv6v63 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241107@174322.5620 72urdfk0jugf12jn1jm4mv6v63 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut672cf35860672cfc3a0b',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',4.000 ,'aut672cf68715672cfc39cf' ,0,0 ,2,23.00,20000,?,?,?,?,?)
20241107@174322.8260 72urdfk0jugf12jn1jm4mv6v63 Query : use flama_phc
20241107@174322.8300 72urdfk0jugf12jn1jm4mv6v63 Query : select st.usalote valor from st where st.ref = '324.4988.00.1'
20241107@174322.8480 72urdfk0jugf12jn1jm4mv6v63 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.4988.00.1'
20241107@174322.8620 72urdfk0jugf12jn1jm4mv6v63 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@174322.8880 72urdfk0jugf12jn1jm4mv6v63 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241107@174322.9150 72urdfk0jugf12jn1jm4mv6v63 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@174322.9290 72urdfk0jugf12jn1jm4mv6v63 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241107@174322.9380 72urdfk0jugf12jn1jm4mv6v63 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241107@174322.9560 72urdfk0jugf12jn1jm4mv6v63 Query : select sestamp valor from se where ref ='324.4988.00.1' and lote = 'r2100754100a'
20241107@174322.9680 72urdfk0jugf12jn1jm4mv6v63 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@174322.9820 72urdfk0jugf12jn1jm4mv6v63 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241107@174322.9930 72urdfk0jugf12jn1jm4mv6v63 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut672cf44407672cfc3a17','aut672cf68715672cfc39cf' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241107@174322.9970 72urdfk0jugf12jn1jm4mv6v63 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@174322.1012 72urdfk0jugf12jn1jm4mv6v63 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241107@174322.1040 72urdfk0jugf12jn1jm4mv6v63 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut672cf44407672cfc3a17',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',4.000 ,'aut672cf68715672cfc39cf' ,0,0 ,2,23.00,30000,?,?,?,?,?)
20241107@174322.1313 72urdfk0jugf12jn1jm4mv6v63 Query : use flama_phc
20241107@174322.1319 72urdfk0jugf12jn1jm4mv6v63 Query : select st.usalote valor from st where st.ref = '324.2066.00.1'
20241107@174322.1338 72urdfk0jugf12jn1jm4mv6v63 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.2066.00.1'
20241107@174322.1352 72urdfk0jugf12jn1jm4mv6v63 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@174322.1367 72urdfk0jugf12jn1jm4mv6v63 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241107@174322.1391 72urdfk0jugf12jn1jm4mv6v63 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@174322.1404 72urdfk0jugf12jn1jm4mv6v63 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241107@174322.1414 72urdfk0jugf12jn1jm4mv6v63 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241107@174322.1426 72urdfk0jugf12jn1jm4mv6v63 Query : select sestamp valor from se where ref ='324.2066.00.1' and lote = 'r2400051100a'
20241107@174322.1438 72urdfk0jugf12jn1jm4mv6v63 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@174322.1454 72urdfk0jugf12jn1jm4mv6v63 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241107@174322.1470 72urdfk0jugf12jn1jm4mv6v63 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut672cf36120672cfc3a23','aut672cf68715672cfc39cf' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241107@174322.1474 72urdfk0jugf12jn1jm4mv6v63 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@174322.1489 72urdfk0jugf12jn1jm4mv6v63 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241107@174322.1525 72urdfk0jugf12jn1jm4mv6v63 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut672cf36120672cfc3a23',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',6.000 ,'aut672cf68715672cfc39cf' ,0,0 ,2,23.00,40000,?,?,?,?,?)
20241107@174322.1800 72urdfk0jugf12jn1jm4mv6v63 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@174322.1817 72urdfk0jugf12jn1jm4mv6v63 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241107@174322.1844 72urdfk0jugf12jn1jm4mv6v63 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@174322.1860 72urdfk0jugf12jn1jm4mv6v63 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241107@174322.1874 72urdfk0jugf12jn1jm4mv6v63 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241107@174322.1886 72urdfk0jugf12jn1jm4mv6v63 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@174322.1901 72urdfk0jugf12jn1jm4mv6v63 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241107@174322.1913 72urdfk0jugf12jn1jm4mv6v63 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut672cf49035672cfc3a2e','aut672cf68715672cfc39cf' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241107@174322.1917 72urdfk0jugf12jn1jm4mv6v63 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@174322.1931 72urdfk0jugf12jn1jm4mv6v63 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241107@174322.1961 72urdfk0jugf12jn1jm4mv6v63 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut672cf49035672cfc3a2e',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut672cf68715672cfc39cf' ,0,0 ,2,23.00,50000,?,?,?)
20241107@174322.2230 72urdfk0jugf12jn1jm4mv6v63 Query : use flama_phc
20241107@174322.2234 72urdfk0jugf12jn1jm4mv6v63 Query : select st.usalote valor from st where st.ref = '324.1407.00.1'
20241107@174322.2252 72urdfk0jugf12jn1jm4mv6v63 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.1407.00.1'
20241107@174322.2266 72urdfk0jugf12jn1jm4mv6v63 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@174322.2283 72urdfk0jugf12jn1jm4mv6v63 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241107@174322.2317 72urdfk0jugf12jn1jm4mv6v63 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@174322.2331 72urdfk0jugf12jn1jm4mv6v63 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241107@174322.2340 72urdfk0jugf12jn1jm4mv6v63 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241107@174322.2352 72urdfk0jugf12jn1jm4mv6v63 Query : select sestamp valor from se where ref ='324.1407.00.1' and lote = 'r2100703100a'
20241107@174322.2365 72urdfk0jugf12jn1jm4mv6v63 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@174322.2379 72urdfk0jugf12jn1jm4mv6v63 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241107@174322.2390 72urdfk0jugf12jn1jm4mv6v63 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut672cf83335672cfc3a39','aut672cf68715672cfc39cf' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241107@174322.2402 72urdfk0jugf12jn1jm4mv6v63 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@174322.2417 72urdfk0jugf12jn1jm4mv6v63 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241107@174322.2447 72urdfk0jugf12jn1jm4mv6v63 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut672cf83335672cfc3a39',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',6.000 ,'aut672cf68715672cfc39cf' ,0,0 ,2,23.00,70000,?,?,?,?,?)
20241107@174322.2720 72urdfk0jugf12jn1jm4mv6v63 Query : use flama_phc
20241107@174322.2723 72urdfk0jugf12jn1jm4mv6v63 Query : select st.usalote valor from st where st.ref = '323.367.09.00'
20241107@174322.2742 72urdfk0jugf12jn1jm4mv6v63 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.367.09.00'
20241107@174322.2757 72urdfk0jugf12jn1jm4mv6v63 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@174322.2773 72urdfk0jugf12jn1jm4mv6v63 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241107@174322.2799 72urdfk0jugf12jn1jm4mv6v63 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@174322.2818 72urdfk0jugf12jn1jm4mv6v63 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241107@174322.2826 72urdfk0jugf12jn1jm4mv6v63 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241107@174322.2838 72urdfk0jugf12jn1jm4mv6v63 Query : select sestamp valor from se where ref ='323.367.09.00' and lote = 'r2400053200a'
20241107@174322.2851 72urdfk0jugf12jn1jm4mv6v63 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@174322.2867 72urdfk0jugf12jn1jm4mv6v63 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241107@174322.2878 72urdfk0jugf12jn1jm4mv6v63 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut672cf02965672cfc3a45','aut672cf68715672cfc39cf' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241107@174322.2882 72urdfk0jugf12jn1jm4mv6v63 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@174322.2903 72urdfk0jugf12jn1jm4mv6v63 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241107@174322.2932 72urdfk0jugf12jn1jm4mv6v63 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut672cf02965672cfc3a45',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',2.000 ,'aut672cf68715672cfc39cf' ,0,0 ,2,23.00,80000,?,?,?,?,?)
20241107@174322.3200 72urdfk0jugf12jn1jm4mv6v63 Query : use flama_phc
20241107@174322.3204 72urdfk0jugf12jn1jm4mv6v63 Query : select st.usalote valor from st where st.ref = '326.597.00.01'
20241107@174322.3224 72urdfk0jugf12jn1jm4mv6v63 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '326.597.00.01'
20241107@174322.3265 72urdfk0jugf12jn1jm4mv6v63 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@174322.3280 72urdfk0jugf12jn1jm4mv6v63 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241107@174322.3305 72urdfk0jugf12jn1jm4mv6v63 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@174322.3322 72urdfk0jugf12jn1jm4mv6v63 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241107@174322.3330 72urdfk0jugf12jn1jm4mv6v63 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241107@174322.3341 72urdfk0jugf12jn1jm4mv6v63 Query : select sestamp valor from se where ref ='326.597.00.01' and lote = 'r2400936200a'
20241107@174322.3353 72urdfk0jugf12jn1jm4mv6v63 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@174322.3368 72urdfk0jugf12jn1jm4mv6v63 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241107@174322.3380 72urdfk0jugf12jn1jm4mv6v63 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut672cf67836672cfc3a51','aut672cf68715672cfc39cf' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241107@174322.3384 72urdfk0jugf12jn1jm4mv6v63 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@174322.3398 72urdfk0jugf12jn1jm4mv6v63 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241107@174322.3425 72urdfk0jugf12jn1jm4mv6v63 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut672cf67836672cfc3a51',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',2.000 ,'aut672cf68715672cfc39cf' ,0,0 ,2,23.00,90000,?,?,?,?,?)
20241107@174322.3687 72urdfk0jugf12jn1jm4mv6v63 Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut672cf68715672cfc39cf','2407365','wait',39,'adm09112754980.682000002')
20241107@174322.3761 72urdfk0jugf12jn1jm4mv6v63 Query : use flama_phc
20241107@174322.3764 72urdfk0jugf12jn1jm4mv6v63 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20241107@174322.3797 72urdfk0jugf12jn1jm4mv6v63 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='3169';
20241107@174322.3836 72urdfk0jugf12jn1jm4mv6v63 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='3169';
20241107@174322.3887 72urdfk0jugf12jn1jm4mv6v63 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='3169';
20241107@174322.3919 72urdfk0jugf12jn1jm4mv6v63 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='3169';
20241107@174322.4542 peasc5an35vncp0qus5eg9g3kr Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20241107@174322.4572 peasc5an35vncp0qus5eg9g3kr Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20241107@174322.4665 peasc5an35vncp0qus5eg9g3kr Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='3170';
20241107@174322.4737 peasc5an35vncp0qus5eg9g3kr Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='3170';
20241107@174322.4819 peasc5an35vncp0qus5eg9g3kr Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='3170';
20241107@174322.4853 peasc5an35vncp0qus5eg9g3kr Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='3170';
20241107@174322.4908 peasc5an35vncp0qus5eg9g3kr Query : use flama_phc
20241107@174322.4911 peasc5an35vncp0qus5eg9g3kr Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20241107@174322.4992 peasc5an35vncp0qus5eg9g3kr Query : use flama_phc
20241107@174322.4995 peasc5an35vncp0qus5eg9g3kr Query : select no, estab,szadrsdesc from szadrs where u_coddest=1246
20241107@174322.5116 peasc5an35vncp0qus5eg9g3kr Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1329.00.1'
20241107@174322.5277 peasc5an35vncp0qus5eg9g3kr Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2073 and bo.obrano = 2407366 and bi.ref ='324.1329.00.1' and bi.lordem =1
20241107@174322.5602 peasc5an35vncp0qus5eg9g3kr Query : use flama_phc
20241107@174322.5606 peasc5an35vncp0qus5eg9g3kr Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20241107@174322.5658 peasc5an35vncp0qus5eg9g3kr Query : use flama_phc
20241107@174322.5662 peasc5an35vncp0qus5eg9g3kr Query : select top 1 1 valor from td where td.ndoc = 39
20241107@174322.5704 peasc5an35vncp0qus5eg9g3kr Query : use flama_phc
20241107@174322.5709 peasc5an35vncp0qus5eg9g3kr 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')
20241107@174322.5760 peasc5an35vncp0qus5eg9g3kr 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
20241107@174322.5792 peasc5an35vncp0qus5eg9g3kr Query : use flama_phc
20241107@174322.5795 peasc5an35vncp0qus5eg9g3kr Query : select top 1 ~inactivo valor from cl where no = '102355' and estab = 0 order by inactivo desc
20241107@174322.5917 peasc5an35vncp0qus5eg9g3kr Query : use flama_phc
20241107@174322.5920 peasc5an35vncp0qus5eg9g3kr Query : select top 1 tipodoc,regrd from td where ndoc = 39
20241107@174322.6017 peasc5an35vncp0qus5eg9g3kr Query : use flama_phc
20241107@174322.6020 peasc5an35vncp0qus5eg9g3kr Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20241107@174322.6060 peasc5an35vncp0qus5eg9g3kr Query : use flama_phc
20241107@174322.6062 peasc5an35vncp0qus5eg9g3kr Query : select szadrsstamp valor from szadrs where szadrsdesc='caetano venancio gato carriÇo'
20241107@174322.6105 peasc5an35vncp0qus5eg9g3kr Query : use flama_phc
20241107@174322.6108 peasc5an35vncp0qus5eg9g3kr Query : select 1 valor from td where ndoc = 39
20241107@174322.6120 peasc5an35vncp0qus5eg9g3kr Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20241107@174322.6134 peasc5an35vncp0qus5eg9g3kr Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@174322.6149 peasc5an35vncp0qus5eg9g3kr Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20241107@174322.6231 peasc5an35vncp0qus5eg9g3kr Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@174322.6246 peasc5an35vncp0qus5eg9g3kr Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20241107@174322.6274 peasc5an35vncp0qus5eg9g3kr Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@174322.6291 peasc5an35vncp0qus5eg9g3kr Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20241107@174322.6305 peasc5an35vncp0qus5eg9g3kr Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20241107@174322.6372 peasc5an35vncp0qus5eg9g3kr Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20241107@174322.6384 peasc5an35vncp0qus5eg9g3kr Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@174322.6399 peasc5an35vncp0qus5eg9g3kr Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20241107@174322.6417 peasc5an35vncp0qus5eg9g3kr Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut672cf68167672cfc3a99' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20241107@174322.6605 peasc5an35vncp0qus5eg9g3kr Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@174322.6624 peasc5an35vncp0qus5eg9g3kr Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20241107@174322.7750 peasc5an35vncp0qus5eg9g3kr Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20241107@174322.8022 peasc5an35vncp0qus5eg9g3kr Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20241107@174322.8041 peasc5an35vncp0qus5eg9g3kr Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20241107@174322.8053 peasc5an35vncp0qus5eg9g3kr Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20241107@174322.8065 peasc5an35vncp0qus5eg9g3kr Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20241107@174322.8076 peasc5an35vncp0qus5eg9g3kr Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20241107@174322.8087 peasc5an35vncp0qus5eg9g3kr Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut672cf68167672cfc3a99',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20241107@174322.8352 peasc5an35vncp0qus5eg9g3kr Query : select top 1 fno valor from wsftdata order by fno desc
20241107@174322.8376 peasc5an35vncp0qus5eg9g3kr Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@174322.8392 peasc5an35vncp0qus5eg9g3kr Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20241107@174322.8413 peasc5an35vncp0qus5eg9g3kr Query : select 'normal' from dummy
20241107@174322.8428 peasc5an35vncp0qus5eg9g3kr Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut672cf68167672cfc3a99',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',1739,102355,0,'2024-11-07',39,'euro',0,0,2024 ,?,?)
20241107@174322.8764 peasc5an35vncp0qus5eg9g3kr Query : use flama_phc
20241107@174322.8767 peasc5an35vncp0qus5eg9g3kr Query : select st.usalote valor from st where st.ref = '324.1329.00.1'
20241107@174322.8789 peasc5an35vncp0qus5eg9g3kr Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.1329.00.1'
20241107@174322.8942 peasc5an35vncp0qus5eg9g3kr Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@174322.8958 peasc5an35vncp0qus5eg9g3kr Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241107@174322.8983 peasc5an35vncp0qus5eg9g3kr Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@174322.8998 peasc5an35vncp0qus5eg9g3kr Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241107@174322.9006 peasc5an35vncp0qus5eg9g3kr Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241107@174322.9018 peasc5an35vncp0qus5eg9g3kr Query : select sestamp valor from se where ref ='324.1329.00.1' and lote = 'r2400496300a'
20241107@174322.9031 peasc5an35vncp0qus5eg9g3kr Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@174322.9045 peasc5an35vncp0qus5eg9g3kr Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241107@174322.9057 peasc5an35vncp0qus5eg9g3kr Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut672cf08807672cfc3adc','aut672cf68167672cfc3a99' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241107@174322.9061 peasc5an35vncp0qus5eg9g3kr Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@174322.9076 peasc5an35vncp0qus5eg9g3kr Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241107@174322.9105 peasc5an35vncp0qus5eg9g3kr Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut672cf08807672cfc3adc',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',1.000 ,'aut672cf68167672cfc3a99' ,0,0 ,2,23.00,10000,?,?,?,?,?)
20241107@174322.9367 peasc5an35vncp0qus5eg9g3kr Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut672cf68167672cfc3a99','2407366','wait',39,'adm09112754980.682000002')
20241107@174322.9433 peasc5an35vncp0qus5eg9g3kr Query : use flama_phc
20241107@174322.9436 peasc5an35vncp0qus5eg9g3kr Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20241107@174322.9465 peasc5an35vncp0qus5eg9g3kr Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='3170';
20241107@174322.9498 peasc5an35vncp0qus5eg9g3kr Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='3170';
20241107@174322.9541 peasc5an35vncp0qus5eg9g3kr Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='3170';
20241107@174322.9569 peasc5an35vncp0qus5eg9g3kr Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='3170';
20241107@174323.5400 oloiie605jqmofb82dlp9ul88t Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20241107@174323.6700 oloiie605jqmofb82dlp9ul88t Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20241107@174323.1360 oloiie605jqmofb82dlp9ul88t Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='3171';
20241107@174323.1960 oloiie605jqmofb82dlp9ul88t Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='3171';
20241107@174323.2520 oloiie605jqmofb82dlp9ul88t Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='3171';
20241107@174323.2820 oloiie605jqmofb82dlp9ul88t Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='3171';
20241107@174323.3320 oloiie605jqmofb82dlp9ul88t Query : use flama_phc
20241107@174323.3350 oloiie605jqmofb82dlp9ul88t Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20241107@174323.3940 oloiie605jqmofb82dlp9ul88t Query : use flama_phc
20241107@174323.3970 oloiie605jqmofb82dlp9ul88t Query : select no, estab,szadrsdesc from szadrs where u_coddest=8301
20241107@174323.4850 oloiie605jqmofb82dlp9ul88t Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '328.9902.00.1'
20241107@174323.7400 oloiie605jqmofb82dlp9ul88t Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2073 and bo.obrano = 2407367 and bi.ref ='328.9902.00.1' and bi.lordem =1
20241107@174323.1116 oloiie605jqmofb82dlp9ul88t Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.5501.00.1'
20241107@174323.1303 oloiie605jqmofb82dlp9ul88t Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2073 and bo.obrano = 2407367 and bi.ref ='324.5501.00.1' and bi.lordem =2
20241107@174323.1611 oloiie605jqmofb82dlp9ul88t Query : use flama_phc
20241107@174323.1614 oloiie605jqmofb82dlp9ul88t Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20241107@174323.1644 oloiie605jqmofb82dlp9ul88t Query : use flama_phc
20241107@174323.1647 oloiie605jqmofb82dlp9ul88t Query : select top 1 1 valor from td where td.ndoc = 39
20241107@174323.1676 oloiie605jqmofb82dlp9ul88t Query : use flama_phc
20241107@174323.1679 oloiie605jqmofb82dlp9ul88t 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')
20241107@174323.1705 oloiie605jqmofb82dlp9ul88t 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
20241107@174323.1738 oloiie605jqmofb82dlp9ul88t Query : use flama_phc
20241107@174323.1741 oloiie605jqmofb82dlp9ul88t Query : select top 1 ~inactivo valor from cl where no = '101621' and estab = 0 order by inactivo desc
20241107@174323.1861 oloiie605jqmofb82dlp9ul88t Query : use flama_phc
20241107@174323.1864 oloiie605jqmofb82dlp9ul88t Query : select top 1 tipodoc,regrd from td where ndoc = 39
20241107@174323.1892 oloiie605jqmofb82dlp9ul88t Query : use flama_phc
20241107@174323.1894 oloiie605jqmofb82dlp9ul88t Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20241107@174323.1932 oloiie605jqmofb82dlp9ul88t Query : use flama_phc
20241107@174323.1935 oloiie605jqmofb82dlp9ul88t Query : select szadrsstamp valor from szadrs where szadrsdesc='j.o.m.,lda - alverca'
20241107@174323.1984 oloiie605jqmofb82dlp9ul88t Query : use flama_phc
20241107@174323.1986 oloiie605jqmofb82dlp9ul88t Query : select 1 valor from td where ndoc = 39
20241107@174323.1999 oloiie605jqmofb82dlp9ul88t Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20241107@174323.2012 oloiie605jqmofb82dlp9ul88t Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@174323.2028 oloiie605jqmofb82dlp9ul88t Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20241107@174323.2046 oloiie605jqmofb82dlp9ul88t Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@174323.2064 oloiie605jqmofb82dlp9ul88t Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20241107@174323.2091 oloiie605jqmofb82dlp9ul88t Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@174323.2106 oloiie605jqmofb82dlp9ul88t Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20241107@174323.2118 oloiie605jqmofb82dlp9ul88t Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20241107@174323.2178 oloiie605jqmofb82dlp9ul88t Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20241107@174323.2191 oloiie605jqmofb82dlp9ul88t Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@174323.2205 oloiie605jqmofb82dlp9ul88t Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20241107@174323.2220 oloiie605jqmofb82dlp9ul88t Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut672cf15106672cfc3b33' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20241107@174323.2395 oloiie605jqmofb82dlp9ul88t Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@174323.2411 oloiie605jqmofb82dlp9ul88t Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20241107@174323.2442 oloiie605jqmofb82dlp9ul88t Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20241107@174323.2454 oloiie605jqmofb82dlp9ul88t Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20241107@174323.2465 oloiie605jqmofb82dlp9ul88t Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20241107@174323.2477 oloiie605jqmofb82dlp9ul88t Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20241107@174323.2487 oloiie605jqmofb82dlp9ul88t Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20241107@174323.2499 oloiie605jqmofb82dlp9ul88t Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20241107@174323.2510 oloiie605jqmofb82dlp9ul88t Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut672cf15106672cfc3b33',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20241107@174323.2767 oloiie605jqmofb82dlp9ul88t Query : select top 1 fno valor from wsftdata order by fno desc
20241107@174323.2793 oloiie605jqmofb82dlp9ul88t Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@174323.2810 oloiie605jqmofb82dlp9ul88t Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20241107@174323.2833 oloiie605jqmofb82dlp9ul88t Query : select 'normal' from dummy
20241107@174323.2847 oloiie605jqmofb82dlp9ul88t Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut672cf15106672cfc3b33',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',1740,101621,0,'2024-11-07',39,'euro',0,0,2024 ,?,?)
20241107@174323.3213 oloiie605jqmofb82dlp9ul88t Query : use flama_phc
20241107@174323.3216 oloiie605jqmofb82dlp9ul88t Query : select st.usalote valor from st where st.ref = '328.9902.00.1'
20241107@174323.3396 oloiie605jqmofb82dlp9ul88t 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.9902.00.1'
20241107@174323.4402 oloiie605jqmofb82dlp9ul88t Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@174323.4420 oloiie605jqmofb82dlp9ul88t Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241107@174323.4443 oloiie605jqmofb82dlp9ul88t Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@174323.4457 oloiie605jqmofb82dlp9ul88t Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241107@174323.4465 oloiie605jqmofb82dlp9ul88t Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241107@174323.4476 oloiie605jqmofb82dlp9ul88t Query : select sestamp valor from se where ref ='328.9902.00.1' and lote = 'r2301241100a'
20241107@174323.4498 oloiie605jqmofb82dlp9ul88t Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@174323.4514 oloiie605jqmofb82dlp9ul88t Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241107@174323.4525 oloiie605jqmofb82dlp9ul88t Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut672cf37834672cfc3b6d','aut672cf15106672cfc3b33' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241107@174323.4529 oloiie605jqmofb82dlp9ul88t Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@174323.4543 oloiie605jqmofb82dlp9ul88t Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241107@174323.4571 oloiie605jqmofb82dlp9ul88t Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut672cf37834672cfc3b6d',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',1.000 ,'aut672cf15106672cfc3b33' ,0,0 ,2,23.00,10000,?,?,?,?,?)
20241107@174323.4845 oloiie605jqmofb82dlp9ul88t Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@174323.4862 oloiie605jqmofb82dlp9ul88t Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241107@174323.4946 oloiie605jqmofb82dlp9ul88t Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@174323.4975 oloiie605jqmofb82dlp9ul88t Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241107@174323.5083 oloiie605jqmofb82dlp9ul88t Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241107@174323.5096 oloiie605jqmofb82dlp9ul88t Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@174323.5112 oloiie605jqmofb82dlp9ul88t Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241107@174323.5133 oloiie605jqmofb82dlp9ul88t Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut672cf60332672cfc3b7c','aut672cf15106672cfc3b33' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241107@174323.5137 oloiie605jqmofb82dlp9ul88t Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@174323.5152 oloiie605jqmofb82dlp9ul88t Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241107@174323.5187 oloiie605jqmofb82dlp9ul88t Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut672cf60332672cfc3b7c',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut672cf15106672cfc3b33' ,0,0 ,2,23.00,20000,?,?,?)
20241107@174323.5471 oloiie605jqmofb82dlp9ul88t Query : use flama_phc
20241107@174323.5481 oloiie605jqmofb82dlp9ul88t Query : select st.usalote valor from st where st.ref = '324.5501.00.1'
20241107@174323.5501 oloiie605jqmofb82dlp9ul88t Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.5501.00.1'
20241107@174323.5672 oloiie605jqmofb82dlp9ul88t Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@174323.5689 oloiie605jqmofb82dlp9ul88t Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241107@174323.5716 oloiie605jqmofb82dlp9ul88t Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@174323.5730 oloiie605jqmofb82dlp9ul88t Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241107@174323.5738 oloiie605jqmofb82dlp9ul88t Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241107@174323.5749 oloiie605jqmofb82dlp9ul88t Query : select sestamp valor from se where ref ='324.5501.00.1' and lote = 'r2300908100a'
20241107@174323.5835 oloiie605jqmofb82dlp9ul88t Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@174323.5851 oloiie605jqmofb82dlp9ul88t Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241107@174323.5864 oloiie605jqmofb82dlp9ul88t Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut672cf51745672cfc3b8e','aut672cf15106672cfc3b33' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241107@174323.5868 oloiie605jqmofb82dlp9ul88t Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@174323.5885 oloiie605jqmofb82dlp9ul88t Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241107@174323.5912 oloiie605jqmofb82dlp9ul88t Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut672cf51745672cfc3b8e',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',4.000 ,'aut672cf15106672cfc3b33' ,0,0 ,2,23.00,40000,?,?,?,?,?)
20241107@174323.6189 oloiie605jqmofb82dlp9ul88t Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut672cf15106672cfc3b33','2407367','wait',39,'adm09112754980.682000002')
20241107@174323.6258 oloiie605jqmofb82dlp9ul88t Query : use flama_phc
20241107@174323.6261 oloiie605jqmofb82dlp9ul88t Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20241107@174323.6289 oloiie605jqmofb82dlp9ul88t Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='3171';
20241107@174323.6329 oloiie605jqmofb82dlp9ul88t Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='3171';
20241107@174323.6373 oloiie605jqmofb82dlp9ul88t Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='3171';
20241107@174323.6399 oloiie605jqmofb82dlp9ul88t Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='3171';
20241107@174323.6930 609nbs6vsk21dpo379hkvp7l98 Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20241107@174323.6940 609nbs6vsk21dpo379hkvp7l98 Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20241107@174323.6997 609nbs6vsk21dpo379hkvp7l98 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='3172';
20241107@174323.7053 609nbs6vsk21dpo379hkvp7l98 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='3172';
20241107@174323.7106 609nbs6vsk21dpo379hkvp7l98 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='3172';
20241107@174323.7132 609nbs6vsk21dpo379hkvp7l98 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='3172';
20241107@174323.7181 609nbs6vsk21dpo379hkvp7l98 Query : use flama_phc
20241107@174323.7184 609nbs6vsk21dpo379hkvp7l98 Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20241107@174323.7243 609nbs6vsk21dpo379hkvp7l98 Query : use flama_phc
20241107@174323.7246 609nbs6vsk21dpo379hkvp7l98 Query : select no, estab,szadrsdesc from szadrs where u_coddest=8923
20241107@174323.7327 609nbs6vsk21dpo379hkvp7l98 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '328.9902.00.1'
20241107@174323.7345 609nbs6vsk21dpo379hkvp7l98 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2073 and bo.obrano = 2407368 and bi.ref ='328.9902.00.1' and bi.lordem =1
20241107@174323.7717 609nbs6vsk21dpo379hkvp7l98 Query : use flama_phc
20241107@174323.7720 609nbs6vsk21dpo379hkvp7l98 Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20241107@174323.7751 609nbs6vsk21dpo379hkvp7l98 Query : use flama_phc
20241107@174323.7754 609nbs6vsk21dpo379hkvp7l98 Query : select top 1 1 valor from td where td.ndoc = 39
20241107@174323.7783 609nbs6vsk21dpo379hkvp7l98 Query : use flama_phc
20241107@174323.7786 609nbs6vsk21dpo379hkvp7l98 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')
20241107@174323.7811 609nbs6vsk21dpo379hkvp7l98 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
20241107@174323.7845 609nbs6vsk21dpo379hkvp7l98 Query : use flama_phc
20241107@174323.7847 609nbs6vsk21dpo379hkvp7l98 Query : select top 1 ~inactivo valor from cl where no = '101621' and estab = 0 order by inactivo desc
20241107@174323.7876 609nbs6vsk21dpo379hkvp7l98 Query : use flama_phc
20241107@174323.7878 609nbs6vsk21dpo379hkvp7l98 Query : select top 1 tipodoc,regrd from td where ndoc = 39
20241107@174323.7907 609nbs6vsk21dpo379hkvp7l98 Query : use flama_phc
20241107@174323.7909 609nbs6vsk21dpo379hkvp7l98 Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20241107@174323.7950 609nbs6vsk21dpo379hkvp7l98 Query : use flama_phc
20241107@174323.7953 609nbs6vsk21dpo379hkvp7l98 Query : select szadrsstamp valor from szadrs where szadrsdesc='jom- gondomar'
20241107@174323.7997 609nbs6vsk21dpo379hkvp7l98 Query : use flama_phc
20241107@174323.7999 609nbs6vsk21dpo379hkvp7l98 Query : select 1 valor from td where ndoc = 39
20241107@174323.8012 609nbs6vsk21dpo379hkvp7l98 Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20241107@174323.8026 609nbs6vsk21dpo379hkvp7l98 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@174323.8041 609nbs6vsk21dpo379hkvp7l98 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20241107@174323.8059 609nbs6vsk21dpo379hkvp7l98 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@174323.8072 609nbs6vsk21dpo379hkvp7l98 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20241107@174323.8098 609nbs6vsk21dpo379hkvp7l98 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@174323.8112 609nbs6vsk21dpo379hkvp7l98 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20241107@174323.8125 609nbs6vsk21dpo379hkvp7l98 Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20241107@174323.8184 609nbs6vsk21dpo379hkvp7l98 Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20241107@174323.8196 609nbs6vsk21dpo379hkvp7l98 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@174323.8210 609nbs6vsk21dpo379hkvp7l98 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20241107@174323.8225 609nbs6vsk21dpo379hkvp7l98 Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut672cf16075672cfc3bc6' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20241107@174323.8404 609nbs6vsk21dpo379hkvp7l98 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@174323.8421 609nbs6vsk21dpo379hkvp7l98 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20241107@174323.8453 609nbs6vsk21dpo379hkvp7l98 Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20241107@174323.8465 609nbs6vsk21dpo379hkvp7l98 Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20241107@174323.8476 609nbs6vsk21dpo379hkvp7l98 Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20241107@174323.8488 609nbs6vsk21dpo379hkvp7l98 Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20241107@174323.8500 609nbs6vsk21dpo379hkvp7l98 Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20241107@174323.8512 609nbs6vsk21dpo379hkvp7l98 Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20241107@174323.8523 609nbs6vsk21dpo379hkvp7l98 Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut672cf16075672cfc3bc6',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20241107@174323.9031 609nbs6vsk21dpo379hkvp7l98 Query : select top 1 fno valor from wsftdata order by fno desc
20241107@174323.9493 609nbs6vsk21dpo379hkvp7l98 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@174323.9872 609nbs6vsk21dpo379hkvp7l98 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20241107@174324.1800 609nbs6vsk21dpo379hkvp7l98 Query : select 'normal' from dummy
20241107@174324.3300 609nbs6vsk21dpo379hkvp7l98 Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut672cf16075672cfc3bc6',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',1741,101621,0,'2024-11-07',39,'euro',0,0,2024 ,?,?)
20241107@174324.3380 609nbs6vsk21dpo379hkvp7l98 Query : use flama_phc
20241107@174324.3410 609nbs6vsk21dpo379hkvp7l98 Query : select st.usalote valor from st where st.ref = '328.9902.00.1'
20241107@174324.3620 609nbs6vsk21dpo379hkvp7l98 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.9902.00.1'
20241107@174324.3770 609nbs6vsk21dpo379hkvp7l98 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@174324.3920 609nbs6vsk21dpo379hkvp7l98 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241107@174324.4150 609nbs6vsk21dpo379hkvp7l98 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@174324.4290 609nbs6vsk21dpo379hkvp7l98 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241107@174324.4370 609nbs6vsk21dpo379hkvp7l98 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241107@174324.4490 609nbs6vsk21dpo379hkvp7l98 Query : select sestamp valor from se where ref ='328.9902.00.1' and lote = 'r2301241100a'
20241107@174324.4610 609nbs6vsk21dpo379hkvp7l98 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@174324.4750 609nbs6vsk21dpo379hkvp7l98 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241107@174324.4860 609nbs6vsk21dpo379hkvp7l98 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut672cf22573672cfc3c0b','aut672cf16075672cfc3bc6' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241107@174324.4900 609nbs6vsk21dpo379hkvp7l98 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@174324.5030 609nbs6vsk21dpo379hkvp7l98 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241107@174324.5290 609nbs6vsk21dpo379hkvp7l98 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut672cf22573672cfc3c0b',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',1.000 ,'aut672cf16075672cfc3bc6' ,0,0 ,2,23.00,10000,?,?,?,?,?)
20241107@174324.8270 609nbs6vsk21dpo379hkvp7l98 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@174324.8420 609nbs6vsk21dpo379hkvp7l98 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241107@174324.8660 609nbs6vsk21dpo379hkvp7l98 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@174324.8800 609nbs6vsk21dpo379hkvp7l98 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241107@174324.8880 609nbs6vsk21dpo379hkvp7l98 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241107@174324.8990 609nbs6vsk21dpo379hkvp7l98 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@174324.9130 609nbs6vsk21dpo379hkvp7l98 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241107@174324.9240 609nbs6vsk21dpo379hkvp7l98 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut672cf82696672cfc3c15','aut672cf16075672cfc3bc6' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241107@174324.9280 609nbs6vsk21dpo379hkvp7l98 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@174324.9420 609nbs6vsk21dpo379hkvp7l98 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241107@174324.9680 609nbs6vsk21dpo379hkvp7l98 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut672cf82696672cfc3c15',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut672cf16075672cfc3bc6' ,0,0 ,2,23.00,20000,?,?,?)
20241107@174324.1234 609nbs6vsk21dpo379hkvp7l98 Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut672cf16075672cfc3bc6','2407368','wait',39,'adm09112754980.682000002')
20241107@174324.1301 609nbs6vsk21dpo379hkvp7l98 Query : use flama_phc
20241107@174324.1304 609nbs6vsk21dpo379hkvp7l98 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20241107@174324.1335 609nbs6vsk21dpo379hkvp7l98 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='3172';
20241107@174324.1367 609nbs6vsk21dpo379hkvp7l98 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='3172';
20241107@174324.1410 609nbs6vsk21dpo379hkvp7l98 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='3172';
20241107@174324.1437 609nbs6vsk21dpo379hkvp7l98 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='3172';
20241107@174324.1922 cvkj4qg572k77f784duqpg4hsm Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20241107@174324.1933 cvkj4qg572k77f784duqpg4hsm Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20241107@174324.1989 cvkj4qg572k77f784duqpg4hsm Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='3173';
20241107@174324.2045 cvkj4qg572k77f784duqpg4hsm Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='3173';
20241107@174324.2100 cvkj4qg572k77f784duqpg4hsm Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='3173';
20241107@174324.2128 cvkj4qg572k77f784duqpg4hsm Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='3173';
20241107@174324.2176 cvkj4qg572k77f784duqpg4hsm Query : use flama_phc
20241107@174324.2179 cvkj4qg572k77f784duqpg4hsm Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20241107@174324.2237 cvkj4qg572k77f784duqpg4hsm Query : use flama_phc
20241107@174324.2240 cvkj4qg572k77f784duqpg4hsm Query : select no, estab,szadrsdesc from szadrs where u_coddest=7737
20241107@174324.2326 cvkj4qg572k77f784duqpg4hsm Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.5501.00.1'
20241107@174324.2345 cvkj4qg572k77f784duqpg4hsm Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2073 and bo.obrano = 2407369 and bi.ref ='324.5501.00.1' and bi.lordem =1
20241107@174324.2732 cvkj4qg572k77f784duqpg4hsm Query : use flama_phc
20241107@174324.2735 cvkj4qg572k77f784duqpg4hsm Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20241107@174324.2768 cvkj4qg572k77f784duqpg4hsm Query : use flama_phc
20241107@174324.2770 cvkj4qg572k77f784duqpg4hsm Query : select top 1 1 valor from td where td.ndoc = 39
20241107@174324.2816 cvkj4qg572k77f784duqpg4hsm Query : use flama_phc
20241107@174324.2819 cvkj4qg572k77f784duqpg4hsm 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')
20241107@174324.2845 cvkj4qg572k77f784duqpg4hsm 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
20241107@174324.2878 cvkj4qg572k77f784duqpg4hsm Query : use flama_phc
20241107@174324.2881 cvkj4qg572k77f784duqpg4hsm Query : select top 1 ~inactivo valor from cl where no = '101621' and estab = 0 order by inactivo desc
20241107@174324.2911 cvkj4qg572k77f784duqpg4hsm Query : use flama_phc
20241107@174324.2913 cvkj4qg572k77f784duqpg4hsm Query : select top 1 tipodoc,regrd from td where ndoc = 39
20241107@174324.2942 cvkj4qg572k77f784duqpg4hsm Query : use flama_phc
20241107@174324.2944 cvkj4qg572k77f784duqpg4hsm Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20241107@174324.2985 cvkj4qg572k77f784duqpg4hsm Query : use flama_phc
20241107@174324.2988 cvkj4qg572k77f784duqpg4hsm Query : select szadrsstamp valor from szadrs where szadrsdesc='j.o.m - loja da ponte'
20241107@174324.3032 cvkj4qg572k77f784duqpg4hsm Query : use flama_phc
20241107@174324.3035 cvkj4qg572k77f784duqpg4hsm Query : select 1 valor from td where ndoc = 39
20241107@174324.3046 cvkj4qg572k77f784duqpg4hsm Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20241107@174324.3060 cvkj4qg572k77f784duqpg4hsm Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@174324.3085 cvkj4qg572k77f784duqpg4hsm Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20241107@174324.3103 cvkj4qg572k77f784duqpg4hsm Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@174324.3119 cvkj4qg572k77f784duqpg4hsm Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20241107@174324.3146 cvkj4qg572k77f784duqpg4hsm Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@174324.3161 cvkj4qg572k77f784duqpg4hsm Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20241107@174324.3173 cvkj4qg572k77f784duqpg4hsm Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20241107@174324.3242 cvkj4qg572k77f784duqpg4hsm Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20241107@174324.3255 cvkj4qg572k77f784duqpg4hsm Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@174324.3270 cvkj4qg572k77f784duqpg4hsm Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20241107@174324.3286 cvkj4qg572k77f784duqpg4hsm Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut672cf64705672cfc3c4d' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20241107@174324.3468 cvkj4qg572k77f784duqpg4hsm Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@174324.3487 cvkj4qg572k77f784duqpg4hsm Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20241107@174324.3521 cvkj4qg572k77f784duqpg4hsm Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20241107@174324.3533 cvkj4qg572k77f784duqpg4hsm Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20241107@174324.3544 cvkj4qg572k77f784duqpg4hsm Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20241107@174324.3555 cvkj4qg572k77f784duqpg4hsm Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20241107@174324.3568 cvkj4qg572k77f784duqpg4hsm Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20241107@174324.3580 cvkj4qg572k77f784duqpg4hsm Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20241107@174324.3591 cvkj4qg572k77f784duqpg4hsm Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut672cf64705672cfc3c4d',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20241107@174324.3843 cvkj4qg572k77f784duqpg4hsm Query : select top 1 fno valor from wsftdata order by fno desc
20241107@174324.3869 cvkj4qg572k77f784duqpg4hsm Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@174324.3892 cvkj4qg572k77f784duqpg4hsm Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20241107@174324.3916 cvkj4qg572k77f784duqpg4hsm Query : select 'normal' from dummy
20241107@174324.3931 cvkj4qg572k77f784duqpg4hsm Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut672cf64705672cfc3c4d',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',1742,101621,0,'2024-11-07',39,'euro',0,0,2024 ,?,?)
20241107@174324.4238 cvkj4qg572k77f784duqpg4hsm Query : use flama_phc
20241107@174324.4241 cvkj4qg572k77f784duqpg4hsm Query : select st.usalote valor from st where st.ref = '324.5501.00.1'
20241107@174324.4262 cvkj4qg572k77f784duqpg4hsm Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.5501.00.1'
20241107@174324.4277 cvkj4qg572k77f784duqpg4hsm Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@174324.4294 cvkj4qg572k77f784duqpg4hsm Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241107@174324.4320 cvkj4qg572k77f784duqpg4hsm Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@174324.4336 cvkj4qg572k77f784duqpg4hsm Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241107@174324.4351 cvkj4qg572k77f784duqpg4hsm Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241107@174324.4364 cvkj4qg572k77f784duqpg4hsm Query : select sestamp valor from se where ref ='324.5501.00.1' and lote = 'r2300908100a'
20241107@174324.4377 cvkj4qg572k77f784duqpg4hsm Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@174324.4392 cvkj4qg572k77f784duqpg4hsm Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241107@174324.4403 cvkj4qg572k77f784duqpg4hsm Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut672cf73683672cfc3c6a','aut672cf64705672cfc3c4d' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241107@174324.4408 cvkj4qg572k77f784duqpg4hsm Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@174324.4422 cvkj4qg572k77f784duqpg4hsm Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241107@174324.4451 cvkj4qg572k77f784duqpg4hsm Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut672cf73683672cfc3c6a',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',4.000 ,'aut672cf64705672cfc3c4d' ,0,0 ,2,23.00,10000,?,?,?,?,?)
20241107@174324.4721 cvkj4qg572k77f784duqpg4hsm Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut672cf64705672cfc3c4d','2407369','wait',39,'adm09112754980.682000002')
20241107@174324.4788 cvkj4qg572k77f784duqpg4hsm Query : use flama_phc
20241107@174324.4791 cvkj4qg572k77f784duqpg4hsm Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20241107@174324.4826 cvkj4qg572k77f784duqpg4hsm Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='3173';
20241107@174324.4858 cvkj4qg572k77f784duqpg4hsm Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='3173';
20241107@174324.4902 cvkj4qg572k77f784duqpg4hsm Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='3173';
20241107@174324.4930 cvkj4qg572k77f784duqpg4hsm Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='3173';
20241107@174324.5407 o7kj2pkesm7ngn61fnri74u15a Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20241107@174324.5418 o7kj2pkesm7ngn61fnri74u15a Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20241107@174324.5477 o7kj2pkesm7ngn61fnri74u15a Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='3174';
20241107@174324.5531 o7kj2pkesm7ngn61fnri74u15a Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='3174';
20241107@174324.5610 o7kj2pkesm7ngn61fnri74u15a Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='3174';
20241107@174324.5641 o7kj2pkesm7ngn61fnri74u15a Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='3174';
20241107@174324.6348 o7kj2pkesm7ngn61fnri74u15a Query : use flama_phc
20241107@174324.6407 o7kj2pkesm7ngn61fnri74u15a Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20241107@174324.8058 o7kj2pkesm7ngn61fnri74u15a Query : use flama_phc
20241107@174324.8062 o7kj2pkesm7ngn61fnri74u15a Query : select no, estab,szadrsdesc from szadrs where u_coddest=7737
20241107@174324.8105 o7kj2pkesm7ngn61fnri74u15a 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'
20241107@174324.8262 o7kj2pkesm7ngn61fnri74u15a Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2073 and bo.obrano = 2407370 and bi.ref ='324.692.00.01' and bi.lordem =1
20241107@174324.8707 o7kj2pkesm7ngn61fnri74u15a Query : use flama_phc
20241107@174324.8711 o7kj2pkesm7ngn61fnri74u15a Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20241107@174324.8743 o7kj2pkesm7ngn61fnri74u15a Query : use flama_phc
20241107@174324.8746 o7kj2pkesm7ngn61fnri74u15a Query : select top 1 1 valor from td where td.ndoc = 39
20241107@174324.8775 o7kj2pkesm7ngn61fnri74u15a Query : use flama_phc
20241107@174324.8778 o7kj2pkesm7ngn61fnri74u15a 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')
20241107@174324.8806 o7kj2pkesm7ngn61fnri74u15a 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
20241107@174324.8842 o7kj2pkesm7ngn61fnri74u15a Query : use flama_phc
20241107@174324.8845 o7kj2pkesm7ngn61fnri74u15a Query : select top 1 ~inactivo valor from cl where no = '101621' and estab = 0 order by inactivo desc
20241107@174324.8875 o7kj2pkesm7ngn61fnri74u15a Query : use flama_phc
20241107@174324.8878 o7kj2pkesm7ngn61fnri74u15a Query : select top 1 tipodoc,regrd from td where ndoc = 39
20241107@174324.8913 o7kj2pkesm7ngn61fnri74u15a Query : use flama_phc
20241107@174324.8916 o7kj2pkesm7ngn61fnri74u15a Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20241107@174324.8955 o7kj2pkesm7ngn61fnri74u15a Query : use flama_phc
20241107@174324.8959 o7kj2pkesm7ngn61fnri74u15a Query : select szadrsstamp valor from szadrs where szadrsdesc='j.o.m - loja da ponte'
20241107@174324.9002 o7kj2pkesm7ngn61fnri74u15a Query : use flama_phc
20241107@174324.9005 o7kj2pkesm7ngn61fnri74u15a Query : select 1 valor from td where ndoc = 39
20241107@174324.9020 o7kj2pkesm7ngn61fnri74u15a Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20241107@174324.9035 o7kj2pkesm7ngn61fnri74u15a Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@174324.9051 o7kj2pkesm7ngn61fnri74u15a Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20241107@174324.9072 o7kj2pkesm7ngn61fnri74u15a Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@174324.9089 o7kj2pkesm7ngn61fnri74u15a Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20241107@174324.9121 o7kj2pkesm7ngn61fnri74u15a Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@174324.9135 o7kj2pkesm7ngn61fnri74u15a Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20241107@174324.9148 o7kj2pkesm7ngn61fnri74u15a Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20241107@174324.9208 o7kj2pkesm7ngn61fnri74u15a Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20241107@174324.9222 o7kj2pkesm7ngn61fnri74u15a Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@174324.9237 o7kj2pkesm7ngn61fnri74u15a Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20241107@174324.9261 o7kj2pkesm7ngn61fnri74u15a Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut672cf25443672cfc3cdf' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20241107@174324.9439 o7kj2pkesm7ngn61fnri74u15a Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@174324.9465 o7kj2pkesm7ngn61fnri74u15a Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20241107@174324.9499 o7kj2pkesm7ngn61fnri74u15a Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20241107@174324.9512 o7kj2pkesm7ngn61fnri74u15a Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20241107@174324.9524 o7kj2pkesm7ngn61fnri74u15a Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20241107@174324.9536 o7kj2pkesm7ngn61fnri74u15a Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20241107@174324.9549 o7kj2pkesm7ngn61fnri74u15a Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20241107@174324.9561 o7kj2pkesm7ngn61fnri74u15a Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20241107@174324.9572 o7kj2pkesm7ngn61fnri74u15a Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut672cf25443672cfc3cdf',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20241107@174324.9823 o7kj2pkesm7ngn61fnri74u15a Query : select top 1 fno valor from wsftdata order by fno desc
20241107@174324.9847 o7kj2pkesm7ngn61fnri74u15a Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@174324.9864 o7kj2pkesm7ngn61fnri74u15a Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20241107@174324.9887 o7kj2pkesm7ngn61fnri74u15a Query : select 'normal' from dummy
20241107@174324.9902 o7kj2pkesm7ngn61fnri74u15a Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut672cf25443672cfc3cdf',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',1743,101621,0,'2024-11-07',39,'euro',0,0,2024 ,?,?)
20241107@174325.2000 o7kj2pkesm7ngn61fnri74u15a Query : use flama_phc
20241107@174325.2020 o7kj2pkesm7ngn61fnri74u15a Query : select st.usalote valor from st where st.ref = '324.692.00.01'
20241107@174325.2240 o7kj2pkesm7ngn61fnri74u15a 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'
20241107@174325.4430 o7kj2pkesm7ngn61fnri74u15a Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@174325.4590 o7kj2pkesm7ngn61fnri74u15a Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241107@174325.4850 o7kj2pkesm7ngn61fnri74u15a Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@174325.5000 o7kj2pkesm7ngn61fnri74u15a Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241107@174325.5090 o7kj2pkesm7ngn61fnri74u15a Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241107@174325.5200 o7kj2pkesm7ngn61fnri74u15a Query : select sestamp valor from se where ref ='324.692.00.01' and lote = 'r2400210100a'
20241107@174325.5330 o7kj2pkesm7ngn61fnri74u15a Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@174325.5480 o7kj2pkesm7ngn61fnri74u15a Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241107@174325.5590 o7kj2pkesm7ngn61fnri74u15a Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut672cf46266672cfc3d0d','aut672cf25443672cfc3cdf' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241107@174325.5630 o7kj2pkesm7ngn61fnri74u15a Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@174325.5760 o7kj2pkesm7ngn61fnri74u15a Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241107@174325.6020 o7kj2pkesm7ngn61fnri74u15a Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut672cf46266672cfc3d0d',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',2.000 ,'aut672cf25443672cfc3cdf' ,0,0 ,2,23.00,10000,?,?,?,?,?)
20241107@174325.8810 o7kj2pkesm7ngn61fnri74u15a Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@174325.8970 o7kj2pkesm7ngn61fnri74u15a Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241107@174325.9230 o7kj2pkesm7ngn61fnri74u15a Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@174325.9370 o7kj2pkesm7ngn61fnri74u15a Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241107@174325.9450 o7kj2pkesm7ngn61fnri74u15a Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241107@174325.9570 o7kj2pkesm7ngn61fnri74u15a Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@174325.9710 o7kj2pkesm7ngn61fnri74u15a Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241107@174325.9830 o7kj2pkesm7ngn61fnri74u15a Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut672cf69985672cfc3d17','aut672cf25443672cfc3cdf' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241107@174325.9870 o7kj2pkesm7ngn61fnri74u15a Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@174325.1001 o7kj2pkesm7ngn61fnri74u15a Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241107@174325.1028 o7kj2pkesm7ngn61fnri74u15a Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut672cf69985672cfc3d17',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut672cf25443672cfc3cdf' ,0,0 ,2,23.00,20000,?,?,?)
20241107@174325.1288 o7kj2pkesm7ngn61fnri74u15a Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut672cf25443672cfc3cdf','2407370','wait',39,'adm09112754980.682000002')
20241107@174325.1357 o7kj2pkesm7ngn61fnri74u15a Query : use flama_phc
20241107@174325.1360 o7kj2pkesm7ngn61fnri74u15a Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20241107@174325.1389 o7kj2pkesm7ngn61fnri74u15a Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='3174';
20241107@174325.1422 o7kj2pkesm7ngn61fnri74u15a Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='3174';
20241107@174325.1524 o7kj2pkesm7ngn61fnri74u15a Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='3174';
20241107@174325.1561 o7kj2pkesm7ngn61fnri74u15a Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='3174';
20241107@174325.3898 nmq1v86q8g5brub1vsnd4pijp6 Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20241107@174325.3908 nmq1v86q8g5brub1vsnd4pijp6 Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20241107@174325.3967 nmq1v86q8g5brub1vsnd4pijp6 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='3175';
20241107@174325.4024 nmq1v86q8g5brub1vsnd4pijp6 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='3175';
20241107@174325.4078 nmq1v86q8g5brub1vsnd4pijp6 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='3175';
20241107@174325.4105 nmq1v86q8g5brub1vsnd4pijp6 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='3175';
20241107@174325.4153 nmq1v86q8g5brub1vsnd4pijp6 Query : use flama_phc
20241107@174325.4156 nmq1v86q8g5brub1vsnd4pijp6 Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20241107@174325.4214 nmq1v86q8g5brub1vsnd4pijp6 Query : use flama_phc
20241107@174325.4217 nmq1v86q8g5brub1vsnd4pijp6 Query : select no, estab,szadrsdesc from szadrs where u_coddest=4779
20241107@174325.4330 nmq1v86q8g5brub1vsnd4pijp6 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.2232.00.1'
20241107@174325.4503 nmq1v86q8g5brub1vsnd4pijp6 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2073 and bo.obrano = 2407377 and bi.ref ='324.2232.00.1' and bi.lordem =1
20241107@174325.4824 nmq1v86q8g5brub1vsnd4pijp6 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'
20241107@174325.4842 nmq1v86q8g5brub1vsnd4pijp6 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2073 and bo.obrano = 2407377 and bi.ref ='324.4980.00.1' and bi.lordem =2
20241107@174325.5150 nmq1v86q8g5brub1vsnd4pijp6 Query : use flama_phc
20241107@174325.5153 nmq1v86q8g5brub1vsnd4pijp6 Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20241107@174325.5185 nmq1v86q8g5brub1vsnd4pijp6 Query : use flama_phc
20241107@174325.5188 nmq1v86q8g5brub1vsnd4pijp6 Query : select top 1 1 valor from td where td.ndoc = 39
20241107@174325.5217 nmq1v86q8g5brub1vsnd4pijp6 Query : use flama_phc
20241107@174325.5220 nmq1v86q8g5brub1vsnd4pijp6 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')
20241107@174325.5246 nmq1v86q8g5brub1vsnd4pijp6 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
20241107@174325.5281 nmq1v86q8g5brub1vsnd4pijp6 Query : use flama_phc
20241107@174325.5285 nmq1v86q8g5brub1vsnd4pijp6 Query : select top 1 ~inactivo valor from cl where no = '101900' and estab = 0 order by inactivo desc
20241107@174325.5409 nmq1v86q8g5brub1vsnd4pijp6 Query : use flama_phc
20241107@174325.5411 nmq1v86q8g5brub1vsnd4pijp6 Query : select top 1 tipodoc,regrd from td where ndoc = 39
20241107@174325.5440 nmq1v86q8g5brub1vsnd4pijp6 Query : use flama_phc
20241107@174325.5443 nmq1v86q8g5brub1vsnd4pijp6 Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20241107@174325.5492 nmq1v86q8g5brub1vsnd4pijp6 Query : use flama_phc
20241107@174325.5495 nmq1v86q8g5brub1vsnd4pijp6 Query : select szadrsstamp valor from szadrs where szadrsdesc='101900 - pd - alcochete'
20241107@174325.5546 nmq1v86q8g5brub1vsnd4pijp6 Query : use flama_phc
20241107@174325.5549 nmq1v86q8g5brub1vsnd4pijp6 Query : select 1 valor from td where ndoc = 39
20241107@174325.5562 nmq1v86q8g5brub1vsnd4pijp6 Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20241107@174325.5575 nmq1v86q8g5brub1vsnd4pijp6 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@174325.5590 nmq1v86q8g5brub1vsnd4pijp6 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20241107@174325.5608 nmq1v86q8g5brub1vsnd4pijp6 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@174325.5622 nmq1v86q8g5brub1vsnd4pijp6 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20241107@174325.5650 nmq1v86q8g5brub1vsnd4pijp6 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@174325.5666 nmq1v86q8g5brub1vsnd4pijp6 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20241107@174325.5680 nmq1v86q8g5brub1vsnd4pijp6 Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20241107@174325.5741 nmq1v86q8g5brub1vsnd4pijp6 Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20241107@174325.5754 nmq1v86q8g5brub1vsnd4pijp6 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@174325.5769 nmq1v86q8g5brub1vsnd4pijp6 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20241107@174325.5784 nmq1v86q8g5brub1vsnd4pijp6 Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut672cf59154672cfc3d8a' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20241107@174325.5962 nmq1v86q8g5brub1vsnd4pijp6 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@174325.5978 nmq1v86q8g5brub1vsnd4pijp6 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20241107@174325.6010 nmq1v86q8g5brub1vsnd4pijp6 Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20241107@174325.6022 nmq1v86q8g5brub1vsnd4pijp6 Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20241107@174325.6034 nmq1v86q8g5brub1vsnd4pijp6 Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20241107@174325.6045 nmq1v86q8g5brub1vsnd4pijp6 Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20241107@174325.6057 nmq1v86q8g5brub1vsnd4pijp6 Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20241107@174325.6068 nmq1v86q8g5brub1vsnd4pijp6 Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20241107@174325.6079 nmq1v86q8g5brub1vsnd4pijp6 Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut672cf59154672cfc3d8a',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20241107@174325.6328 nmq1v86q8g5brub1vsnd4pijp6 Query : select top 1 fno valor from wsftdata order by fno desc
20241107@174325.6352 nmq1v86q8g5brub1vsnd4pijp6 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@174325.6368 nmq1v86q8g5brub1vsnd4pijp6 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20241107@174325.6393 nmq1v86q8g5brub1vsnd4pijp6 Query : select 'normal' from dummy
20241107@174325.6409 nmq1v86q8g5brub1vsnd4pijp6 Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut672cf59154672cfc3d8a',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',1744,101900,0,'2024-11-07',39,'euro',0,0,2024 ,?,?)
20241107@174325.6715 nmq1v86q8g5brub1vsnd4pijp6 Query : use flama_phc
20241107@174325.6718 nmq1v86q8g5brub1vsnd4pijp6 Query : select st.usalote valor from st where st.ref = '324.2232.00.1'
20241107@174325.6740 nmq1v86q8g5brub1vsnd4pijp6 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.2232.00.1'
20241107@174325.6921 nmq1v86q8g5brub1vsnd4pijp6 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@174325.6936 nmq1v86q8g5brub1vsnd4pijp6 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241107@174325.6961 nmq1v86q8g5brub1vsnd4pijp6 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@174325.6975 nmq1v86q8g5brub1vsnd4pijp6 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241107@174325.6984 nmq1v86q8g5brub1vsnd4pijp6 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241107@174325.6995 nmq1v86q8g5brub1vsnd4pijp6 Query : select sestamp valor from se where ref ='324.2232.00.1' and lote = 'r2400241100a'
20241107@174325.7014 nmq1v86q8g5brub1vsnd4pijp6 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@174325.7028 nmq1v86q8g5brub1vsnd4pijp6 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241107@174325.7039 nmq1v86q8g5brub1vsnd4pijp6 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut672cf78498672cfc3dab','aut672cf59154672cfc3d8a' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241107@174325.7042 nmq1v86q8g5brub1vsnd4pijp6 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@174325.7056 nmq1v86q8g5brub1vsnd4pijp6 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241107@174325.7083 nmq1v86q8g5brub1vsnd4pijp6 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut672cf78498672cfc3dab',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',2.000 ,'aut672cf59154672cfc3d8a' ,0,0 ,2,23.00,10000,?,?,?,?,?)
20241107@174325.7402 nmq1v86q8g5brub1vsnd4pijp6 Query : use flama_phc
20241107@174325.7428 nmq1v86q8g5brub1vsnd4pijp6 Query : select st.usalote valor from st where st.ref = '324.4980.00.1'
20241107@174325.7447 nmq1v86q8g5brub1vsnd4pijp6 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'
20241107@174325.7461 nmq1v86q8g5brub1vsnd4pijp6 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@174325.7477 nmq1v86q8g5brub1vsnd4pijp6 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241107@174325.7505 nmq1v86q8g5brub1vsnd4pijp6 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@174325.7519 nmq1v86q8g5brub1vsnd4pijp6 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241107@174325.7527 nmq1v86q8g5brub1vsnd4pijp6 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241107@174325.7539 nmq1v86q8g5brub1vsnd4pijp6 Query : select sestamp valor from se where ref ='324.4980.00.1' and lote = 'r2400145100a'
20241107@174325.7551 nmq1v86q8g5brub1vsnd4pijp6 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@174325.7567 nmq1v86q8g5brub1vsnd4pijp6 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241107@174325.7579 nmq1v86q8g5brub1vsnd4pijp6 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut672cf74184672cfc3db8','aut672cf59154672cfc3d8a' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241107@174325.7583 nmq1v86q8g5brub1vsnd4pijp6 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@174325.7596 nmq1v86q8g5brub1vsnd4pijp6 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241107@174325.7625 nmq1v86q8g5brub1vsnd4pijp6 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut672cf74184672cfc3db8',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',4.000 ,'aut672cf59154672cfc3d8a' ,0,0 ,2,23.00,20000,?,?,?,?,?)
20241107@174325.7885 nmq1v86q8g5brub1vsnd4pijp6 Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut672cf59154672cfc3d8a','2407377','wait',39,'adm09112754980.682000002')
20241107@174325.7956 nmq1v86q8g5brub1vsnd4pijp6 Query : use flama_phc
20241107@174325.7959 nmq1v86q8g5brub1vsnd4pijp6 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20241107@174325.7988 nmq1v86q8g5brub1vsnd4pijp6 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='3175';
20241107@174325.8022 nmq1v86q8g5brub1vsnd4pijp6 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='3175';
20241107@174325.8064 nmq1v86q8g5brub1vsnd4pijp6 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='3175';
20241107@174325.8097 nmq1v86q8g5brub1vsnd4pijp6 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='3175';
20241107@174325.8583 drova6gmue3mm92vp8gpqgrv5t Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20241107@174325.8593 drova6gmue3mm92vp8gpqgrv5t Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20241107@174325.8660 drova6gmue3mm92vp8gpqgrv5t Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='3176';
20241107@174325.8718 drova6gmue3mm92vp8gpqgrv5t Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='3176';
20241107@174325.8777 drova6gmue3mm92vp8gpqgrv5t Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='3176';
20241107@174325.8804 drova6gmue3mm92vp8gpqgrv5t Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='3176';
20241107@174325.8867 drova6gmue3mm92vp8gpqgrv5t Query : use flama_phc
20241107@174325.8869 drova6gmue3mm92vp8gpqgrv5t Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20241107@174325.8953 drova6gmue3mm92vp8gpqgrv5t Query : use flama_phc
20241107@174325.8957 drova6gmue3mm92vp8gpqgrv5t Query : select no, estab,szadrsdesc from szadrs where u_coddest=2155
20241107@174325.9048 drova6gmue3mm92vp8gpqgrv5t Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.658.00.01'
20241107@174325.9203 drova6gmue3mm92vp8gpqgrv5t Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2073 and bo.obrano = 2407380 and bi.ref ='324.658.00.01' and bi.lordem =1
20241107@174325.9502 drova6gmue3mm92vp8gpqgrv5t Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.644.00.01'
20241107@174325.9656 drova6gmue3mm92vp8gpqgrv5t Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2073 and bo.obrano = 2407380 and bi.ref ='324.644.00.01' and bi.lordem =2
20241107@174325.9956 drova6gmue3mm92vp8gpqgrv5t Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.691.00.01'
20241107@174326.1120 drova6gmue3mm92vp8gpqgrv5t Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2073 and bo.obrano = 2407380 and bi.ref ='324.691.00.01' and bi.lordem =3
20241107@174326.4170 drova6gmue3mm92vp8gpqgrv5t Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.648.00.01'
20241107@174326.5720 drova6gmue3mm92vp8gpqgrv5t Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2073 and bo.obrano = 2407380 and bi.ref ='324.648.00.01' and bi.lordem =4
20241107@174326.9120 drova6gmue3mm92vp8gpqgrv5t Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.649.00.01'
20241107@174326.1065 drova6gmue3mm92vp8gpqgrv5t Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2073 and bo.obrano = 2407380 and bi.ref ='324.649.00.01' and bi.lordem =5
20241107@174326.1381 drova6gmue3mm92vp8gpqgrv5t Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.686.00.01'
20241107@174326.1536 drova6gmue3mm92vp8gpqgrv5t Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2073 and bo.obrano = 2407380 and bi.ref ='324.686.00.01' and bi.lordem =6
20241107@174326.1844 drova6gmue3mm92vp8gpqgrv5t Query : use flama_phc
20241107@174326.1847 drova6gmue3mm92vp8gpqgrv5t Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20241107@174326.1879 drova6gmue3mm92vp8gpqgrv5t Query : use flama_phc
20241107@174326.1881 drova6gmue3mm92vp8gpqgrv5t Query : select top 1 1 valor from td where td.ndoc = 39
20241107@174326.1910 drova6gmue3mm92vp8gpqgrv5t Query : use flama_phc
20241107@174326.1913 drova6gmue3mm92vp8gpqgrv5t 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')
20241107@174326.1938 drova6gmue3mm92vp8gpqgrv5t 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
20241107@174326.2024 drova6gmue3mm92vp8gpqgrv5t Query : use flama_phc
20241107@174326.2027 drova6gmue3mm92vp8gpqgrv5t Query : select top 1 ~inactivo valor from cl where no = '102137' and estab = 0 order by inactivo desc
20241107@174326.2145 drova6gmue3mm92vp8gpqgrv5t Query : use flama_phc
20241107@174326.2148 drova6gmue3mm92vp8gpqgrv5t Query : select top 1 tipodoc,regrd from td where ndoc = 39
20241107@174326.2178 drova6gmue3mm92vp8gpqgrv5t Query : use flama_phc
20241107@174326.2181 drova6gmue3mm92vp8gpqgrv5t Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20241107@174326.2217 drova6gmue3mm92vp8gpqgrv5t Query : use flama_phc
20241107@174326.2220 drova6gmue3mm92vp8gpqgrv5t Query : select szadrsstamp valor from szadrs where szadrsdesc='mafricentro electrodomÉsticos,lda.'
20241107@174326.2268 drova6gmue3mm92vp8gpqgrv5t Query : use flama_phc
20241107@174326.2270 drova6gmue3mm92vp8gpqgrv5t Query : select 1 valor from td where ndoc = 39
20241107@174326.2283 drova6gmue3mm92vp8gpqgrv5t Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20241107@174326.2304 drova6gmue3mm92vp8gpqgrv5t Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@174326.2320 drova6gmue3mm92vp8gpqgrv5t Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20241107@174326.2339 drova6gmue3mm92vp8gpqgrv5t Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@174326.2353 drova6gmue3mm92vp8gpqgrv5t Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20241107@174326.2380 drova6gmue3mm92vp8gpqgrv5t Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@174326.2395 drova6gmue3mm92vp8gpqgrv5t Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20241107@174326.2408 drova6gmue3mm92vp8gpqgrv5t Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20241107@174326.2475 drova6gmue3mm92vp8gpqgrv5t Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20241107@174326.2487 drova6gmue3mm92vp8gpqgrv5t Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@174326.2504 drova6gmue3mm92vp8gpqgrv5t Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20241107@174326.2519 drova6gmue3mm92vp8gpqgrv5t Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut672cf22507672cfc3e3a' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20241107@174326.2708 drova6gmue3mm92vp8gpqgrv5t Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@174326.2724 drova6gmue3mm92vp8gpqgrv5t Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20241107@174326.2755 drova6gmue3mm92vp8gpqgrv5t Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20241107@174326.2768 drova6gmue3mm92vp8gpqgrv5t Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20241107@174326.2786 drova6gmue3mm92vp8gpqgrv5t Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20241107@174326.2798 drova6gmue3mm92vp8gpqgrv5t Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20241107@174326.2810 drova6gmue3mm92vp8gpqgrv5t Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20241107@174326.2822 drova6gmue3mm92vp8gpqgrv5t Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20241107@174326.2833 drova6gmue3mm92vp8gpqgrv5t Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut672cf22507672cfc3e3a',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20241107@174326.3096 drova6gmue3mm92vp8gpqgrv5t Query : select top 1 fno valor from wsftdata order by fno desc
20241107@174326.3122 drova6gmue3mm92vp8gpqgrv5t Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@174326.3137 drova6gmue3mm92vp8gpqgrv5t Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20241107@174326.3158 drova6gmue3mm92vp8gpqgrv5t Query : select 'normal' from dummy
20241107@174326.3181 drova6gmue3mm92vp8gpqgrv5t Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut672cf22507672cfc3e3a',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',1745,102137,0,'2024-11-07',39,'euro',0,0,2024 ,?,?)
20241107@174326.3516 drova6gmue3mm92vp8gpqgrv5t Query : use flama_phc
20241107@174326.3519 drova6gmue3mm92vp8gpqgrv5t Query : select st.usalote valor from st where st.ref = '324.658.00.01'
20241107@174326.3541 drova6gmue3mm92vp8gpqgrv5t 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.658.00.01'
20241107@174326.3694 drova6gmue3mm92vp8gpqgrv5t Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@174326.3711 drova6gmue3mm92vp8gpqgrv5t Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241107@174326.3736 drova6gmue3mm92vp8gpqgrv5t Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@174326.3750 drova6gmue3mm92vp8gpqgrv5t Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241107@174326.3760 drova6gmue3mm92vp8gpqgrv5t Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241107@174326.3771 drova6gmue3mm92vp8gpqgrv5t Query : select sestamp valor from se where ref ='324.658.00.01' and lote = 'r2300819200a'
20241107@174326.3791 drova6gmue3mm92vp8gpqgrv5t Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@174326.3807 drova6gmue3mm92vp8gpqgrv5t Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241107@174326.3821 drova6gmue3mm92vp8gpqgrv5t Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut672cf35476672cfc3e5c','aut672cf22507672cfc3e3a' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241107@174326.3825 drova6gmue3mm92vp8gpqgrv5t Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@174326.3839 drova6gmue3mm92vp8gpqgrv5t Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241107@174326.3866 drova6gmue3mm92vp8gpqgrv5t Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut672cf35476672cfc3e5c',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',1.000 ,'aut672cf22507672cfc3e3a' ,0,0 ,2,23.00,10000,?,?,?,?,?)
20241107@174326.4143 drova6gmue3mm92vp8gpqgrv5t Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@174326.4160 drova6gmue3mm92vp8gpqgrv5t Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241107@174326.4185 drova6gmue3mm92vp8gpqgrv5t Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@174326.4214 drova6gmue3mm92vp8gpqgrv5t Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241107@174326.4222 drova6gmue3mm92vp8gpqgrv5t Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241107@174326.4234 drova6gmue3mm92vp8gpqgrv5t Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@174326.4248 drova6gmue3mm92vp8gpqgrv5t Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241107@174326.4261 drova6gmue3mm92vp8gpqgrv5t Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut672cf62160672cfc3e67','aut672cf22507672cfc3e3a' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241107@174326.4265 drova6gmue3mm92vp8gpqgrv5t Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@174326.4279 drova6gmue3mm92vp8gpqgrv5t Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241107@174326.4305 drova6gmue3mm92vp8gpqgrv5t Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut672cf62160672cfc3e67',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut672cf22507672cfc3e3a' ,0,0 ,2,23.00,20000,?,?,?)
20241107@174326.4570 drova6gmue3mm92vp8gpqgrv5t Query : use flama_phc
20241107@174326.4573 drova6gmue3mm92vp8gpqgrv5t Query : select st.usalote valor from st where st.ref = '324.644.00.01'
20241107@174326.4592 drova6gmue3mm92vp8gpqgrv5t 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.644.00.01'
20241107@174326.4738 drova6gmue3mm92vp8gpqgrv5t Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@174326.4754 drova6gmue3mm92vp8gpqgrv5t Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241107@174326.4778 drova6gmue3mm92vp8gpqgrv5t Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@174326.4792 drova6gmue3mm92vp8gpqgrv5t Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241107@174326.4800 drova6gmue3mm92vp8gpqgrv5t Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241107@174326.4813 drova6gmue3mm92vp8gpqgrv5t Query : select sestamp valor from se where ref ='324.644.00.01' and lote = 'r2400749200a'
20241107@174326.4826 drova6gmue3mm92vp8gpqgrv5t Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@174326.4840 drova6gmue3mm92vp8gpqgrv5t Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241107@174326.4851 drova6gmue3mm92vp8gpqgrv5t Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut672cf59770672cfc3e75','aut672cf22507672cfc3e3a' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241107@174326.4855 drova6gmue3mm92vp8gpqgrv5t Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@174326.4870 drova6gmue3mm92vp8gpqgrv5t Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241107@174326.4898 drova6gmue3mm92vp8gpqgrv5t Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut672cf59770672cfc3e75',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',2.000 ,'aut672cf22507672cfc3e3a' ,0,0 ,2,23.00,40000,?,?,?,?,?)
20241107@174326.5168 drova6gmue3mm92vp8gpqgrv5t Query : use flama_phc
20241107@174326.5171 drova6gmue3mm92vp8gpqgrv5t Query : select st.usalote valor from st where st.ref = '324.691.00.01'
20241107@174326.5215 drova6gmue3mm92vp8gpqgrv5t Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.691.00.01'
20241107@174326.5368 drova6gmue3mm92vp8gpqgrv5t Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@174326.5384 drova6gmue3mm92vp8gpqgrv5t Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241107@174326.5408 drova6gmue3mm92vp8gpqgrv5t Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@174326.5423 drova6gmue3mm92vp8gpqgrv5t Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241107@174326.5431 drova6gmue3mm92vp8gpqgrv5t Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241107@174326.5444 drova6gmue3mm92vp8gpqgrv5t Query : select sestamp valor from se where ref ='324.691.00.01' and lote = 'r2400210200a'
20241107@174326.5458 drova6gmue3mm92vp8gpqgrv5t Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@174326.5471 drova6gmue3mm92vp8gpqgrv5t Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241107@174326.5482 drova6gmue3mm92vp8gpqgrv5t Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut672cf61524672cfc3e85','aut672cf22507672cfc3e3a' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241107@174326.5486 drova6gmue3mm92vp8gpqgrv5t Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@174326.5500 drova6gmue3mm92vp8gpqgrv5t Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241107@174326.5528 drova6gmue3mm92vp8gpqgrv5t Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut672cf61524672cfc3e85',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',1.000 ,'aut672cf22507672cfc3e3a' ,0,0 ,2,23.00,50000,?,?,?,?,?)
20241107@174326.5794 drova6gmue3mm92vp8gpqgrv5t Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@174326.5810 drova6gmue3mm92vp8gpqgrv5t Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241107@174326.5834 drova6gmue3mm92vp8gpqgrv5t Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@174326.5848 drova6gmue3mm92vp8gpqgrv5t Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241107@174326.5857 drova6gmue3mm92vp8gpqgrv5t Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241107@174326.5868 drova6gmue3mm92vp8gpqgrv5t Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@174326.5882 drova6gmue3mm92vp8gpqgrv5t Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241107@174326.5893 drova6gmue3mm92vp8gpqgrv5t Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut672cf58043672cfc3e8f','aut672cf22507672cfc3e3a' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241107@174326.5897 drova6gmue3mm92vp8gpqgrv5t Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@174326.5912 drova6gmue3mm92vp8gpqgrv5t Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241107@174326.5940 drova6gmue3mm92vp8gpqgrv5t Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut672cf58043672cfc3e8f',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut672cf22507672cfc3e3a' ,0,0 ,2,23.00,60000,?,?,?)
20241107@174326.6209 drova6gmue3mm92vp8gpqgrv5t Query : use flama_phc
20241107@174326.6212 drova6gmue3mm92vp8gpqgrv5t Query : select st.usalote valor from st where st.ref = '324.648.00.01'
20241107@174326.6270 drova6gmue3mm92vp8gpqgrv5t 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.648.00.01'
20241107@174326.6450 drova6gmue3mm92vp8gpqgrv5t Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@174326.6466 drova6gmue3mm92vp8gpqgrv5t Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241107@174326.6490 drova6gmue3mm92vp8gpqgrv5t Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@174326.6504 drova6gmue3mm92vp8gpqgrv5t Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241107@174326.6513 drova6gmue3mm92vp8gpqgrv5t Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241107@174326.6525 drova6gmue3mm92vp8gpqgrv5t Query : select sestamp valor from se where ref ='324.648.00.01' and lote = 'r2400750200a'
20241107@174326.6538 drova6gmue3mm92vp8gpqgrv5t Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@174326.6552 drova6gmue3mm92vp8gpqgrv5t Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241107@174326.6564 drova6gmue3mm92vp8gpqgrv5t Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut672cf35769672cfc3e9f','aut672cf22507672cfc3e3a' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241107@174326.6568 drova6gmue3mm92vp8gpqgrv5t Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@174326.6583 drova6gmue3mm92vp8gpqgrv5t Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241107@174326.6619 drova6gmue3mm92vp8gpqgrv5t Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut672cf35769672cfc3e9f',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',3.000 ,'aut672cf22507672cfc3e3a' ,0,0 ,2,23.00,80000,?,?,?,?,?)
20241107@174326.6890 drova6gmue3mm92vp8gpqgrv5t Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@174326.6905 drova6gmue3mm92vp8gpqgrv5t Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241107@174326.6931 drova6gmue3mm92vp8gpqgrv5t Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@174326.6945 drova6gmue3mm92vp8gpqgrv5t Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241107@174326.6954 drova6gmue3mm92vp8gpqgrv5t Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241107@174326.6966 drova6gmue3mm92vp8gpqgrv5t Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@174326.6980 drova6gmue3mm92vp8gpqgrv5t Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241107@174326.6991 drova6gmue3mm92vp8gpqgrv5t Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut672cf32450672cfc3eaa','aut672cf22507672cfc3e3a' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241107@174326.6995 drova6gmue3mm92vp8gpqgrv5t Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@174326.7009 drova6gmue3mm92vp8gpqgrv5t Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241107@174326.7035 drova6gmue3mm92vp8gpqgrv5t Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut672cf32450672cfc3eaa',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut672cf22507672cfc3e3a' ,0,0 ,2,23.00,90000,?,?,?)
20241107@174326.7633 drova6gmue3mm92vp8gpqgrv5t Query : use flama_phc
20241107@174326.7675 drova6gmue3mm92vp8gpqgrv5t Query : select st.usalote valor from st where st.ref = '324.649.00.01'
20241107@174326.8569 drova6gmue3mm92vp8gpqgrv5t 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.649.00.01'
20241107@174326.8725 drova6gmue3mm92vp8gpqgrv5t Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@174326.8742 drova6gmue3mm92vp8gpqgrv5t Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241107@174326.8771 drova6gmue3mm92vp8gpqgrv5t Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@174326.8786 drova6gmue3mm92vp8gpqgrv5t Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241107@174326.8794 drova6gmue3mm92vp8gpqgrv5t Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241107@174326.8806 drova6gmue3mm92vp8gpqgrv5t Query : select sestamp valor from se where ref ='324.649.00.01' and lote = 'r2400682200a'
20241107@174326.8824 drova6gmue3mm92vp8gpqgrv5t Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@174326.8838 drova6gmue3mm92vp8gpqgrv5t Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241107@174326.8849 drova6gmue3mm92vp8gpqgrv5t Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut672cf97298672cfc3ed7','aut672cf22507672cfc3e3a' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241107@174326.8854 drova6gmue3mm92vp8gpqgrv5t Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@174326.8869 drova6gmue3mm92vp8gpqgrv5t Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241107@174326.8896 drova6gmue3mm92vp8gpqgrv5t Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut672cf97298672cfc3ed7',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',3.000 ,'aut672cf22507672cfc3e3a' ,0,0 ,2,23.00,110000,?,?,?,?,?)
20241107@174326.9161 drova6gmue3mm92vp8gpqgrv5t Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@174326.9177 drova6gmue3mm92vp8gpqgrv5t Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241107@174326.9203 drova6gmue3mm92vp8gpqgrv5t Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@174326.9218 drova6gmue3mm92vp8gpqgrv5t Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241107@174326.9227 drova6gmue3mm92vp8gpqgrv5t Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241107@174326.9239 drova6gmue3mm92vp8gpqgrv5t Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@174326.9254 drova6gmue3mm92vp8gpqgrv5t Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241107@174326.9267 drova6gmue3mm92vp8gpqgrv5t Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut672cf52605672cfc3ee1','aut672cf22507672cfc3e3a' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241107@174326.9271 drova6gmue3mm92vp8gpqgrv5t Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@174326.9287 drova6gmue3mm92vp8gpqgrv5t Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241107@174326.9321 drova6gmue3mm92vp8gpqgrv5t Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut672cf52605672cfc3ee1',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut672cf22507672cfc3e3a' ,0,0 ,2,23.00,120000,?,?,?)
20241107@174326.9595 drova6gmue3mm92vp8gpqgrv5t Query : use flama_phc
20241107@174326.9598 drova6gmue3mm92vp8gpqgrv5t Query : select st.usalote valor from st where st.ref = '324.686.00.01'
20241107@174326.9620 drova6gmue3mm92vp8gpqgrv5t 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.686.00.01'
20241107@174326.9790 drova6gmue3mm92vp8gpqgrv5t Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@174326.9807 drova6gmue3mm92vp8gpqgrv5t Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241107@174326.9833 drova6gmue3mm92vp8gpqgrv5t Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@174326.9847 drova6gmue3mm92vp8gpqgrv5t Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241107@174326.9856 drova6gmue3mm92vp8gpqgrv5t Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241107@174326.9868 drova6gmue3mm92vp8gpqgrv5t Query : select sestamp valor from se where ref ='324.686.00.01' and lote = 'r2400127100a'
20241107@174326.9881 drova6gmue3mm92vp8gpqgrv5t Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@174326.9896 drova6gmue3mm92vp8gpqgrv5t Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241107@174326.9908 drova6gmue3mm92vp8gpqgrv5t Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut672cf37187672cfc3ef1','aut672cf22507672cfc3e3a' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241107@174326.9912 drova6gmue3mm92vp8gpqgrv5t Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@174326.9928 drova6gmue3mm92vp8gpqgrv5t Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241107@174326.9957 drova6gmue3mm92vp8gpqgrv5t Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut672cf37187672cfc3ef1',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',2.000 ,'aut672cf22507672cfc3e3a' ,0,0 ,2,23.00,140000,?,?,?,?,?)
20241107@174327.2360 drova6gmue3mm92vp8gpqgrv5t Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@174327.2530 drova6gmue3mm92vp8gpqgrv5t Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241107@174327.2790 drova6gmue3mm92vp8gpqgrv5t Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@174327.2940 drova6gmue3mm92vp8gpqgrv5t Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241107@174327.3020 drova6gmue3mm92vp8gpqgrv5t Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241107@174327.3160 drova6gmue3mm92vp8gpqgrv5t Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@174327.3300 drova6gmue3mm92vp8gpqgrv5t Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241107@174327.3430 drova6gmue3mm92vp8gpqgrv5t Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut672cf53957672cfc3f07','aut672cf22507672cfc3e3a' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241107@174327.3470 drova6gmue3mm92vp8gpqgrv5t Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241107@174327.3620 drova6gmue3mm92vp8gpqgrv5t Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241107@174327.3890 drova6gmue3mm92vp8gpqgrv5t Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut672cf53957672cfc3f07',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut672cf22507672cfc3e3a' ,0,0 ,2,23.00,150000,?,?,?)
20241107@174327.6620 drova6gmue3mm92vp8gpqgrv5t Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut672cf22507672cfc3e3a','2407380','wait',39,'adm09112754980.682000002')
20241107@174327.7400 drova6gmue3mm92vp8gpqgrv5t Query : use flama_phc
20241107@174327.7430 drova6gmue3mm92vp8gpqgrv5t Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20241107@174327.7760 drova6gmue3mm92vp8gpqgrv5t Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='3176';
20241107@174327.8100 drova6gmue3mm92vp8gpqgrv5t Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='3176';
20241107@174327.8580 drova6gmue3mm92vp8gpqgrv5t Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='3176';
20241107@174327.8890 drova6gmue3mm92vp8gpqgrv5t Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='3176';

20241108@085203.9553 t41dcnq08fdbkmtmtp3hklsa7j Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='3177';
20241108@085203.9621 t41dcnq08fdbkmtmtp3hklsa7j Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='3177';
20241108@085203.9692 t41dcnq08fdbkmtmtp3hklsa7j Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='3177';
20241108@085203.9888 t41dcnq08fdbkmtmtp3hklsa7j Query : use flama_phc
20241108@085203.9892 t41dcnq08fdbkmtmtp3hklsa7j Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20241108@085203.9986 t41dcnq08fdbkmtmtp3hklsa7j Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.4980.00.1'
20241108@085204.1180 t41dcnq08fdbkmtmtp3hklsa7j Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =005 and bo.boano =2024 and bo.obrano = 0000545 and bi.ref ='324.4980.00.1' and bi.lordem =70000
20241108@085204.6800 t41dcnq08fdbkmtmtp3hklsa7j 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 = 'az24110751484,524000007 ' 
20241108@085204.1344 t41dcnq08fdbkmtmtp3hklsa7j Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '325.1670.3015'
20241108@085204.1466 t41dcnq08fdbkmtmtp3hklsa7j Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =005 and bo.boano =2024 and bo.obrano = 0000545 and bi.ref ='325.1670.3015' and bi.lordem =180000
20241108@085204.1795 t41dcnq08fdbkmtmtp3hklsa7j 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 = 'az24110751896,953000018 ' 
20241108@085204.2164 t41dcnq08fdbkmtmtp3hklsa7j Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '304.4320.00.1'
20241108@085204.2281 t41dcnq08fdbkmtmtp3hklsa7j Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =005 and bo.boano =2024 and bo.obrano = 0000545 and bi.ref ='304.4320.00.1' and bi.lordem =160000
20241108@085204.2623 t41dcnq08fdbkmtmtp3hklsa7j 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 = 'az24110751822,383000016 ' 
20241108@085204.2934 t41dcnq08fdbkmtmtp3hklsa7j Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.1461.00.1'
20241108@085204.3053 t41dcnq08fdbkmtmtp3hklsa7j Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =005 and bo.boano =2024 and bo.obrano = 0000545 and bi.ref ='324.1461.00.1' and bi.lordem =200000
20241108@085204.3428 t41dcnq08fdbkmtmtp3hklsa7j 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 = 'az24110751918,076000020 ' 
20241108@085204.3762 t41dcnq08fdbkmtmtp3hklsa7j Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '304.421.00.04'
20241108@085204.3882 t41dcnq08fdbkmtmtp3hklsa7j Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =005 and bo.boano =2024 and bo.obrano = 0000545 and bi.ref ='304.421.00.04' and bi.lordem =40000
20241108@085204.4194 t41dcnq08fdbkmtmtp3hklsa7j 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 = 'az24110751433,417000004 ' 
20241108@085204.4564 t41dcnq08fdbkmtmtp3hklsa7j Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '304.422.00.07'
20241108@085204.4682 t41dcnq08fdbkmtmtp3hklsa7j Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =005 and bo.boano =2024 and bo.obrano = 0000545 and bi.ref ='304.422.00.07' and bi.lordem =210000
20241108@085204.5107 t41dcnq08fdbkmtmtp3hklsa7j 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 = 'az24110751924,428000021 ' 
20241108@085204.5421 t41dcnq08fdbkmtmtp3hklsa7j Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '304.421.00.04'
20241108@085204.5440 t41dcnq08fdbkmtmtp3hklsa7j Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =005 and bo.boano =2024 and bo.obrano = 0000545 and bi.ref ='304.421.00.04' and bi.lordem =30000
20241108@085204.5776 t41dcnq08fdbkmtmtp3hklsa7j 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 = 'az24110751433,259000003 ' 
20241108@085204.6096 t41dcnq08fdbkmtmtp3hklsa7j Query : use flama_phc
20241108@085204.6100 t41dcnq08fdbkmtmtp3hklsa7j Query : select top 1 1 valor from ts where ts.ndos = 61
20241108@085204.6197 t41dcnq08fdbkmtmtp3hklsa7j Query : use flama_phc
20241108@085204.6200 t41dcnq08fdbkmtmtp3hklsa7j 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')
20241108@085204.6272 t41dcnq08fdbkmtmtp3hklsa7j 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
20241108@085204.6438 t41dcnq08fdbkmtmtp3hklsa7j Query : use flama_phc
20241108@085204.6441 t41dcnq08fdbkmtmtp3hklsa7j Query : select top 1 ~inactivo valor from fl where no = '2' and estab = 2 order by inactivo desc
20241108@085204.6557 t41dcnq08fdbkmtmtp3hklsa7j Query : use flama_phc
20241108@085204.6560 t41dcnq08fdbkmtmtp3hklsa7j Query : select top 1 errorresult result ,errornumber errornumber ,descriptionpt description ,isnull(descriptionen,'') descriptionen ,isnull(descriptionfr,'') descriptionfr from wserrorcodes where errornumber = -230
20241108@085204.6641 t41dcnq08fdbkmtmtp3hklsa7j Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='3177';
20241108@085204.6703 t41dcnq08fdbkmtmtp3hklsa7j Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='3177';
20241108@090639.5880 gkse5d4grj4qe4aianmiro363o Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20241108@090639.5894 gkse5d4grj4qe4aianmiro363o Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20241108@090639.5983 gkse5d4grj4qe4aianmiro363o Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='3178';
20241108@090639.6060 gkse5d4grj4qe4aianmiro363o Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='3178';
20241108@090639.6123 gkse5d4grj4qe4aianmiro363o Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='3178';
20241108@090639.6171 gkse5d4grj4qe4aianmiro363o Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='3178';
20241108@090639.6241 gkse5d4grj4qe4aianmiro363o Query : use flama_phc
20241108@090639.6247 gkse5d4grj4qe4aianmiro363o Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20241108@090639.6362 gkse5d4grj4qe4aianmiro363o Query : use flama_phc
20241108@090639.6367 gkse5d4grj4qe4aianmiro363o Query : select no, estab,szadrsdesc from szadrs where u_coddest=4740
20241108@090639.6526 gkse5d4grj4qe4aianmiro363o Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '304.422.00.07'
20241108@090639.6701 gkse5d4grj4qe4aianmiro363o Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2073 and bo.obrano = 2407379 and bi.ref ='304.422.00.07' and bi.lordem =1
20241108@090639.7037 gkse5d4grj4qe4aianmiro363o Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '304.422.00.07'
20241108@090639.7067 gkse5d4grj4qe4aianmiro363o Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2073 and bo.obrano = 2407379 and bi.ref ='304.422.00.07' and bi.lordem =1
20241108@090639.7087 gkse5d4grj4qe4aianmiro363o Query : use flama_phc
20241108@090639.7092 gkse5d4grj4qe4aianmiro363o Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20241108@090639.7337 gkse5d4grj4qe4aianmiro363o Query : use flama_phc
20241108@090639.7343 gkse5d4grj4qe4aianmiro363o Query : select top 1 1 valor from td where td.ndoc = 39
20241108@090639.7461 gkse5d4grj4qe4aianmiro363o Query : use flama_phc
20241108@090639.7466 gkse5d4grj4qe4aianmiro363o 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')
20241108@090639.7500 gkse5d4grj4qe4aianmiro363o 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
20241108@090639.7675 gkse5d4grj4qe4aianmiro363o Query : use flama_phc
20241108@090639.7679 gkse5d4grj4qe4aianmiro363o Query : select top 1 ~inactivo valor from cl where no = '100810' and estab = 0 order by inactivo desc
20241108@090639.7814 gkse5d4grj4qe4aianmiro363o Query : use flama_phc
20241108@090639.7818 gkse5d4grj4qe4aianmiro363o Query : select top 1 tipodoc,regrd from td where ndoc = 39
20241108@090639.7922 gkse5d4grj4qe4aianmiro363o Query : use flama_phc
20241108@090639.7926 gkse5d4grj4qe4aianmiro363o Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20241108@090639.8005 gkse5d4grj4qe4aianmiro363o Query : use flama_phc
20241108@090639.8008 gkse5d4grj4qe4aianmiro363o Query : select szadrsstamp valor from szadrs where szadrsdesc='100810 - worten-equipamentos para o lar,sa.'
20241108@090639.8059 gkse5d4grj4qe4aianmiro363o Query : use flama_phc
20241108@090639.8062 gkse5d4grj4qe4aianmiro363o Query : select 1 valor from td where ndoc = 39
20241108@090639.8150 gkse5d4grj4qe4aianmiro363o Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20241108@090639.8228 gkse5d4grj4qe4aianmiro363o Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241108@090639.8596 gkse5d4grj4qe4aianmiro363o Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20241108@090639.8675 gkse5d4grj4qe4aianmiro363o Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241108@090639.8692 gkse5d4grj4qe4aianmiro363o Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20241108@090639.8726 gkse5d4grj4qe4aianmiro363o Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241108@090639.8742 gkse5d4grj4qe4aianmiro363o Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20241108@090639.8758 gkse5d4grj4qe4aianmiro363o Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20241108@090639.9127 gkse5d4grj4qe4aianmiro363o Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20241108@090639.9237 gkse5d4grj4qe4aianmiro363o Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241108@090639.9255 gkse5d4grj4qe4aianmiro363o Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20241108@090639.9300 gkse5d4grj4qe4aianmiro363o Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut672dd71726672dd49fd5' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20241108@090639.9679 gkse5d4grj4qe4aianmiro363o Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241108@090639.9698 gkse5d4grj4qe4aianmiro363o Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20241108@090639.9741 gkse5d4grj4qe4aianmiro363o Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20241108@090639.9861 gkse5d4grj4qe4aianmiro363o Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20241108@090639.9966 gkse5d4grj4qe4aianmiro363o Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20241108@090640.6700 gkse5d4grj4qe4aianmiro363o Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20241108@090640.1880 gkse5d4grj4qe4aianmiro363o Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20241108@090640.3540 gkse5d4grj4qe4aianmiro363o Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20241108@090640.4620 gkse5d4grj4qe4aianmiro363o Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut672dd71726672dd49fd5',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20241108@090640.1134 gkse5d4grj4qe4aianmiro363o Query : select top 1 fno valor from wsftdata order by fno desc
20241108@090640.2910 gkse5d4grj4qe4aianmiro363o Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241108@090640.2933 gkse5d4grj4qe4aianmiro363o Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20241108@090640.2959 gkse5d4grj4qe4aianmiro363o Query : select 'normal' from dummy
20241108@090640.3013 gkse5d4grj4qe4aianmiro363o Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut672dd71726672dd49fd5',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',1746,100810,0,'2024-11-08',39,'euro',0,0,2024 ,?,?)
20241108@090640.3528 gkse5d4grj4qe4aianmiro363o Query : use flama_phc
20241108@090640.3533 gkse5d4grj4qe4aianmiro363o Query : select st.usalote valor from st where st.ref = '304.422.00.07'
20241108@090640.3665 gkse5d4grj4qe4aianmiro363o 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.422.00.07'
20241108@090640.3827 gkse5d4grj4qe4aianmiro363o Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241108@090640.3844 gkse5d4grj4qe4aianmiro363o Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241108@090640.3875 gkse5d4grj4qe4aianmiro363o Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241108@090640.3891 gkse5d4grj4qe4aianmiro363o Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241108@090640.3902 gkse5d4grj4qe4aianmiro363o Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241108@090640.3948 gkse5d4grj4qe4aianmiro363o Query : select sestamp valor from se where ref ='304.422.00.07' and lote = '241004'
20241108@090640.4026 gkse5d4grj4qe4aianmiro363o Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241108@090640.4043 gkse5d4grj4qe4aianmiro363o Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241108@090640.4067 gkse5d4grj4qe4aianmiro363o Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut672dd53025672dd4a062','aut672dd71726672dd49fd5' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241108@090640.4127 gkse5d4grj4qe4aianmiro363o Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241108@090640.4145 gkse5d4grj4qe4aianmiro363o Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241108@090640.4182 gkse5d4grj4qe4aianmiro363o Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut672dd53025672dd4a062',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',68.000 ,'aut672dd71726672dd49fd5' ,0,0 ,2,23.00,10000,?,?,?,?,?)
20241108@090640.4798 gkse5d4grj4qe4aianmiro363o Query : use flama_phc
20241108@090640.4802 gkse5d4grj4qe4aianmiro363o Query : select st.usalote valor from st where st.ref = '304.422.00.07'
20241108@090640.4825 gkse5d4grj4qe4aianmiro363o 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.422.00.07'
20241108@090640.4840 gkse5d4grj4qe4aianmiro363o Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241108@090640.4859 gkse5d4grj4qe4aianmiro363o Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241108@090640.4887 gkse5d4grj4qe4aianmiro363o Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241108@090640.4905 gkse5d4grj4qe4aianmiro363o Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241108@090640.4915 gkse5d4grj4qe4aianmiro363o Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241108@090640.4931 gkse5d4grj4qe4aianmiro363o Query : select sestamp valor from se where ref ='304.422.00.07' and lote = '241004'
20241108@090640.4946 gkse5d4grj4qe4aianmiro363o Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241108@090640.4965 gkse5d4grj4qe4aianmiro363o Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241108@090640.4980 gkse5d4grj4qe4aianmiro363o Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut672dd91622672dd4a078','aut672dd71726672dd49fd5' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241108@090640.4986 gkse5d4grj4qe4aianmiro363o Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241108@090640.5004 gkse5d4grj4qe4aianmiro363o Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241108@090640.5042 gkse5d4grj4qe4aianmiro363o Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut672dd91622672dd4a078',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',8.000 ,'aut672dd71726672dd49fd5' ,0,0 ,2,23.00,20000,?,?,?,?,?)
20241108@090640.5417 gkse5d4grj4qe4aianmiro363o Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut672dd71726672dd49fd5','2407379','wait',39,'adm09112754980.682000002')
20241108@090640.5521 gkse5d4grj4qe4aianmiro363o Query : use flama_phc
20241108@090640.5525 gkse5d4grj4qe4aianmiro363o Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20241108@090640.5556 gkse5d4grj4qe4aianmiro363o Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='3178';
20241108@090640.5595 gkse5d4grj4qe4aianmiro363o Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='3178';
20241108@090640.5643 gkse5d4grj4qe4aianmiro363o Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='3178';
20241108@090640.5680 gkse5d4grj4qe4aianmiro363o Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='3178';

20241108@093726.3020 i92d922uob3n3u52p2ogae6ru7 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='3179';
20241108@093726.5010 i92d922uob3n3u52p2ogae6ru7 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='3179';
20241108@093726.6320 i92d922uob3n3u52p2ogae6ru7 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='3179';
20241108@093726.7230 i92d922uob3n3u52p2ogae6ru7 Query : use flama_phc
20241108@093726.7630 i92d922uob3n3u52p2ogae6ru7 Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20241108@093726.1080 i92d922uob3n3u52p2ogae6ru7 Query : use flama_phc
20241108@093726.1105 i92d922uob3n3u52p2ogae6ru7 Query : select no, estab,szadrsdesc from szadrs where u_coddest=7778
20241108@093726.1258 i92d922uob3n3u52p2ogae6ru7 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'
20241108@093726.2153 i92d922uob3n3u52p2ogae6ru7 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'
20241108@093726.2886 i92d922uob3n3u52p2ogae6ru7 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '304.422.00.07'
20241108@093726.2943 i92d922uob3n3u52p2ogae6ru7 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '322.227.20.01'
20241108@093726.3219 i92d922uob3n3u52p2ogae6ru7 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '322.227.24.01'
20241108@093726.3451 i92d922uob3n3u52p2ogae6ru7 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '322.227.28.01'
20241108@093726.3696 i92d922uob3n3u52p2ogae6ru7 Query : use flama_phc
20241108@093726.3704 i92d922uob3n3u52p2ogae6ru7 Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20241108@093726.3784 i92d922uob3n3u52p2ogae6ru7 Query : use flama_phc
20241108@093726.3788 i92d922uob3n3u52p2ogae6ru7 Query : select top 1 1 valor from td where td.ndoc = 39
20241108@093726.3831 i92d922uob3n3u52p2ogae6ru7 Query : use flama_phc
20241108@093726.3835 i92d922uob3n3u52p2ogae6ru7 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')
20241108@093726.3911 i92d922uob3n3u52p2ogae6ru7 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
20241108@093726.4007 i92d922uob3n3u52p2ogae6ru7 Query : use flama_phc
20241108@093726.4015 i92d922uob3n3u52p2ogae6ru7 Query : select top 1 ~inactivo valor from cl where no = '200250' and estab = 0 order by inactivo desc
20241108@093726.4271 i92d922uob3n3u52p2ogae6ru7 Query : use flama_phc
20241108@093726.4289 i92d922uob3n3u52p2ogae6ru7 Query : select top 1 tipodoc,regrd from td where ndoc = 39
20241108@093726.4333 i92d922uob3n3u52p2ogae6ru7 Query : use flama_phc
20241108@093726.4339 i92d922uob3n3u52p2ogae6ru7 Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20241108@093726.4510 i92d922uob3n3u52p2ogae6ru7 Query : use flama_phc
20241108@093726.4518 i92d922uob3n3u52p2ogae6ru7 Query : select szadrsstamp valor from szadrs where szadrsdesc='bonfilex sa-entrega'
20241108@093726.4634 i92d922uob3n3u52p2ogae6ru7 Query : use flama_phc
20241108@093726.4637 i92d922uob3n3u52p2ogae6ru7 Query : select 1 valor from td where ndoc = 39
20241108@093726.4693 i92d922uob3n3u52p2ogae6ru7 Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20241108@093726.4792 i92d922uob3n3u52p2ogae6ru7 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241108@093726.4851 i92d922uob3n3u52p2ogae6ru7 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20241108@093726.4995 i92d922uob3n3u52p2ogae6ru7 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241108@093726.5024 i92d922uob3n3u52p2ogae6ru7 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20241108@093726.5093 i92d922uob3n3u52p2ogae6ru7 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241108@093726.5129 i92d922uob3n3u52p2ogae6ru7 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20241108@093726.5150 i92d922uob3n3u52p2ogae6ru7 Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20241108@093726.5305 i92d922uob3n3u52p2ogae6ru7 Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20241108@093726.5464 i92d922uob3n3u52p2ogae6ru7 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241108@093726.5504 i92d922uob3n3u52p2ogae6ru7 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20241108@093726.5534 i92d922uob3n3u52p2ogae6ru7 Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut672dd78480672ddbd67d' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20241108@093726.5866 i92d922uob3n3u52p2ogae6ru7 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241108@093726.6482 i92d922uob3n3u52p2ogae6ru7 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20241108@093726.7152 i92d922uob3n3u52p2ogae6ru7 Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20241108@093726.7177 i92d922uob3n3u52p2ogae6ru7 Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20241108@093726.7235 i92d922uob3n3u52p2ogae6ru7 Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20241108@093726.7309 i92d922uob3n3u52p2ogae6ru7 Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20241108@093726.7380 i92d922uob3n3u52p2ogae6ru7 Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20241108@093726.7400 i92d922uob3n3u52p2ogae6ru7 Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20241108@093726.7489 i92d922uob3n3u52p2ogae6ru7 Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut672dd78480672ddbd67d',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20241108@093726.8234 i92d922uob3n3u52p2ogae6ru7 Query : select top 1 fno valor from wsftdata order by fno desc
20241108@093726.8803 i92d922uob3n3u52p2ogae6ru7 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241108@093726.8872 i92d922uob3n3u52p2ogae6ru7 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20241108@093726.8899 i92d922uob3n3u52p2ogae6ru7 Query : select 'normal' from dummy
20241108@093726.8968 i92d922uob3n3u52p2ogae6ru7 Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut672dd78480672ddbd67d',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',1747,200250,0,'2024-11-08',39,'euro',0,0,2024 ,?,?)
20241108@093726.9968 i92d922uob3n3u52p2ogae6ru7 Query : use flama_phc
20241108@093726.9977 i92d922uob3n3u52p2ogae6ru7 Query : select st.usalote valor from st where st.ref = '304.4320.00.1'
20241108@093727.5440 i92d922uob3n3u52p2ogae6ru7 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'
20241108@093727.1319 i92d922uob3n3u52p2ogae6ru7 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241108@093727.1599 i92d922uob3n3u52p2ogae6ru7 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241108@093727.1787 i92d922uob3n3u52p2ogae6ru7 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241108@093727.1936 i92d922uob3n3u52p2ogae6ru7 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241108@093727.2045 i92d922uob3n3u52p2ogae6ru7 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241108@093727.2188 i92d922uob3n3u52p2ogae6ru7 Query : select sestamp valor from se where ref ='304.4320.00.1' and lote = '241183'
20241108@093727.2367 i92d922uob3n3u52p2ogae6ru7 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241108@093727.2470 i92d922uob3n3u52p2ogae6ru7 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241108@093727.2483 i92d922uob3n3u52p2ogae6ru7 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut672dd78170672ddbd739','aut672dd78480672ddbd67d' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241108@093727.2493 i92d922uob3n3u52p2ogae6ru7 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241108@093727.2725 i92d922uob3n3u52p2ogae6ru7 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241108@093727.2850 i92d922uob3n3u52p2ogae6ru7 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem) values ('aut672dd78170672ddbd739',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',8.000 ,'aut672dd78480672ddbd67d' ,0,0 ,2,23.00,10000,?,?,?,?)
20241108@093727.3375 i92d922uob3n3u52p2ogae6ru7 Query : use flama_phc
20241108@093727.3387 i92d922uob3n3u52p2ogae6ru7 Query : select st.usalote valor from st where st.ref = '304.4320.00.1'
20241108@093727.3426 i92d922uob3n3u52p2ogae6ru7 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'
20241108@093727.3462 i92d922uob3n3u52p2ogae6ru7 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241108@093727.3480 i92d922uob3n3u52p2ogae6ru7 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241108@093727.3526 i92d922uob3n3u52p2ogae6ru7 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241108@093727.3549 i92d922uob3n3u52p2ogae6ru7 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241108@093727.3560 i92d922uob3n3u52p2ogae6ru7 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241108@093727.3595 i92d922uob3n3u52p2ogae6ru7 Query : select sestamp valor from se where ref ='304.4320.00.1' and lote = '241183'
20241108@093727.3622 i92d922uob3n3u52p2ogae6ru7 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241108@093727.3693 i92d922uob3n3u52p2ogae6ru7 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241108@093727.3734 i92d922uob3n3u52p2ogae6ru7 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut672dd61843672ddbd758','aut672dd78480672ddbd67d' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241108@093727.3742 i92d922uob3n3u52p2ogae6ru7 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241108@093727.3767 i92d922uob3n3u52p2ogae6ru7 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241108@093727.3821 i92d922uob3n3u52p2ogae6ru7 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem) values ('aut672dd61843672ddbd758',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',56.000 ,'aut672dd78480672ddbd67d' ,0,0 ,2,23.00,20000,?,?,?,?)
20241108@093727.4168 i92d922uob3n3u52p2ogae6ru7 Query : use flama_phc
20241108@093727.4205 i92d922uob3n3u52p2ogae6ru7 Query : select st.usalote valor from st where st.ref = '304.422.00.07'
20241108@093727.4244 i92d922uob3n3u52p2ogae6ru7 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.422.00.07'
20241108@093727.4266 i92d922uob3n3u52p2ogae6ru7 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241108@093727.4285 i92d922uob3n3u52p2ogae6ru7 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241108@093727.4336 i92d922uob3n3u52p2ogae6ru7 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241108@093727.4359 i92d922uob3n3u52p2ogae6ru7 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241108@093727.4378 i92d922uob3n3u52p2ogae6ru7 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241108@093727.4435 i92d922uob3n3u52p2ogae6ru7 Query : select sestamp valor from se where ref ='304.422.00.07' and lote = '241004'
20241108@093727.4771 i92d922uob3n3u52p2ogae6ru7 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241108@093727.4790 i92d922uob3n3u52p2ogae6ru7 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241108@093727.4998 i92d922uob3n3u52p2ogae6ru7 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut672dd67401672ddbd774','aut672dd78480672ddbd67d' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241108@093727.5004 i92d922uob3n3u52p2ogae6ru7 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241108@093727.5210 i92d922uob3n3u52p2ogae6ru7 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241108@093727.5321 i92d922uob3n3u52p2ogae6ru7 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem) values ('aut672dd67401672ddbd774',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',12.000 ,'aut672dd78480672ddbd67d' ,0,0 ,2,23.00,30000,?,?,?,?)
20241108@093727.5658 i92d922uob3n3u52p2ogae6ru7 Query : use flama_phc
20241108@093727.5665 i92d922uob3n3u52p2ogae6ru7 Query : select st.usalote valor from st where st.ref = '322.227.20.01'
20241108@093727.5698 i92d922uob3n3u52p2ogae6ru7 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 = '322.227.20.01'
20241108@093727.5889 i92d922uob3n3u52p2ogae6ru7 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241108@093727.5942 i92d922uob3n3u52p2ogae6ru7 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241108@093727.5983 i92d922uob3n3u52p2ogae6ru7 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241108@093727.6039 i92d922uob3n3u52p2ogae6ru7 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241108@093727.6051 i92d922uob3n3u52p2ogae6ru7 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241108@093727.6074 i92d922uob3n3u52p2ogae6ru7 Query : select sestamp valor from se where ref ='322.227.20.01' and lote = 'r2200095100a'
20241108@093727.6112 i92d922uob3n3u52p2ogae6ru7 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241108@093727.6144 i92d922uob3n3u52p2ogae6ru7 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241108@093727.6173 i92d922uob3n3u52p2ogae6ru7 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut672dd31052672ddbd795','aut672dd78480672ddbd67d' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241108@093727.6194 i92d922uob3n3u52p2ogae6ru7 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241108@093727.6225 i92d922uob3n3u52p2ogae6ru7 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241108@093727.6272 i92d922uob3n3u52p2ogae6ru7 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem) values ('aut672dd31052672ddbd795',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',6.000 ,'aut672dd78480672ddbd67d' ,0,0 ,2,23.00,40000,?,?,?,?)
20241108@093727.6627 i92d922uob3n3u52p2ogae6ru7 Query : use flama_phc
20241108@093727.6631 i92d922uob3n3u52p2ogae6ru7 Query : select st.usalote valor from st where st.ref = '322.227.24.01'
20241108@093727.6672 i92d922uob3n3u52p2ogae6ru7 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 = '322.227.24.01'
20241108@093727.6933 i92d922uob3n3u52p2ogae6ru7 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241108@093727.6966 i92d922uob3n3u52p2ogae6ru7 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241108@093727.7048 i92d922uob3n3u52p2ogae6ru7 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241108@093727.7064 i92d922uob3n3u52p2ogae6ru7 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241108@093727.7125 i92d922uob3n3u52p2ogae6ru7 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241108@093727.7140 i92d922uob3n3u52p2ogae6ru7 Query : select sestamp valor from se where ref ='322.227.24.01' and lote = 'r2200095100a'
20241108@093727.7201 i92d922uob3n3u52p2ogae6ru7 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241108@093727.7274 i92d922uob3n3u52p2ogae6ru7 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241108@093727.7414 i92d922uob3n3u52p2ogae6ru7 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut672dd60828672ddbd7af','aut672dd78480672ddbd67d' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241108@093727.7438 i92d922uob3n3u52p2ogae6ru7 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241108@093727.8004 i92d922uob3n3u52p2ogae6ru7 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241108@093727.9141 i92d922uob3n3u52p2ogae6ru7 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem) values ('aut672dd60828672ddbd7af',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',6.000 ,'aut672dd78480672ddbd67d' ,0,0 ,2,23.00,50000,?,?,?,?)
20241108@093727.9604 i92d922uob3n3u52p2ogae6ru7 Query : use flama_phc
20241108@093727.9610 i92d922uob3n3u52p2ogae6ru7 Query : select st.usalote valor from st where st.ref = '322.227.28.01'
20241108@093727.9726 i92d922uob3n3u52p2ogae6ru7 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 = '322.227.28.01'
20241108@093728.3100 i92d922uob3n3u52p2ogae6ru7 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241108@093728.5100 i92d922uob3n3u52p2ogae6ru7 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241108@093728.1940 i92d922uob3n3u52p2ogae6ru7 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241108@093728.2520 i92d922uob3n3u52p2ogae6ru7 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241108@093728.3170 i92d922uob3n3u52p2ogae6ru7 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241108@093728.3610 i92d922uob3n3u52p2ogae6ru7 Query : select sestamp valor from se where ref ='322.227.28.01' and lote = 'r2200095100a'
20241108@093728.4490 i92d922uob3n3u52p2ogae6ru7 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241108@093728.5140 i92d922uob3n3u52p2ogae6ru7 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241108@093728.5470 i92d922uob3n3u52p2ogae6ru7 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut672dd30204672ddbd80a','aut672dd78480672ddbd67d' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241108@093728.5520 i92d922uob3n3u52p2ogae6ru7 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241108@093728.5880 i92d922uob3n3u52p2ogae6ru7 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241108@093728.7500 i92d922uob3n3u52p2ogae6ru7 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem) values ('aut672dd30204672ddbd80a',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',6.000 ,'aut672dd78480672ddbd67d' ,0,0 ,2,23.00,60000,?,?,?,?)
20241108@093728.1212 i92d922uob3n3u52p2ogae6ru7 Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut672dd78480672ddbd67d','2407360','wait',39,'adm09112754980.682000002')
20241108@093728.1308 i92d922uob3n3u52p2ogae6ru7 Query : use flama_phc
20241108@093728.1333 i92d922uob3n3u52p2ogae6ru7 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20241108@093728.1384 i92d922uob3n3u52p2ogae6ru7 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='3179';
20241108@093728.1452 i92d922uob3n3u52p2ogae6ru7 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='3179';
20241108@093728.1518 i92d922uob3n3u52p2ogae6ru7 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='3179';
20241108@093728.1564 i92d922uob3n3u52p2ogae6ru7 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='3179';
20241108@095204.1124 lo3egtek5h16m911iinet2tr7n Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20241108@095204.1138 lo3egtek5h16m911iinet2tr7n Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20241108@095204.1210 lo3egtek5h16m911iinet2tr7n Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='3180';
20241108@095204.1275 lo3egtek5h16m911iinet2tr7n Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='3180';
20241108@095204.1339 lo3egtek5h16m911iinet2tr7n Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='3180';
20241108@095204.1379 lo3egtek5h16m911iinet2tr7n Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='3180';
20241108@095204.1425 lo3egtek5h16m911iinet2tr7n Query : use flama_phc
20241108@095204.1430 lo3egtek5h16m911iinet2tr7n Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20241108@095204.1503 lo3egtek5h16m911iinet2tr7n Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.1608.00.1'
20241108@095204.1632 lo3egtek5h16m911iinet2tr7n 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 = 2400237 and bi.ref ='324.1608.00.1' and bi.lordem =10000
20241108@095204.2023 lo3egtek5h16m911iinet2tr7n 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 = 'cps24022934717,021000004 ' 
20241108@095204.2364 lo3egtek5h16m911iinet2tr7n Query : use flama_phc
20241108@095204.2368 lo3egtek5h16m911iinet2tr7n Query : select top 1 1 valor from ts where ts.ndos = 61
20241108@095204.2404 lo3egtek5h16m911iinet2tr7n Query : use flama_phc
20241108@095204.2408 lo3egtek5h16m911iinet2tr7n 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')
20241108@095204.2439 lo3egtek5h16m911iinet2tr7n 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
20241108@095204.2480 lo3egtek5h16m911iinet2tr7n Query : use flama_phc
20241108@095204.2484 lo3egtek5h16m911iinet2tr7n Query : select top 1 ~inactivo valor from fl where no = '202090' and estab = 00 order by inactivo desc
20241108@095204.2618 lo3egtek5h16m911iinet2tr7n Query : use flama_phc
20241108@095204.2621 lo3egtek5h16m911iinet2tr7n Query : select 1 valor from ts where ndos = 61
20241108@095204.2703 lo3egtek5h16m911iinet2tr7n Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241108@095204.2721 lo3egtek5h16m911iinet2tr7n Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bo' and documentnumber = 61
20241108@095204.2734 lo3egtek5h16m911iinet2tr7n Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241108@095204.2753 lo3egtek5h16m911iinet2tr7n Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bo2' and documentnumber = 61
20241108@095204.2765 lo3egtek5h16m911iinet2tr7n Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241108@095204.2786 lo3egtek5h16m911iinet2tr7n Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bo3' and documentnumber = 61
20241108@095204.2798 lo3egtek5h16m911iinet2tr7n 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
20241108@095204.2933 lo3egtek5h16m911iinet2tr7n Query : select top 1 bo.obrano valor from bo bo where bo.ndos = 61 and boano=2024 order by obrano desc
20241108@095204.3037 lo3egtek5h16m911iinet2tr7n Query : select top 1 bo.obrano valor from bo bo where bo.ndos = 61 and boano=2024 order by obrano desc
20241108@095204.3059 lo3egtek5h16m911iinet2tr7n Query : use flama_phc
20241108@095204.3066 lo3egtek5h16m911iinet2tr7n Query : select top 1 no,estab,nome, morada, local,codpost,ncont,pncont,pais,inactivo,motiseimp,codmotiseimp from fl where no='202090' and estab=00
20241108@095204.3208 lo3egtek5h16m911iinet2tr7n Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241108@095204.3235 lo3egtek5h16m911iinet2tr7n Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bo3' and documentnumber = 61
20241108@095204.3252 lo3egtek5h16m911iinet2tr7n Query : insert into bo3 (bo3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut672dd70534672ddf444a',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut')
20241108@095204.3420 lo3egtek5h16m911iinet2tr7n Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241108@095204.3442 lo3egtek5h16m911iinet2tr7n Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bo2' and documentnumber = 61
20241108@095204.3457 lo3egtek5h16m911iinet2tr7n Query : insert into bo2 (bo2stamp, tiposaft, idserie,cambio,cambiofixo,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut672dd70534672ddf444a','--','bo',7.8190661478599221789 ,1,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut')
20241108@095204.3657 lo3egtek5h16m911iinet2tr7n Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241108@095204.3686 lo3egtek5h16m911iinet2tr7n Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bo' and documentnumber = 61
20241108@095204.3702 lo3egtek5h16m911iinet2tr7n 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 ('aut672dd70534672ddf444a','guia r. fornecedor','2024-11-08',61,2403395,?,?,?,?,?,?,?,?,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')
20241108@095204.6476 lo3egtek5h16m911iinet2tr7n Query : use flama_phc
20241108@095204.6481 lo3egtek5h16m911iinet2tr7n Query : select st.usalote valor from st where st.ref = '324.1608.00.1'
20241108@095204.6514 lo3egtek5h16m911iinet2tr7n Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.1608.00.1'
20241108@095204.6680 lo3egtek5h16m911iinet2tr7n Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241108@095204.6702 lo3egtek5h16m911iinet2tr7n Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 61
20241108@095204.6719 lo3egtek5h16m911iinet2tr7n Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241108@095204.6736 lo3egtek5h16m911iinet2tr7n Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 61
20241108@095204.6746 lo3egtek5h16m911iinet2tr7n Query : select sestamp valor from se where ref ='324.1608.00.1' and lote = 'r2400237100a'
20241108@095204.6766 lo3egtek5h16m911iinet2tr7n Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241108@095204.6782 lo3egtek5h16m911iinet2tr7n Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241108@095204.6800 lo3egtek5h16m911iinet2tr7n Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 61
20241108@095204.6816 lo3egtek5h16m911iinet2tr7n Query : insert into bi2 (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut672dd38138672ddf44a5','aut672dd70534672ddf444a',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 = 'aut672dd70534672ddf444a'
20241108@095204.7007 lo3egtek5h16m911iinet2tr7n Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241108@095204.7027 lo3egtek5h16m911iinet2tr7n Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 61
20241108@095204.7048 lo3egtek5h16m911iinet2tr7n 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 'aut672dd38138672ddf44a5',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut',bo.obrano, 1206, 1206*.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 ,10.28,10.28*200.48,10.28,10.28*200.48 ,0,0,'un',' ' ,bo.marcada,1 ,10.28*1206,10.28*1206*200.48 ,12.576000,12.576000*200.48 ,12.576000,12.576000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,10.28,10.28*200.48,10.28*1206,10.28*1206*200.48,'cps24022934717,021000004 ',80.38,80.38*1206,80.38,80.38*1206,?,?,?,4 from bo bo where bo.bostamp = 'aut672dd70534672ddf444a'
20241108@095215.1173 lo3egtek5h16m911iinet2tr7n Query : use flama_phc
20241108@095215.1179 lo3egtek5h16m911iinet2tr7n Query : declare @bostamp varchar(25) = 'aut672dd70534672ddf444a' ,@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 
20241108@095227.6300 lo3egtek5h16m911iinet2tr7n Query : use flama_phc
20241108@095227.6330 lo3egtek5h16m911iinet2tr7n Query : select 1 valor from bo where bo.bostamp = 'aut672dd70534672ddf444a'
20241108@095227.7520 lo3egtek5h16m911iinet2tr7n 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) = 'aut672dd70534672ddf444a' 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 
20241108@095229.3979 lo3egtek5h16m911iinet2tr7n Query : use flama_phc
20241108@095229.3983 lo3egtek5h16m911iinet2tr7n Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20241108@095229.4037 lo3egtek5h16m911iinet2tr7n Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='3180';
20241108@095229.4122 lo3egtek5h16m911iinet2tr7n Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='3180';

20241108@105228.3260 incr0pn06skrk4otr8sh8g3nd0 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='3181';
20241108@105228.1751 incr0pn06skrk4otr8sh8g3nd0 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='3181';
20241108@105228.2071 incr0pn06skrk4otr8sh8g3nd0 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='3181';
20241108@105228.2335 incr0pn06skrk4otr8sh8g3nd0 Query : use flama_phc
20241108@105228.2377 incr0pn06skrk4otr8sh8g3nd0 Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20241108@105228.2996 incr0pn06skrk4otr8sh8g3nd0 Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.645.00.01'
20241108@105228.3468 incr0pn06skrk4otr8sh8g3nd0 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 = 2400228 and bi.ref ='324.645.00.01' and bi.lordem =20000
20241108@105228.5075 incr0pn06skrk4otr8sh8g3nd0 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 = 'cps24022845647,858000002 ' 
20241108@105228.6421 incr0pn06skrk4otr8sh8g3nd0 Query : use flama_phc
20241108@105228.6463 incr0pn06skrk4otr8sh8g3nd0 Query : select top 1 1 valor from ts where ts.ndos = 61
20241108@105228.6834 incr0pn06skrk4otr8sh8g3nd0 Query : use flama_phc
20241108@105228.6875 incr0pn06skrk4otr8sh8g3nd0 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')
20241108@105228.7330 incr0pn06skrk4otr8sh8g3nd0 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
20241108@105228.9803 incr0pn06skrk4otr8sh8g3nd0 Query : use flama_phc
20241108@105228.9848 incr0pn06skrk4otr8sh8g3nd0 Query : select top 1 ~inactivo valor from fl where no = '202090' and estab = 00 order by inactivo desc
20241108@105229.3920 incr0pn06skrk4otr8sh8g3nd0 Query : use flama_phc
20241108@105229.4360 incr0pn06skrk4otr8sh8g3nd0 Query : select 1 valor from ts where ndos = 61
20241108@105229.6870 incr0pn06skrk4otr8sh8g3nd0 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241108@105229.9530 incr0pn06skrk4otr8sh8g3nd0 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bo' and documentnumber = 61
20241108@105229.1207 incr0pn06skrk4otr8sh8g3nd0 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241108@105229.1462 incr0pn06skrk4otr8sh8g3nd0 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bo2' and documentnumber = 61
20241108@105229.1627 incr0pn06skrk4otr8sh8g3nd0 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241108@105229.2056 incr0pn06skrk4otr8sh8g3nd0 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bo3' and documentnumber = 61
20241108@105229.2483 incr0pn06skrk4otr8sh8g3nd0 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
20241108@105229.3603 incr0pn06skrk4otr8sh8g3nd0 Query : select top 1 bo.obrano valor from bo bo where bo.ndos = 61 and boano=2024 order by obrano desc
20241108@105229.3941 incr0pn06skrk4otr8sh8g3nd0 Query : select top 1 bo.obrano valor from bo bo where bo.ndos = 61 and boano=2024 order by obrano desc
20241108@105229.4196 incr0pn06skrk4otr8sh8g3nd0 Query : use flama_phc
20241108@105229.4279 incr0pn06skrk4otr8sh8g3nd0 Query : select top 1 no,estab,nome, morada, local,codpost,ncont,pncont,pais,inactivo,motiseimp,codmotiseimp from fl where no='202090' and estab=00
20241108@105229.4569 incr0pn06skrk4otr8sh8g3nd0 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241108@105229.4821 incr0pn06skrk4otr8sh8g3nd0 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bo3' and documentnumber = 61
20241108@105229.5029 incr0pn06skrk4otr8sh8g3nd0 Query : insert into bo3 (bo3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut672de03672672ded6d66',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut')
20241108@105229.5073 incr0pn06skrk4otr8sh8g3nd0 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241108@105229.5325 incr0pn06skrk4otr8sh8g3nd0 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bo2' and documentnumber = 61
20241108@105229.5532 incr0pn06skrk4otr8sh8g3nd0 Query : insert into bo2 (bo2stamp, tiposaft, idserie,cambio,cambiofixo,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut672de03672672ded6d66','--','bo',7.8188920454545454545 ,1,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut')
20241108@105229.5577 incr0pn06skrk4otr8sh8g3nd0 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241108@105229.5829 incr0pn06skrk4otr8sh8g3nd0 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bo' and documentnumber = 61
20241108@105229.6153 incr0pn06skrk4otr8sh8g3nd0 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 ('aut672de03672672ded6d66','guia r. fornecedor','2024-11-08',61,2403400,?,?,?,?,?,?,?,?,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')
20241108@105234.8382 incr0pn06skrk4otr8sh8g3nd0 Query : use flama_phc
20241108@105234.8514 incr0pn06skrk4otr8sh8g3nd0 Query : select st.usalote valor from st where st.ref = '324.645.00.01'
20241108@105234.9470 incr0pn06skrk4otr8sh8g3nd0 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.645.00.01'
20241108@105235.2500 incr0pn06skrk4otr8sh8g3nd0 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241108@105235.2840 incr0pn06skrk4otr8sh8g3nd0 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 61
20241108@105235.5320 incr0pn06skrk4otr8sh8g3nd0 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241108@105235.7870 incr0pn06skrk4otr8sh8g3nd0 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 61
20241108@105235.9540 incr0pn06skrk4otr8sh8g3nd0 Query : select sestamp valor from se where ref ='324.645.00.01' and lote = 'r2400228200a'
20241108@105235.1177 incr0pn06skrk4otr8sh8g3nd0 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241108@105235.1430 incr0pn06skrk4otr8sh8g3nd0 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'se' and documentnumber = 0
20241108@105235.1597 incr0pn06skrk4otr8sh8g3nd0 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241108@105235.1849 incr0pn06skrk4otr8sh8g3nd0 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'se' and documentnumber = 0
20241108@105235.2059 incr0pn06skrk4otr8sh8g3nd0 Query : insert into se (sestamp,ref, lote, data,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut672de17743672ded7326',?,?,'20241108',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut;','aut;')
20241108@105235.3354 incr0pn06skrk4otr8sh8g3nd0 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241108@105235.3601 incr0pn06skrk4otr8sh8g3nd0 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241108@105235.3854 incr0pn06skrk4otr8sh8g3nd0 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 61
20241108@105235.4067 incr0pn06skrk4otr8sh8g3nd0 Query : insert into bi2 (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut672de36659672ded7357','aut672de03672672ded6d66',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 = 'aut672de03672672ded6d66'
20241108@105235.4396 incr0pn06skrk4otr8sh8g3nd0 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241108@105235.4899 incr0pn06skrk4otr8sh8g3nd0 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 61
20241108@105235.5247 incr0pn06skrk4otr8sh8g3nd0 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 'aut672de36659672ded7357',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut',bo.obrano, 1176, 1176*.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 ,14.08,14.08*200.48,14.08,14.08*200.48 ,0,0,'un ',' ' ,bo.marcada,1 ,14.08*1176,14.08*1176*200.48 ,18.607000,18.607000*200.48 ,18.607000,18.607000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,14.08,14.08*200.48,14.08*1176,14.08*1176*200.48,'cps24022845647,858000002 ',110.09,110.09*1176,110.09,110.09*1176,?,?,?,4 from bo bo where bo.bostamp = 'aut672de03672672ded6d66'
20241108@105246.6712 incr0pn06skrk4otr8sh8g3nd0 Query : use flama_phc
20241108@105246.6786 incr0pn06skrk4otr8sh8g3nd0 Query : declare @bostamp varchar(25) = 'aut672de03672672ded6d66' ,@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 
