20240814@175147.8576 bf75lnjitl0b0itfa01371ei7r Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240814@175147.8613 bf75lnjitl0b0itfa01371ei7r Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem) values ('aut66bce7964666bce0a3cf',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',12.000 ,'aut66bce6991366bce0a149' ,0,0 ,2,23.00,460000,?,?,?,?)
20240814@175147.8882 bf75lnjitl0b0itfa01371ei7r Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut66bce6991366bce0a149','2405402','wait',39,'adm09112754980.682000002')
20240814@175147.8994 bf75lnjitl0b0itfa01371ei7r Query : use flama_phc
20240814@175147.8998 bf75lnjitl0b0itfa01371ei7r Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240814@175147.9035 bf75lnjitl0b0itfa01371ei7r Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1543';
20240814@175147.9069 bf75lnjitl0b0itfa01371ei7r Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1543';
20240814@175147.9115 bf75lnjitl0b0itfa01371ei7r Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1543';
20240814@175147.9142 bf75lnjitl0b0itfa01371ei7r Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1543';
20240814@175147.9730 7dasket4rgv3s3st7ddi4bcjeo Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240814@175147.9742 7dasket4rgv3s3st7ddi4bcjeo Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240814@175147.9800 7dasket4rgv3s3st7ddi4bcjeo Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1544';
20240814@175147.9858 7dasket4rgv3s3st7ddi4bcjeo Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1544';
20240814@175147.9917 7dasket4rgv3s3st7ddi4bcjeo Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1544';
20240814@175147.9956 7dasket4rgv3s3st7ddi4bcjeo Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1544';
20240814@175148.1100 7dasket4rgv3s3st7ddi4bcjeo Query : use flama_phc
20240814@175148.1400 7dasket4rgv3s3st7ddi4bcjeo Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240814@175148.1080 7dasket4rgv3s3st7ddi4bcjeo Query : use flama_phc
20240814@175148.1110 7dasket4rgv3s3st7ddi4bcjeo Query : select no, estab,szadrsdesc from szadrs where u_coddest=4743
20240814@175148.1570 7dasket4rgv3s3st7ddi4bcjeo Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1690.00.1'
20240814@175148.1970 7dasket4rgv3s3st7ddi4bcjeo Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1690.00.1'
20240814@175148.2190 7dasket4rgv3s3st7ddi4bcjeo Query : use flama_phc
20240814@175148.2230 7dasket4rgv3s3st7ddi4bcjeo Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20240814@175148.2590 7dasket4rgv3s3st7ddi4bcjeo Query : use flama_phc
20240814@175148.2630 7dasket4rgv3s3st7ddi4bcjeo Query : select top 1 1 valor from td where td.ndoc = 39
20240814@175148.3080 7dasket4rgv3s3st7ddi4bcjeo Query : use flama_phc
20240814@175148.3110 7dasket4rgv3s3st7ddi4bcjeo 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')
20240814@175148.3460 7dasket4rgv3s3st7ddi4bcjeo 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
20240814@175148.3870 7dasket4rgv3s3st7ddi4bcjeo Query : use flama_phc
20240814@175148.3910 7dasket4rgv3s3st7ddi4bcjeo Query : select top 1 ~inactivo valor from cl where no = '101597' and estab = 0 order by inactivo desc
20240814@175148.4330 7dasket4rgv3s3st7ddi4bcjeo Query : use flama_phc
20240814@175148.4370 7dasket4rgv3s3st7ddi4bcjeo Query : select top 1 tipodoc,regrd from td where ndoc = 39
20240814@175148.4720 7dasket4rgv3s3st7ddi4bcjeo Query : use flama_phc
20240814@175148.4760 7dasket4rgv3s3st7ddi4bcjeo Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20240814@175148.5370 7dasket4rgv3s3st7ddi4bcjeo Query : use flama_phc
20240814@175148.5410 7dasket4rgv3s3st7ddi4bcjeo Query : select szadrsstamp valor from szadrs where szadrsdesc='101597 - auchan retail portugal , sa'
20240814@175148.5930 7dasket4rgv3s3st7ddi4bcjeo Query : use flama_phc
20240814@175148.5960 7dasket4rgv3s3st7ddi4bcjeo Query : select 1 valor from td where ndoc = 39
20240814@175148.6120 7dasket4rgv3s3st7ddi4bcjeo Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20240814@175148.6290 7dasket4rgv3s3st7ddi4bcjeo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175148.6470 7dasket4rgv3s3st7ddi4bcjeo Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20240814@175148.6800 7dasket4rgv3s3st7ddi4bcjeo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175148.6980 7dasket4rgv3s3st7ddi4bcjeo Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20240814@175148.7310 7dasket4rgv3s3st7ddi4bcjeo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175148.7480 7dasket4rgv3s3st7ddi4bcjeo Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20240814@175148.7630 7dasket4rgv3s3st7ddi4bcjeo Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240814@175148.8350 7dasket4rgv3s3st7ddi4bcjeo Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240814@175148.8600 7dasket4rgv3s3st7ddi4bcjeo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175148.8780 7dasket4rgv3s3st7ddi4bcjeo Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20240814@175148.8980 7dasket4rgv3s3st7ddi4bcjeo Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut66bce0206966bce0a412' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20240814@175148.1085 7dasket4rgv3s3st7ddi4bcjeo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175148.1116 7dasket4rgv3s3st7ddi4bcjeo Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20240814@175148.1173 7dasket4rgv3s3st7ddi4bcjeo Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20240814@175148.1188 7dasket4rgv3s3st7ddi4bcjeo Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20240814@175148.1202 7dasket4rgv3s3st7ddi4bcjeo Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20240814@175148.1217 7dasket4rgv3s3st7ddi4bcjeo Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20240814@175148.1231 7dasket4rgv3s3st7ddi4bcjeo Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20240814@175148.1244 7dasket4rgv3s3st7ddi4bcjeo Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20240814@175148.1257 7dasket4rgv3s3st7ddi4bcjeo Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut66bce0206966bce0a412',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20240814@175148.1509 7dasket4rgv3s3st7ddi4bcjeo Query : select top 1 fno valor from wsftdata order by fno desc
20240814@175148.1541 7dasket4rgv3s3st7ddi4bcjeo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175148.1564 7dasket4rgv3s3st7ddi4bcjeo Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20240814@175148.1592 7dasket4rgv3s3st7ddi4bcjeo Query : select 'normal' from dummy
20240814@175148.1610 7dasket4rgv3s3st7ddi4bcjeo Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut66bce0206966bce0a412',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',357,101597,0,'2024-08-14',39,'euro',0,0,2024 ,?,?)
20240814@175148.1925 7dasket4rgv3s3st7ddi4bcjeo Query : use flama_phc
20240814@175148.1929 7dasket4rgv3s3st7ddi4bcjeo Query : select st.usalote valor from st where st.ref = '324.1690.00.1'
20240814@175148.1955 7dasket4rgv3s3st7ddi4bcjeo Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.1690.00.1'
20240814@175148.1972 7dasket4rgv3s3st7ddi4bcjeo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175148.1991 7dasket4rgv3s3st7ddi4bcjeo Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240814@175148.2024 7dasket4rgv3s3st7ddi4bcjeo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175148.2042 7dasket4rgv3s3st7ddi4bcjeo Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240814@175148.2052 7dasket4rgv3s3st7ddi4bcjeo Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240814@175148.2067 7dasket4rgv3s3st7ddi4bcjeo Query : select sestamp valor from se where ref ='324.1690.00.1' and lote = 'r2100755200a'
20240814@175148.2114 7dasket4rgv3s3st7ddi4bcjeo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175148.2132 7dasket4rgv3s3st7ddi4bcjeo Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240814@175148.2147 7dasket4rgv3s3st7ddi4bcjeo Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66bce3740266bce0a433','aut66bce0206966bce0a412' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240814@175148.2152 7dasket4rgv3s3st7ddi4bcjeo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175148.2169 7dasket4rgv3s3st7ddi4bcjeo Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240814@175148.2205 7dasket4rgv3s3st7ddi4bcjeo Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem) values ('aut66bce3740266bce0a433',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',15.000 ,'aut66bce0206966bce0a412' ,0,0 ,2,23.00,10000,?,?,?,?)
20240814@175148.2492 7dasket4rgv3s3st7ddi4bcjeo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175148.2512 7dasket4rgv3s3st7ddi4bcjeo Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240814@175148.2544 7dasket4rgv3s3st7ddi4bcjeo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175148.2562 7dasket4rgv3s3st7ddi4bcjeo Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240814@175148.2572 7dasket4rgv3s3st7ddi4bcjeo Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240814@175148.2587 7dasket4rgv3s3st7ddi4bcjeo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175148.2606 7dasket4rgv3s3st7ddi4bcjeo Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240814@175148.2619 7dasket4rgv3s3st7ddi4bcjeo Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66bce5963666bce0a43f','aut66bce0206966bce0a412' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240814@175148.2624 7dasket4rgv3s3st7ddi4bcjeo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175148.2643 7dasket4rgv3s3st7ddi4bcjeo Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240814@175148.2686 7dasket4rgv3s3st7ddi4bcjeo Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66bce5963666bce0a43f',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66bce0206966bce0a412' ,0,0 ,2,23.00,20000,?,?,?)
20240814@175148.4021 7dasket4rgv3s3st7ddi4bcjeo Query : use flama_phc
20240814@175148.4026 7dasket4rgv3s3st7ddi4bcjeo Query : select st.usalote valor from st where st.ref = '324.1690.00.1'
20240814@175148.4050 7dasket4rgv3s3st7ddi4bcjeo Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.1690.00.1'
20240814@175148.4066 7dasket4rgv3s3st7ddi4bcjeo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175148.4085 7dasket4rgv3s3st7ddi4bcjeo Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240814@175148.4114 7dasket4rgv3s3st7ddi4bcjeo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175148.4132 7dasket4rgv3s3st7ddi4bcjeo Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240814@175148.4143 7dasket4rgv3s3st7ddi4bcjeo Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240814@175148.4159 7dasket4rgv3s3st7ddi4bcjeo Query : select sestamp valor from se where ref ='324.1690.00.1' and lote = 'r2100755200a'
20240814@175148.4173 7dasket4rgv3s3st7ddi4bcjeo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175148.4190 7dasket4rgv3s3st7ddi4bcjeo Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240814@175148.4204 7dasket4rgv3s3st7ddi4bcjeo Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66bce7280366bce0a465','aut66bce0206966bce0a412' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240814@175148.4210 7dasket4rgv3s3st7ddi4bcjeo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175148.4226 7dasket4rgv3s3st7ddi4bcjeo Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240814@175148.4258 7dasket4rgv3s3st7ddi4bcjeo Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem) values ('aut66bce7280366bce0a465',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',15.000 ,'aut66bce0206966bce0a412' ,0,0 ,2,23.00,40000,?,?,?,?)
20240814@175148.4559 7dasket4rgv3s3st7ddi4bcjeo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175148.4582 7dasket4rgv3s3st7ddi4bcjeo Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240814@175148.4613 7dasket4rgv3s3st7ddi4bcjeo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175148.4630 7dasket4rgv3s3st7ddi4bcjeo Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240814@175148.4641 7dasket4rgv3s3st7ddi4bcjeo Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240814@175148.4655 7dasket4rgv3s3st7ddi4bcjeo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175148.4672 7dasket4rgv3s3st7ddi4bcjeo Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240814@175148.4685 7dasket4rgv3s3st7ddi4bcjeo Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66bce1604566bce0a471','aut66bce0206966bce0a412' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240814@175148.4689 7dasket4rgv3s3st7ddi4bcjeo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175148.4705 7dasket4rgv3s3st7ddi4bcjeo Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240814@175148.4736 7dasket4rgv3s3st7ddi4bcjeo Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66bce1604566bce0a471',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66bce0206966bce0a412' ,0,0 ,2,23.00,50000,?,?,?)
20240814@175148.5009 7dasket4rgv3s3st7ddi4bcjeo Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut66bce0206966bce0a412','2405403','wait',39,'adm09112754980.682000002')
20240814@175148.5091 7dasket4rgv3s3st7ddi4bcjeo Query : use flama_phc
20240814@175148.5095 7dasket4rgv3s3st7ddi4bcjeo Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240814@175148.5137 7dasket4rgv3s3st7ddi4bcjeo Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1544';
20240814@175148.5169 7dasket4rgv3s3st7ddi4bcjeo Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1544';
20240814@175148.5211 7dasket4rgv3s3st7ddi4bcjeo Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1544';
20240814@175148.5238 7dasket4rgv3s3st7ddi4bcjeo Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1544';
20240814@175148.6244 ge2jrrarm46n6v21ra6gp0dege Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240814@175148.6259 ge2jrrarm46n6v21ra6gp0dege Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240814@175148.6333 ge2jrrarm46n6v21ra6gp0dege Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1545';
20240814@175148.6395 ge2jrrarm46n6v21ra6gp0dege Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1545';
20240814@175148.6454 ge2jrrarm46n6v21ra6gp0dege Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1545';
20240814@175148.6481 ge2jrrarm46n6v21ra6gp0dege Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1545';
20240814@175148.6548 ge2jrrarm46n6v21ra6gp0dege Query : use flama_phc
20240814@175148.6553 ge2jrrarm46n6v21ra6gp0dege Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240814@175148.6646 ge2jrrarm46n6v21ra6gp0dege Query : use flama_phc
20240814@175148.6651 ge2jrrarm46n6v21ra6gp0dege Query : select no, estab,szadrsdesc from szadrs where u_coddest=170
20240814@175148.6763 ge2jrrarm46n6v21ra6gp0dege Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1824.00.1'
20240814@175148.6966 ge2jrrarm46n6v21ra6gp0dege Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1824.00.1'
20240814@175148.6991 ge2jrrarm46n6v21ra6gp0dege Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1824.00.1'
20240814@175148.7017 ge2jrrarm46n6v21ra6gp0dege Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1824.00.1'
20240814@175148.7042 ge2jrrarm46n6v21ra6gp0dege Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1879.00.1'
20240814@175148.7202 ge2jrrarm46n6v21ra6gp0dege Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1879.00.1'
20240814@175148.7228 ge2jrrarm46n6v21ra6gp0dege Query : use flama_phc
20240814@175148.7232 ge2jrrarm46n6v21ra6gp0dege Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20240814@175148.7292 ge2jrrarm46n6v21ra6gp0dege Query : use flama_phc
20240814@175148.7296 ge2jrrarm46n6v21ra6gp0dege Query : select top 1 1 valor from td where td.ndoc = 39
20240814@175148.7330 ge2jrrarm46n6v21ra6gp0dege Query : use flama_phc
20240814@175148.7334 ge2jrrarm46n6v21ra6gp0dege 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')
20240814@175148.7369 ge2jrrarm46n6v21ra6gp0dege 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
20240814@175148.7412 ge2jrrarm46n6v21ra6gp0dege Query : use flama_phc
20240814@175148.7416 ge2jrrarm46n6v21ra6gp0dege Query : select top 1 ~inactivo valor from cl where no = '102068' and estab = 0 order by inactivo desc
20240814@175148.7558 ge2jrrarm46n6v21ra6gp0dege Query : use flama_phc
20240814@175148.7562 ge2jrrarm46n6v21ra6gp0dege Query : select top 1 tipodoc,regrd from td where ndoc = 39
20240814@175148.7601 ge2jrrarm46n6v21ra6gp0dege Query : use flama_phc
20240814@175148.7604 ge2jrrarm46n6v21ra6gp0dege Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20240814@175148.7650 ge2jrrarm46n6v21ra6gp0dege Query : use flama_phc
20240814@175148.7654 ge2jrrarm46n6v21ra6gp0dege Query : select szadrsstamp valor from szadrs where szadrsdesc='magalhÃes & vinha, lda.'
20240814@175148.7712 ge2jrrarm46n6v21ra6gp0dege Query : use flama_phc
20240814@175148.7715 ge2jrrarm46n6v21ra6gp0dege Query : select 1 valor from td where ndoc = 39
20240814@175148.7730 ge2jrrarm46n6v21ra6gp0dege Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20240814@175148.7746 ge2jrrarm46n6v21ra6gp0dege Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175148.7765 ge2jrrarm46n6v21ra6gp0dege Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20240814@175148.7791 ge2jrrarm46n6v21ra6gp0dege Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175148.7860 ge2jrrarm46n6v21ra6gp0dege Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20240814@175148.7896 ge2jrrarm46n6v21ra6gp0dege Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175148.7914 ge2jrrarm46n6v21ra6gp0dege Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20240814@175148.7931 ge2jrrarm46n6v21ra6gp0dege Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240814@175148.8003 ge2jrrarm46n6v21ra6gp0dege Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240814@175148.8018 ge2jrrarm46n6v21ra6gp0dege Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175148.8036 ge2jrrarm46n6v21ra6gp0dege Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20240814@175148.8054 ge2jrrarm46n6v21ra6gp0dege Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut66bce8521966bce0a4c1' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20240814@175148.8255 ge2jrrarm46n6v21ra6gp0dege Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175148.8274 ge2jrrarm46n6v21ra6gp0dege Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20240814@175148.8311 ge2jrrarm46n6v21ra6gp0dege Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20240814@175148.8323 ge2jrrarm46n6v21ra6gp0dege Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20240814@175148.8337 ge2jrrarm46n6v21ra6gp0dege Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20240814@175148.8350 ge2jrrarm46n6v21ra6gp0dege Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20240814@175148.8363 ge2jrrarm46n6v21ra6gp0dege Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20240814@175148.8376 ge2jrrarm46n6v21ra6gp0dege Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20240814@175148.8389 ge2jrrarm46n6v21ra6gp0dege Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut66bce8521966bce0a4c1',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20240814@175148.8642 ge2jrrarm46n6v21ra6gp0dege Query : select top 1 fno valor from wsftdata order by fno desc
20240814@175148.8663 ge2jrrarm46n6v21ra6gp0dege Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175148.8680 ge2jrrarm46n6v21ra6gp0dege Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20240814@175148.8705 ge2jrrarm46n6v21ra6gp0dege Query : select 'normal' from dummy
20240814@175148.8721 ge2jrrarm46n6v21ra6gp0dege Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut66bce8521966bce0a4c1',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',358,102068,0,'2024-08-14',39,'euro',0,0,2024 ,?,?)
20240814@175148.9028 ge2jrrarm46n6v21ra6gp0dege Query : use flama_phc
20240814@175148.9032 ge2jrrarm46n6v21ra6gp0dege Query : select st.usalote valor from st where st.ref = '324.1824.00.1'
20240814@175148.9055 ge2jrrarm46n6v21ra6gp0dege Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.1824.00.1'
20240814@175148.9210 ge2jrrarm46n6v21ra6gp0dege Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175148.9227 ge2jrrarm46n6v21ra6gp0dege Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240814@175148.9255 ge2jrrarm46n6v21ra6gp0dege Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175148.9272 ge2jrrarm46n6v21ra6gp0dege Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240814@175148.9281 ge2jrrarm46n6v21ra6gp0dege Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240814@175148.9294 ge2jrrarm46n6v21ra6gp0dege Query : select sestamp valor from se where ref ='324.1824.00.1' and lote = 'r2301210200a'
20240814@175148.9308 ge2jrrarm46n6v21ra6gp0dege Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175148.9323 ge2jrrarm46n6v21ra6gp0dege Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240814@175148.9338 ge2jrrarm46n6v21ra6gp0dege Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66bce5433566bce0a4e3','aut66bce8521966bce0a4c1' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240814@175148.9342 ge2jrrarm46n6v21ra6gp0dege Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175148.9358 ge2jrrarm46n6v21ra6gp0dege Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240814@175148.9387 ge2jrrarm46n6v21ra6gp0dege Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem) values ('aut66bce5433566bce0a4e3',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',14.000 ,'aut66bce8521966bce0a4c1' ,0,0 ,2,23.00,10000,?,?,?,?)
20240814@175148.9678 ge2jrrarm46n6v21ra6gp0dege Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175148.9696 ge2jrrarm46n6v21ra6gp0dege Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240814@175148.9724 ge2jrrarm46n6v21ra6gp0dege Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175148.9739 ge2jrrarm46n6v21ra6gp0dege Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240814@175148.9748 ge2jrrarm46n6v21ra6gp0dege Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240814@175148.9761 ge2jrrarm46n6v21ra6gp0dege Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175148.9776 ge2jrrarm46n6v21ra6gp0dege Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240814@175148.9789 ge2jrrarm46n6v21ra6gp0dege Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66bce7500166bce0a4ee','aut66bce8521966bce0a4c1' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240814@175148.9794 ge2jrrarm46n6v21ra6gp0dege Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175148.9809 ge2jrrarm46n6v21ra6gp0dege Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240814@175148.9838 ge2jrrarm46n6v21ra6gp0dege Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66bce7500166bce0a4ee',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66bce8521966bce0a4c1' ,0,0 ,2,23.00,20000,?,?,?)
20240814@175149.8000 ge2jrrarm46n6v21ra6gp0dege Query : use flama_phc
20240814@175149.8300 ge2jrrarm46n6v21ra6gp0dege Query : select st.usalote valor from st where st.ref = '324.1824.00.1'
20240814@175149.1040 ge2jrrarm46n6v21ra6gp0dege Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.1824.00.1'
20240814@175149.1190 ge2jrrarm46n6v21ra6gp0dege Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175149.1360 ge2jrrarm46n6v21ra6gp0dege Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240814@175149.1620 ge2jrrarm46n6v21ra6gp0dege Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175149.1770 ge2jrrarm46n6v21ra6gp0dege Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240814@175149.1860 ge2jrrarm46n6v21ra6gp0dege Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240814@175149.1990 ge2jrrarm46n6v21ra6gp0dege Query : select sestamp valor from se where ref ='324.1824.00.1' and lote = 'r2301210200a'
20240814@175149.2120 ge2jrrarm46n6v21ra6gp0dege Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175149.2270 ge2jrrarm46n6v21ra6gp0dege Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240814@175149.2390 ge2jrrarm46n6v21ra6gp0dege Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66bce4908966bce0a505','aut66bce8521966bce0a4c1' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240814@175149.2430 ge2jrrarm46n6v21ra6gp0dege Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175149.2590 ge2jrrarm46n6v21ra6gp0dege Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240814@175149.2990 ge2jrrarm46n6v21ra6gp0dege Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem) values ('aut66bce4908966bce0a505',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',1.000 ,'aut66bce8521966bce0a4c1' ,0,0 ,2,23.00,40000,?,?,?,?)
20240814@175149.5650 ge2jrrarm46n6v21ra6gp0dege Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175149.5840 ge2jrrarm46n6v21ra6gp0dege Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240814@175149.6130 ge2jrrarm46n6v21ra6gp0dege Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175149.6400 ge2jrrarm46n6v21ra6gp0dege Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240814@175149.6490 ge2jrrarm46n6v21ra6gp0dege Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240814@175149.6630 ge2jrrarm46n6v21ra6gp0dege Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175149.6780 ge2jrrarm46n6v21ra6gp0dege Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240814@175149.6910 ge2jrrarm46n6v21ra6gp0dege Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66bce1320066bce0a510','aut66bce8521966bce0a4c1' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240814@175149.7060 ge2jrrarm46n6v21ra6gp0dege Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175149.7210 ge2jrrarm46n6v21ra6gp0dege Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240814@175149.7500 ge2jrrarm46n6v21ra6gp0dege Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66bce1320066bce0a510',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66bce8521966bce0a4c1' ,0,0 ,2,23.00,50000,?,?,?)
20240814@175149.1035 ge2jrrarm46n6v21ra6gp0dege Query : use flama_phc
20240814@175149.1038 ge2jrrarm46n6v21ra6gp0dege Query : select st.usalote valor from st where st.ref = '324.1824.00.1'
20240814@175149.1058 ge2jrrarm46n6v21ra6gp0dege Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.1824.00.1'
20240814@175149.1071 ge2jrrarm46n6v21ra6gp0dege Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175149.1087 ge2jrrarm46n6v21ra6gp0dege Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240814@175149.1113 ge2jrrarm46n6v21ra6gp0dege Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175149.1127 ge2jrrarm46n6v21ra6gp0dege Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240814@175149.1136 ge2jrrarm46n6v21ra6gp0dege Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240814@175149.1150 ge2jrrarm46n6v21ra6gp0dege Query : select sestamp valor from se where ref ='324.1824.00.1' and lote = 'r2301210200a'
20240814@175149.1163 ge2jrrarm46n6v21ra6gp0dege Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175149.1177 ge2jrrarm46n6v21ra6gp0dege Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240814@175149.1189 ge2jrrarm46n6v21ra6gp0dege Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66bce0635966bce0a51c','aut66bce8521966bce0a4c1' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240814@175149.1196 ge2jrrarm46n6v21ra6gp0dege Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175149.1212 ge2jrrarm46n6v21ra6gp0dege Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240814@175149.1242 ge2jrrarm46n6v21ra6gp0dege Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem) values ('aut66bce0635966bce0a51c',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',20.000 ,'aut66bce8521966bce0a4c1' ,0,0 ,2,23.00,70000,?,?,?,?)
20240814@175149.1524 ge2jrrarm46n6v21ra6gp0dege Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175149.1539 ge2jrrarm46n6v21ra6gp0dege Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240814@175149.1567 ge2jrrarm46n6v21ra6gp0dege Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175149.1582 ge2jrrarm46n6v21ra6gp0dege Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240814@175149.1590 ge2jrrarm46n6v21ra6gp0dege Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240814@175149.1605 ge2jrrarm46n6v21ra6gp0dege Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175149.1619 ge2jrrarm46n6v21ra6gp0dege Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240814@175149.1631 ge2jrrarm46n6v21ra6gp0dege Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66bce1706066bce0a527','aut66bce8521966bce0a4c1' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240814@175149.1635 ge2jrrarm46n6v21ra6gp0dege Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175149.1649 ge2jrrarm46n6v21ra6gp0dege Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240814@175149.1677 ge2jrrarm46n6v21ra6gp0dege Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66bce1706066bce0a527',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66bce8521966bce0a4c1' ,0,0 ,2,23.00,80000,?,?,?)
20240814@175149.1926 ge2jrrarm46n6v21ra6gp0dege Query : use flama_phc
20240814@175149.1929 ge2jrrarm46n6v21ra6gp0dege Query : select st.usalote valor from st where st.ref = '324.1824.00.1'
20240814@175149.1949 ge2jrrarm46n6v21ra6gp0dege Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.1824.00.1'
20240814@175149.1963 ge2jrrarm46n6v21ra6gp0dege Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175149.1978 ge2jrrarm46n6v21ra6gp0dege Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240814@175149.2007 ge2jrrarm46n6v21ra6gp0dege Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175149.2021 ge2jrrarm46n6v21ra6gp0dege Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240814@175149.2029 ge2jrrarm46n6v21ra6gp0dege Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240814@175149.2042 ge2jrrarm46n6v21ra6gp0dege Query : select sestamp valor from se where ref ='324.1824.00.1' and lote = 'r2301210200a'
20240814@175149.2073 ge2jrrarm46n6v21ra6gp0dege Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175149.2088 ge2jrrarm46n6v21ra6gp0dege Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240814@175149.2100 ge2jrrarm46n6v21ra6gp0dege Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66bce9593566bce0a532','aut66bce8521966bce0a4c1' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240814@175149.2104 ge2jrrarm46n6v21ra6gp0dege Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175149.2118 ge2jrrarm46n6v21ra6gp0dege Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240814@175149.2147 ge2jrrarm46n6v21ra6gp0dege Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem) values ('aut66bce9593566bce0a532',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',5.000 ,'aut66bce8521966bce0a4c1' ,0,0 ,2,23.00,100000,?,?,?,?)
20240814@175149.2426 ge2jrrarm46n6v21ra6gp0dege Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175149.2468 ge2jrrarm46n6v21ra6gp0dege Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240814@175149.2543 ge2jrrarm46n6v21ra6gp0dege Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175149.2558 ge2jrrarm46n6v21ra6gp0dege Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240814@175149.2567 ge2jrrarm46n6v21ra6gp0dege Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240814@175149.2581 ge2jrrarm46n6v21ra6gp0dege Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175149.2598 ge2jrrarm46n6v21ra6gp0dege Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240814@175149.2612 ge2jrrarm46n6v21ra6gp0dege Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66bce5697666bce0a53f','aut66bce8521966bce0a4c1' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240814@175149.2616 ge2jrrarm46n6v21ra6gp0dege Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175149.2632 ge2jrrarm46n6v21ra6gp0dege Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240814@175149.2663 ge2jrrarm46n6v21ra6gp0dege Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66bce5697666bce0a53f',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66bce8521966bce0a4c1' ,0,0 ,2,23.00,110000,?,?,?)
20240814@175149.2975 ge2jrrarm46n6v21ra6gp0dege Query : use flama_phc
20240814@175149.2978 ge2jrrarm46n6v21ra6gp0dege Query : select st.usalote valor from st where st.ref = '324.1879.00.1'
20240814@175149.2999 ge2jrrarm46n6v21ra6gp0dege Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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.1879.00.1'
20240814@175149.3365 ge2jrrarm46n6v21ra6gp0dege Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175149.3382 ge2jrrarm46n6v21ra6gp0dege Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240814@175149.3411 ge2jrrarm46n6v21ra6gp0dege Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175149.3426 ge2jrrarm46n6v21ra6gp0dege Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240814@175149.3435 ge2jrrarm46n6v21ra6gp0dege Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240814@175149.3448 ge2jrrarm46n6v21ra6gp0dege Query : select sestamp valor from se where ref ='324.1879.00.1' and lote = 'r2300643200a'
20240814@175149.3477 ge2jrrarm46n6v21ra6gp0dege Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175149.3492 ge2jrrarm46n6v21ra6gp0dege Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240814@175149.3505 ge2jrrarm46n6v21ra6gp0dege Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66bce8326866bce0a554','aut66bce8521966bce0a4c1' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240814@175149.3509 ge2jrrarm46n6v21ra6gp0dege Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175149.3524 ge2jrrarm46n6v21ra6gp0dege Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240814@175149.3558 ge2jrrarm46n6v21ra6gp0dege Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem) values ('aut66bce8326866bce0a554',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',18.000 ,'aut66bce8521966bce0a4c1' ,0,0 ,2,23.00,130000,?,?,?,?)
20240814@175149.3889 ge2jrrarm46n6v21ra6gp0dege Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175149.3905 ge2jrrarm46n6v21ra6gp0dege Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240814@175149.3933 ge2jrrarm46n6v21ra6gp0dege Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175149.3948 ge2jrrarm46n6v21ra6gp0dege Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240814@175149.3957 ge2jrrarm46n6v21ra6gp0dege Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240814@175149.4018 ge2jrrarm46n6v21ra6gp0dege Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175149.4033 ge2jrrarm46n6v21ra6gp0dege Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240814@175149.4046 ge2jrrarm46n6v21ra6gp0dege Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66bce7442366bce0a562','aut66bce8521966bce0a4c1' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240814@175149.4050 ge2jrrarm46n6v21ra6gp0dege Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175149.4065 ge2jrrarm46n6v21ra6gp0dege Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240814@175149.4095 ge2jrrarm46n6v21ra6gp0dege Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66bce7442366bce0a562',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66bce8521966bce0a4c1' ,0,0 ,2,23.00,140000,?,?,?)
20240814@175149.4389 ge2jrrarm46n6v21ra6gp0dege Query : use flama_phc
20240814@175149.4392 ge2jrrarm46n6v21ra6gp0dege Query : select st.usalote valor from st where st.ref = '324.1879.00.1'
20240814@175149.4412 ge2jrrarm46n6v21ra6gp0dege Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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.1879.00.1'
20240814@175149.4426 ge2jrrarm46n6v21ra6gp0dege Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175149.4442 ge2jrrarm46n6v21ra6gp0dege Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240814@175149.4469 ge2jrrarm46n6v21ra6gp0dege Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175149.4484 ge2jrrarm46n6v21ra6gp0dege Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240814@175149.4493 ge2jrrarm46n6v21ra6gp0dege Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240814@175149.4506 ge2jrrarm46n6v21ra6gp0dege Query : select sestamp valor from se where ref ='324.1879.00.1' and lote = 'r2300643200a'
20240814@175149.4520 ge2jrrarm46n6v21ra6gp0dege Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175149.4570 ge2jrrarm46n6v21ra6gp0dege Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240814@175149.4584 ge2jrrarm46n6v21ra6gp0dege Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66bce6153466bce0a56e','aut66bce8521966bce0a4c1' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240814@175149.4588 ge2jrrarm46n6v21ra6gp0dege Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175149.4604 ge2jrrarm46n6v21ra6gp0dege Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240814@175149.4635 ge2jrrarm46n6v21ra6gp0dege Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem) values ('aut66bce6153466bce0a56e',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',3.000 ,'aut66bce8521966bce0a4c1' ,0,0 ,2,23.00,160000,?,?,?,?)
20240814@175149.4923 ge2jrrarm46n6v21ra6gp0dege Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175149.4938 ge2jrrarm46n6v21ra6gp0dege Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240814@175149.4965 ge2jrrarm46n6v21ra6gp0dege Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175149.4980 ge2jrrarm46n6v21ra6gp0dege Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240814@175149.4988 ge2jrrarm46n6v21ra6gp0dege Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240814@175149.5001 ge2jrrarm46n6v21ra6gp0dege Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175149.5015 ge2jrrarm46n6v21ra6gp0dege Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240814@175149.5027 ge2jrrarm46n6v21ra6gp0dege Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66bce3208366bce0a57a','aut66bce8521966bce0a4c1' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240814@175149.5031 ge2jrrarm46n6v21ra6gp0dege Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175149.5046 ge2jrrarm46n6v21ra6gp0dege Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240814@175149.5077 ge2jrrarm46n6v21ra6gp0dege Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66bce3208366bce0a57a',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66bce8521966bce0a4c1' ,0,0 ,2,23.00,170000,?,?,?)
20240814@175149.5313 ge2jrrarm46n6v21ra6gp0dege Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut66bce8521966bce0a4c1','2405404','wait',39,'adm09112754980.682000002')
20240814@175149.5392 ge2jrrarm46n6v21ra6gp0dege Query : use flama_phc
20240814@175149.5397 ge2jrrarm46n6v21ra6gp0dege Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240814@175149.5436 ge2jrrarm46n6v21ra6gp0dege Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1545';
20240814@175149.5465 ge2jrrarm46n6v21ra6gp0dege Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1545';
20240814@175149.5504 ge2jrrarm46n6v21ra6gp0dege Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1545';
20240814@175149.5527 ge2jrrarm46n6v21ra6gp0dege Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1545';
20240814@175149.6427 cmv0k95r6980fahgtcq5cu15kc Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240814@175149.6447 cmv0k95r6980fahgtcq5cu15kc Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240814@175149.6500 cmv0k95r6980fahgtcq5cu15kc Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1546';
20240814@175149.6563 cmv0k95r6980fahgtcq5cu15kc Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1546';
20240814@175149.6629 cmv0k95r6980fahgtcq5cu15kc Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1546';
20240814@175149.6660 cmv0k95r6980fahgtcq5cu15kc Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1546';
20240814@175149.6714 cmv0k95r6980fahgtcq5cu15kc Query : use flama_phc
20240814@175149.6756 cmv0k95r6980fahgtcq5cu15kc Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240814@175149.6989 cmv0k95r6980fahgtcq5cu15kc Query : use flama_phc
20240814@175149.6993 cmv0k95r6980fahgtcq5cu15kc Query : select no, estab,szadrsdesc from szadrs where u_coddest=8923
20240814@175149.7089 cmv0k95r6980fahgtcq5cu15kc 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'
20240814@175149.7270 cmv0k95r6980fahgtcq5cu15kc Query : use flama_phc
20240814@175149.7273 cmv0k95r6980fahgtcq5cu15kc Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20240814@175149.7308 cmv0k95r6980fahgtcq5cu15kc Query : use flama_phc
20240814@175149.7311 cmv0k95r6980fahgtcq5cu15kc Query : select top 1 1 valor from td where td.ndoc = 39
20240814@175149.7344 cmv0k95r6980fahgtcq5cu15kc Query : use flama_phc
20240814@175149.7347 cmv0k95r6980fahgtcq5cu15kc 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')
20240814@175149.7379 cmv0k95r6980fahgtcq5cu15kc 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
20240814@175149.7439 cmv0k95r6980fahgtcq5cu15kc Query : use flama_phc
20240814@175149.7443 cmv0k95r6980fahgtcq5cu15kc Query : select top 1 ~inactivo valor from cl where no = '101621' and estab = 0 order by inactivo desc
20240814@175149.7577 cmv0k95r6980fahgtcq5cu15kc Query : use flama_phc
20240814@175149.7580 cmv0k95r6980fahgtcq5cu15kc Query : select top 1 tipodoc,regrd from td where ndoc = 39
20240814@175149.7648 cmv0k95r6980fahgtcq5cu15kc Query : use flama_phc
20240814@175149.7652 cmv0k95r6980fahgtcq5cu15kc Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20240814@175149.7694 cmv0k95r6980fahgtcq5cu15kc Query : use flama_phc
20240814@175149.7697 cmv0k95r6980fahgtcq5cu15kc Query : select szadrsstamp valor from szadrs where szadrsdesc='jom- gondomar'
20240814@175149.7745 cmv0k95r6980fahgtcq5cu15kc Query : use flama_phc
20240814@175149.7748 cmv0k95r6980fahgtcq5cu15kc Query : select 1 valor from td where ndoc = 39
20240814@175149.7761 cmv0k95r6980fahgtcq5cu15kc Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20240814@175149.7776 cmv0k95r6980fahgtcq5cu15kc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175149.7795 cmv0k95r6980fahgtcq5cu15kc Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20240814@175149.7815 cmv0k95r6980fahgtcq5cu15kc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175149.7833 cmv0k95r6980fahgtcq5cu15kc Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20240814@175149.7865 cmv0k95r6980fahgtcq5cu15kc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175149.7881 cmv0k95r6980fahgtcq5cu15kc Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20240814@175149.7894 cmv0k95r6980fahgtcq5cu15kc Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240814@175149.7966 cmv0k95r6980fahgtcq5cu15kc Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240814@175149.7979 cmv0k95r6980fahgtcq5cu15kc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175149.7997 cmv0k95r6980fahgtcq5cu15kc Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20240814@175149.8015 cmv0k95r6980fahgtcq5cu15kc Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut66bce3146366bce0a5c0' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20240814@175149.8208 cmv0k95r6980fahgtcq5cu15kc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175149.8225 cmv0k95r6980fahgtcq5cu15kc Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20240814@175149.8266 cmv0k95r6980fahgtcq5cu15kc Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20240814@175149.8284 cmv0k95r6980fahgtcq5cu15kc Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20240814@175149.8296 cmv0k95r6980fahgtcq5cu15kc Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20240814@175149.8309 cmv0k95r6980fahgtcq5cu15kc Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20240814@175149.8321 cmv0k95r6980fahgtcq5cu15kc Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20240814@175149.8335 cmv0k95r6980fahgtcq5cu15kc Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20240814@175149.8346 cmv0k95r6980fahgtcq5cu15kc Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut66bce3146366bce0a5c0',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20240814@175149.8635 cmv0k95r6980fahgtcq5cu15kc Query : select top 1 fno valor from wsftdata order by fno desc
20240814@175149.8653 cmv0k95r6980fahgtcq5cu15kc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175149.8670 cmv0k95r6980fahgtcq5cu15kc Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20240814@175149.8693 cmv0k95r6980fahgtcq5cu15kc Query : select 'normal' from dummy
20240814@175149.8709 cmv0k95r6980fahgtcq5cu15kc Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut66bce3146366bce0a5c0',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',359,101621,0,'2024-08-14',39,'euro',0,0,2024 ,?,?)
20240814@175149.9013 cmv0k95r6980fahgtcq5cu15kc Query : use flama_phc
20240814@175149.9016 cmv0k95r6980fahgtcq5cu15kc Query : select st.usalote valor from st where st.ref = '327.8253.00.1'
20240814@175149.9039 cmv0k95r6980fahgtcq5cu15kc Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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'
20240814@175149.9214 cmv0k95r6980fahgtcq5cu15kc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175149.9232 cmv0k95r6980fahgtcq5cu15kc Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240814@175149.9259 cmv0k95r6980fahgtcq5cu15kc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175149.9274 cmv0k95r6980fahgtcq5cu15kc Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240814@175149.9283 cmv0k95r6980fahgtcq5cu15kc Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240814@175149.9296 cmv0k95r6980fahgtcq5cu15kc Query : select sestamp valor from se where ref ='327.8253.00.1' and lote = 'r2400072300a'
20240814@175149.9310 cmv0k95r6980fahgtcq5cu15kc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175149.9326 cmv0k95r6980fahgtcq5cu15kc Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240814@175149.9341 cmv0k95r6980fahgtcq5cu15kc Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66bce2898666bce0a5e3','aut66bce3146366bce0a5c0' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240814@175149.9345 cmv0k95r6980fahgtcq5cu15kc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175150.4250 cmv0k95r6980fahgtcq5cu15kc Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240814@175150.5300 cmv0k95r6980fahgtcq5cu15kc Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem) values ('aut66bce2898666bce0a5e3',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',1.000 ,'aut66bce3146366bce0a5c0' ,0,0 ,2,23.00,10000,?,?,?,?)
20240814@175150.8090 cmv0k95r6980fahgtcq5cu15kc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175150.8260 cmv0k95r6980fahgtcq5cu15kc Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240814@175150.8600 cmv0k95r6980fahgtcq5cu15kc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175150.8810 cmv0k95r6980fahgtcq5cu15kc Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240814@175150.8900 cmv0k95r6980fahgtcq5cu15kc Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240814@175150.9040 cmv0k95r6980fahgtcq5cu15kc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175150.9180 cmv0k95r6980fahgtcq5cu15kc Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240814@175150.9300 cmv0k95r6980fahgtcq5cu15kc Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66bce5851866bce0a616','aut66bce3146366bce0a5c0' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240814@175150.9340 cmv0k95r6980fahgtcq5cu15kc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175150.9480 cmv0k95r6980fahgtcq5cu15kc Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240814@175150.9760 cmv0k95r6980fahgtcq5cu15kc Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66bce5851866bce0a616',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66bce3146366bce0a5c0' ,0,0 ,2,23.00,20000,?,?,?)
20240814@175150.1235 cmv0k95r6980fahgtcq5cu15kc Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut66bce3146366bce0a5c0','2405405','wait',39,'adm09112754980.682000002')
20240814@175150.1312 cmv0k95r6980fahgtcq5cu15kc Query : use flama_phc
20240814@175150.1315 cmv0k95r6980fahgtcq5cu15kc Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240814@175150.1354 cmv0k95r6980fahgtcq5cu15kc Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1546';
20240814@175150.1382 cmv0k95r6980fahgtcq5cu15kc Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1546';
20240814@175150.1419 cmv0k95r6980fahgtcq5cu15kc Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1546';
20240814@175150.1443 cmv0k95r6980fahgtcq5cu15kc Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1546';
20240814@175150.2001 mjm870i2ul4md5rbfost1nvg5n Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240814@175150.2013 mjm870i2ul4md5rbfost1nvg5n Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240814@175150.2072 mjm870i2ul4md5rbfost1nvg5n Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1547';
20240814@175150.2129 mjm870i2ul4md5rbfost1nvg5n Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1547';
20240814@175150.2181 mjm870i2ul4md5rbfost1nvg5n Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1547';
20240814@175150.2204 mjm870i2ul4md5rbfost1nvg5n Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1547';
20240814@175150.2249 mjm870i2ul4md5rbfost1nvg5n Query : use flama_phc
20240814@175150.2253 mjm870i2ul4md5rbfost1nvg5n Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240814@175150.2327 mjm870i2ul4md5rbfost1nvg5n Query : use flama_phc
20240814@175150.2330 mjm870i2ul4md5rbfost1nvg5n Query : select no, estab,szadrsdesc from szadrs where u_coddest=4804
20240814@175150.2432 mjm870i2ul4md5rbfost1nvg5n Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.4723.00.2'
20240814@175150.2637 mjm870i2ul4md5rbfost1nvg5n Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.4723.00.2'
20240814@175150.2659 mjm870i2ul4md5rbfost1nvg5n Query : use flama_phc
20240814@175150.2663 mjm870i2ul4md5rbfost1nvg5n Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20240814@175150.2699 mjm870i2ul4md5rbfost1nvg5n Query : use flama_phc
20240814@175150.2714 mjm870i2ul4md5rbfost1nvg5n Query : select top 1 1 valor from td where td.ndoc = 39
20240814@175150.2755 mjm870i2ul4md5rbfost1nvg5n Query : use flama_phc
20240814@175150.2758 mjm870i2ul4md5rbfost1nvg5n 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')
20240814@175150.2797 mjm870i2ul4md5rbfost1nvg5n 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
20240814@175150.2837 mjm870i2ul4md5rbfost1nvg5n Query : use flama_phc
20240814@175150.2840 mjm870i2ul4md5rbfost1nvg5n Query : select top 1 ~inactivo valor from cl where no = '101900' and estab = 0 order by inactivo desc
20240814@175150.2971 mjm870i2ul4md5rbfost1nvg5n Query : use flama_phc
20240814@175150.2974 mjm870i2ul4md5rbfost1nvg5n Query : select top 1 tipodoc,regrd from td where ndoc = 39
20240814@175150.3006 mjm870i2ul4md5rbfost1nvg5n Query : use flama_phc
20240814@175150.3009 mjm870i2ul4md5rbfost1nvg5n Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20240814@175150.3053 mjm870i2ul4md5rbfost1nvg5n Query : use flama_phc
20240814@175150.3055 mjm870i2ul4md5rbfost1nvg5n Query : select szadrsstamp valor from szadrs where szadrsdesc='101900 - pd - alfena n/p'
20240814@175150.3109 mjm870i2ul4md5rbfost1nvg5n Query : use flama_phc
20240814@175150.3112 mjm870i2ul4md5rbfost1nvg5n Query : select 1 valor from td where ndoc = 39
20240814@175150.3125 mjm870i2ul4md5rbfost1nvg5n Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20240814@175150.3149 mjm870i2ul4md5rbfost1nvg5n Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175150.3166 mjm870i2ul4md5rbfost1nvg5n Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20240814@175150.3188 mjm870i2ul4md5rbfost1nvg5n Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175150.3203 mjm870i2ul4md5rbfost1nvg5n Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20240814@175150.3233 mjm870i2ul4md5rbfost1nvg5n Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175150.3249 mjm870i2ul4md5rbfost1nvg5n Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20240814@175150.3262 mjm870i2ul4md5rbfost1nvg5n Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240814@175150.3332 mjm870i2ul4md5rbfost1nvg5n Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240814@175150.3346 mjm870i2ul4md5rbfost1nvg5n Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175150.3363 mjm870i2ul4md5rbfost1nvg5n Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20240814@175150.3379 mjm870i2ul4md5rbfost1nvg5n Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut66bce4390566bce0a64f' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20240814@175150.3568 mjm870i2ul4md5rbfost1nvg5n Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175150.3586 mjm870i2ul4md5rbfost1nvg5n Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20240814@175150.3620 mjm870i2ul4md5rbfost1nvg5n Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20240814@175150.3632 mjm870i2ul4md5rbfost1nvg5n Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20240814@175150.3644 mjm870i2ul4md5rbfost1nvg5n Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20240814@175150.3657 mjm870i2ul4md5rbfost1nvg5n Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20240814@175150.3682 mjm870i2ul4md5rbfost1nvg5n Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20240814@175150.3695 mjm870i2ul4md5rbfost1nvg5n Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20240814@175150.3709 mjm870i2ul4md5rbfost1nvg5n Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut66bce4390566bce0a64f',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20240814@175150.4095 mjm870i2ul4md5rbfost1nvg5n Query : select top 1 fno valor from wsftdata order by fno desc
20240814@175150.4125 mjm870i2ul4md5rbfost1nvg5n Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175150.4143 mjm870i2ul4md5rbfost1nvg5n Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20240814@175150.4168 mjm870i2ul4md5rbfost1nvg5n Query : select 'normal' from dummy
20240814@175150.4184 mjm870i2ul4md5rbfost1nvg5n Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut66bce4390566bce0a64f',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',360,101900,0,'2024-08-14',39,'euro',0,0,2024 ,?,?)
20240814@175150.4500 mjm870i2ul4md5rbfost1nvg5n Query : use flama_phc
20240814@175150.4504 mjm870i2ul4md5rbfost1nvg5n Query : select st.usalote valor from st where st.ref = '324.4723.00.2'
20240814@175150.4526 mjm870i2ul4md5rbfost1nvg5n Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.4723.00.2'
20240814@175150.4709 mjm870i2ul4md5rbfost1nvg5n Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175150.4725 mjm870i2ul4md5rbfost1nvg5n Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240814@175150.4752 mjm870i2ul4md5rbfost1nvg5n Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175150.4767 mjm870i2ul4md5rbfost1nvg5n Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240814@175150.4776 mjm870i2ul4md5rbfost1nvg5n Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240814@175150.4789 mjm870i2ul4md5rbfost1nvg5n Query : select sestamp valor from se where ref ='324.4723.00.2' and lote = 'r2200682200a'
20240814@175150.4803 mjm870i2ul4md5rbfost1nvg5n Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175150.4822 mjm870i2ul4md5rbfost1nvg5n Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240814@175150.4833 mjm870i2ul4md5rbfost1nvg5n Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66bce8497166bce0a675','aut66bce4390566bce0a64f' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240814@175150.4837 mjm870i2ul4md5rbfost1nvg5n Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175150.4853 mjm870i2ul4md5rbfost1nvg5n Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240814@175150.4883 mjm870i2ul4md5rbfost1nvg5n Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem) values ('aut66bce8497166bce0a675',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',12.000 ,'aut66bce4390566bce0a64f' ,0,0 ,2,23.00,10000,?,?,?,?)
20240814@175150.5151 mjm870i2ul4md5rbfost1nvg5n Query : use flama_phc
20240814@175150.5154 mjm870i2ul4md5rbfost1nvg5n Query : select st.usalote valor from st where st.ref = '324.4723.00.2'
20240814@175150.5188 mjm870i2ul4md5rbfost1nvg5n Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.4723.00.2'
20240814@175150.5203 mjm870i2ul4md5rbfost1nvg5n Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175150.5221 mjm870i2ul4md5rbfost1nvg5n Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240814@175150.5249 mjm870i2ul4md5rbfost1nvg5n Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175150.5266 mjm870i2ul4md5rbfost1nvg5n Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240814@175150.5275 mjm870i2ul4md5rbfost1nvg5n Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240814@175150.5287 mjm870i2ul4md5rbfost1nvg5n Query : select sestamp valor from se where ref ='324.4723.00.2' and lote = 'r2200682200a'
20240814@175150.5301 mjm870i2ul4md5rbfost1nvg5n Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175150.5317 mjm870i2ul4md5rbfost1nvg5n Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240814@175150.5329 mjm870i2ul4md5rbfost1nvg5n Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66bce0772666bce0a681','aut66bce4390566bce0a64f' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240814@175150.5333 mjm870i2ul4md5rbfost1nvg5n Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175150.5362 mjm870i2ul4md5rbfost1nvg5n Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240814@175150.5392 mjm870i2ul4md5rbfost1nvg5n Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem) values ('aut66bce0772666bce0a681',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',3.000 ,'aut66bce4390566bce0a64f' ,0,0 ,2,23.00,20000,?,?,?,?)
20240814@175150.5657 mjm870i2ul4md5rbfost1nvg5n Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut66bce4390566bce0a64f','2405423','wait',39,'adm09112754980.682000002')
20240814@175150.5747 mjm870i2ul4md5rbfost1nvg5n Query : use flama_phc
20240814@175150.5750 mjm870i2ul4md5rbfost1nvg5n Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240814@175150.5795 mjm870i2ul4md5rbfost1nvg5n Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1547';
20240814@175150.5824 mjm870i2ul4md5rbfost1nvg5n Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1547';
20240814@175150.5870 mjm870i2ul4md5rbfost1nvg5n Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1547';
20240814@175150.5904 mjm870i2ul4md5rbfost1nvg5n Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1547';
20240814@175150.6571 f3lkvlarpcd7if5auoqi7ntume Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240814@175150.6581 f3lkvlarpcd7if5auoqi7ntume Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240814@175150.6659 f3lkvlarpcd7if5auoqi7ntume Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1548';
20240814@175150.6726 f3lkvlarpcd7if5auoqi7ntume Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1548';
20240814@175150.6797 f3lkvlarpcd7if5auoqi7ntume Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1548';
20240814@175150.6833 f3lkvlarpcd7if5auoqi7ntume Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1548';
20240814@175150.6894 f3lkvlarpcd7if5auoqi7ntume Query : use flama_phc
20240814@175150.6898 f3lkvlarpcd7if5auoqi7ntume Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240814@175150.6977 f3lkvlarpcd7if5auoqi7ntume Query : use flama_phc
20240814@175150.6980 f3lkvlarpcd7if5auoqi7ntume Query : select no, estab,szadrsdesc from szadrs where u_coddest=1328
20240814@175150.7072 f3lkvlarpcd7if5auoqi7ntume Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.646.00.01'
20240814@175150.7246 f3lkvlarpcd7if5auoqi7ntume Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.646.00.01'
20240814@175150.7272 f3lkvlarpcd7if5auoqi7ntume Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1716.00.1'
20240814@175150.7402 f3lkvlarpcd7if5auoqi7ntume Query : use flama_phc
20240814@175150.7405 f3lkvlarpcd7if5auoqi7ntume Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20240814@175150.7442 f3lkvlarpcd7if5auoqi7ntume Query : use flama_phc
20240814@175150.7445 f3lkvlarpcd7if5auoqi7ntume Query : select top 1 1 valor from td where td.ndoc = 39
20240814@175150.7479 f3lkvlarpcd7if5auoqi7ntume Query : use flama_phc
20240814@175150.7482 f3lkvlarpcd7if5auoqi7ntume 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')
20240814@175150.7516 f3lkvlarpcd7if5auoqi7ntume 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
20240814@175150.7554 f3lkvlarpcd7if5auoqi7ntume Query : use flama_phc
20240814@175150.7557 f3lkvlarpcd7if5auoqi7ntume Query : select top 1 ~inactivo valor from cl where no = '101621' and estab = 0 order by inactivo desc
20240814@175150.7597 f3lkvlarpcd7if5auoqi7ntume Query : use flama_phc
20240814@175150.7614 f3lkvlarpcd7if5auoqi7ntume Query : select top 1 tipodoc,regrd from td where ndoc = 39
20240814@175150.7647 f3lkvlarpcd7if5auoqi7ntume Query : use flama_phc
20240814@175150.7650 f3lkvlarpcd7if5auoqi7ntume Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20240814@175150.7716 f3lkvlarpcd7if5auoqi7ntume Query : use flama_phc
20240814@175150.7719 f3lkvlarpcd7if5auoqi7ntume Query : select szadrsstamp valor from szadrs where szadrsdesc='j.o.m.,lda - mealhada'
20240814@175150.7777 f3lkvlarpcd7if5auoqi7ntume Query : use flama_phc
20240814@175150.7780 f3lkvlarpcd7if5auoqi7ntume Query : select 1 valor from td where ndoc = 39
20240814@175150.7794 f3lkvlarpcd7if5auoqi7ntume Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20240814@175150.7809 f3lkvlarpcd7if5auoqi7ntume Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175150.7827 f3lkvlarpcd7if5auoqi7ntume Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20240814@175150.7849 f3lkvlarpcd7if5auoqi7ntume Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175150.7865 f3lkvlarpcd7if5auoqi7ntume Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20240814@175150.7899 f3lkvlarpcd7if5auoqi7ntume Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175150.7918 f3lkvlarpcd7if5auoqi7ntume Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20240814@175150.7932 f3lkvlarpcd7if5auoqi7ntume Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240814@175150.8004 f3lkvlarpcd7if5auoqi7ntume Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240814@175150.8018 f3lkvlarpcd7if5auoqi7ntume Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175150.8034 f3lkvlarpcd7if5auoqi7ntume Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20240814@175150.8050 f3lkvlarpcd7if5auoqi7ntume Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut66bce5599866bce0a6c1' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20240814@175150.8244 f3lkvlarpcd7if5auoqi7ntume Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175150.8263 f3lkvlarpcd7if5auoqi7ntume Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20240814@175150.8297 f3lkvlarpcd7if5auoqi7ntume Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20240814@175150.8309 f3lkvlarpcd7if5auoqi7ntume Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20240814@175150.8321 f3lkvlarpcd7if5auoqi7ntume Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20240814@175150.8334 f3lkvlarpcd7if5auoqi7ntume Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20240814@175150.8345 f3lkvlarpcd7if5auoqi7ntume Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20240814@175150.8357 f3lkvlarpcd7if5auoqi7ntume Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20240814@175150.8369 f3lkvlarpcd7if5auoqi7ntume Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut66bce5599866bce0a6c1',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20240814@175150.8611 f3lkvlarpcd7if5auoqi7ntume Query : select top 1 fno valor from wsftdata order by fno desc
20240814@175150.8630 f3lkvlarpcd7if5auoqi7ntume Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175150.8646 f3lkvlarpcd7if5auoqi7ntume Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20240814@175150.8670 f3lkvlarpcd7if5auoqi7ntume Query : select 'normal' from dummy
20240814@175150.8687 f3lkvlarpcd7if5auoqi7ntume Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut66bce5599866bce0a6c1',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',361,101621,0,'2024-08-14',39,'euro',0,0,2024 ,?,?)
20240814@175150.8992 f3lkvlarpcd7if5auoqi7ntume Query : use flama_phc
20240814@175150.8995 f3lkvlarpcd7if5auoqi7ntume Query : select st.usalote valor from st where st.ref = '324.646.00.01'
20240814@175150.9017 f3lkvlarpcd7if5auoqi7ntume Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.646.00.01'
20240814@175150.9179 f3lkvlarpcd7if5auoqi7ntume Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175150.9197 f3lkvlarpcd7if5auoqi7ntume Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240814@175150.9223 f3lkvlarpcd7if5auoqi7ntume Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175150.9236 f3lkvlarpcd7if5auoqi7ntume Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240814@175150.9245 f3lkvlarpcd7if5auoqi7ntume Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240814@175150.9257 f3lkvlarpcd7if5auoqi7ntume Query : select sestamp valor from se where ref ='324.646.00.01' and lote = 'r2400055100a'
20240814@175150.9270 f3lkvlarpcd7if5auoqi7ntume Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175150.9284 f3lkvlarpcd7if5auoqi7ntume Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240814@175150.9295 f3lkvlarpcd7if5auoqi7ntume Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66bce1620566bce0a6e2','aut66bce5599866bce0a6c1' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240814@175150.9299 f3lkvlarpcd7if5auoqi7ntume Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175150.9313 f3lkvlarpcd7if5auoqi7ntume Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240814@175150.9343 f3lkvlarpcd7if5auoqi7ntume Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem) values ('aut66bce1620566bce0a6e2',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',3.000 ,'aut66bce5599866bce0a6c1' ,0,0 ,2,23.00,10000,?,?,?,?)
20240814@175150.9610 f3lkvlarpcd7if5auoqi7ntume Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175150.9625 f3lkvlarpcd7if5auoqi7ntume Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240814@175150.9675 f3lkvlarpcd7if5auoqi7ntume Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175150.9689 f3lkvlarpcd7if5auoqi7ntume Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240814@175150.9697 f3lkvlarpcd7if5auoqi7ntume Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240814@175150.9711 f3lkvlarpcd7if5auoqi7ntume Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175150.9725 f3lkvlarpcd7if5auoqi7ntume Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240814@175150.9736 f3lkvlarpcd7if5auoqi7ntume Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66bce2799866bce0a6ed','aut66bce5599866bce0a6c1' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240814@175150.9740 f3lkvlarpcd7if5auoqi7ntume Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175150.9755 f3lkvlarpcd7if5auoqi7ntume Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240814@175150.9781 f3lkvlarpcd7if5auoqi7ntume Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66bce2799866bce0a6ed',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66bce5599866bce0a6c1' ,0,0 ,2,23.00,20000,?,?,?)
20240814@175151.6100 f3lkvlarpcd7if5auoqi7ntume Query : use flama_phc
20240814@175151.6500 f3lkvlarpcd7if5auoqi7ntume Query : select st.usalote valor from st where st.ref = '324.646.00.01'
20240814@175151.8400 f3lkvlarpcd7if5auoqi7ntume Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.646.00.01'
20240814@175151.9800 f3lkvlarpcd7if5auoqi7ntume Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175151.1150 f3lkvlarpcd7if5auoqi7ntume Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240814@175151.1440 f3lkvlarpcd7if5auoqi7ntume Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175151.1670 f3lkvlarpcd7if5auoqi7ntume Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240814@175151.1750 f3lkvlarpcd7if5auoqi7ntume Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240814@175151.1860 f3lkvlarpcd7if5auoqi7ntume Query : select sestamp valor from se where ref ='324.646.00.01' and lote = 'r2400055100a'
20240814@175151.1980 f3lkvlarpcd7if5auoqi7ntume Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175151.2140 f3lkvlarpcd7if5auoqi7ntume Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240814@175151.2260 f3lkvlarpcd7if5auoqi7ntume Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66bce3881966bce0a704','aut66bce5599866bce0a6c1' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240814@175151.2300 f3lkvlarpcd7if5auoqi7ntume Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175151.2480 f3lkvlarpcd7if5auoqi7ntume Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240814@175151.2770 f3lkvlarpcd7if5auoqi7ntume Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem) values ('aut66bce3881966bce0a704',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',1.000 ,'aut66bce5599866bce0a6c1' ,0,0 ,2,23.00,40000,?,?,?,?)
20240814@175151.5540 f3lkvlarpcd7if5auoqi7ntume Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175151.5710 f3lkvlarpcd7if5auoqi7ntume Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240814@175151.6010 f3lkvlarpcd7if5auoqi7ntume Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175151.6160 f3lkvlarpcd7if5auoqi7ntume Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240814@175151.6250 f3lkvlarpcd7if5auoqi7ntume Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240814@175151.6400 f3lkvlarpcd7if5auoqi7ntume Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175151.6540 f3lkvlarpcd7if5auoqi7ntume Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240814@175151.6660 f3lkvlarpcd7if5auoqi7ntume Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66bce1970366bce0a70f','aut66bce5599866bce0a6c1' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240814@175151.6700 f3lkvlarpcd7if5auoqi7ntume Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175151.6850 f3lkvlarpcd7if5auoqi7ntume Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240814@175151.7130 f3lkvlarpcd7if5auoqi7ntume Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66bce1970366bce0a70f',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66bce5599866bce0a6c1' ,0,0 ,2,23.00,50000,?,?,?)
20240814@175151.9600 f3lkvlarpcd7if5auoqi7ntume Query : use flama_phc
20240814@175151.9620 f3lkvlarpcd7if5auoqi7ntume Query : select st.usalote valor from st where st.ref = '324.1716.00.1'
20240814@175151.9820 f3lkvlarpcd7if5auoqi7ntume Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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.1716.00.1'
20240814@175151.2177 f3lkvlarpcd7if5auoqi7ntume Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175151.2195 f3lkvlarpcd7if5auoqi7ntume Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240814@175151.2222 f3lkvlarpcd7if5auoqi7ntume Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175151.2237 f3lkvlarpcd7if5auoqi7ntume Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240814@175151.2246 f3lkvlarpcd7if5auoqi7ntume Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240814@175151.2259 f3lkvlarpcd7if5auoqi7ntume Query : select sestamp valor from se where ref ='324.1716.00.1' and lote = 'r2100312300a'
20240814@175151.2273 f3lkvlarpcd7if5auoqi7ntume Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175151.2287 f3lkvlarpcd7if5auoqi7ntume Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240814@175151.2299 f3lkvlarpcd7if5auoqi7ntume Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66bce5629466bce0a737','aut66bce5599866bce0a6c1' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240814@175151.2303 f3lkvlarpcd7if5auoqi7ntume Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175151.2318 f3lkvlarpcd7if5auoqi7ntume Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240814@175151.2346 f3lkvlarpcd7if5auoqi7ntume Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem) values ('aut66bce5629466bce0a737',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',4.000 ,'aut66bce5599866bce0a6c1' ,0,0 ,2,23.00,70000,?,?,?,?)
20240814@175151.2611 f3lkvlarpcd7if5auoqi7ntume Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut66bce5599866bce0a6c1','2405432','wait',39,'adm09112754980.682000002')
20240814@175151.2693 f3lkvlarpcd7if5auoqi7ntume Query : use flama_phc
20240814@175151.2697 f3lkvlarpcd7if5auoqi7ntume Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240814@175151.2729 f3lkvlarpcd7if5auoqi7ntume Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1548';
20240814@175151.2757 f3lkvlarpcd7if5auoqi7ntume Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1548';
20240814@175151.2798 f3lkvlarpcd7if5auoqi7ntume Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1548';
20240814@175151.2820 f3lkvlarpcd7if5auoqi7ntume Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1548';
20240814@175151.3401 nvnvikic55felbquvfm89c84gp Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240814@175151.3413 nvnvikic55felbquvfm89c84gp Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240814@175151.3471 nvnvikic55felbquvfm89c84gp Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1549';
20240814@175151.3524 nvnvikic55felbquvfm89c84gp Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1549';
20240814@175151.3578 nvnvikic55felbquvfm89c84gp Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1549';
20240814@175151.3614 nvnvikic55felbquvfm89c84gp Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1549';
20240814@175151.3669 nvnvikic55felbquvfm89c84gp Query : use flama_phc
20240814@175151.3673 nvnvikic55felbquvfm89c84gp Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240814@175151.3742 nvnvikic55felbquvfm89c84gp Query : use flama_phc
20240814@175151.3745 nvnvikic55felbquvfm89c84gp Query : select no, estab,szadrsdesc from szadrs where u_coddest=3304
20240814@175151.3838 nvnvikic55felbquvfm89c84gp Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.646.00.01'
20240814@175151.3875 nvnvikic55felbquvfm89c84gp Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.5396.00.1'
20240814@175151.4047 nvnvikic55felbquvfm89c84gp Query : use flama_phc
20240814@175151.4050 nvnvikic55felbquvfm89c84gp Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20240814@175151.4082 nvnvikic55felbquvfm89c84gp Query : use flama_phc
20240814@175151.4085 nvnvikic55felbquvfm89c84gp Query : select top 1 1 valor from td where td.ndoc = 39
20240814@175151.4117 nvnvikic55felbquvfm89c84gp Query : use flama_phc
20240814@175151.4120 nvnvikic55felbquvfm89c84gp 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')
20240814@175151.4149 nvnvikic55felbquvfm89c84gp 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
20240814@175151.4186 nvnvikic55felbquvfm89c84gp Query : use flama_phc
20240814@175151.4189 nvnvikic55felbquvfm89c84gp Query : select top 1 ~inactivo valor from cl where no = '101621' and estab = 0 order by inactivo desc
20240814@175151.4222 nvnvikic55felbquvfm89c84gp Query : use flama_phc
20240814@175151.4225 nvnvikic55felbquvfm89c84gp Query : select top 1 tipodoc,regrd from td where ndoc = 39
20240814@175151.4256 nvnvikic55felbquvfm89c84gp Query : use flama_phc
20240814@175151.4258 nvnvikic55felbquvfm89c84gp Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20240814@175151.4298 nvnvikic55felbquvfm89c84gp Query : use flama_phc
20240814@175151.4301 nvnvikic55felbquvfm89c84gp Query : select szadrsstamp valor from szadrs where szadrsdesc='j.o.m. - chaves'
20240814@175151.4352 nvnvikic55felbquvfm89c84gp Query : use flama_phc
20240814@175151.4355 nvnvikic55felbquvfm89c84gp Query : select 1 valor from td where ndoc = 39
20240814@175151.4367 nvnvikic55felbquvfm89c84gp Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20240814@175151.4382 nvnvikic55felbquvfm89c84gp Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175151.4399 nvnvikic55felbquvfm89c84gp Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20240814@175151.4432 nvnvikic55felbquvfm89c84gp Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175151.4450 nvnvikic55felbquvfm89c84gp Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20240814@175151.4480 nvnvikic55felbquvfm89c84gp Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175151.4495 nvnvikic55felbquvfm89c84gp Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20240814@175151.4507 nvnvikic55felbquvfm89c84gp Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240814@175151.4576 nvnvikic55felbquvfm89c84gp Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240814@175151.4589 nvnvikic55felbquvfm89c84gp Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175151.4615 nvnvikic55felbquvfm89c84gp Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20240814@175151.4630 nvnvikic55felbquvfm89c84gp Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut66bce3647066bce0a76e' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20240814@175151.4811 nvnvikic55felbquvfm89c84gp Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175151.4827 nvnvikic55felbquvfm89c84gp Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20240814@175151.4861 nvnvikic55felbquvfm89c84gp Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20240814@175151.4873 nvnvikic55felbquvfm89c84gp Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20240814@175151.4886 nvnvikic55felbquvfm89c84gp Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20240814@175151.4899 nvnvikic55felbquvfm89c84gp Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20240814@175151.4910 nvnvikic55felbquvfm89c84gp Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20240814@175151.4922 nvnvikic55felbquvfm89c84gp Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20240814@175151.4934 nvnvikic55felbquvfm89c84gp Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut66bce3647066bce0a76e',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20240814@175151.5183 nvnvikic55felbquvfm89c84gp Query : select top 1 fno valor from wsftdata order by fno desc
20240814@175151.5212 nvnvikic55felbquvfm89c84gp Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175151.5228 nvnvikic55felbquvfm89c84gp Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20240814@175151.5253 nvnvikic55felbquvfm89c84gp Query : select 'normal' from dummy
20240814@175151.5268 nvnvikic55felbquvfm89c84gp Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut66bce3647066bce0a76e',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',362,101621,0,'2024-08-14',39,'euro',0,0,2024 ,?,?)
20240814@175151.5578 nvnvikic55felbquvfm89c84gp Query : use flama_phc
20240814@175151.5584 nvnvikic55felbquvfm89c84gp Query : select st.usalote valor from st where st.ref = '324.646.00.01'
20240814@175151.5607 nvnvikic55felbquvfm89c84gp Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.646.00.01'
20240814@175151.5622 nvnvikic55felbquvfm89c84gp Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175151.5639 nvnvikic55felbquvfm89c84gp Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240814@175151.5665 nvnvikic55felbquvfm89c84gp Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175151.5680 nvnvikic55felbquvfm89c84gp Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240814@175151.5689 nvnvikic55felbquvfm89c84gp Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240814@175151.5701 nvnvikic55felbquvfm89c84gp Query : select sestamp valor from se where ref ='324.646.00.01' and lote = 'r2400055100a'
20240814@175151.5714 nvnvikic55felbquvfm89c84gp Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175151.5728 nvnvikic55felbquvfm89c84gp Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240814@175151.5740 nvnvikic55felbquvfm89c84gp Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66bce0061666bce0a78b','aut66bce3647066bce0a76e' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240814@175151.5745 nvnvikic55felbquvfm89c84gp Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175151.5759 nvnvikic55felbquvfm89c84gp Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240814@175151.5798 nvnvikic55felbquvfm89c84gp Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem) values ('aut66bce0061666bce0a78b',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',4.000 ,'aut66bce3647066bce0a76e' ,0,0 ,2,23.00,10000,?,?,?,?)
20240814@175151.6067 nvnvikic55felbquvfm89c84gp Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175151.6084 nvnvikic55felbquvfm89c84gp Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240814@175151.6110 nvnvikic55felbquvfm89c84gp Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175151.6125 nvnvikic55felbquvfm89c84gp Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240814@175151.6133 nvnvikic55felbquvfm89c84gp Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240814@175151.6159 nvnvikic55felbquvfm89c84gp Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175151.6173 nvnvikic55felbquvfm89c84gp Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240814@175151.6188 nvnvikic55felbquvfm89c84gp Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66bce8336966bce0a796','aut66bce3647066bce0a76e' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240814@175151.6192 nvnvikic55felbquvfm89c84gp Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175151.6208 nvnvikic55felbquvfm89c84gp Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240814@175151.6237 nvnvikic55felbquvfm89c84gp Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66bce8336966bce0a796',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66bce3647066bce0a76e' ,0,0 ,2,23.00,20000,?,?,?)
20240814@175151.6485 nvnvikic55felbquvfm89c84gp Query : use flama_phc
20240814@175151.6489 nvnvikic55felbquvfm89c84gp Query : select st.usalote valor from st where st.ref = '324.5396.00.1'
20240814@175151.6511 nvnvikic55felbquvfm89c84gp Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.5396.00.1'
20240814@175151.6850 nvnvikic55felbquvfm89c84gp Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175151.6869 nvnvikic55felbquvfm89c84gp Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240814@175151.6911 nvnvikic55felbquvfm89c84gp Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175151.6927 nvnvikic55felbquvfm89c84gp Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240814@175151.6936 nvnvikic55felbquvfm89c84gp Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240814@175151.6948 nvnvikic55felbquvfm89c84gp Query : select sestamp valor from se where ref ='324.5396.00.1' and lote = 'r2300840100a'
20240814@175151.6963 nvnvikic55felbquvfm89c84gp Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175151.6978 nvnvikic55felbquvfm89c84gp Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240814@175151.6990 nvnvikic55felbquvfm89c84gp Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66bce5071266bce0a7aa','aut66bce3647066bce0a76e' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240814@175151.6995 nvnvikic55felbquvfm89c84gp Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175151.7011 nvnvikic55felbquvfm89c84gp Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240814@175151.7043 nvnvikic55felbquvfm89c84gp Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem) values ('aut66bce5071266bce0a7aa',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',6.000 ,'aut66bce3647066bce0a76e' ,0,0 ,2,23.00,40000,?,?,?,?)
20240814@175151.7332 nvnvikic55felbquvfm89c84gp Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175151.7348 nvnvikic55felbquvfm89c84gp Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240814@175151.7376 nvnvikic55felbquvfm89c84gp Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175151.7390 nvnvikic55felbquvfm89c84gp Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240814@175151.7399 nvnvikic55felbquvfm89c84gp Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240814@175151.7416 nvnvikic55felbquvfm89c84gp Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175151.7435 nvnvikic55felbquvfm89c84gp Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240814@175151.7446 nvnvikic55felbquvfm89c84gp Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66bce1231066bce0a7b5','aut66bce3647066bce0a76e' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240814@175151.7451 nvnvikic55felbquvfm89c84gp Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175151.7465 nvnvikic55felbquvfm89c84gp Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240814@175151.7493 nvnvikic55felbquvfm89c84gp Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66bce1231066bce0a7b5',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66bce3647066bce0a76e' ,0,0 ,2,23.00,50000,?,?,?)
20240814@175151.7925 nvnvikic55felbquvfm89c84gp Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut66bce3647066bce0a76e','2405434','wait',39,'adm09112754980.682000002')
20240814@175151.8014 nvnvikic55felbquvfm89c84gp Query : use flama_phc
20240814@175151.8018 nvnvikic55felbquvfm89c84gp Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240814@175151.8054 nvnvikic55felbquvfm89c84gp Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1549';
20240814@175151.8089 nvnvikic55felbquvfm89c84gp Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1549';
20240814@175151.8134 nvnvikic55felbquvfm89c84gp Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1549';
20240814@175151.8158 nvnvikic55felbquvfm89c84gp Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1549';
20240814@175151.9923 slr10h1ot5p2jq10ur7ejvmn53 Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240814@175151.9935 slr10h1ot5p2jq10ur7ejvmn53 Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240814@175151.9985 slr10h1ot5p2jq10ur7ejvmn53 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1550';
20240814@175152.4200 slr10h1ot5p2jq10ur7ejvmn53 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1550';
20240814@175152.1000 slr10h1ot5p2jq10ur7ejvmn53 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1550';
20240814@175152.1230 slr10h1ot5p2jq10ur7ejvmn53 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1550';
20240814@175152.1720 slr10h1ot5p2jq10ur7ejvmn53 Query : use flama_phc
20240814@175152.1760 slr10h1ot5p2jq10ur7ejvmn53 Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240814@175152.2410 slr10h1ot5p2jq10ur7ejvmn53 Query : use flama_phc
20240814@175152.2430 slr10h1ot5p2jq10ur7ejvmn53 Query : select no, estab,szadrsdesc from szadrs where u_coddest=3145
20240814@175152.3260 slr10h1ot5p2jq10ur7ejvmn53 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.646.00.01'
20240814@175152.3480 slr10h1ot5p2jq10ur7ejvmn53 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'
20240814@175152.5180 slr10h1ot5p2jq10ur7ejvmn53 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1716.00.1'
20240814@175152.5400 slr10h1ot5p2jq10ur7ejvmn53 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.5396.00.1'
20240814@175152.5600 slr10h1ot5p2jq10ur7ejvmn53 Query : use flama_phc
20240814@175152.5630 slr10h1ot5p2jq10ur7ejvmn53 Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20240814@175152.5960 slr10h1ot5p2jq10ur7ejvmn53 Query : use flama_phc
20240814@175152.5990 slr10h1ot5p2jq10ur7ejvmn53 Query : select top 1 1 valor from td where td.ndoc = 39
20240814@175152.6280 slr10h1ot5p2jq10ur7ejvmn53 Query : use flama_phc
20240814@175152.6310 slr10h1ot5p2jq10ur7ejvmn53 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')
20240814@175152.6600 slr10h1ot5p2jq10ur7ejvmn53 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
20240814@175152.6940 slr10h1ot5p2jq10ur7ejvmn53 Query : use flama_phc
20240814@175152.6970 slr10h1ot5p2jq10ur7ejvmn53 Query : select top 1 ~inactivo valor from cl where no = '101621' and estab = 0 order by inactivo desc
20240814@175152.7380 slr10h1ot5p2jq10ur7ejvmn53 Query : use flama_phc
20240814@175152.7410 slr10h1ot5p2jq10ur7ejvmn53 Query : select top 1 tipodoc,regrd from td where ndoc = 39
20240814@175152.7720 slr10h1ot5p2jq10ur7ejvmn53 Query : use flama_phc
20240814@175152.7750 slr10h1ot5p2jq10ur7ejvmn53 Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20240814@175152.8180 slr10h1ot5p2jq10ur7ejvmn53 Query : use flama_phc
20240814@175152.8210 slr10h1ot5p2jq10ur7ejvmn53 Query : select szadrsstamp valor from szadrs where szadrsdesc='jom - caldas da rainha'
20240814@175152.9110 slr10h1ot5p2jq10ur7ejvmn53 Query : use flama_phc
20240814@175152.9140 slr10h1ot5p2jq10ur7ejvmn53 Query : select 1 valor from td where ndoc = 39
20240814@175152.9260 slr10h1ot5p2jq10ur7ejvmn53 Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20240814@175152.9410 slr10h1ot5p2jq10ur7ejvmn53 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175152.9590 slr10h1ot5p2jq10ur7ejvmn53 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20240814@175152.9790 slr10h1ot5p2jq10ur7ejvmn53 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175152.9950 slr10h1ot5p2jq10ur7ejvmn53 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20240814@175152.1022 slr10h1ot5p2jq10ur7ejvmn53 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175152.1036 slr10h1ot5p2jq10ur7ejvmn53 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20240814@175152.1049 slr10h1ot5p2jq10ur7ejvmn53 Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240814@175152.1118 slr10h1ot5p2jq10ur7ejvmn53 Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240814@175152.1130 slr10h1ot5p2jq10ur7ejvmn53 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175152.1146 slr10h1ot5p2jq10ur7ejvmn53 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20240814@175152.1162 slr10h1ot5p2jq10ur7ejvmn53 Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut66bce8820166bce0a819' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20240814@175152.1353 slr10h1ot5p2jq10ur7ejvmn53 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175152.1372 slr10h1ot5p2jq10ur7ejvmn53 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20240814@175152.1405 slr10h1ot5p2jq10ur7ejvmn53 Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20240814@175152.1416 slr10h1ot5p2jq10ur7ejvmn53 Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20240814@175152.1428 slr10h1ot5p2jq10ur7ejvmn53 Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20240814@175152.1440 slr10h1ot5p2jq10ur7ejvmn53 Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20240814@175152.1453 slr10h1ot5p2jq10ur7ejvmn53 Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20240814@175152.1464 slr10h1ot5p2jq10ur7ejvmn53 Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20240814@175152.1477 slr10h1ot5p2jq10ur7ejvmn53 Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut66bce8820166bce0a819',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20240814@175152.1748 slr10h1ot5p2jq10ur7ejvmn53 Query : select top 1 fno valor from wsftdata order by fno desc
20240814@175152.1765 slr10h1ot5p2jq10ur7ejvmn53 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175152.1782 slr10h1ot5p2jq10ur7ejvmn53 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20240814@175152.1808 slr10h1ot5p2jq10ur7ejvmn53 Query : select 'normal' from dummy
20240814@175152.1828 slr10h1ot5p2jq10ur7ejvmn53 Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut66bce8820166bce0a819',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',363,101621,0,'2024-08-14',39,'euro',0,0,2024 ,?,?)
20240814@175152.2141 slr10h1ot5p2jq10ur7ejvmn53 Query : use flama_phc
20240814@175152.2145 slr10h1ot5p2jq10ur7ejvmn53 Query : select st.usalote valor from st where st.ref = '324.646.00.01'
20240814@175152.2171 slr10h1ot5p2jq10ur7ejvmn53 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.646.00.01'
20240814@175152.2189 slr10h1ot5p2jq10ur7ejvmn53 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175152.2207 slr10h1ot5p2jq10ur7ejvmn53 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240814@175152.2237 slr10h1ot5p2jq10ur7ejvmn53 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175152.2253 slr10h1ot5p2jq10ur7ejvmn53 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240814@175152.2262 slr10h1ot5p2jq10ur7ejvmn53 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240814@175152.2276 slr10h1ot5p2jq10ur7ejvmn53 Query : select sestamp valor from se where ref ='324.646.00.01' and lote = 'r2400055100a'
20240814@175152.2291 slr10h1ot5p2jq10ur7ejvmn53 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175152.2307 slr10h1ot5p2jq10ur7ejvmn53 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240814@175152.2320 slr10h1ot5p2jq10ur7ejvmn53 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66bce2674366bce0a837','aut66bce8820166bce0a819' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240814@175152.2325 slr10h1ot5p2jq10ur7ejvmn53 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175152.2344 slr10h1ot5p2jq10ur7ejvmn53 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240814@175152.2377 slr10h1ot5p2jq10ur7ejvmn53 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem) values ('aut66bce2674366bce0a837',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',4.000 ,'aut66bce8820166bce0a819' ,0,0 ,2,23.00,10000,?,?,?,?)
20240814@175152.2645 slr10h1ot5p2jq10ur7ejvmn53 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175152.2662 slr10h1ot5p2jq10ur7ejvmn53 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240814@175152.2691 slr10h1ot5p2jq10ur7ejvmn53 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175152.2707 slr10h1ot5p2jq10ur7ejvmn53 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240814@175152.2716 slr10h1ot5p2jq10ur7ejvmn53 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240814@175152.2729 slr10h1ot5p2jq10ur7ejvmn53 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175152.2745 slr10h1ot5p2jq10ur7ejvmn53 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240814@175152.2757 slr10h1ot5p2jq10ur7ejvmn53 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66bce3834366bce0a842','aut66bce8820166bce0a819' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240814@175152.2761 slr10h1ot5p2jq10ur7ejvmn53 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175152.2777 slr10h1ot5p2jq10ur7ejvmn53 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240814@175152.2809 slr10h1ot5p2jq10ur7ejvmn53 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66bce3834366bce0a842',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66bce8820166bce0a819' ,0,0 ,2,23.00,20000,?,?,?)
20240814@175152.3053 slr10h1ot5p2jq10ur7ejvmn53 Query : use flama_phc
20240814@175152.3056 slr10h1ot5p2jq10ur7ejvmn53 Query : select st.usalote valor from st where st.ref = '324.5501.00.1'
20240814@175152.3078 slr10h1ot5p2jq10ur7ejvmn53 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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'
20240814@175152.3234 slr10h1ot5p2jq10ur7ejvmn53 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175152.3254 slr10h1ot5p2jq10ur7ejvmn53 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240814@175152.3283 slr10h1ot5p2jq10ur7ejvmn53 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175152.3299 slr10h1ot5p2jq10ur7ejvmn53 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240814@175152.3308 slr10h1ot5p2jq10ur7ejvmn53 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240814@175152.3321 slr10h1ot5p2jq10ur7ejvmn53 Query : select sestamp valor from se where ref ='324.5501.00.1' and lote = 'r2300908100a'
20240814@175152.3344 slr10h1ot5p2jq10ur7ejvmn53 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175152.3359 slr10h1ot5p2jq10ur7ejvmn53 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240814@175152.3372 slr10h1ot5p2jq10ur7ejvmn53 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66bce8706566bce0a851','aut66bce8820166bce0a819' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240814@175152.3376 slr10h1ot5p2jq10ur7ejvmn53 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175152.3392 slr10h1ot5p2jq10ur7ejvmn53 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240814@175152.3424 slr10h1ot5p2jq10ur7ejvmn53 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem) values ('aut66bce8706566bce0a851',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',4.000 ,'aut66bce8820166bce0a819' ,0,0 ,2,23.00,40000,?,?,?,?)
20240814@175152.3679 slr10h1ot5p2jq10ur7ejvmn53 Query : use flama_phc
20240814@175152.3682 slr10h1ot5p2jq10ur7ejvmn53 Query : select st.usalote valor from st where st.ref = '324.1716.00.1'
20240814@175152.3703 slr10h1ot5p2jq10ur7ejvmn53 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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.1716.00.1'
20240814@175152.3719 slr10h1ot5p2jq10ur7ejvmn53 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175152.3735 slr10h1ot5p2jq10ur7ejvmn53 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240814@175152.3767 slr10h1ot5p2jq10ur7ejvmn53 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175152.3783 slr10h1ot5p2jq10ur7ejvmn53 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240814@175152.3792 slr10h1ot5p2jq10ur7ejvmn53 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240814@175152.3805 slr10h1ot5p2jq10ur7ejvmn53 Query : select sestamp valor from se where ref ='324.1716.00.1' and lote = 'r2100312300a'
20240814@175152.3819 slr10h1ot5p2jq10ur7ejvmn53 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175152.3834 slr10h1ot5p2jq10ur7ejvmn53 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240814@175152.3846 slr10h1ot5p2jq10ur7ejvmn53 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66bce1445666bce0a85d','aut66bce8820166bce0a819' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240814@175152.3850 slr10h1ot5p2jq10ur7ejvmn53 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175152.3866 slr10h1ot5p2jq10ur7ejvmn53 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240814@175152.3899 slr10h1ot5p2jq10ur7ejvmn53 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem) values ('aut66bce1445666bce0a85d',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',4.000 ,'aut66bce8820166bce0a819' ,0,0 ,2,23.00,50000,?,?,?,?)
20240814@175152.4144 slr10h1ot5p2jq10ur7ejvmn53 Query : use flama_phc
20240814@175152.4147 slr10h1ot5p2jq10ur7ejvmn53 Query : select st.usalote valor from st where st.ref = '324.5396.00.1'
20240814@175152.4168 slr10h1ot5p2jq10ur7ejvmn53 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.5396.00.1'
20240814@175152.4184 slr10h1ot5p2jq10ur7ejvmn53 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175152.4201 slr10h1ot5p2jq10ur7ejvmn53 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240814@175152.5375 slr10h1ot5p2jq10ur7ejvmn53 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175152.5396 slr10h1ot5p2jq10ur7ejvmn53 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240814@175152.5406 slr10h1ot5p2jq10ur7ejvmn53 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240814@175152.5421 slr10h1ot5p2jq10ur7ejvmn53 Query : select sestamp valor from se where ref ='324.5396.00.1' and lote = 'r2300840100a'
20240814@175152.5435 slr10h1ot5p2jq10ur7ejvmn53 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175152.5452 slr10h1ot5p2jq10ur7ejvmn53 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240814@175152.5466 slr10h1ot5p2jq10ur7ejvmn53 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66bce4649866bce0a884','aut66bce8820166bce0a819' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240814@175152.5470 slr10h1ot5p2jq10ur7ejvmn53 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175152.5487 slr10h1ot5p2jq10ur7ejvmn53 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240814@175152.5519 slr10h1ot5p2jq10ur7ejvmn53 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem) values ('aut66bce4649866bce0a884',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',6.000 ,'aut66bce8820166bce0a819' ,0,0 ,2,23.00,60000,?,?,?,?)
20240814@175152.5803 slr10h1ot5p2jq10ur7ejvmn53 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175152.5821 slr10h1ot5p2jq10ur7ejvmn53 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240814@175152.5851 slr10h1ot5p2jq10ur7ejvmn53 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175152.5868 slr10h1ot5p2jq10ur7ejvmn53 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240814@175152.5877 slr10h1ot5p2jq10ur7ejvmn53 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240814@175152.5890 slr10h1ot5p2jq10ur7ejvmn53 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175152.5906 slr10h1ot5p2jq10ur7ejvmn53 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240814@175152.5918 slr10h1ot5p2jq10ur7ejvmn53 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66bce2931666bce0a88f','aut66bce8820166bce0a819' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240814@175152.5923 slr10h1ot5p2jq10ur7ejvmn53 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175152.5938 slr10h1ot5p2jq10ur7ejvmn53 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240814@175152.5969 slr10h1ot5p2jq10ur7ejvmn53 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66bce2931666bce0a88f',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66bce8820166bce0a819' ,0,0 ,2,23.00,70000,?,?,?)
20240814@175152.6211 slr10h1ot5p2jq10ur7ejvmn53 Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut66bce8820166bce0a819','2405435','wait',39,'adm09112754980.682000002')
20240814@175152.6287 slr10h1ot5p2jq10ur7ejvmn53 Query : use flama_phc
20240814@175152.6290 slr10h1ot5p2jq10ur7ejvmn53 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240814@175152.6324 slr10h1ot5p2jq10ur7ejvmn53 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1550';
20240814@175152.6353 slr10h1ot5p2jq10ur7ejvmn53 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1550';
20240814@175152.6398 slr10h1ot5p2jq10ur7ejvmn53 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1550';
20240814@175152.6421 slr10h1ot5p2jq10ur7ejvmn53 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1550';
20240814@175152.7105 rq2oo8gsrjtd1r4p1ojql2p3o2 Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240814@175152.7117 rq2oo8gsrjtd1r4p1ojql2p3o2 Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240814@175152.7173 rq2oo8gsrjtd1r4p1ojql2p3o2 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1551';
20240814@175152.7228 rq2oo8gsrjtd1r4p1ojql2p3o2 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1551';
20240814@175152.7285 rq2oo8gsrjtd1r4p1ojql2p3o2 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1551';
20240814@175152.7310 rq2oo8gsrjtd1r4p1ojql2p3o2 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1551';
20240814@175152.7370 rq2oo8gsrjtd1r4p1ojql2p3o2 Query : use flama_phc
20240814@175152.7373 rq2oo8gsrjtd1r4p1ojql2p3o2 Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240814@175152.7444 rq2oo8gsrjtd1r4p1ojql2p3o2 Query : use flama_phc
20240814@175152.7448 rq2oo8gsrjtd1r4p1ojql2p3o2 Query : select no, estab,szadrsdesc from szadrs where u_coddest=6600
20240814@175152.7532 rq2oo8gsrjtd1r4p1ojql2p3o2 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'
20240814@175152.7554 rq2oo8gsrjtd1r4p1ojql2p3o2 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.5396.00.1'
20240814@175152.7575 rq2oo8gsrjtd1r4p1ojql2p3o2 Query : use flama_phc
20240814@175152.7578 rq2oo8gsrjtd1r4p1ojql2p3o2 Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20240814@175152.7915 rq2oo8gsrjtd1r4p1ojql2p3o2 Query : use flama_phc
20240814@175152.7919 rq2oo8gsrjtd1r4p1ojql2p3o2 Query : select top 1 1 valor from td where td.ndoc = 39
20240814@175152.7954 rq2oo8gsrjtd1r4p1ojql2p3o2 Query : use flama_phc
20240814@175152.7957 rq2oo8gsrjtd1r4p1ojql2p3o2 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')
20240814@175152.7989 rq2oo8gsrjtd1r4p1ojql2p3o2 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
20240814@175152.8025 rq2oo8gsrjtd1r4p1ojql2p3o2 Query : use flama_phc
20240814@175152.8029 rq2oo8gsrjtd1r4p1ojql2p3o2 Query : select top 1 ~inactivo valor from cl where no = '101621' and estab = 0 order by inactivo desc
20240814@175152.8061 rq2oo8gsrjtd1r4p1ojql2p3o2 Query : use flama_phc
20240814@175152.8064 rq2oo8gsrjtd1r4p1ojql2p3o2 Query : select top 1 tipodoc,regrd from td where ndoc = 39
20240814@175152.8097 rq2oo8gsrjtd1r4p1ojql2p3o2 Query : use flama_phc
20240814@175152.8100 rq2oo8gsrjtd1r4p1ojql2p3o2 Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20240814@175152.8141 rq2oo8gsrjtd1r4p1ojql2p3o2 Query : use flama_phc
20240814@175152.8144 rq2oo8gsrjtd1r4p1ojql2p3o2 Query : select szadrsstamp valor from szadrs where szadrsdesc='j.o.m. braga retail'
20240814@175152.8197 rq2oo8gsrjtd1r4p1ojql2p3o2 Query : use flama_phc
20240814@175152.8201 rq2oo8gsrjtd1r4p1ojql2p3o2 Query : select 1 valor from td where ndoc = 39
20240814@175152.8214 rq2oo8gsrjtd1r4p1ojql2p3o2 Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20240814@175152.8229 rq2oo8gsrjtd1r4p1ojql2p3o2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175152.8246 rq2oo8gsrjtd1r4p1ojql2p3o2 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20240814@175152.8266 rq2oo8gsrjtd1r4p1ojql2p3o2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175152.8281 rq2oo8gsrjtd1r4p1ojql2p3o2 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20240814@175152.8325 rq2oo8gsrjtd1r4p1ojql2p3o2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175152.8341 rq2oo8gsrjtd1r4p1ojql2p3o2 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20240814@175152.8356 rq2oo8gsrjtd1r4p1ojql2p3o2 Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240814@175152.8428 rq2oo8gsrjtd1r4p1ojql2p3o2 Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240814@175152.8442 rq2oo8gsrjtd1r4p1ojql2p3o2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175152.8458 rq2oo8gsrjtd1r4p1ojql2p3o2 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20240814@175152.8474 rq2oo8gsrjtd1r4p1ojql2p3o2 Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut66bce1017666bce0a8cc' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20240814@175152.8663 rq2oo8gsrjtd1r4p1ojql2p3o2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175152.8694 rq2oo8gsrjtd1r4p1ojql2p3o2 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20240814@175152.8728 rq2oo8gsrjtd1r4p1ojql2p3o2 Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20240814@175152.8740 rq2oo8gsrjtd1r4p1ojql2p3o2 Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20240814@175152.8752 rq2oo8gsrjtd1r4p1ojql2p3o2 Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20240814@175152.8764 rq2oo8gsrjtd1r4p1ojql2p3o2 Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20240814@175152.8776 rq2oo8gsrjtd1r4p1ojql2p3o2 Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20240814@175152.8790 rq2oo8gsrjtd1r4p1ojql2p3o2 Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20240814@175152.8802 rq2oo8gsrjtd1r4p1ojql2p3o2 Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut66bce1017666bce0a8cc',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20240814@175152.9054 rq2oo8gsrjtd1r4p1ojql2p3o2 Query : select top 1 fno valor from wsftdata order by fno desc
20240814@175152.9085 rq2oo8gsrjtd1r4p1ojql2p3o2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175152.9102 rq2oo8gsrjtd1r4p1ojql2p3o2 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20240814@175152.9127 rq2oo8gsrjtd1r4p1ojql2p3o2 Query : select 'normal' from dummy
20240814@175152.9143 rq2oo8gsrjtd1r4p1ojql2p3o2 Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut66bce1017666bce0a8cc',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',364,101621,0,'2024-08-14',39,'euro',0,0,2024 ,?,?)
20240814@175152.9450 rq2oo8gsrjtd1r4p1ojql2p3o2 Query : use flama_phc
20240814@175152.9453 rq2oo8gsrjtd1r4p1ojql2p3o2 Query : select st.usalote valor from st where st.ref = '324.5501.00.1'
20240814@175152.9475 rq2oo8gsrjtd1r4p1ojql2p3o2 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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'
20240814@175152.9491 rq2oo8gsrjtd1r4p1ojql2p3o2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175152.9508 rq2oo8gsrjtd1r4p1ojql2p3o2 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240814@175152.9535 rq2oo8gsrjtd1r4p1ojql2p3o2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175152.9549 rq2oo8gsrjtd1r4p1ojql2p3o2 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240814@175152.9558 rq2oo8gsrjtd1r4p1ojql2p3o2 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240814@175152.9570 rq2oo8gsrjtd1r4p1ojql2p3o2 Query : select sestamp valor from se where ref ='324.5501.00.1' and lote = 'r2300908100a'
20240814@175152.9586 rq2oo8gsrjtd1r4p1ojql2p3o2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175152.9612 rq2oo8gsrjtd1r4p1ojql2p3o2 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240814@175152.9625 rq2oo8gsrjtd1r4p1ojql2p3o2 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66bce6563866bce0a8ea','aut66bce1017666bce0a8cc' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240814@175152.9629 rq2oo8gsrjtd1r4p1ojql2p3o2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175152.9644 rq2oo8gsrjtd1r4p1ojql2p3o2 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240814@175152.9672 rq2oo8gsrjtd1r4p1ojql2p3o2 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem) values ('aut66bce6563866bce0a8ea',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',4.000 ,'aut66bce1017666bce0a8cc' ,0,0 ,2,23.00,10000,?,?,?,?)
20240814@175152.9948 rq2oo8gsrjtd1r4p1ojql2p3o2 Query : use flama_phc
20240814@175152.9952 rq2oo8gsrjtd1r4p1ojql2p3o2 Query : select st.usalote valor from st where st.ref = '324.5396.00.1'
20240814@175152.9973 rq2oo8gsrjtd1r4p1ojql2p3o2 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.5396.00.1'
20240814@175152.9987 rq2oo8gsrjtd1r4p1ojql2p3o2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175153.3000 rq2oo8gsrjtd1r4p1ojql2p3o2 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240814@175153.3000 rq2oo8gsrjtd1r4p1ojql2p3o2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175153.5900 rq2oo8gsrjtd1r4p1ojql2p3o2 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240814@175153.6700 rq2oo8gsrjtd1r4p1ojql2p3o2 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240814@175153.8200 rq2oo8gsrjtd1r4p1ojql2p3o2 Query : select sestamp valor from se where ref ='324.5396.00.1' and lote = 'r2300840100a'
20240814@175153.9500 rq2oo8gsrjtd1r4p1ojql2p3o2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175153.1110 rq2oo8gsrjtd1r4p1ojql2p3o2 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240814@175153.1230 rq2oo8gsrjtd1r4p1ojql2p3o2 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66bce7847866bce0a902','aut66bce1017666bce0a8cc' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240814@175153.1270 rq2oo8gsrjtd1r4p1ojql2p3o2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175153.1420 rq2oo8gsrjtd1r4p1ojql2p3o2 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240814@175153.1700 rq2oo8gsrjtd1r4p1ojql2p3o2 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem) values ('aut66bce7847866bce0a902',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',6.000 ,'aut66bce1017666bce0a8cc' ,0,0 ,2,23.00,20000,?,?,?,?)
20240814@175153.4440 rq2oo8gsrjtd1r4p1ojql2p3o2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175153.4620 rq2oo8gsrjtd1r4p1ojql2p3o2 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240814@175153.4900 rq2oo8gsrjtd1r4p1ojql2p3o2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175153.5050 rq2oo8gsrjtd1r4p1ojql2p3o2 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240814@175153.5130 rq2oo8gsrjtd1r4p1ojql2p3o2 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240814@175153.5250 rq2oo8gsrjtd1r4p1ojql2p3o2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175153.5410 rq2oo8gsrjtd1r4p1ojql2p3o2 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240814@175153.5530 rq2oo8gsrjtd1r4p1ojql2p3o2 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66bce2250766bce0a90c','aut66bce1017666bce0a8cc' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240814@175153.5570 rq2oo8gsrjtd1r4p1ojql2p3o2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175153.5710 rq2oo8gsrjtd1r4p1ojql2p3o2 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240814@175153.6020 rq2oo8gsrjtd1r4p1ojql2p3o2 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66bce2250766bce0a90c',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66bce1017666bce0a8cc' ,0,0 ,2,23.00,30000,?,?,?)
20240814@175153.8630 rq2oo8gsrjtd1r4p1ojql2p3o2 Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut66bce1017666bce0a8cc','2405436','wait',39,'adm09112754980.682000002')
20240814@175153.9460 rq2oo8gsrjtd1r4p1ojql2p3o2 Query : use flama_phc
20240814@175153.9490 rq2oo8gsrjtd1r4p1ojql2p3o2 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240814@175153.9930 rq2oo8gsrjtd1r4p1ojql2p3o2 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1551';
20240814@175153.1018 rq2oo8gsrjtd1r4p1ojql2p3o2 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1551';
20240814@175153.1071 rq2oo8gsrjtd1r4p1ojql2p3o2 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1551';
20240814@175153.1095 rq2oo8gsrjtd1r4p1ojql2p3o2 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1551';
20240814@175153.1632 evlggdad3pn6jfkjmjcc7j8i2f Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240814@175153.1647 evlggdad3pn6jfkjmjcc7j8i2f Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240814@175153.1696 evlggdad3pn6jfkjmjcc7j8i2f Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1552';
20240814@175153.1751 evlggdad3pn6jfkjmjcc7j8i2f Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1552';
20240814@175153.1807 evlggdad3pn6jfkjmjcc7j8i2f Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1552';
20240814@175153.1869 evlggdad3pn6jfkjmjcc7j8i2f Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1552';
20240814@175153.3020 evlggdad3pn6jfkjmjcc7j8i2f Query : use flama_phc
20240814@175153.3024 evlggdad3pn6jfkjmjcc7j8i2f Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240814@175153.3092 evlggdad3pn6jfkjmjcc7j8i2f Query : use flama_phc
20240814@175153.3095 evlggdad3pn6jfkjmjcc7j8i2f Query : select no, estab,szadrsdesc from szadrs where u_coddest=4743
20240814@175153.3136 evlggdad3pn6jfkjmjcc7j8i2f Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1646.00.1'
20240814@175153.3317 evlggdad3pn6jfkjmjcc7j8i2f Query : use flama_phc
20240814@175153.3320 evlggdad3pn6jfkjmjcc7j8i2f Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20240814@175153.3391 evlggdad3pn6jfkjmjcc7j8i2f Query : use flama_phc
20240814@175153.3394 evlggdad3pn6jfkjmjcc7j8i2f Query : select top 1 1 valor from td where td.ndoc = 39
20240814@175153.3426 evlggdad3pn6jfkjmjcc7j8i2f Query : use flama_phc
20240814@175153.3429 evlggdad3pn6jfkjmjcc7j8i2f 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')
20240814@175153.3476 evlggdad3pn6jfkjmjcc7j8i2f 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
20240814@175153.3515 evlggdad3pn6jfkjmjcc7j8i2f Query : use flama_phc
20240814@175153.3517 evlggdad3pn6jfkjmjcc7j8i2f Query : select top 1 ~inactivo valor from cl where no = '101597' and estab = 0 order by inactivo desc
20240814@175153.3556 evlggdad3pn6jfkjmjcc7j8i2f Query : use flama_phc
20240814@175153.3559 evlggdad3pn6jfkjmjcc7j8i2f Query : select top 1 tipodoc,regrd from td where ndoc = 39
20240814@175153.3592 evlggdad3pn6jfkjmjcc7j8i2f Query : use flama_phc
20240814@175153.3595 evlggdad3pn6jfkjmjcc7j8i2f Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20240814@175153.3641 evlggdad3pn6jfkjmjcc7j8i2f Query : use flama_phc
20240814@175153.3645 evlggdad3pn6jfkjmjcc7j8i2f Query : select szadrsstamp valor from szadrs where szadrsdesc='101597 - auchan retail portugal , sa'
20240814@175153.3688 evlggdad3pn6jfkjmjcc7j8i2f Query : use flama_phc
20240814@175153.3691 evlggdad3pn6jfkjmjcc7j8i2f Query : select 1 valor from td where ndoc = 39
20240814@175153.3703 evlggdad3pn6jfkjmjcc7j8i2f Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20240814@175153.3718 evlggdad3pn6jfkjmjcc7j8i2f Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175153.3746 evlggdad3pn6jfkjmjcc7j8i2f Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20240814@175153.3765 evlggdad3pn6jfkjmjcc7j8i2f Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175153.3781 evlggdad3pn6jfkjmjcc7j8i2f Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20240814@175153.3809 evlggdad3pn6jfkjmjcc7j8i2f Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175153.3824 evlggdad3pn6jfkjmjcc7j8i2f Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20240814@175153.3838 evlggdad3pn6jfkjmjcc7j8i2f Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240814@175153.3906 evlggdad3pn6jfkjmjcc7j8i2f Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240814@175153.3919 evlggdad3pn6jfkjmjcc7j8i2f Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175153.3935 evlggdad3pn6jfkjmjcc7j8i2f Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20240814@175153.3950 evlggdad3pn6jfkjmjcc7j8i2f Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut66bce0404566bce0a95d' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20240814@175153.4151 evlggdad3pn6jfkjmjcc7j8i2f Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175153.4181 evlggdad3pn6jfkjmjcc7j8i2f Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20240814@175153.4216 evlggdad3pn6jfkjmjcc7j8i2f Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20240814@175153.4230 evlggdad3pn6jfkjmjcc7j8i2f Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20240814@175153.4242 evlggdad3pn6jfkjmjcc7j8i2f Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20240814@175153.4254 evlggdad3pn6jfkjmjcc7j8i2f Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20240814@175153.4267 evlggdad3pn6jfkjmjcc7j8i2f Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20240814@175153.4278 evlggdad3pn6jfkjmjcc7j8i2f Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20240814@175153.4290 evlggdad3pn6jfkjmjcc7j8i2f Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut66bce0404566bce0a95d',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20240814@175153.4558 evlggdad3pn6jfkjmjcc7j8i2f Query : select top 1 fno valor from wsftdata order by fno desc
20240814@175153.4589 evlggdad3pn6jfkjmjcc7j8i2f Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175153.4606 evlggdad3pn6jfkjmjcc7j8i2f Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20240814@175153.4631 evlggdad3pn6jfkjmjcc7j8i2f Query : select 'normal' from dummy
20240814@175153.4647 evlggdad3pn6jfkjmjcc7j8i2f Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut66bce0404566bce0a95d',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',365,101597,0,'2024-08-14',39,'euro',0,0,2024 ,?,?)
20240814@175153.4962 evlggdad3pn6jfkjmjcc7j8i2f Query : use flama_phc
20240814@175153.4966 evlggdad3pn6jfkjmjcc7j8i2f Query : select st.usalote valor from st where st.ref = '324.1646.00.1'
20240814@175153.4991 evlggdad3pn6jfkjmjcc7j8i2f Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.1646.00.1'
20240814@175153.5164 evlggdad3pn6jfkjmjcc7j8i2f Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175153.5182 evlggdad3pn6jfkjmjcc7j8i2f Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240814@175153.5208 evlggdad3pn6jfkjmjcc7j8i2f Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175153.5223 evlggdad3pn6jfkjmjcc7j8i2f Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240814@175153.5231 evlggdad3pn6jfkjmjcc7j8i2f Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240814@175153.5244 evlggdad3pn6jfkjmjcc7j8i2f Query : select sestamp valor from se where ref ='324.1646.00.1' and lote = 'r2100904100a'
20240814@175153.5257 evlggdad3pn6jfkjmjcc7j8i2f Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175153.5271 evlggdad3pn6jfkjmjcc7j8i2f Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240814@175153.5282 evlggdad3pn6jfkjmjcc7j8i2f Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66bce4471766bce0a980','aut66bce0404566bce0a95d' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240814@175153.5287 evlggdad3pn6jfkjmjcc7j8i2f Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175153.5301 evlggdad3pn6jfkjmjcc7j8i2f Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240814@175153.5328 evlggdad3pn6jfkjmjcc7j8i2f Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem) values ('aut66bce4471766bce0a980',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',4.000 ,'aut66bce0404566bce0a95d' ,0,0 ,2,23.00,10000,?,?,?,?)
20240814@175153.5628 evlggdad3pn6jfkjmjcc7j8i2f Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut66bce0404566bce0a95d','2405438','wait',39,'adm09112754980.682000002')
20240814@175153.5695 evlggdad3pn6jfkjmjcc7j8i2f Query : use flama_phc
20240814@175153.5698 evlggdad3pn6jfkjmjcc7j8i2f Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240814@175153.5727 evlggdad3pn6jfkjmjcc7j8i2f Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1552';
20240814@175153.5753 evlggdad3pn6jfkjmjcc7j8i2f Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1552';
20240814@175153.5788 evlggdad3pn6jfkjmjcc7j8i2f Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1552';
20240814@175153.5811 evlggdad3pn6jfkjmjcc7j8i2f Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1552';
20240814@175153.6324 kqoh7aphqdnlb0qlfccsi8s6nt Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240814@175153.6337 kqoh7aphqdnlb0qlfccsi8s6nt Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240814@175153.6385 kqoh7aphqdnlb0qlfccsi8s6nt Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1553';
20240814@175153.6437 kqoh7aphqdnlb0qlfccsi8s6nt Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1553';
20240814@175153.6488 kqoh7aphqdnlb0qlfccsi8s6nt Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1553';
20240814@175153.6511 kqoh7aphqdnlb0qlfccsi8s6nt Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1553';
20240814@175153.6560 kqoh7aphqdnlb0qlfccsi8s6nt Query : use flama_phc
20240814@175153.6564 kqoh7aphqdnlb0qlfccsi8s6nt Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240814@175153.6629 kqoh7aphqdnlb0qlfccsi8s6nt Query : use flama_phc
20240814@175153.6633 kqoh7aphqdnlb0qlfccsi8s6nt Query : select no, estab,szadrsdesc from szadrs where u_coddest=7737
20240814@175153.6722 kqoh7aphqdnlb0qlfccsi8s6nt Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1833.00.2'
20240814@175153.6900 kqoh7aphqdnlb0qlfccsi8s6nt Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1832.00.2'
20240814@175153.7215 kqoh7aphqdnlb0qlfccsi8s6nt 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'
20240814@175153.7239 kqoh7aphqdnlb0qlfccsi8s6nt Query : use flama_phc
20240814@175153.7242 kqoh7aphqdnlb0qlfccsi8s6nt Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20240814@175153.7275 kqoh7aphqdnlb0qlfccsi8s6nt Query : use flama_phc
20240814@175153.7278 kqoh7aphqdnlb0qlfccsi8s6nt Query : select top 1 1 valor from td where td.ndoc = 39
20240814@175153.7309 kqoh7aphqdnlb0qlfccsi8s6nt Query : use flama_phc
20240814@175153.7312 kqoh7aphqdnlb0qlfccsi8s6nt 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')
20240814@175153.7341 kqoh7aphqdnlb0qlfccsi8s6nt 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
20240814@175153.7378 kqoh7aphqdnlb0qlfccsi8s6nt Query : use flama_phc
20240814@175153.7381 kqoh7aphqdnlb0qlfccsi8s6nt Query : select top 1 ~inactivo valor from cl where no = '101621' and estab = 0 order by inactivo desc
20240814@175153.7414 kqoh7aphqdnlb0qlfccsi8s6nt Query : use flama_phc
20240814@175153.7417 kqoh7aphqdnlb0qlfccsi8s6nt Query : select top 1 tipodoc,regrd from td where ndoc = 39
20240814@175153.7451 kqoh7aphqdnlb0qlfccsi8s6nt Query : use flama_phc
20240814@175153.7455 kqoh7aphqdnlb0qlfccsi8s6nt Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20240814@175153.7498 kqoh7aphqdnlb0qlfccsi8s6nt Query : use flama_phc
20240814@175153.7502 kqoh7aphqdnlb0qlfccsi8s6nt Query : select szadrsstamp valor from szadrs where szadrsdesc='j.o.m - loja da ponte'
20240814@175153.7553 kqoh7aphqdnlb0qlfccsi8s6nt Query : use flama_phc
20240814@175153.7556 kqoh7aphqdnlb0qlfccsi8s6nt Query : select 1 valor from td where ndoc = 39
20240814@175153.7570 kqoh7aphqdnlb0qlfccsi8s6nt Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20240814@175153.7586 kqoh7aphqdnlb0qlfccsi8s6nt Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175153.7896 kqoh7aphqdnlb0qlfccsi8s6nt Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20240814@175153.7917 kqoh7aphqdnlb0qlfccsi8s6nt Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175153.7933 kqoh7aphqdnlb0qlfccsi8s6nt Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20240814@175153.7962 kqoh7aphqdnlb0qlfccsi8s6nt Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175153.7978 kqoh7aphqdnlb0qlfccsi8s6nt Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20240814@175153.7992 kqoh7aphqdnlb0qlfccsi8s6nt Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240814@175153.8066 kqoh7aphqdnlb0qlfccsi8s6nt Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240814@175153.8080 kqoh7aphqdnlb0qlfccsi8s6nt Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175153.8098 kqoh7aphqdnlb0qlfccsi8s6nt Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20240814@175153.8114 kqoh7aphqdnlb0qlfccsi8s6nt Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut66bce3344966bce0a9c3' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20240814@175153.8306 kqoh7aphqdnlb0qlfccsi8s6nt Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175153.8323 kqoh7aphqdnlb0qlfccsi8s6nt Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20240814@175153.8358 kqoh7aphqdnlb0qlfccsi8s6nt Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20240814@175153.9599 kqoh7aphqdnlb0qlfccsi8s6nt Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20240814@175153.9798 kqoh7aphqdnlb0qlfccsi8s6nt Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20240814@175153.9817 kqoh7aphqdnlb0qlfccsi8s6nt Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20240814@175153.9829 kqoh7aphqdnlb0qlfccsi8s6nt Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20240814@175153.9841 kqoh7aphqdnlb0qlfccsi8s6nt Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20240814@175153.9853 kqoh7aphqdnlb0qlfccsi8s6nt Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut66bce3344966bce0a9c3',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20240814@175154.1330 kqoh7aphqdnlb0qlfccsi8s6nt Query : select top 1 fno valor from wsftdata order by fno desc
20240814@175154.1530 kqoh7aphqdnlb0qlfccsi8s6nt Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175154.1690 kqoh7aphqdnlb0qlfccsi8s6nt Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20240814@175154.1920 kqoh7aphqdnlb0qlfccsi8s6nt Query : select 'normal' from dummy
20240814@175154.2080 kqoh7aphqdnlb0qlfccsi8s6nt Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut66bce3344966bce0a9c3',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',366,101621,0,'2024-08-14',39,'euro',0,0,2024 ,?,?)
20240814@175154.5340 kqoh7aphqdnlb0qlfccsi8s6nt Query : use flama_phc
20240814@175154.5370 kqoh7aphqdnlb0qlfccsi8s6nt Query : select st.usalote valor from st where st.ref = '324.1833.00.2'
20240814@175154.5610 kqoh7aphqdnlb0qlfccsi8s6nt Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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.1833.00.2'
20240814@175154.7250 kqoh7aphqdnlb0qlfccsi8s6nt Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175154.7420 kqoh7aphqdnlb0qlfccsi8s6nt Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240814@175154.7690 kqoh7aphqdnlb0qlfccsi8s6nt Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175154.7840 kqoh7aphqdnlb0qlfccsi8s6nt Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240814@175154.7930 kqoh7aphqdnlb0qlfccsi8s6nt Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240814@175154.8050 kqoh7aphqdnlb0qlfccsi8s6nt Query : select sestamp valor from se where ref ='324.1833.00.2' and lote = 'r2301257100a'
20240814@175154.8190 kqoh7aphqdnlb0qlfccsi8s6nt Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175154.8340 kqoh7aphqdnlb0qlfccsi8s6nt Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240814@175154.8460 kqoh7aphqdnlb0qlfccsi8s6nt Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66bce2891966bce0aa14','aut66bce3344966bce0a9c3' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240814@175154.8500 kqoh7aphqdnlb0qlfccsi8s6nt Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175154.8640 kqoh7aphqdnlb0qlfccsi8s6nt Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240814@175154.8930 kqoh7aphqdnlb0qlfccsi8s6nt Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem) values ('aut66bce2891966bce0aa14',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',4.000 ,'aut66bce3344966bce0a9c3' ,0,0 ,2,23.00,10000,?,?,?,?)
20240814@175154.1145 kqoh7aphqdnlb0qlfccsi8s6nt Query : use flama_phc
20240814@175154.1148 kqoh7aphqdnlb0qlfccsi8s6nt Query : select st.usalote valor from st where st.ref = '324.1832.00.2'
20240814@175154.1169 kqoh7aphqdnlb0qlfccsi8s6nt Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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.1832.00.2'
20240814@175154.1357 kqoh7aphqdnlb0qlfccsi8s6nt Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175154.1374 kqoh7aphqdnlb0qlfccsi8s6nt Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240814@175154.1401 kqoh7aphqdnlb0qlfccsi8s6nt Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175154.1416 kqoh7aphqdnlb0qlfccsi8s6nt Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240814@175154.1425 kqoh7aphqdnlb0qlfccsi8s6nt Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240814@175154.1438 kqoh7aphqdnlb0qlfccsi8s6nt Query : select sestamp valor from se where ref ='324.1832.00.2' and lote = 'r2301271100a'
20240814@175154.1452 kqoh7aphqdnlb0qlfccsi8s6nt Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175154.1475 kqoh7aphqdnlb0qlfccsi8s6nt Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240814@175154.1488 kqoh7aphqdnlb0qlfccsi8s6nt Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66bce3970666bce0aa23','aut66bce3344966bce0a9c3' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240814@175154.1492 kqoh7aphqdnlb0qlfccsi8s6nt Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175154.1520 kqoh7aphqdnlb0qlfccsi8s6nt Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240814@175154.1551 kqoh7aphqdnlb0qlfccsi8s6nt Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem) values ('aut66bce3970666bce0aa23',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',4.000 ,'aut66bce3344966bce0a9c3' ,0,0 ,2,23.00,20000,?,?,?,?)
20240814@175154.1862 kqoh7aphqdnlb0qlfccsi8s6nt Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175154.1881 kqoh7aphqdnlb0qlfccsi8s6nt Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240814@175154.1911 kqoh7aphqdnlb0qlfccsi8s6nt Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175154.1939 kqoh7aphqdnlb0qlfccsi8s6nt Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240814@175154.1950 kqoh7aphqdnlb0qlfccsi8s6nt Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240814@175154.1964 kqoh7aphqdnlb0qlfccsi8s6nt Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175154.1980 kqoh7aphqdnlb0qlfccsi8s6nt Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240814@175154.1993 kqoh7aphqdnlb0qlfccsi8s6nt Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66bce0903666bce0aa2f','aut66bce3344966bce0a9c3' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240814@175154.1999 kqoh7aphqdnlb0qlfccsi8s6nt Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175154.2015 kqoh7aphqdnlb0qlfccsi8s6nt Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240814@175154.2047 kqoh7aphqdnlb0qlfccsi8s6nt Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66bce0903666bce0aa2f',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66bce3344966bce0a9c3' ,0,0 ,2,23.00,30000,?,?,?)
20240814@175154.2311 kqoh7aphqdnlb0qlfccsi8s6nt Query : use flama_phc
20240814@175154.2314 kqoh7aphqdnlb0qlfccsi8s6nt Query : select st.usalote valor from st where st.ref = '324.5501.00.1'
20240814@175154.2336 kqoh7aphqdnlb0qlfccsi8s6nt Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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'
20240814@175154.2350 kqoh7aphqdnlb0qlfccsi8s6nt Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175154.2391 kqoh7aphqdnlb0qlfccsi8s6nt Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240814@175154.2419 kqoh7aphqdnlb0qlfccsi8s6nt Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175154.2435 kqoh7aphqdnlb0qlfccsi8s6nt Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240814@175154.2444 kqoh7aphqdnlb0qlfccsi8s6nt Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240814@175154.2457 kqoh7aphqdnlb0qlfccsi8s6nt Query : select sestamp valor from se where ref ='324.5501.00.1' and lote = 'r2300908100a'
20240814@175154.2471 kqoh7aphqdnlb0qlfccsi8s6nt Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175154.2487 kqoh7aphqdnlb0qlfccsi8s6nt Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240814@175154.2499 kqoh7aphqdnlb0qlfccsi8s6nt Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66bce2719666bce0aa3c','aut66bce3344966bce0a9c3' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240814@175154.2504 kqoh7aphqdnlb0qlfccsi8s6nt Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175154.2519 kqoh7aphqdnlb0qlfccsi8s6nt Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240814@175154.2550 kqoh7aphqdnlb0qlfccsi8s6nt Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem) values ('aut66bce2719666bce0aa3c',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',4.000 ,'aut66bce3344966bce0a9c3' ,0,0 ,2,23.00,50000,?,?,?,?)
20240814@175154.2820 kqoh7aphqdnlb0qlfccsi8s6nt Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut66bce3344966bce0a9c3','2405439','wait',39,'adm09112754980.682000002')
20240814@175154.2893 kqoh7aphqdnlb0qlfccsi8s6nt Query : use flama_phc
20240814@175154.2896 kqoh7aphqdnlb0qlfccsi8s6nt Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240814@175154.2938 kqoh7aphqdnlb0qlfccsi8s6nt Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1553';
20240814@175154.2976 kqoh7aphqdnlb0qlfccsi8s6nt Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1553';
20240814@175154.3025 kqoh7aphqdnlb0qlfccsi8s6nt Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1553';
20240814@175154.3085 kqoh7aphqdnlb0qlfccsi8s6nt Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1553';
20240814@175154.3666 9766iv7p0c35c2e5o82esvcvf0 Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240814@175154.3677 9766iv7p0c35c2e5o82esvcvf0 Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240814@175154.3740 9766iv7p0c35c2e5o82esvcvf0 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1554';
20240814@175154.3796 9766iv7p0c35c2e5o82esvcvf0 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1554';
20240814@175154.3847 9766iv7p0c35c2e5o82esvcvf0 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1554';
20240814@175154.3878 9766iv7p0c35c2e5o82esvcvf0 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1554';
20240814@175154.3939 9766iv7p0c35c2e5o82esvcvf0 Query : use flama_phc
20240814@175154.3966 9766iv7p0c35c2e5o82esvcvf0 Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240814@175154.4035 9766iv7p0c35c2e5o82esvcvf0 Query : use flama_phc
20240814@175154.4038 9766iv7p0c35c2e5o82esvcvf0 Query : select no, estab,szadrsdesc from szadrs where u_coddest=2014
20240814@175154.4124 9766iv7p0c35c2e5o82esvcvf0 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'
20240814@175154.4144 9766iv7p0c35c2e5o82esvcvf0 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.5396.00.1'
20240814@175154.4165 9766iv7p0c35c2e5o82esvcvf0 Query : use flama_phc
20240814@175154.4168 9766iv7p0c35c2e5o82esvcvf0 Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20240814@175154.4203 9766iv7p0c35c2e5o82esvcvf0 Query : use flama_phc
20240814@175154.4206 9766iv7p0c35c2e5o82esvcvf0 Query : select top 1 1 valor from td where td.ndoc = 39
20240814@175154.4240 9766iv7p0c35c2e5o82esvcvf0 Query : use flama_phc
20240814@175154.4243 9766iv7p0c35c2e5o82esvcvf0 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')
20240814@175154.4273 9766iv7p0c35c2e5o82esvcvf0 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
20240814@175154.4309 9766iv7p0c35c2e5o82esvcvf0 Query : use flama_phc
20240814@175154.4313 9766iv7p0c35c2e5o82esvcvf0 Query : select top 1 ~inactivo valor from cl where no = '101621' and estab = 0 order by inactivo desc
20240814@175154.4345 9766iv7p0c35c2e5o82esvcvf0 Query : use flama_phc
20240814@175154.4348 9766iv7p0c35c2e5o82esvcvf0 Query : select top 1 tipodoc,regrd from td where ndoc = 39
20240814@175154.4393 9766iv7p0c35c2e5o82esvcvf0 Query : use flama_phc
20240814@175154.4397 9766iv7p0c35c2e5o82esvcvf0 Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20240814@175154.4457 9766iv7p0c35c2e5o82esvcvf0 Query : use flama_phc
20240814@175154.4460 9766iv7p0c35c2e5o82esvcvf0 Query : select szadrsstamp valor from szadrs where szadrsdesc='j.o.m.,lda - guarda'
20240814@175154.4513 9766iv7p0c35c2e5o82esvcvf0 Query : use flama_phc
20240814@175154.4515 9766iv7p0c35c2e5o82esvcvf0 Query : select 1 valor from td where ndoc = 39
20240814@175154.4528 9766iv7p0c35c2e5o82esvcvf0 Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20240814@175154.4543 9766iv7p0c35c2e5o82esvcvf0 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175154.4560 9766iv7p0c35c2e5o82esvcvf0 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20240814@175154.4580 9766iv7p0c35c2e5o82esvcvf0 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175154.4595 9766iv7p0c35c2e5o82esvcvf0 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20240814@175154.4624 9766iv7p0c35c2e5o82esvcvf0 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175154.4638 9766iv7p0c35c2e5o82esvcvf0 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20240814@175154.4650 9766iv7p0c35c2e5o82esvcvf0 Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240814@175154.4721 9766iv7p0c35c2e5o82esvcvf0 Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240814@175154.4734 9766iv7p0c35c2e5o82esvcvf0 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175154.4750 9766iv7p0c35c2e5o82esvcvf0 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20240814@175154.4765 9766iv7p0c35c2e5o82esvcvf0 Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut66bce1661366bce0aa71' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20240814@175154.4982 9766iv7p0c35c2e5o82esvcvf0 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175154.4998 9766iv7p0c35c2e5o82esvcvf0 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20240814@175154.5046 9766iv7p0c35c2e5o82esvcvf0 Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20240814@175154.5059 9766iv7p0c35c2e5o82esvcvf0 Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20240814@175154.5094 9766iv7p0c35c2e5o82esvcvf0 Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20240814@175154.5106 9766iv7p0c35c2e5o82esvcvf0 Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20240814@175154.5117 9766iv7p0c35c2e5o82esvcvf0 Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20240814@175154.5129 9766iv7p0c35c2e5o82esvcvf0 Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20240814@175154.5141 9766iv7p0c35c2e5o82esvcvf0 Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut66bce1661366bce0aa71',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20240814@175154.5393 9766iv7p0c35c2e5o82esvcvf0 Query : select top 1 fno valor from wsftdata order by fno desc
20240814@175154.5410 9766iv7p0c35c2e5o82esvcvf0 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175154.5425 9766iv7p0c35c2e5o82esvcvf0 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20240814@175154.5447 9766iv7p0c35c2e5o82esvcvf0 Query : select 'normal' from dummy
20240814@175154.5463 9766iv7p0c35c2e5o82esvcvf0 Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut66bce1661366bce0aa71',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',367,101621,0,'2024-08-14',39,'euro',0,0,2024 ,?,?)
20240814@175154.5784 9766iv7p0c35c2e5o82esvcvf0 Query : use flama_phc
20240814@175154.5787 9766iv7p0c35c2e5o82esvcvf0 Query : select st.usalote valor from st where st.ref = '324.5501.00.1'
20240814@175154.5809 9766iv7p0c35c2e5o82esvcvf0 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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'
20240814@175154.5823 9766iv7p0c35c2e5o82esvcvf0 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175154.5838 9766iv7p0c35c2e5o82esvcvf0 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240814@175154.5864 9766iv7p0c35c2e5o82esvcvf0 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175154.5879 9766iv7p0c35c2e5o82esvcvf0 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240814@175154.5888 9766iv7p0c35c2e5o82esvcvf0 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240814@175154.5900 9766iv7p0c35c2e5o82esvcvf0 Query : select sestamp valor from se where ref ='324.5501.00.1' and lote = 'r2300908100a'
20240814@175154.5912 9766iv7p0c35c2e5o82esvcvf0 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175154.5926 9766iv7p0c35c2e5o82esvcvf0 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240814@175154.5938 9766iv7p0c35c2e5o82esvcvf0 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66bce1026366bce0aa90','aut66bce1661366bce0aa71' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240814@175154.5942 9766iv7p0c35c2e5o82esvcvf0 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175154.5956 9766iv7p0c35c2e5o82esvcvf0 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240814@175154.5985 9766iv7p0c35c2e5o82esvcvf0 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem) values ('aut66bce1026366bce0aa90',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',4.000 ,'aut66bce1661366bce0aa71' ,0,0 ,2,23.00,10000,?,?,?,?)
20240814@175154.6245 9766iv7p0c35c2e5o82esvcvf0 Query : use flama_phc
20240814@175154.6248 9766iv7p0c35c2e5o82esvcvf0 Query : select st.usalote valor from st where st.ref = '324.5396.00.1'
20240814@175154.6268 9766iv7p0c35c2e5o82esvcvf0 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.5396.00.1'
20240814@175154.6282 9766iv7p0c35c2e5o82esvcvf0 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175154.6322 9766iv7p0c35c2e5o82esvcvf0 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240814@175154.6348 9766iv7p0c35c2e5o82esvcvf0 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175154.6364 9766iv7p0c35c2e5o82esvcvf0 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240814@175154.6372 9766iv7p0c35c2e5o82esvcvf0 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240814@175154.6384 9766iv7p0c35c2e5o82esvcvf0 Query : select sestamp valor from se where ref ='324.5396.00.1' and lote = 'r2300840100a'
20240814@175154.6396 9766iv7p0c35c2e5o82esvcvf0 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175154.6410 9766iv7p0c35c2e5o82esvcvf0 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240814@175154.6423 9766iv7p0c35c2e5o82esvcvf0 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66bce4895566bce0aa9c','aut66bce1661366bce0aa71' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240814@175154.6428 9766iv7p0c35c2e5o82esvcvf0 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175154.6442 9766iv7p0c35c2e5o82esvcvf0 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240814@175154.6473 9766iv7p0c35c2e5o82esvcvf0 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem) values ('aut66bce4895566bce0aa9c',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',6.000 ,'aut66bce1661366bce0aa71' ,0,0 ,2,23.00,20000,?,?,?,?)
20240814@175154.6817 9766iv7p0c35c2e5o82esvcvf0 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175154.6837 9766iv7p0c35c2e5o82esvcvf0 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240814@175154.6866 9766iv7p0c35c2e5o82esvcvf0 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175154.6883 9766iv7p0c35c2e5o82esvcvf0 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240814@175154.6891 9766iv7p0c35c2e5o82esvcvf0 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240814@175154.6903 9766iv7p0c35c2e5o82esvcvf0 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175154.6918 9766iv7p0c35c2e5o82esvcvf0 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240814@175154.6929 9766iv7p0c35c2e5o82esvcvf0 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66bce6643666bce0aaa8','aut66bce1661366bce0aa71' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240814@175154.6934 9766iv7p0c35c2e5o82esvcvf0 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175154.6948 9766iv7p0c35c2e5o82esvcvf0 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240814@175154.6990 9766iv7p0c35c2e5o82esvcvf0 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66bce6643666bce0aaa8',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66bce1661366bce0aa71' ,0,0 ,2,23.00,30000,?,?,?)
20240814@175154.7373 9766iv7p0c35c2e5o82esvcvf0 Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut66bce1661366bce0aa71','2405440','wait',39,'adm09112754980.682000002')
20240814@175154.7520 9766iv7p0c35c2e5o82esvcvf0 Query : use flama_phc
20240814@175154.7523 9766iv7p0c35c2e5o82esvcvf0 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240814@175154.7557 9766iv7p0c35c2e5o82esvcvf0 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1554';
20240814@175154.7586 9766iv7p0c35c2e5o82esvcvf0 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1554';
20240814@175154.7926 9766iv7p0c35c2e5o82esvcvf0 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1554';
20240814@175154.7954 9766iv7p0c35c2e5o82esvcvf0 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1554';
20240814@175154.8507 c96j4vo3sfehdsl0nig76junb9 Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240814@175154.8519 c96j4vo3sfehdsl0nig76junb9 Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240814@175154.8578 c96j4vo3sfehdsl0nig76junb9 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1555';
20240814@175154.8634 c96j4vo3sfehdsl0nig76junb9 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1555';
20240814@175154.8696 c96j4vo3sfehdsl0nig76junb9 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1555';
20240814@175154.8726 c96j4vo3sfehdsl0nig76junb9 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1555';
20240814@175154.8777 c96j4vo3sfehdsl0nig76junb9 Query : use flama_phc
20240814@175154.8781 c96j4vo3sfehdsl0nig76junb9 Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240814@175154.8850 c96j4vo3sfehdsl0nig76junb9 Query : use flama_phc
20240814@175154.8853 c96j4vo3sfehdsl0nig76junb9 Query : select no, estab,szadrsdesc from szadrs where u_coddest=909
20240814@175154.8939 c96j4vo3sfehdsl0nig76junb9 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'
20240814@175154.8973 c96j4vo3sfehdsl0nig76junb9 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1716.00.1'
20240814@175154.8995 c96j4vo3sfehdsl0nig76junb9 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1832.00.2'
20240814@175154.9015 c96j4vo3sfehdsl0nig76junb9 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.646.00.01'
20240814@175154.9036 c96j4vo3sfehdsl0nig76junb9 Query : use flama_phc
20240814@175154.9039 c96j4vo3sfehdsl0nig76junb9 Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20240814@175154.9070 c96j4vo3sfehdsl0nig76junb9 Query : use flama_phc
20240814@175154.9073 c96j4vo3sfehdsl0nig76junb9 Query : select top 1 1 valor from td where td.ndoc = 39
20240814@175154.9102 c96j4vo3sfehdsl0nig76junb9 Query : use flama_phc
20240814@175154.9105 c96j4vo3sfehdsl0nig76junb9 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')
20240814@175154.9142 c96j4vo3sfehdsl0nig76junb9 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
20240814@175155.5730 c96j4vo3sfehdsl0nig76junb9 Query : use flama_phc
20240814@175155.5800 c96j4vo3sfehdsl0nig76junb9 Query : select top 1 ~inactivo valor from cl where no = '101621' and estab = 0 order by inactivo desc
20240814@175155.6160 c96j4vo3sfehdsl0nig76junb9 Query : use flama_phc
20240814@175155.6190 c96j4vo3sfehdsl0nig76junb9 Query : select top 1 tipodoc,regrd from td where ndoc = 39
20240814@175155.6490 c96j4vo3sfehdsl0nig76junb9 Query : use flama_phc
20240814@175155.6510 c96j4vo3sfehdsl0nig76junb9 Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20240814@175155.6890 c96j4vo3sfehdsl0nig76junb9 Query : use flama_phc
20240814@175155.6920 c96j4vo3sfehdsl0nig76junb9 Query : select szadrsstamp valor from szadrs where szadrsdesc='j.o.m.,lda - ovar'
20240814@175155.7360 c96j4vo3sfehdsl0nig76junb9 Query : use flama_phc
20240814@175155.7390 c96j4vo3sfehdsl0nig76junb9 Query : select 1 valor from td where ndoc = 39
20240814@175155.7510 c96j4vo3sfehdsl0nig76junb9 Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20240814@175155.7640 c96j4vo3sfehdsl0nig76junb9 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175155.7810 c96j4vo3sfehdsl0nig76junb9 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20240814@175155.7990 c96j4vo3sfehdsl0nig76junb9 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175155.8130 c96j4vo3sfehdsl0nig76junb9 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20240814@175155.8400 c96j4vo3sfehdsl0nig76junb9 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175155.8540 c96j4vo3sfehdsl0nig76junb9 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20240814@175155.8660 c96j4vo3sfehdsl0nig76junb9 Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240814@175155.9340 c96j4vo3sfehdsl0nig76junb9 Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240814@175155.9470 c96j4vo3sfehdsl0nig76junb9 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175155.9610 c96j4vo3sfehdsl0nig76junb9 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20240814@175155.9770 c96j4vo3sfehdsl0nig76junb9 Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut66bce8053866bce0ab15' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20240814@175155.1154 c96j4vo3sfehdsl0nig76junb9 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175155.1169 c96j4vo3sfehdsl0nig76junb9 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20240814@175155.1201 c96j4vo3sfehdsl0nig76junb9 Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20240814@175155.1212 c96j4vo3sfehdsl0nig76junb9 Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20240814@175155.1224 c96j4vo3sfehdsl0nig76junb9 Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20240814@175155.1235 c96j4vo3sfehdsl0nig76junb9 Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20240814@175155.1247 c96j4vo3sfehdsl0nig76junb9 Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20240814@175155.1258 c96j4vo3sfehdsl0nig76junb9 Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20240814@175155.1269 c96j4vo3sfehdsl0nig76junb9 Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut66bce8053866bce0ab15',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20240814@175155.1498 c96j4vo3sfehdsl0nig76junb9 Query : select top 1 fno valor from wsftdata order by fno desc
20240814@175155.1515 c96j4vo3sfehdsl0nig76junb9 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175155.1529 c96j4vo3sfehdsl0nig76junb9 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20240814@175155.1550 c96j4vo3sfehdsl0nig76junb9 Query : select 'normal' from dummy
20240814@175155.1565 c96j4vo3sfehdsl0nig76junb9 Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut66bce8053866bce0ab15',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',368,101621,0,'2024-08-14',39,'euro',0,0,2024 ,?,?)
20240814@175155.1840 c96j4vo3sfehdsl0nig76junb9 Query : use flama_phc
20240814@175155.1844 c96j4vo3sfehdsl0nig76junb9 Query : select st.usalote valor from st where st.ref = '324.5501.00.1'
20240814@175155.1864 c96j4vo3sfehdsl0nig76junb9 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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'
20240814@175155.1877 c96j4vo3sfehdsl0nig76junb9 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175155.1892 c96j4vo3sfehdsl0nig76junb9 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240814@175155.1917 c96j4vo3sfehdsl0nig76junb9 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175155.1931 c96j4vo3sfehdsl0nig76junb9 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240814@175155.1939 c96j4vo3sfehdsl0nig76junb9 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240814@175155.1951 c96j4vo3sfehdsl0nig76junb9 Query : select sestamp valor from se where ref ='324.5501.00.1' and lote = 'r2300908100a'
20240814@175155.1965 c96j4vo3sfehdsl0nig76junb9 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175155.1979 c96j4vo3sfehdsl0nig76junb9 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240814@175155.1991 c96j4vo3sfehdsl0nig76junb9 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66bce2519266bce0ab2f','aut66bce8053866bce0ab15' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240814@175155.1995 c96j4vo3sfehdsl0nig76junb9 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175155.2009 c96j4vo3sfehdsl0nig76junb9 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240814@175155.2037 c96j4vo3sfehdsl0nig76junb9 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem) values ('aut66bce2519266bce0ab2f',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',4.000 ,'aut66bce8053866bce0ab15' ,0,0 ,2,23.00,10000,?,?,?,?)
20240814@175155.2297 c96j4vo3sfehdsl0nig76junb9 Query : use flama_phc
20240814@175155.2300 c96j4vo3sfehdsl0nig76junb9 Query : select st.usalote valor from st where st.ref = '324.1716.00.1'
20240814@175155.2319 c96j4vo3sfehdsl0nig76junb9 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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.1716.00.1'
20240814@175155.2335 c96j4vo3sfehdsl0nig76junb9 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175155.2350 c96j4vo3sfehdsl0nig76junb9 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240814@175155.2376 c96j4vo3sfehdsl0nig76junb9 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175155.2391 c96j4vo3sfehdsl0nig76junb9 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240814@175155.2399 c96j4vo3sfehdsl0nig76junb9 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240814@175155.2411 c96j4vo3sfehdsl0nig76junb9 Query : select sestamp valor from se where ref ='324.1716.00.1' and lote = 'r2100312300a'
20240814@175155.2423 c96j4vo3sfehdsl0nig76junb9 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175155.2438 c96j4vo3sfehdsl0nig76junb9 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240814@175155.2449 c96j4vo3sfehdsl0nig76junb9 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66bce5384166bce0ab3b','aut66bce8053866bce0ab15' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240814@175155.2453 c96j4vo3sfehdsl0nig76junb9 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175155.2468 c96j4vo3sfehdsl0nig76junb9 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240814@175155.2506 c96j4vo3sfehdsl0nig76junb9 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem) values ('aut66bce5384166bce0ab3b',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',4.000 ,'aut66bce8053866bce0ab15' ,0,0 ,2,23.00,20000,?,?,?,?)
20240814@175155.2737 c96j4vo3sfehdsl0nig76junb9 Query : use flama_phc
20240814@175155.2740 c96j4vo3sfehdsl0nig76junb9 Query : select st.usalote valor from st where st.ref = '324.1832.00.2'
20240814@175155.2759 c96j4vo3sfehdsl0nig76junb9 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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.1832.00.2'
20240814@175155.2773 c96j4vo3sfehdsl0nig76junb9 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175155.2788 c96j4vo3sfehdsl0nig76junb9 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240814@175155.2812 c96j4vo3sfehdsl0nig76junb9 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175155.2827 c96j4vo3sfehdsl0nig76junb9 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240814@175155.2835 c96j4vo3sfehdsl0nig76junb9 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240814@175155.2846 c96j4vo3sfehdsl0nig76junb9 Query : select sestamp valor from se where ref ='324.1832.00.2' and lote = 'r2301271100a'
20240814@175155.2858 c96j4vo3sfehdsl0nig76junb9 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175155.2872 c96j4vo3sfehdsl0nig76junb9 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240814@175155.2883 c96j4vo3sfehdsl0nig76junb9 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66bce8149966bce0ab45','aut66bce8053866bce0ab15' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240814@175155.2887 c96j4vo3sfehdsl0nig76junb9 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175155.2901 c96j4vo3sfehdsl0nig76junb9 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240814@175155.2929 c96j4vo3sfehdsl0nig76junb9 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem) values ('aut66bce8149966bce0ab45',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',4.000 ,'aut66bce8053866bce0ab15' ,0,0 ,2,23.00,30000,?,?,?,?)
20240814@175155.3152 c96j4vo3sfehdsl0nig76junb9 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175155.3166 c96j4vo3sfehdsl0nig76junb9 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240814@175155.3191 c96j4vo3sfehdsl0nig76junb9 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175155.3205 c96j4vo3sfehdsl0nig76junb9 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240814@175155.3213 c96j4vo3sfehdsl0nig76junb9 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240814@175155.3224 c96j4vo3sfehdsl0nig76junb9 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175155.3238 c96j4vo3sfehdsl0nig76junb9 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240814@175155.3250 c96j4vo3sfehdsl0nig76junb9 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66bce7624466bce0ab4e','aut66bce8053866bce0ab15' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240814@175155.3253 c96j4vo3sfehdsl0nig76junb9 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175155.3269 c96j4vo3sfehdsl0nig76junb9 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240814@175155.3297 c96j4vo3sfehdsl0nig76junb9 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66bce7624466bce0ab4e',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66bce8053866bce0ab15' ,0,0 ,2,23.00,40000,?,?,?)
20240814@175155.3647 c96j4vo3sfehdsl0nig76junb9 Query : use flama_phc
20240814@175155.3651 c96j4vo3sfehdsl0nig76junb9 Query : select st.usalote valor from st where st.ref = '324.646.00.01'
20240814@175155.3670 c96j4vo3sfehdsl0nig76junb9 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.646.00.01'
20240814@175155.3684 c96j4vo3sfehdsl0nig76junb9 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175155.3699 c96j4vo3sfehdsl0nig76junb9 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240814@175155.3724 c96j4vo3sfehdsl0nig76junb9 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175155.3738 c96j4vo3sfehdsl0nig76junb9 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240814@175155.3747 c96j4vo3sfehdsl0nig76junb9 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240814@175155.3758 c96j4vo3sfehdsl0nig76junb9 Query : select sestamp valor from se where ref ='324.646.00.01' and lote = 'r2400055100a'
20240814@175155.3771 c96j4vo3sfehdsl0nig76junb9 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175155.3784 c96j4vo3sfehdsl0nig76junb9 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240814@175155.3796 c96j4vo3sfehdsl0nig76junb9 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66bce2046966bce0ab5c','aut66bce8053866bce0ab15' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240814@175155.3800 c96j4vo3sfehdsl0nig76junb9 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175155.3814 c96j4vo3sfehdsl0nig76junb9 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240814@175155.3842 c96j4vo3sfehdsl0nig76junb9 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem) values ('aut66bce2046966bce0ab5c',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',4.000 ,'aut66bce8053866bce0ab15' ,0,0 ,2,23.00,60000,?,?,?,?)
20240814@175155.4092 c96j4vo3sfehdsl0nig76junb9 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175155.4107 c96j4vo3sfehdsl0nig76junb9 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240814@175155.4131 c96j4vo3sfehdsl0nig76junb9 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175155.4145 c96j4vo3sfehdsl0nig76junb9 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240814@175155.4154 c96j4vo3sfehdsl0nig76junb9 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240814@175155.4166 c96j4vo3sfehdsl0nig76junb9 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175155.4180 c96j4vo3sfehdsl0nig76junb9 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240814@175155.4191 c96j4vo3sfehdsl0nig76junb9 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66bce2134866bce0ab65','aut66bce8053866bce0ab15' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240814@175155.4195 c96j4vo3sfehdsl0nig76junb9 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175155.4209 c96j4vo3sfehdsl0nig76junb9 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240814@175155.4237 c96j4vo3sfehdsl0nig76junb9 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66bce2134866bce0ab65',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66bce8053866bce0ab15' ,0,0 ,2,23.00,70000,?,?,?)
20240814@175155.4453 c96j4vo3sfehdsl0nig76junb9 Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut66bce8053866bce0ab15','2405441','wait',39,'adm09112754980.682000002')
20240814@175155.4529 c96j4vo3sfehdsl0nig76junb9 Query : use flama_phc
20240814@175155.4532 c96j4vo3sfehdsl0nig76junb9 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240814@175155.4563 c96j4vo3sfehdsl0nig76junb9 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1555';
20240814@175155.4589 c96j4vo3sfehdsl0nig76junb9 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1555';
20240814@175155.4627 c96j4vo3sfehdsl0nig76junb9 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1555';
20240814@175155.4651 c96j4vo3sfehdsl0nig76junb9 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1555';
20240814@175155.5224 0ik1p1947gv64h8qqh8mvjga88 Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240814@175155.5236 0ik1p1947gv64h8qqh8mvjga88 Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240814@175155.5286 0ik1p1947gv64h8qqh8mvjga88 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1556';
20240814@175155.5339 0ik1p1947gv64h8qqh8mvjga88 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1556';
20240814@175155.5392 0ik1p1947gv64h8qqh8mvjga88 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1556';
20240814@175155.5414 0ik1p1947gv64h8qqh8mvjga88 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1556';
20240814@175155.5466 0ik1p1947gv64h8qqh8mvjga88 Query : use flama_phc
20240814@175155.5469 0ik1p1947gv64h8qqh8mvjga88 Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240814@175155.5530 0ik1p1947gv64h8qqh8mvjga88 Query : use flama_phc
20240814@175155.5533 0ik1p1947gv64h8qqh8mvjga88 Query : select no, estab,szadrsdesc from szadrs where u_coddest=2374
20240814@175155.5620 0ik1p1947gv64h8qqh8mvjga88 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'
20240814@175155.5642 0ik1p1947gv64h8qqh8mvjga88 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.5396.00.1'
20240814@175155.5664 0ik1p1947gv64h8qqh8mvjga88 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.646.00.01'
20240814@175155.5686 0ik1p1947gv64h8qqh8mvjga88 Query : use flama_phc
20240814@175155.5690 0ik1p1947gv64h8qqh8mvjga88 Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20240814@175155.5721 0ik1p1947gv64h8qqh8mvjga88 Query : use flama_phc
20240814@175155.5724 0ik1p1947gv64h8qqh8mvjga88 Query : select top 1 1 valor from td where td.ndoc = 39
20240814@175155.5765 0ik1p1947gv64h8qqh8mvjga88 Query : use flama_phc
20240814@175155.5768 0ik1p1947gv64h8qqh8mvjga88 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')
20240814@175155.5798 0ik1p1947gv64h8qqh8mvjga88 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
20240814@175155.5832 0ik1p1947gv64h8qqh8mvjga88 Query : use flama_phc
20240814@175155.5835 0ik1p1947gv64h8qqh8mvjga88 Query : select top 1 ~inactivo valor from cl where no = '101621' and estab = 0 order by inactivo desc
20240814@175155.5866 0ik1p1947gv64h8qqh8mvjga88 Query : use flama_phc
20240814@175155.5869 0ik1p1947gv64h8qqh8mvjga88 Query : select top 1 tipodoc,regrd from td where ndoc = 39
20240814@175155.5899 0ik1p1947gv64h8qqh8mvjga88 Query : use flama_phc
20240814@175155.5902 0ik1p1947gv64h8qqh8mvjga88 Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20240814@175155.5949 0ik1p1947gv64h8qqh8mvjga88 Query : use flama_phc
20240814@175155.5952 0ik1p1947gv64h8qqh8mvjga88 Query : select szadrsstamp valor from szadrs where szadrsdesc='j.o.m.,lda - vila real'
20240814@175155.6008 0ik1p1947gv64h8qqh8mvjga88 Query : use flama_phc
20240814@175155.6010 0ik1p1947gv64h8qqh8mvjga88 Query : select 1 valor from td where ndoc = 39
20240814@175155.6023 0ik1p1947gv64h8qqh8mvjga88 Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20240814@175155.6037 0ik1p1947gv64h8qqh8mvjga88 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175155.6054 0ik1p1947gv64h8qqh8mvjga88 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20240814@175155.6073 0ik1p1947gv64h8qqh8mvjga88 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175155.6088 0ik1p1947gv64h8qqh8mvjga88 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20240814@175155.6117 0ik1p1947gv64h8qqh8mvjga88 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175155.6132 0ik1p1947gv64h8qqh8mvjga88 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20240814@175155.6145 0ik1p1947gv64h8qqh8mvjga88 Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240814@175155.6216 0ik1p1947gv64h8qqh8mvjga88 Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240814@175155.6228 0ik1p1947gv64h8qqh8mvjga88 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175155.6243 0ik1p1947gv64h8qqh8mvjga88 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20240814@175155.6259 0ik1p1947gv64h8qqh8mvjga88 Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut66bce5154666bce0ab96' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20240814@175155.6443 0ik1p1947gv64h8qqh8mvjga88 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175155.6470 0ik1p1947gv64h8qqh8mvjga88 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20240814@175155.6505 0ik1p1947gv64h8qqh8mvjga88 Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20240814@175155.6517 0ik1p1947gv64h8qqh8mvjga88 Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20240814@175155.6529 0ik1p1947gv64h8qqh8mvjga88 Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20240814@175155.6542 0ik1p1947gv64h8qqh8mvjga88 Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20240814@175155.6554 0ik1p1947gv64h8qqh8mvjga88 Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20240814@175155.6566 0ik1p1947gv64h8qqh8mvjga88 Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20240814@175155.6578 0ik1p1947gv64h8qqh8mvjga88 Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut66bce5154666bce0ab96',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20240814@175155.6844 0ik1p1947gv64h8qqh8mvjga88 Query : select top 1 fno valor from wsftdata order by fno desc
20240814@175155.6878 0ik1p1947gv64h8qqh8mvjga88 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175155.6920 0ik1p1947gv64h8qqh8mvjga88 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20240814@175155.8594 0ik1p1947gv64h8qqh8mvjga88 Query : select 'normal' from dummy
20240814@175155.8659 0ik1p1947gv64h8qqh8mvjga88 Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut66bce5154666bce0ab96',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',369,101621,0,'2024-08-14',39,'euro',0,0,2024 ,?,?)
20240814@175155.8985 0ik1p1947gv64h8qqh8mvjga88 Query : use flama_phc
20240814@175155.8988 0ik1p1947gv64h8qqh8mvjga88 Query : select st.usalote valor from st where st.ref = '324.5501.00.1'
20240814@175155.9008 0ik1p1947gv64h8qqh8mvjga88 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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'
20240814@175155.9024 0ik1p1947gv64h8qqh8mvjga88 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175155.9040 0ik1p1947gv64h8qqh8mvjga88 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240814@175155.9065 0ik1p1947gv64h8qqh8mvjga88 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175155.9079 0ik1p1947gv64h8qqh8mvjga88 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240814@175155.9087 0ik1p1947gv64h8qqh8mvjga88 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240814@175155.9098 0ik1p1947gv64h8qqh8mvjga88 Query : select sestamp valor from se where ref ='324.5501.00.1' and lote = 'r2300908100a'
20240814@175155.9110 0ik1p1947gv64h8qqh8mvjga88 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175155.9125 0ik1p1947gv64h8qqh8mvjga88 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240814@175155.9137 0ik1p1947gv64h8qqh8mvjga88 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66bce4658366bce0abde','aut66bce5154666bce0ab96' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240814@175155.9141 0ik1p1947gv64h8qqh8mvjga88 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175155.9155 0ik1p1947gv64h8qqh8mvjga88 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240814@175155.9181 0ik1p1947gv64h8qqh8mvjga88 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem) values ('aut66bce4658366bce0abde',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',4.000 ,'aut66bce5154666bce0ab96' ,0,0 ,2,23.00,10000,?,?,?,?)
20240814@175155.9446 0ik1p1947gv64h8qqh8mvjga88 Query : use flama_phc
20240814@175155.9450 0ik1p1947gv64h8qqh8mvjga88 Query : select st.usalote valor from st where st.ref = '324.5396.00.1'
20240814@175155.9469 0ik1p1947gv64h8qqh8mvjga88 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.5396.00.1'
20240814@175155.9483 0ik1p1947gv64h8qqh8mvjga88 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175155.9498 0ik1p1947gv64h8qqh8mvjga88 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240814@175155.9523 0ik1p1947gv64h8qqh8mvjga88 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175155.9537 0ik1p1947gv64h8qqh8mvjga88 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240814@175155.9545 0ik1p1947gv64h8qqh8mvjga88 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240814@175155.9557 0ik1p1947gv64h8qqh8mvjga88 Query : select sestamp valor from se where ref ='324.5396.00.1' and lote = 'r2300840100a'
20240814@175155.9569 0ik1p1947gv64h8qqh8mvjga88 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175155.9583 0ik1p1947gv64h8qqh8mvjga88 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240814@175155.9595 0ik1p1947gv64h8qqh8mvjga88 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66bce7060066bce0abe9','aut66bce5154666bce0ab96' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240814@175155.9598 0ik1p1947gv64h8qqh8mvjga88 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175155.9613 0ik1p1947gv64h8qqh8mvjga88 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240814@175155.9640 0ik1p1947gv64h8qqh8mvjga88 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem) values ('aut66bce7060066bce0abe9',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',6.000 ,'aut66bce5154666bce0ab96' ,0,0 ,2,23.00,20000,?,?,?,?)
20240814@175155.9901 0ik1p1947gv64h8qqh8mvjga88 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175155.9921 0ik1p1947gv64h8qqh8mvjga88 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240814@175155.9947 0ik1p1947gv64h8qqh8mvjga88 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175155.9961 0ik1p1947gv64h8qqh8mvjga88 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240814@175155.9969 0ik1p1947gv64h8qqh8mvjga88 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240814@175155.9981 0ik1p1947gv64h8qqh8mvjga88 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175155.9996 0ik1p1947gv64h8qqh8mvjga88 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240814@175156.7000 0ik1p1947gv64h8qqh8mvjga88 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66bce8811366bce0abf3','aut66bce5154666bce0ab96' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240814@175156.1100 0ik1p1947gv64h8qqh8mvjga88 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175156.2600 0ik1p1947gv64h8qqh8mvjga88 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240814@175156.5700 0ik1p1947gv64h8qqh8mvjga88 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66bce8811366bce0abf3',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66bce5154666bce0ab96' ,0,0 ,2,23.00,30000,?,?,?)
20240814@175156.3090 0ik1p1947gv64h8qqh8mvjga88 Query : use flama_phc
20240814@175156.3130 0ik1p1947gv64h8qqh8mvjga88 Query : select st.usalote valor from st where st.ref = '324.646.00.01'
20240814@175156.3320 0ik1p1947gv64h8qqh8mvjga88 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.646.00.01'
20240814@175156.3460 0ik1p1947gv64h8qqh8mvjga88 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175156.3620 0ik1p1947gv64h8qqh8mvjga88 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240814@175156.3860 0ik1p1947gv64h8qqh8mvjga88 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175156.3990 0ik1p1947gv64h8qqh8mvjga88 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240814@175156.4070 0ik1p1947gv64h8qqh8mvjga88 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240814@175156.4180 0ik1p1947gv64h8qqh8mvjga88 Query : select sestamp valor from se where ref ='324.646.00.01' and lote = 'r2400055100a'
20240814@175156.4300 0ik1p1947gv64h8qqh8mvjga88 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175156.4440 0ik1p1947gv64h8qqh8mvjga88 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240814@175156.4550 0ik1p1947gv64h8qqh8mvjga88 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66bce9248966bce0ac0a','aut66bce5154666bce0ab96' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240814@175156.4590 0ik1p1947gv64h8qqh8mvjga88 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175156.4730 0ik1p1947gv64h8qqh8mvjga88 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240814@175156.5020 0ik1p1947gv64h8qqh8mvjga88 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem) values ('aut66bce9248966bce0ac0a',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',4.000 ,'aut66bce5154666bce0ab96' ,0,0 ,2,23.00,50000,?,?,?,?)
20240814@175156.7650 0ik1p1947gv64h8qqh8mvjga88 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175156.7810 0ik1p1947gv64h8qqh8mvjga88 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240814@175156.8060 0ik1p1947gv64h8qqh8mvjga88 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175156.8200 0ik1p1947gv64h8qqh8mvjga88 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240814@175156.8280 0ik1p1947gv64h8qqh8mvjga88 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240814@175156.8410 0ik1p1947gv64h8qqh8mvjga88 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175156.8550 0ik1p1947gv64h8qqh8mvjga88 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240814@175156.8660 0ik1p1947gv64h8qqh8mvjga88 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66bce2247166bce0ac14','aut66bce5154666bce0ab96' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240814@175156.8700 0ik1p1947gv64h8qqh8mvjga88 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175156.8840 0ik1p1947gv64h8qqh8mvjga88 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240814@175156.9120 0ik1p1947gv64h8qqh8mvjga88 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66bce2247166bce0ac14',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66bce5154666bce0ab96' ,0,0 ,2,23.00,60000,?,?,?)
20240814@175156.1142 0ik1p1947gv64h8qqh8mvjga88 Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut66bce5154666bce0ab96','2405442','wait',39,'adm09112754980.682000002')
20240814@175156.1224 0ik1p1947gv64h8qqh8mvjga88 Query : use flama_phc
20240814@175156.1228 0ik1p1947gv64h8qqh8mvjga88 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240814@175156.1275 0ik1p1947gv64h8qqh8mvjga88 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1556';
20240814@175156.1313 0ik1p1947gv64h8qqh8mvjga88 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1556';
20240814@175156.1369 0ik1p1947gv64h8qqh8mvjga88 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1556';
20240814@175156.1393 0ik1p1947gv64h8qqh8mvjga88 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1556';
20240814@175156.1958 domqn8tambumd65kibpnu17eb4 Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240814@175156.1971 domqn8tambumd65kibpnu17eb4 Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240814@175156.2026 domqn8tambumd65kibpnu17eb4 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1557';
20240814@175156.2082 domqn8tambumd65kibpnu17eb4 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1557';
20240814@175156.2151 domqn8tambumd65kibpnu17eb4 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1557';
20240814@175156.2185 domqn8tambumd65kibpnu17eb4 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1557';
20240814@175156.2237 domqn8tambumd65kibpnu17eb4 Query : use flama_phc
20240814@175156.2240 domqn8tambumd65kibpnu17eb4 Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240814@175156.2363 domqn8tambumd65kibpnu17eb4 Query : use flama_phc
20240814@175156.2366 domqn8tambumd65kibpnu17eb4 Query : select no, estab,szadrsdesc from szadrs where u_coddest=6802
20240814@175156.2452 domqn8tambumd65kibpnu17eb4 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.5396.00.1'
20240814@175156.2472 domqn8tambumd65kibpnu17eb4 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1833.00.2'
20240814@175156.2493 domqn8tambumd65kibpnu17eb4 Query : use flama_phc
20240814@175156.2496 domqn8tambumd65kibpnu17eb4 Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20240814@175156.2535 domqn8tambumd65kibpnu17eb4 Query : use flama_phc
20240814@175156.2538 domqn8tambumd65kibpnu17eb4 Query : select top 1 1 valor from td where td.ndoc = 39
20240814@175156.2576 domqn8tambumd65kibpnu17eb4 Query : use flama_phc
20240814@175156.2579 domqn8tambumd65kibpnu17eb4 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')
20240814@175156.2607 domqn8tambumd65kibpnu17eb4 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
20240814@175156.2650 domqn8tambumd65kibpnu17eb4 Query : use flama_phc
20240814@175156.2653 domqn8tambumd65kibpnu17eb4 Query : select top 1 ~inactivo valor from cl where no = '101621' and estab = 0 order by inactivo desc
20240814@175156.2685 domqn8tambumd65kibpnu17eb4 Query : use flama_phc
20240814@175156.2688 domqn8tambumd65kibpnu17eb4 Query : select top 1 tipodoc,regrd from td where ndoc = 39
20240814@175156.2726 domqn8tambumd65kibpnu17eb4 Query : use flama_phc
20240814@175156.2729 domqn8tambumd65kibpnu17eb4 Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20240814@175156.2773 domqn8tambumd65kibpnu17eb4 Query : use flama_phc
20240814@175156.2775 domqn8tambumd65kibpnu17eb4 Query : select szadrsstamp valor from szadrs where szadrsdesc='j.o.m., lda - sintra'
20240814@175156.2824 domqn8tambumd65kibpnu17eb4 Query : use flama_phc
20240814@175156.2827 domqn8tambumd65kibpnu17eb4 Query : select 1 valor from td where ndoc = 39
20240814@175156.2840 domqn8tambumd65kibpnu17eb4 Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20240814@175156.2854 domqn8tambumd65kibpnu17eb4 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175156.2871 domqn8tambumd65kibpnu17eb4 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20240814@175156.2890 domqn8tambumd65kibpnu17eb4 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175156.2905 domqn8tambumd65kibpnu17eb4 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20240814@175156.2945 domqn8tambumd65kibpnu17eb4 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175156.2960 domqn8tambumd65kibpnu17eb4 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20240814@175156.2974 domqn8tambumd65kibpnu17eb4 Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240814@175156.3052 domqn8tambumd65kibpnu17eb4 Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240814@175156.3065 domqn8tambumd65kibpnu17eb4 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175156.3080 domqn8tambumd65kibpnu17eb4 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20240814@175156.3099 domqn8tambumd65kibpnu17eb4 Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut66bce1871966bce0ac48' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20240814@175156.3314 domqn8tambumd65kibpnu17eb4 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175156.3342 domqn8tambumd65kibpnu17eb4 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20240814@175156.3377 domqn8tambumd65kibpnu17eb4 Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20240814@175156.3389 domqn8tambumd65kibpnu17eb4 Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20240814@175156.3401 domqn8tambumd65kibpnu17eb4 Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20240814@175156.3413 domqn8tambumd65kibpnu17eb4 Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20240814@175156.3425 domqn8tambumd65kibpnu17eb4 Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20240814@175156.3437 domqn8tambumd65kibpnu17eb4 Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20240814@175156.3448 domqn8tambumd65kibpnu17eb4 Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut66bce1871966bce0ac48',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20240814@175156.3692 domqn8tambumd65kibpnu17eb4 Query : select top 1 fno valor from wsftdata order by fno desc
20240814@175156.3719 domqn8tambumd65kibpnu17eb4 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175156.3735 domqn8tambumd65kibpnu17eb4 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20240814@175156.3758 domqn8tambumd65kibpnu17eb4 Query : select 'normal' from dummy
20240814@175156.3773 domqn8tambumd65kibpnu17eb4 Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut66bce1871966bce0ac48',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',370,101621,0,'2024-08-14',39,'euro',0,0,2024 ,?,?)
20240814@175156.4070 domqn8tambumd65kibpnu17eb4 Query : use flama_phc
20240814@175156.4073 domqn8tambumd65kibpnu17eb4 Query : select st.usalote valor from st where st.ref = '324.5396.00.1'
20240814@175156.4096 domqn8tambumd65kibpnu17eb4 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.5396.00.1'
20240814@175156.4111 domqn8tambumd65kibpnu17eb4 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175156.4129 domqn8tambumd65kibpnu17eb4 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240814@175156.4158 domqn8tambumd65kibpnu17eb4 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175156.4174 domqn8tambumd65kibpnu17eb4 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240814@175156.4184 domqn8tambumd65kibpnu17eb4 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240814@175156.4198 domqn8tambumd65kibpnu17eb4 Query : select sestamp valor from se where ref ='324.5396.00.1' and lote = 'r2300840100a'
20240814@175156.4224 domqn8tambumd65kibpnu17eb4 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175156.4238 domqn8tambumd65kibpnu17eb4 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240814@175156.4251 domqn8tambumd65kibpnu17eb4 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66bce3597366bce0ac67','aut66bce1871966bce0ac48' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240814@175156.4255 domqn8tambumd65kibpnu17eb4 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175156.4271 domqn8tambumd65kibpnu17eb4 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240814@175156.4299 domqn8tambumd65kibpnu17eb4 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem) values ('aut66bce3597366bce0ac67',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',6.000 ,'aut66bce1871966bce0ac48' ,0,0 ,2,23.00,10000,?,?,?,?)
20240814@175156.4576 domqn8tambumd65kibpnu17eb4 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175156.4592 domqn8tambumd65kibpnu17eb4 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240814@175156.4617 domqn8tambumd65kibpnu17eb4 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175156.4632 domqn8tambumd65kibpnu17eb4 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240814@175156.4641 domqn8tambumd65kibpnu17eb4 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240814@175156.4654 domqn8tambumd65kibpnu17eb4 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175156.4672 domqn8tambumd65kibpnu17eb4 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240814@175156.4683 domqn8tambumd65kibpnu17eb4 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66bce5412066bce0ac71','aut66bce1871966bce0ac48' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240814@175156.4687 domqn8tambumd65kibpnu17eb4 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175156.4702 domqn8tambumd65kibpnu17eb4 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240814@175156.4730 domqn8tambumd65kibpnu17eb4 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66bce5412066bce0ac71',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66bce1871966bce0ac48' ,0,0 ,2,23.00,20000,?,?,?)
20240814@175156.4991 domqn8tambumd65kibpnu17eb4 Query : use flama_phc
20240814@175156.4994 domqn8tambumd65kibpnu17eb4 Query : select st.usalote valor from st where st.ref = '324.1833.00.2'
20240814@175156.5013 domqn8tambumd65kibpnu17eb4 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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.1833.00.2'
20240814@175156.5030 domqn8tambumd65kibpnu17eb4 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175156.5045 domqn8tambumd65kibpnu17eb4 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240814@175156.5070 domqn8tambumd65kibpnu17eb4 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175156.5087 domqn8tambumd65kibpnu17eb4 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240814@175156.5096 domqn8tambumd65kibpnu17eb4 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240814@175156.5108 domqn8tambumd65kibpnu17eb4 Query : select sestamp valor from se where ref ='324.1833.00.2' and lote = 'r2301257100a'
20240814@175156.5121 domqn8tambumd65kibpnu17eb4 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175156.5135 domqn8tambumd65kibpnu17eb4 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240814@175156.5147 domqn8tambumd65kibpnu17eb4 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66bce6234166bce0ac7d','aut66bce1871966bce0ac48' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240814@175156.5150 domqn8tambumd65kibpnu17eb4 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175156.5165 domqn8tambumd65kibpnu17eb4 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240814@175156.5193 domqn8tambumd65kibpnu17eb4 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem) values ('aut66bce6234166bce0ac7d',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',4.000 ,'aut66bce1871966bce0ac48' ,0,0 ,2,23.00,40000,?,?,?,?)
20240814@175156.5427 domqn8tambumd65kibpnu17eb4 Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut66bce1871966bce0ac48','2405443','wait',39,'adm09112754980.682000002')
20240814@175156.5505 domqn8tambumd65kibpnu17eb4 Query : use flama_phc
20240814@175156.5508 domqn8tambumd65kibpnu17eb4 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240814@175156.5540 domqn8tambumd65kibpnu17eb4 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1557';
20240814@175156.5568 domqn8tambumd65kibpnu17eb4 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1557';
20240814@175156.5624 domqn8tambumd65kibpnu17eb4 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1557';
20240814@175156.5651 domqn8tambumd65kibpnu17eb4 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1557';
20240814@175156.6173 k86ks2202r0jgvjn13t9mui0p0 Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240814@175156.6184 k86ks2202r0jgvjn13t9mui0p0 Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240814@175156.6237 k86ks2202r0jgvjn13t9mui0p0 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1558';
20240814@175156.6290 k86ks2202r0jgvjn13t9mui0p0 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1558';
20240814@175156.6344 k86ks2202r0jgvjn13t9mui0p0 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1558';
20240814@175156.6367 k86ks2202r0jgvjn13t9mui0p0 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1558';
20240814@175156.6418 k86ks2202r0jgvjn13t9mui0p0 Query : use flama_phc
20240814@175156.6421 k86ks2202r0jgvjn13t9mui0p0 Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240814@175156.6492 k86ks2202r0jgvjn13t9mui0p0 Query : use flama_phc
20240814@175156.6495 k86ks2202r0jgvjn13t9mui0p0 Query : select no, estab,szadrsdesc from szadrs where u_coddest=1474
20240814@175156.6582 k86ks2202r0jgvjn13t9mui0p0 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1833.00.2'
20240814@175156.6611 k86ks2202r0jgvjn13t9mui0p0 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.5396.00.1'
20240814@175156.6635 k86ks2202r0jgvjn13t9mui0p0 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.646.00.01'
20240814@175156.6657 k86ks2202r0jgvjn13t9mui0p0 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.646.00.01'
20240814@175156.6687 k86ks2202r0jgvjn13t9mui0p0 Query : use flama_phc
20240814@175156.6691 k86ks2202r0jgvjn13t9mui0p0 Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20240814@175156.6736 k86ks2202r0jgvjn13t9mui0p0 Query : use flama_phc
20240814@175156.6739 k86ks2202r0jgvjn13t9mui0p0 Query : select top 1 1 valor from td where td.ndoc = 39
20240814@175156.6774 k86ks2202r0jgvjn13t9mui0p0 Query : use flama_phc
20240814@175156.6777 k86ks2202r0jgvjn13t9mui0p0 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')
20240814@175156.6808 k86ks2202r0jgvjn13t9mui0p0 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
20240814@175156.6858 k86ks2202r0jgvjn13t9mui0p0 Query : use flama_phc
20240814@175156.6861 k86ks2202r0jgvjn13t9mui0p0 Query : select top 1 ~inactivo valor from cl where no = '101621' and estab = 0 order by inactivo desc
20240814@175156.6891 k86ks2202r0jgvjn13t9mui0p0 Query : use flama_phc
20240814@175156.6894 k86ks2202r0jgvjn13t9mui0p0 Query : select top 1 tipodoc,regrd from td where ndoc = 39
20240814@175156.6930 k86ks2202r0jgvjn13t9mui0p0 Query : use flama_phc
20240814@175156.6934 k86ks2202r0jgvjn13t9mui0p0 Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20240814@175156.6985 k86ks2202r0jgvjn13t9mui0p0 Query : use flama_phc
20240814@175156.6988 k86ks2202r0jgvjn13t9mui0p0 Query : select szadrsstamp valor from szadrs where szadrsdesc='j.o.m.,lda - corroios'
20240814@175156.7045 k86ks2202r0jgvjn13t9mui0p0 Query : use flama_phc
20240814@175156.7048 k86ks2202r0jgvjn13t9mui0p0 Query : select 1 valor from td where ndoc = 39
20240814@175156.7060 k86ks2202r0jgvjn13t9mui0p0 Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20240814@175156.7074 k86ks2202r0jgvjn13t9mui0p0 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175156.7091 k86ks2202r0jgvjn13t9mui0p0 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20240814@175156.7111 k86ks2202r0jgvjn13t9mui0p0 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175156.7125 k86ks2202r0jgvjn13t9mui0p0 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20240814@175156.7164 k86ks2202r0jgvjn13t9mui0p0 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175156.7181 k86ks2202r0jgvjn13t9mui0p0 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20240814@175156.8451 k86ks2202r0jgvjn13t9mui0p0 Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240814@175156.8523 k86ks2202r0jgvjn13t9mui0p0 Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240814@175156.8536 k86ks2202r0jgvjn13t9mui0p0 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175156.8553 k86ks2202r0jgvjn13t9mui0p0 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20240814@175156.8569 k86ks2202r0jgvjn13t9mui0p0 Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut66bce4054666bce0acce' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20240814@175156.8754 k86ks2202r0jgvjn13t9mui0p0 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175156.8770 k86ks2202r0jgvjn13t9mui0p0 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20240814@175156.8802 k86ks2202r0jgvjn13t9mui0p0 Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20240814@175156.8815 k86ks2202r0jgvjn13t9mui0p0 Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20240814@175156.8827 k86ks2202r0jgvjn13t9mui0p0 Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20240814@175156.8839 k86ks2202r0jgvjn13t9mui0p0 Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20240814@175156.8851 k86ks2202r0jgvjn13t9mui0p0 Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20240814@175156.8863 k86ks2202r0jgvjn13t9mui0p0 Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20240814@175156.8876 k86ks2202r0jgvjn13t9mui0p0 Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut66bce4054666bce0acce',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20240814@175156.9140 k86ks2202r0jgvjn13t9mui0p0 Query : select top 1 fno valor from wsftdata order by fno desc
20240814@175156.9158 k86ks2202r0jgvjn13t9mui0p0 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175156.9173 k86ks2202r0jgvjn13t9mui0p0 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20240814@175156.9196 k86ks2202r0jgvjn13t9mui0p0 Query : select 'normal' from dummy
20240814@175156.9211 k86ks2202r0jgvjn13t9mui0p0 Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut66bce4054666bce0acce',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',371,101621,0,'2024-08-14',39,'euro',0,0,2024 ,?,?)
20240814@175156.9501 k86ks2202r0jgvjn13t9mui0p0 Query : use flama_phc
20240814@175156.9504 k86ks2202r0jgvjn13t9mui0p0 Query : select st.usalote valor from st where st.ref = '324.1833.00.2'
20240814@175156.9525 k86ks2202r0jgvjn13t9mui0p0 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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.1833.00.2'
20240814@175156.9539 k86ks2202r0jgvjn13t9mui0p0 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175156.9555 k86ks2202r0jgvjn13t9mui0p0 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240814@175156.9579 k86ks2202r0jgvjn13t9mui0p0 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175156.9594 k86ks2202r0jgvjn13t9mui0p0 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240814@175156.9616 k86ks2202r0jgvjn13t9mui0p0 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240814@175156.9629 k86ks2202r0jgvjn13t9mui0p0 Query : select sestamp valor from se where ref ='324.1833.00.2' and lote = 'r2301257100a'
20240814@175156.9641 k86ks2202r0jgvjn13t9mui0p0 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175156.9656 k86ks2202r0jgvjn13t9mui0p0 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240814@175156.9670 k86ks2202r0jgvjn13t9mui0p0 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66bce2534666bce0aceb','aut66bce4054666bce0acce' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240814@175156.9674 k86ks2202r0jgvjn13t9mui0p0 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175156.9689 k86ks2202r0jgvjn13t9mui0p0 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240814@175156.9717 k86ks2202r0jgvjn13t9mui0p0 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem) values ('aut66bce2534666bce0aceb',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',4.000 ,'aut66bce4054666bce0acce' ,0,0 ,2,23.00,10000,?,?,?,?)
20240814@175156.9992 k86ks2202r0jgvjn13t9mui0p0 Query : use flama_phc
20240814@175156.9995 k86ks2202r0jgvjn13t9mui0p0 Query : select st.usalote valor from st where st.ref = '324.5396.00.1'
20240814@175157.1600 k86ks2202r0jgvjn13t9mui0p0 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.5396.00.1'
20240814@175157.4300 k86ks2202r0jgvjn13t9mui0p0 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175157.6100 k86ks2202r0jgvjn13t9mui0p0 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240814@175157.9000 k86ks2202r0jgvjn13t9mui0p0 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175157.1040 k86ks2202r0jgvjn13t9mui0p0 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240814@175157.1130 k86ks2202r0jgvjn13t9mui0p0 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240814@175157.1250 k86ks2202r0jgvjn13t9mui0p0 Query : select sestamp valor from se where ref ='324.5396.00.1' and lote = 'r2300840100a'
20240814@175157.1380 k86ks2202r0jgvjn13t9mui0p0 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175157.1520 k86ks2202r0jgvjn13t9mui0p0 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240814@175157.1640 k86ks2202r0jgvjn13t9mui0p0 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66bce9768866bce0ad03','aut66bce4054666bce0acce' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240814@175157.1680 k86ks2202r0jgvjn13t9mui0p0 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175157.1920 k86ks2202r0jgvjn13t9mui0p0 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240814@175157.2220 k86ks2202r0jgvjn13t9mui0p0 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem) values ('aut66bce9768866bce0ad03',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',6.000 ,'aut66bce4054666bce0acce' ,0,0 ,2,23.00,20000,?,?,?,?)
20240814@175157.4890 k86ks2202r0jgvjn13t9mui0p0 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175157.5200 k86ks2202r0jgvjn13t9mui0p0 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240814@175157.5490 k86ks2202r0jgvjn13t9mui0p0 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175157.5640 k86ks2202r0jgvjn13t9mui0p0 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240814@175157.5730 k86ks2202r0jgvjn13t9mui0p0 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240814@175157.5880 k86ks2202r0jgvjn13t9mui0p0 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175157.6030 k86ks2202r0jgvjn13t9mui0p0 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240814@175157.6150 k86ks2202r0jgvjn13t9mui0p0 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66bce9459966bce0ad0e','aut66bce4054666bce0acce' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240814@175157.6190 k86ks2202r0jgvjn13t9mui0p0 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175157.6340 k86ks2202r0jgvjn13t9mui0p0 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240814@175157.6620 k86ks2202r0jgvjn13t9mui0p0 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66bce9459966bce0ad0e',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66bce4054666bce0acce' ,0,0 ,2,23.00,30000,?,?,?)
20240814@175157.9350 k86ks2202r0jgvjn13t9mui0p0 Query : use flama_phc
20240814@175157.9380 k86ks2202r0jgvjn13t9mui0p0 Query : select st.usalote valor from st where st.ref = '324.646.00.01'
20240814@175157.9580 k86ks2202r0jgvjn13t9mui0p0 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.646.00.01'
20240814@175157.9730 k86ks2202r0jgvjn13t9mui0p0 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175157.9880 k86ks2202r0jgvjn13t9mui0p0 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240814@175157.1014 k86ks2202r0jgvjn13t9mui0p0 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175157.1028 k86ks2202r0jgvjn13t9mui0p0 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240814@175157.1037 k86ks2202r0jgvjn13t9mui0p0 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240814@175157.1061 k86ks2202r0jgvjn13t9mui0p0 Query : select sestamp valor from se where ref ='324.646.00.01' and lote = 'r2400055100a'
20240814@175157.1074 k86ks2202r0jgvjn13t9mui0p0 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175157.1091 k86ks2202r0jgvjn13t9mui0p0 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240814@175157.1103 k86ks2202r0jgvjn13t9mui0p0 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66bce3457766bce0ad1a','aut66bce4054666bce0acce' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240814@175157.1107 k86ks2202r0jgvjn13t9mui0p0 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175157.1123 k86ks2202r0jgvjn13t9mui0p0 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240814@175157.1152 k86ks2202r0jgvjn13t9mui0p0 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem) values ('aut66bce3457766bce0ad1a',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',3.000 ,'aut66bce4054666bce0acce' ,0,0 ,2,23.00,50000,?,?,?,?)
20240814@175157.1411 k86ks2202r0jgvjn13t9mui0p0 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175157.1429 k86ks2202r0jgvjn13t9mui0p0 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240814@175157.1466 k86ks2202r0jgvjn13t9mui0p0 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175157.1480 k86ks2202r0jgvjn13t9mui0p0 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240814@175157.1490 k86ks2202r0jgvjn13t9mui0p0 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240814@175157.1509 k86ks2202r0jgvjn13t9mui0p0 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175157.1524 k86ks2202r0jgvjn13t9mui0p0 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240814@175157.1536 k86ks2202r0jgvjn13t9mui0p0 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66bce2030366bce0ad24','aut66bce4054666bce0acce' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240814@175157.1540 k86ks2202r0jgvjn13t9mui0p0 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175157.1556 k86ks2202r0jgvjn13t9mui0p0 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240814@175157.1586 k86ks2202r0jgvjn13t9mui0p0 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66bce2030366bce0ad24',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66bce4054666bce0acce' ,0,0 ,2,23.00,60000,?,?,?)
20240814@175157.1843 k86ks2202r0jgvjn13t9mui0p0 Query : use flama_phc
20240814@175157.1846 k86ks2202r0jgvjn13t9mui0p0 Query : select st.usalote valor from st where st.ref = '324.646.00.01'
20240814@175157.1867 k86ks2202r0jgvjn13t9mui0p0 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.646.00.01'
20240814@175157.1881 k86ks2202r0jgvjn13t9mui0p0 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175157.1898 k86ks2202r0jgvjn13t9mui0p0 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240814@175157.1925 k86ks2202r0jgvjn13t9mui0p0 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175157.1940 k86ks2202r0jgvjn13t9mui0p0 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240814@175157.1948 k86ks2202r0jgvjn13t9mui0p0 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240814@175157.1961 k86ks2202r0jgvjn13t9mui0p0 Query : select sestamp valor from se where ref ='324.646.00.01' and lote = 'r2400055100a'
20240814@175157.1974 k86ks2202r0jgvjn13t9mui0p0 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175157.1989 k86ks2202r0jgvjn13t9mui0p0 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240814@175157.2009 k86ks2202r0jgvjn13t9mui0p0 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66bce2761166bce0ad30','aut66bce4054666bce0acce' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240814@175157.2013 k86ks2202r0jgvjn13t9mui0p0 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175157.2030 k86ks2202r0jgvjn13t9mui0p0 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240814@175157.2059 k86ks2202r0jgvjn13t9mui0p0 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem) values ('aut66bce2761166bce0ad30',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',1.000 ,'aut66bce4054666bce0acce' ,0,0 ,2,23.00,80000,?,?,?,?)
20240814@175157.2316 k86ks2202r0jgvjn13t9mui0p0 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175157.2332 k86ks2202r0jgvjn13t9mui0p0 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240814@175157.2360 k86ks2202r0jgvjn13t9mui0p0 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175157.2376 k86ks2202r0jgvjn13t9mui0p0 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240814@175157.2384 k86ks2202r0jgvjn13t9mui0p0 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240814@175157.2397 k86ks2202r0jgvjn13t9mui0p0 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175157.2412 k86ks2202r0jgvjn13t9mui0p0 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240814@175157.2423 k86ks2202r0jgvjn13t9mui0p0 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66bce1724866bce0ad3a','aut66bce4054666bce0acce' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240814@175157.2427 k86ks2202r0jgvjn13t9mui0p0 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175157.2441 k86ks2202r0jgvjn13t9mui0p0 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240814@175157.2479 k86ks2202r0jgvjn13t9mui0p0 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66bce1724866bce0ad3a',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66bce4054666bce0acce' ,0,0 ,2,23.00,90000,?,?,?)
20240814@175157.2718 k86ks2202r0jgvjn13t9mui0p0 Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut66bce4054666bce0acce','2405444','wait',39,'adm09112754980.682000002')
20240814@175157.2801 k86ks2202r0jgvjn13t9mui0p0 Query : use flama_phc
20240814@175157.2804 k86ks2202r0jgvjn13t9mui0p0 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240814@175157.2834 k86ks2202r0jgvjn13t9mui0p0 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1558';
20240814@175157.2872 k86ks2202r0jgvjn13t9mui0p0 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1558';
20240814@175157.2911 k86ks2202r0jgvjn13t9mui0p0 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1558';
20240814@175157.2936 k86ks2202r0jgvjn13t9mui0p0 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1558';
20240814@175157.4447 5c2qh520cc4f9bdokvmqbasit4 Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240814@175157.4459 5c2qh520cc4f9bdokvmqbasit4 Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240814@175157.4516 5c2qh520cc4f9bdokvmqbasit4 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1559';
20240814@175157.4570 5c2qh520cc4f9bdokvmqbasit4 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1559';
20240814@175157.4626 5c2qh520cc4f9bdokvmqbasit4 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1559';
20240814@175157.4660 5c2qh520cc4f9bdokvmqbasit4 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1559';
20240814@175157.4720 5c2qh520cc4f9bdokvmqbasit4 Query : use flama_phc
20240814@175157.4723 5c2qh520cc4f9bdokvmqbasit4 Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240814@175157.4792 5c2qh520cc4f9bdokvmqbasit4 Query : use flama_phc
20240814@175157.4794 5c2qh520cc4f9bdokvmqbasit4 Query : select no, estab,szadrsdesc from szadrs where u_coddest=7254
20240814@175157.4877 5c2qh520cc4f9bdokvmqbasit4 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1833.00.2'
20240814@175157.4910 5c2qh520cc4f9bdokvmqbasit4 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.5396.00.1'
20240814@175157.4939 5c2qh520cc4f9bdokvmqbasit4 Query : use flama_phc
20240814@175157.4942 5c2qh520cc4f9bdokvmqbasit4 Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20240814@175157.4976 5c2qh520cc4f9bdokvmqbasit4 Query : use flama_phc
20240814@175157.4979 5c2qh520cc4f9bdokvmqbasit4 Query : select top 1 1 valor from td where td.ndoc = 39
20240814@175157.5009 5c2qh520cc4f9bdokvmqbasit4 Query : use flama_phc
20240814@175157.5012 5c2qh520cc4f9bdokvmqbasit4 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')
20240814@175157.5041 5c2qh520cc4f9bdokvmqbasit4 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
20240814@175157.5088 5c2qh520cc4f9bdokvmqbasit4 Query : use flama_phc
20240814@175157.5092 5c2qh520cc4f9bdokvmqbasit4 Query : select top 1 ~inactivo valor from cl where no = '101621' and estab = 0 order by inactivo desc
20240814@175157.5132 5c2qh520cc4f9bdokvmqbasit4 Query : use flama_phc
20240814@175157.5135 5c2qh520cc4f9bdokvmqbasit4 Query : select top 1 tipodoc,regrd from td where ndoc = 39
20240814@175157.5173 5c2qh520cc4f9bdokvmqbasit4 Query : use flama_phc
20240814@175157.5176 5c2qh520cc4f9bdokvmqbasit4 Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20240814@175157.5244 5c2qh520cc4f9bdokvmqbasit4 Query : use flama_phc
20240814@175157.5247 5c2qh520cc4f9bdokvmqbasit4 Query : select szadrsstamp valor from szadrs where szadrsdesc='j.o.m alverca'
20240814@175157.5300 5c2qh520cc4f9bdokvmqbasit4 Query : use flama_phc
20240814@175157.5303 5c2qh520cc4f9bdokvmqbasit4 Query : select 1 valor from td where ndoc = 39
20240814@175157.5316 5c2qh520cc4f9bdokvmqbasit4 Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20240814@175157.5331 5c2qh520cc4f9bdokvmqbasit4 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175157.5347 5c2qh520cc4f9bdokvmqbasit4 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20240814@175157.5368 5c2qh520cc4f9bdokvmqbasit4 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175157.5383 5c2qh520cc4f9bdokvmqbasit4 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20240814@175157.5422 5c2qh520cc4f9bdokvmqbasit4 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175157.5443 5c2qh520cc4f9bdokvmqbasit4 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20240814@175157.5456 5c2qh520cc4f9bdokvmqbasit4 Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240814@175157.5527 5c2qh520cc4f9bdokvmqbasit4 Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240814@175157.5540 5c2qh520cc4f9bdokvmqbasit4 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175157.5555 5c2qh520cc4f9bdokvmqbasit4 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20240814@175157.5571 5c2qh520cc4f9bdokvmqbasit4 Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut66bce1001966bce0ad85' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20240814@175157.5761 5c2qh520cc4f9bdokvmqbasit4 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175157.5778 5c2qh520cc4f9bdokvmqbasit4 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20240814@175157.5811 5c2qh520cc4f9bdokvmqbasit4 Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20240814@175157.5824 5c2qh520cc4f9bdokvmqbasit4 Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20240814@175157.5837 5c2qh520cc4f9bdokvmqbasit4 Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20240814@175157.5862 5c2qh520cc4f9bdokvmqbasit4 Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20240814@175157.5874 5c2qh520cc4f9bdokvmqbasit4 Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20240814@175157.5888 5c2qh520cc4f9bdokvmqbasit4 Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20240814@175157.5900 5c2qh520cc4f9bdokvmqbasit4 Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut66bce1001966bce0ad85',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20240814@175157.6153 5c2qh520cc4f9bdokvmqbasit4 Query : select top 1 fno valor from wsftdata order by fno desc
20240814@175157.6170 5c2qh520cc4f9bdokvmqbasit4 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175157.6198 5c2qh520cc4f9bdokvmqbasit4 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20240814@175157.6222 5c2qh520cc4f9bdokvmqbasit4 Query : select 'normal' from dummy
20240814@175157.6239 5c2qh520cc4f9bdokvmqbasit4 Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut66bce1001966bce0ad85',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',372,101621,0,'2024-08-14',39,'euro',0,0,2024 ,?,?)
20240814@175157.6550 5c2qh520cc4f9bdokvmqbasit4 Query : use flama_phc
20240814@175157.6553 5c2qh520cc4f9bdokvmqbasit4 Query : select st.usalote valor from st where st.ref = '324.1833.00.2'
20240814@175157.6576 5c2qh520cc4f9bdokvmqbasit4 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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.1833.00.2'
20240814@175157.6594 5c2qh520cc4f9bdokvmqbasit4 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175157.6629 5c2qh520cc4f9bdokvmqbasit4 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240814@175157.6656 5c2qh520cc4f9bdokvmqbasit4 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175157.6671 5c2qh520cc4f9bdokvmqbasit4 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240814@175157.6679 5c2qh520cc4f9bdokvmqbasit4 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240814@175157.6691 5c2qh520cc4f9bdokvmqbasit4 Query : select sestamp valor from se where ref ='324.1833.00.2' and lote = 'r2301257100a'
20240814@175157.6704 5c2qh520cc4f9bdokvmqbasit4 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175157.6720 5c2qh520cc4f9bdokvmqbasit4 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240814@175157.6735 5c2qh520cc4f9bdokvmqbasit4 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66bce6888566bce0ada3','aut66bce1001966bce0ad85' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240814@175157.6740 5c2qh520cc4f9bdokvmqbasit4 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175157.6757 5c2qh520cc4f9bdokvmqbasit4 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240814@175157.6788 5c2qh520cc4f9bdokvmqbasit4 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem) values ('aut66bce6888566bce0ada3',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',4.000 ,'aut66bce1001966bce0ad85' ,0,0 ,2,23.00,10000,?,?,?,?)
20240814@175157.7074 5c2qh520cc4f9bdokvmqbasit4 Query : use flama_phc
20240814@175157.7078 5c2qh520cc4f9bdokvmqbasit4 Query : select st.usalote valor from st where st.ref = '324.5396.00.1'
20240814@175157.7100 5c2qh520cc4f9bdokvmqbasit4 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.5396.00.1'
20240814@175157.7116 5c2qh520cc4f9bdokvmqbasit4 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175157.7134 5c2qh520cc4f9bdokvmqbasit4 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240814@175157.7160 5c2qh520cc4f9bdokvmqbasit4 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175157.7175 5c2qh520cc4f9bdokvmqbasit4 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240814@175157.7184 5c2qh520cc4f9bdokvmqbasit4 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240814@175157.7197 5c2qh520cc4f9bdokvmqbasit4 Query : select sestamp valor from se where ref ='324.5396.00.1' and lote = 'r2300840100a'
20240814@175157.7209 5c2qh520cc4f9bdokvmqbasit4 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175157.7225 5c2qh520cc4f9bdokvmqbasit4 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240814@175157.7237 5c2qh520cc4f9bdokvmqbasit4 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66bce0130666bce0adb0','aut66bce1001966bce0ad85' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240814@175157.7241 5c2qh520cc4f9bdokvmqbasit4 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175157.7257 5c2qh520cc4f9bdokvmqbasit4 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240814@175157.7287 5c2qh520cc4f9bdokvmqbasit4 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem) values ('aut66bce0130666bce0adb0',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',6.000 ,'aut66bce1001966bce0ad85' ,0,0 ,2,23.00,20000,?,?,?,?)
20240814@175157.7541 5c2qh520cc4f9bdokvmqbasit4 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175157.7559 5c2qh520cc4f9bdokvmqbasit4 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240814@175157.7586 5c2qh520cc4f9bdokvmqbasit4 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175157.7611 5c2qh520cc4f9bdokvmqbasit4 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240814@175157.7620 5c2qh520cc4f9bdokvmqbasit4 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240814@175157.7634 5c2qh520cc4f9bdokvmqbasit4 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175157.7649 5c2qh520cc4f9bdokvmqbasit4 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240814@175157.7661 5c2qh520cc4f9bdokvmqbasit4 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66bce2360166bce0adba','aut66bce1001966bce0ad85' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240814@175157.7666 5c2qh520cc4f9bdokvmqbasit4 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175157.7681 5c2qh520cc4f9bdokvmqbasit4 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240814@175157.7713 5c2qh520cc4f9bdokvmqbasit4 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66bce2360166bce0adba',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66bce1001966bce0ad85' ,0,0 ,2,23.00,30000,?,?,?)
20240814@175157.8180 5c2qh520cc4f9bdokvmqbasit4 Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut66bce1001966bce0ad85','2405445','wait',39,'adm09112754980.682000002')
20240814@175157.8270 5c2qh520cc4f9bdokvmqbasit4 Query : use flama_phc
20240814@175157.8274 5c2qh520cc4f9bdokvmqbasit4 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240814@175157.8315 5c2qh520cc4f9bdokvmqbasit4 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1559';
20240814@175157.8343 5c2qh520cc4f9bdokvmqbasit4 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1559';
20240814@175157.8385 5c2qh520cc4f9bdokvmqbasit4 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1559';
20240814@175157.8408 5c2qh520cc4f9bdokvmqbasit4 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1559';
20240814@175157.8971 k3msepi3ms744jovm8prp8sr40 Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240814@175157.8983 k3msepi3ms744jovm8prp8sr40 Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240814@175157.9039 k3msepi3ms744jovm8prp8sr40 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1560';
20240814@175157.9095 k3msepi3ms744jovm8prp8sr40 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1560';
20240814@175157.9152 k3msepi3ms744jovm8prp8sr40 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1560';
20240814@175157.9176 k3msepi3ms744jovm8prp8sr40 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1560';
20240814@175157.9231 k3msepi3ms744jovm8prp8sr40 Query : use flama_phc
20240814@175157.9234 k3msepi3ms744jovm8prp8sr40 Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240814@175157.9306 k3msepi3ms744jovm8prp8sr40 Query : use flama_phc
20240814@175157.9309 k3msepi3ms744jovm8prp8sr40 Query : select no, estab,szadrsdesc from szadrs where u_coddest=908
20240814@175157.9398 k3msepi3ms744jovm8prp8sr40 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1833.00.2'
20240814@175157.9420 k3msepi3ms744jovm8prp8sr40 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1833.00.2'
20240814@175157.9439 k3msepi3ms744jovm8prp8sr40 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.5396.00.1'
20240814@175157.9461 k3msepi3ms744jovm8prp8sr40 Query : use flama_phc
20240814@175157.9464 k3msepi3ms744jovm8prp8sr40 Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20240814@175157.9497 k3msepi3ms744jovm8prp8sr40 Query : use flama_phc
20240814@175157.9500 k3msepi3ms744jovm8prp8sr40 Query : select top 1 1 valor from td where td.ndoc = 39
20240814@175157.9529 k3msepi3ms744jovm8prp8sr40 Query : use flama_phc
20240814@175157.9532 k3msepi3ms744jovm8prp8sr40 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')
20240814@175157.9561 k3msepi3ms744jovm8prp8sr40 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
20240814@175157.9597 k3msepi3ms744jovm8prp8sr40 Query : use flama_phc
20240814@175157.9600 k3msepi3ms744jovm8prp8sr40 Query : select top 1 ~inactivo valor from cl where no = '101621' and estab = 0 order by inactivo desc
20240814@175157.9630 k3msepi3ms744jovm8prp8sr40 Query : use flama_phc
20240814@175157.9633 k3msepi3ms744jovm8prp8sr40 Query : select top 1 tipodoc,regrd from td where ndoc = 39
20240814@175157.9664 k3msepi3ms744jovm8prp8sr40 Query : use flama_phc
20240814@175157.9667 k3msepi3ms744jovm8prp8sr40 Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20240814@175157.9707 k3msepi3ms744jovm8prp8sr40 Query : use flama_phc
20240814@175157.9710 k3msepi3ms744jovm8prp8sr40 Query : select szadrsstamp valor from szadrs where szadrsdesc='j.o.m.,lda-aveiro'
20240814@175157.9757 k3msepi3ms744jovm8prp8sr40 Query : use flama_phc
20240814@175157.9760 k3msepi3ms744jovm8prp8sr40 Query : select 1 valor from td where ndoc = 39
20240814@175157.9773 k3msepi3ms744jovm8prp8sr40 Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20240814@175157.9788 k3msepi3ms744jovm8prp8sr40 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175157.9805 k3msepi3ms744jovm8prp8sr40 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20240814@175157.9826 k3msepi3ms744jovm8prp8sr40 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175157.9842 k3msepi3ms744jovm8prp8sr40 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20240814@175157.9871 k3msepi3ms744jovm8prp8sr40 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175157.9885 k3msepi3ms744jovm8prp8sr40 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20240814@175157.9898 k3msepi3ms744jovm8prp8sr40 Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240814@175157.9968 k3msepi3ms744jovm8prp8sr40 Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240814@175157.9981 k3msepi3ms744jovm8prp8sr40 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175157.9997 k3msepi3ms744jovm8prp8sr40 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20240814@175158.1400 k3msepi3ms744jovm8prp8sr40 Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut66bce0076966bce0adf1' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20240814@175158.2060 k3msepi3ms744jovm8prp8sr40 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175158.2230 k3msepi3ms744jovm8prp8sr40 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20240814@175158.2570 k3msepi3ms744jovm8prp8sr40 Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20240814@175158.2700 k3msepi3ms744jovm8prp8sr40 Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20240814@175158.2810 k3msepi3ms744jovm8prp8sr40 Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20240814@175158.2940 k3msepi3ms744jovm8prp8sr40 Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20240814@175158.3060 k3msepi3ms744jovm8prp8sr40 Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20240814@175158.3190 k3msepi3ms744jovm8prp8sr40 Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20240814@175158.3310 k3msepi3ms744jovm8prp8sr40 Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut66bce0076966bce0adf1',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20240814@175158.5920 k3msepi3ms744jovm8prp8sr40 Query : select top 1 fno valor from wsftdata order by fno desc
20240814@175158.6100 k3msepi3ms744jovm8prp8sr40 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175158.6300 k3msepi3ms744jovm8prp8sr40 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20240814@175158.1800 k3msepi3ms744jovm8prp8sr40 Query : select 'normal' from dummy
20240814@175158.1819 k3msepi3ms744jovm8prp8sr40 Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut66bce0076966bce0adf1',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',373,101621,0,'2024-08-14',39,'euro',0,0,2024 ,?,?)
20240814@175158.2127 k3msepi3ms744jovm8prp8sr40 Query : use flama_phc
20240814@175158.2130 k3msepi3ms744jovm8prp8sr40 Query : select st.usalote valor from st where st.ref = '324.1833.00.2'
20240814@175158.2152 k3msepi3ms744jovm8prp8sr40 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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.1833.00.2'
20240814@175158.2166 k3msepi3ms744jovm8prp8sr40 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175158.2182 k3msepi3ms744jovm8prp8sr40 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240814@175158.2208 k3msepi3ms744jovm8prp8sr40 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175158.2223 k3msepi3ms744jovm8prp8sr40 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240814@175158.2231 k3msepi3ms744jovm8prp8sr40 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240814@175158.2244 k3msepi3ms744jovm8prp8sr40 Query : select sestamp valor from se where ref ='324.1833.00.2' and lote = 'r2301257100a'
20240814@175158.2257 k3msepi3ms744jovm8prp8sr40 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175158.2271 k3msepi3ms744jovm8prp8sr40 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240814@175158.2283 k3msepi3ms744jovm8prp8sr40 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66bce5406466bce0ae37','aut66bce0076966bce0adf1' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240814@175158.2287 k3msepi3ms744jovm8prp8sr40 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175158.2302 k3msepi3ms744jovm8prp8sr40 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240814@175158.2332 k3msepi3ms744jovm8prp8sr40 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem) values ('aut66bce5406466bce0ae37',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',1.000 ,'aut66bce0076966bce0adf1' ,0,0 ,2,23.00,10000,?,?,?,?)
20240814@175158.2594 k3msepi3ms744jovm8prp8sr40 Query : use flama_phc
20240814@175158.2597 k3msepi3ms744jovm8prp8sr40 Query : select st.usalote valor from st where st.ref = '324.1833.00.2'
20240814@175158.2617 k3msepi3ms744jovm8prp8sr40 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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.1833.00.2'
20240814@175158.2631 k3msepi3ms744jovm8prp8sr40 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175158.2647 k3msepi3ms744jovm8prp8sr40 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240814@175158.2675 k3msepi3ms744jovm8prp8sr40 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175158.2692 k3msepi3ms744jovm8prp8sr40 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240814@175158.2701 k3msepi3ms744jovm8prp8sr40 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240814@175158.2715 k3msepi3ms744jovm8prp8sr40 Query : select sestamp valor from se where ref ='324.1833.00.2' and lote = 'r2301257100a'
20240814@175158.2729 k3msepi3ms744jovm8prp8sr40 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175158.2744 k3msepi3ms744jovm8prp8sr40 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240814@175158.2756 k3msepi3ms744jovm8prp8sr40 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66bce4886266bce0ae42','aut66bce0076966bce0adf1' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240814@175158.2760 k3msepi3ms744jovm8prp8sr40 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175158.2775 k3msepi3ms744jovm8prp8sr40 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240814@175158.2804 k3msepi3ms744jovm8prp8sr40 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem) values ('aut66bce4886266bce0ae42',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',3.000 ,'aut66bce0076966bce0adf1' ,0,0 ,2,23.00,20000,?,?,?,?)
20240814@175158.3044 k3msepi3ms744jovm8prp8sr40 Query : use flama_phc
20240814@175158.3047 k3msepi3ms744jovm8prp8sr40 Query : select st.usalote valor from st where st.ref = '324.5396.00.1'
20240814@175158.3068 k3msepi3ms744jovm8prp8sr40 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.5396.00.1'
20240814@175158.3086 k3msepi3ms744jovm8prp8sr40 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175158.3101 k3msepi3ms744jovm8prp8sr40 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240814@175158.3127 k3msepi3ms744jovm8prp8sr40 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175158.3142 k3msepi3ms744jovm8prp8sr40 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240814@175158.3151 k3msepi3ms744jovm8prp8sr40 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240814@175158.3163 k3msepi3ms744jovm8prp8sr40 Query : select sestamp valor from se where ref ='324.5396.00.1' and lote = 'r2300840100a'
20240814@175158.3176 k3msepi3ms744jovm8prp8sr40 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175158.3191 k3msepi3ms744jovm8prp8sr40 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240814@175158.3203 k3msepi3ms744jovm8prp8sr40 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66bce1930666bce0ae4d','aut66bce0076966bce0adf1' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240814@175158.3207 k3msepi3ms744jovm8prp8sr40 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175158.3221 k3msepi3ms744jovm8prp8sr40 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240814@175158.3252 k3msepi3ms744jovm8prp8sr40 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem) values ('aut66bce1930666bce0ae4d',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',6.000 ,'aut66bce0076966bce0adf1' ,0,0 ,2,23.00,30000,?,?,?,?)
20240814@175158.3496 k3msepi3ms744jovm8prp8sr40 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175158.3512 k3msepi3ms744jovm8prp8sr40 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240814@175158.3542 k3msepi3ms744jovm8prp8sr40 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175158.3556 k3msepi3ms744jovm8prp8sr40 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240814@175158.3565 k3msepi3ms744jovm8prp8sr40 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240814@175158.3577 k3msepi3ms744jovm8prp8sr40 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175158.3592 k3msepi3ms744jovm8prp8sr40 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240814@175158.3603 k3msepi3ms744jovm8prp8sr40 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66bce6841666bce0ae57','aut66bce0076966bce0adf1' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240814@175158.3607 k3msepi3ms744jovm8prp8sr40 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175158.3624 k3msepi3ms744jovm8prp8sr40 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240814@175158.3653 k3msepi3ms744jovm8prp8sr40 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66bce6841666bce0ae57',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66bce0076966bce0adf1' ,0,0 ,2,23.00,40000,?,?,?)
20240814@175158.3883 k3msepi3ms744jovm8prp8sr40 Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut66bce0076966bce0adf1','2405446','wait',39,'adm09112754980.682000002')
20240814@175158.3963 k3msepi3ms744jovm8prp8sr40 Query : use flama_phc
20240814@175158.3966 k3msepi3ms744jovm8prp8sr40 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240814@175158.4008 k3msepi3ms744jovm8prp8sr40 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1560';
20240814@175158.4035 k3msepi3ms744jovm8prp8sr40 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1560';
20240814@175158.4075 k3msepi3ms744jovm8prp8sr40 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1560';
20240814@175158.4101 k3msepi3ms744jovm8prp8sr40 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1560';
20240814@175158.4641 f0qie45135e1nrsam6uoj26mkh Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240814@175158.4653 f0qie45135e1nrsam6uoj26mkh Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240814@175158.4716 f0qie45135e1nrsam6uoj26mkh Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1561';
20240814@175158.4771 f0qie45135e1nrsam6uoj26mkh Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1561';
20240814@175158.4837 f0qie45135e1nrsam6uoj26mkh Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1561';
20240814@175158.4861 f0qie45135e1nrsam6uoj26mkh Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1561';
20240814@175158.4910 f0qie45135e1nrsam6uoj26mkh Query : use flama_phc
20240814@175158.4913 f0qie45135e1nrsam6uoj26mkh Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240814@175158.4990 f0qie45135e1nrsam6uoj26mkh Query : use flama_phc
20240814@175158.4994 f0qie45135e1nrsam6uoj26mkh Query : select no, estab,szadrsdesc from szadrs where u_coddest=2632
20240814@175158.5085 f0qie45135e1nrsam6uoj26mkh Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1716.00.1'
20240814@175158.5106 f0qie45135e1nrsam6uoj26mkh Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.5396.00.1'
20240814@175158.5126 f0qie45135e1nrsam6uoj26mkh Query : use flama_phc
20240814@175158.5129 f0qie45135e1nrsam6uoj26mkh Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20240814@175158.5162 f0qie45135e1nrsam6uoj26mkh Query : use flama_phc
20240814@175158.5165 f0qie45135e1nrsam6uoj26mkh Query : select top 1 1 valor from td where td.ndoc = 39
20240814@175158.5197 f0qie45135e1nrsam6uoj26mkh Query : use flama_phc
20240814@175158.5200 f0qie45135e1nrsam6uoj26mkh 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')
20240814@175158.5230 f0qie45135e1nrsam6uoj26mkh 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
20240814@175158.5270 f0qie45135e1nrsam6uoj26mkh Query : use flama_phc
20240814@175158.5273 f0qie45135e1nrsam6uoj26mkh Query : select top 1 ~inactivo valor from cl where no = '101621' and estab = 0 order by inactivo desc
20240814@175158.5315 f0qie45135e1nrsam6uoj26mkh Query : use flama_phc
20240814@175158.5318 f0qie45135e1nrsam6uoj26mkh Query : select top 1 tipodoc,regrd from td where ndoc = 39
20240814@175158.5356 f0qie45135e1nrsam6uoj26mkh Query : use flama_phc
20240814@175158.5359 f0qie45135e1nrsam6uoj26mkh Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20240814@175158.5415 f0qie45135e1nrsam6uoj26mkh Query : use flama_phc
20240814@175158.5417 f0qie45135e1nrsam6uoj26mkh Query : select szadrsstamp valor from szadrs where szadrsdesc='j.o.m.,lda- braganÇa'
20240814@175158.5476 f0qie45135e1nrsam6uoj26mkh Query : use flama_phc
20240814@175158.5479 f0qie45135e1nrsam6uoj26mkh Query : select 1 valor from td where ndoc = 39
20240814@175158.5493 f0qie45135e1nrsam6uoj26mkh Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20240814@175158.5507 f0qie45135e1nrsam6uoj26mkh Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175158.5524 f0qie45135e1nrsam6uoj26mkh Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20240814@175158.5544 f0qie45135e1nrsam6uoj26mkh Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175158.5560 f0qie45135e1nrsam6uoj26mkh Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20240814@175158.5592 f0qie45135e1nrsam6uoj26mkh Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175158.5607 f0qie45135e1nrsam6uoj26mkh Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20240814@175158.5619 f0qie45135e1nrsam6uoj26mkh Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240814@175158.5690 f0qie45135e1nrsam6uoj26mkh Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240814@175158.5703 f0qie45135e1nrsam6uoj26mkh Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175158.5720 f0qie45135e1nrsam6uoj26mkh Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20240814@175158.5736 f0qie45135e1nrsam6uoj26mkh Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut66bce8947066bce0ae89' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20240814@175158.5925 f0qie45135e1nrsam6uoj26mkh Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175158.5942 f0qie45135e1nrsam6uoj26mkh Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20240814@175158.5978 f0qie45135e1nrsam6uoj26mkh Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20240814@175158.5991 f0qie45135e1nrsam6uoj26mkh Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20240814@175158.6004 f0qie45135e1nrsam6uoj26mkh Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20240814@175158.6018 f0qie45135e1nrsam6uoj26mkh Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20240814@175158.6031 f0qie45135e1nrsam6uoj26mkh Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20240814@175158.6043 f0qie45135e1nrsam6uoj26mkh Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20240814@175158.6056 f0qie45135e1nrsam6uoj26mkh Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut66bce8947066bce0ae89',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20240814@175158.6295 f0qie45135e1nrsam6uoj26mkh Query : select top 1 fno valor from wsftdata order by fno desc
20240814@175158.6313 f0qie45135e1nrsam6uoj26mkh Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175158.6330 f0qie45135e1nrsam6uoj26mkh Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20240814@175158.7247 f0qie45135e1nrsam6uoj26mkh Query : select 'normal' from dummy
20240814@175158.7641 f0qie45135e1nrsam6uoj26mkh Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut66bce8947066bce0ae89',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',374,101621,0,'2024-08-14',39,'euro',0,0,2024 ,?,?)
20240814@175158.8240 f0qie45135e1nrsam6uoj26mkh Query : use flama_phc
20240814@175158.8244 f0qie45135e1nrsam6uoj26mkh Query : select st.usalote valor from st where st.ref = '324.1716.00.1'
20240814@175158.8265 f0qie45135e1nrsam6uoj26mkh Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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.1716.00.1'
20240814@175158.8280 f0qie45135e1nrsam6uoj26mkh Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175158.8297 f0qie45135e1nrsam6uoj26mkh Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240814@175158.8328 f0qie45135e1nrsam6uoj26mkh Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175158.8344 f0qie45135e1nrsam6uoj26mkh Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240814@175158.8352 f0qie45135e1nrsam6uoj26mkh Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240814@175158.8364 f0qie45135e1nrsam6uoj26mkh Query : select sestamp valor from se where ref ='324.1716.00.1' and lote = 'r2100312300a'
20240814@175158.8377 f0qie45135e1nrsam6uoj26mkh Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175158.8393 f0qie45135e1nrsam6uoj26mkh Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240814@175158.8405 f0qie45135e1nrsam6uoj26mkh Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66bce6136766bce0aecc','aut66bce8947066bce0ae89' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240814@175158.8409 f0qie45135e1nrsam6uoj26mkh Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175158.8425 f0qie45135e1nrsam6uoj26mkh Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240814@175158.8455 f0qie45135e1nrsam6uoj26mkh Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem) values ('aut66bce6136766bce0aecc',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',4.000 ,'aut66bce8947066bce0ae89' ,0,0 ,2,23.00,10000,?,?,?,?)
20240814@175158.8854 f0qie45135e1nrsam6uoj26mkh Query : use flama_phc
20240814@175158.8891 f0qie45135e1nrsam6uoj26mkh Query : select st.usalote valor from st where st.ref = '324.5396.00.1'
20240814@175158.8911 f0qie45135e1nrsam6uoj26mkh Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.5396.00.1'
20240814@175158.8925 f0qie45135e1nrsam6uoj26mkh Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175158.8941 f0qie45135e1nrsam6uoj26mkh Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240814@175158.8967 f0qie45135e1nrsam6uoj26mkh Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175158.8980 f0qie45135e1nrsam6uoj26mkh Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240814@175158.8989 f0qie45135e1nrsam6uoj26mkh Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240814@175158.9001 f0qie45135e1nrsam6uoj26mkh Query : select sestamp valor from se where ref ='324.5396.00.1' and lote = 'r2300840100a'
20240814@175158.9013 f0qie45135e1nrsam6uoj26mkh Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175158.9027 f0qie45135e1nrsam6uoj26mkh Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240814@175158.9039 f0qie45135e1nrsam6uoj26mkh Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66bce7290566bce0aedc','aut66bce8947066bce0ae89' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240814@175158.9043 f0qie45135e1nrsam6uoj26mkh Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175158.9057 f0qie45135e1nrsam6uoj26mkh Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240814@175158.9084 f0qie45135e1nrsam6uoj26mkh Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem) values ('aut66bce7290566bce0aedc',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',6.000 ,'aut66bce8947066bce0ae89' ,0,0 ,2,23.00,20000,?,?,?,?)
20240814@175158.9347 f0qie45135e1nrsam6uoj26mkh Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175158.9362 f0qie45135e1nrsam6uoj26mkh Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240814@175158.9386 f0qie45135e1nrsam6uoj26mkh Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175158.9401 f0qie45135e1nrsam6uoj26mkh Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240814@175158.9409 f0qie45135e1nrsam6uoj26mkh Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240814@175158.9420 f0qie45135e1nrsam6uoj26mkh Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175158.9434 f0qie45135e1nrsam6uoj26mkh Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240814@175158.9445 f0qie45135e1nrsam6uoj26mkh Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66bce7681666bce0aee6','aut66bce8947066bce0ae89' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240814@175158.9449 f0qie45135e1nrsam6uoj26mkh Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175158.9465 f0qie45135e1nrsam6uoj26mkh Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240814@175158.9494 f0qie45135e1nrsam6uoj26mkh Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66bce7681666bce0aee6',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66bce8947066bce0ae89' ,0,0 ,2,23.00,30000,?,?,?)
20240814@175158.9726 f0qie45135e1nrsam6uoj26mkh Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut66bce8947066bce0ae89','2405447','wait',39,'adm09112754980.682000002')
20240814@175158.9792 f0qie45135e1nrsam6uoj26mkh Query : use flama_phc
20240814@175158.9795 f0qie45135e1nrsam6uoj26mkh Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240814@175158.9826 f0qie45135e1nrsam6uoj26mkh Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1561';
20240814@175158.9852 f0qie45135e1nrsam6uoj26mkh Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1561';
20240814@175158.9889 f0qie45135e1nrsam6uoj26mkh Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1561';
20240814@175158.9913 f0qie45135e1nrsam6uoj26mkh Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1561';
20240814@175159.4470 l4j4anjlmonpstk3lfquci69t3 Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240814@175159.4580 l4j4anjlmonpstk3lfquci69t3 Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240814@175159.5100 l4j4anjlmonpstk3lfquci69t3 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1562';
20240814@175159.5620 l4j4anjlmonpstk3lfquci69t3 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1562';
20240814@175159.6230 l4j4anjlmonpstk3lfquci69t3 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1562';
20240814@175159.6500 l4j4anjlmonpstk3lfquci69t3 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1562';
20240814@175159.7010 l4j4anjlmonpstk3lfquci69t3 Query : use flama_phc
20240814@175159.7050 l4j4anjlmonpstk3lfquci69t3 Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240814@175159.7680 l4j4anjlmonpstk3lfquci69t3 Query : use flama_phc
20240814@175159.7710 l4j4anjlmonpstk3lfquci69t3 Query : select no, estab,szadrsdesc from szadrs where u_coddest=1453
20240814@175159.8530 l4j4anjlmonpstk3lfquci69t3 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1716.00.1'
20240814@175159.8750 l4j4anjlmonpstk3lfquci69t3 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.5396.00.1'
20240814@175159.9090 l4j4anjlmonpstk3lfquci69t3 Query : use flama_phc
20240814@175159.9130 l4j4anjlmonpstk3lfquci69t3 Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20240814@175159.9490 l4j4anjlmonpstk3lfquci69t3 Query : use flama_phc
20240814@175159.9520 l4j4anjlmonpstk3lfquci69t3 Query : select top 1 1 valor from td where td.ndoc = 39
20240814@175159.9830 l4j4anjlmonpstk3lfquci69t3 Query : use flama_phc
20240814@175159.9860 l4j4anjlmonpstk3lfquci69t3 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')
20240814@175159.1015 l4j4anjlmonpstk3lfquci69t3 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
20240814@175159.1053 l4j4anjlmonpstk3lfquci69t3 Query : use flama_phc
20240814@175159.1056 l4j4anjlmonpstk3lfquci69t3 Query : select top 1 ~inactivo valor from cl where no = '101621' and estab = 0 order by inactivo desc
20240814@175159.1101 l4j4anjlmonpstk3lfquci69t3 Query : use flama_phc
20240814@175159.1110 l4j4anjlmonpstk3lfquci69t3 Query : select top 1 tipodoc,regrd from td where ndoc = 39
20240814@175159.2302 l4j4anjlmonpstk3lfquci69t3 Query : use flama_phc
20240814@175159.2305 l4j4anjlmonpstk3lfquci69t3 Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20240814@175159.2349 l4j4anjlmonpstk3lfquci69t3 Query : use flama_phc
20240814@175159.2352 l4j4anjlmonpstk3lfquci69t3 Query : select szadrsstamp valor from szadrs where szadrsdesc='jom - batalha'
20240814@175159.2408 l4j4anjlmonpstk3lfquci69t3 Query : use flama_phc
20240814@175159.2411 l4j4anjlmonpstk3lfquci69t3 Query : select 1 valor from td where ndoc = 39
20240814@175159.2424 l4j4anjlmonpstk3lfquci69t3 Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20240814@175159.2438 l4j4anjlmonpstk3lfquci69t3 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175159.2455 l4j4anjlmonpstk3lfquci69t3 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20240814@175159.2474 l4j4anjlmonpstk3lfquci69t3 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175159.2489 l4j4anjlmonpstk3lfquci69t3 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20240814@175159.2518 l4j4anjlmonpstk3lfquci69t3 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175159.2533 l4j4anjlmonpstk3lfquci69t3 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20240814@175159.2546 l4j4anjlmonpstk3lfquci69t3 Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240814@175159.2614 l4j4anjlmonpstk3lfquci69t3 Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240814@175159.2627 l4j4anjlmonpstk3lfquci69t3 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175159.2642 l4j4anjlmonpstk3lfquci69t3 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20240814@175159.2660 l4j4anjlmonpstk3lfquci69t3 Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut66bce1673566bce0af3e' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20240814@175159.2846 l4j4anjlmonpstk3lfquci69t3 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175159.2862 l4j4anjlmonpstk3lfquci69t3 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20240814@175159.2895 l4j4anjlmonpstk3lfquci69t3 Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20240814@175159.2922 l4j4anjlmonpstk3lfquci69t3 Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20240814@175159.2934 l4j4anjlmonpstk3lfquci69t3 Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20240814@175159.2947 l4j4anjlmonpstk3lfquci69t3 Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20240814@175159.2959 l4j4anjlmonpstk3lfquci69t3 Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20240814@175159.2973 l4j4anjlmonpstk3lfquci69t3 Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20240814@175159.2993 l4j4anjlmonpstk3lfquci69t3 Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut66bce1673566bce0af3e',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20240814@175159.3243 l4j4anjlmonpstk3lfquci69t3 Query : select top 1 fno valor from wsftdata order by fno desc
20240814@175159.3272 l4j4anjlmonpstk3lfquci69t3 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175159.3289 l4j4anjlmonpstk3lfquci69t3 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20240814@175159.3314 l4j4anjlmonpstk3lfquci69t3 Query : select 'normal' from dummy
20240814@175159.3330 l4j4anjlmonpstk3lfquci69t3 Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut66bce1673566bce0af3e',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',375,101621,0,'2024-08-14',39,'euro',0,0,2024 ,?,?)
20240814@175159.3613 l4j4anjlmonpstk3lfquci69t3 Query : use flama_phc
20240814@175159.3615 l4j4anjlmonpstk3lfquci69t3 Query : select st.usalote valor from st where st.ref = '324.1716.00.1'
20240814@175159.3637 l4j4anjlmonpstk3lfquci69t3 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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.1716.00.1'
20240814@175159.3651 l4j4anjlmonpstk3lfquci69t3 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175159.3666 l4j4anjlmonpstk3lfquci69t3 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240814@175159.3694 l4j4anjlmonpstk3lfquci69t3 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175159.3709 l4j4anjlmonpstk3lfquci69t3 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240814@175159.3718 l4j4anjlmonpstk3lfquci69t3 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240814@175159.3733 l4j4anjlmonpstk3lfquci69t3 Query : select sestamp valor from se where ref ='324.1716.00.1' and lote = 'r2100312300a'
20240814@175159.3746 l4j4anjlmonpstk3lfquci69t3 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175159.3761 l4j4anjlmonpstk3lfquci69t3 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240814@175159.3773 l4j4anjlmonpstk3lfquci69t3 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66bce6376166bce0af5b','aut66bce1673566bce0af3e' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240814@175159.3778 l4j4anjlmonpstk3lfquci69t3 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175159.3793 l4j4anjlmonpstk3lfquci69t3 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240814@175159.3823 l4j4anjlmonpstk3lfquci69t3 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem) values ('aut66bce6376166bce0af5b',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',4.000 ,'aut66bce1673566bce0af3e' ,0,0 ,2,23.00,10000,?,?,?,?)
20240814@175159.4083 l4j4anjlmonpstk3lfquci69t3 Query : use flama_phc
20240814@175159.4087 l4j4anjlmonpstk3lfquci69t3 Query : select st.usalote valor from st where st.ref = '324.5396.00.1'
20240814@175159.4107 l4j4anjlmonpstk3lfquci69t3 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.5396.00.1'
20240814@175159.4121 l4j4anjlmonpstk3lfquci69t3 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175159.4137 l4j4anjlmonpstk3lfquci69t3 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240814@175159.4163 l4j4anjlmonpstk3lfquci69t3 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175159.4178 l4j4anjlmonpstk3lfquci69t3 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240814@175159.4187 l4j4anjlmonpstk3lfquci69t3 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240814@175159.4199 l4j4anjlmonpstk3lfquci69t3 Query : select sestamp valor from se where ref ='324.5396.00.1' and lote = 'r2300840100a'
20240814@175159.4212 l4j4anjlmonpstk3lfquci69t3 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175159.4227 l4j4anjlmonpstk3lfquci69t3 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240814@175159.4239 l4j4anjlmonpstk3lfquci69t3 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66bce3160566bce0af66','aut66bce1673566bce0af3e' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240814@175159.4244 l4j4anjlmonpstk3lfquci69t3 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175159.4259 l4j4anjlmonpstk3lfquci69t3 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240814@175159.4288 l4j4anjlmonpstk3lfquci69t3 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem) values ('aut66bce3160566bce0af66',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',6.000 ,'aut66bce1673566bce0af3e' ,0,0 ,2,23.00,20000,?,?,?,?)
20240814@175159.4538 l4j4anjlmonpstk3lfquci69t3 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175159.4554 l4j4anjlmonpstk3lfquci69t3 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240814@175159.4580 l4j4anjlmonpstk3lfquci69t3 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175159.4596 l4j4anjlmonpstk3lfquci69t3 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240814@175159.4605 l4j4anjlmonpstk3lfquci69t3 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240814@175159.4617 l4j4anjlmonpstk3lfquci69t3 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175159.4632 l4j4anjlmonpstk3lfquci69t3 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240814@175159.4644 l4j4anjlmonpstk3lfquci69t3 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66bce2132066bce0af70','aut66bce1673566bce0af3e' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240814@175159.4648 l4j4anjlmonpstk3lfquci69t3 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175159.4662 l4j4anjlmonpstk3lfquci69t3 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240814@175159.4691 l4j4anjlmonpstk3lfquci69t3 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66bce2132066bce0af70',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66bce1673566bce0af3e' ,0,0 ,2,23.00,30000,?,?,?)
20240814@175159.4914 l4j4anjlmonpstk3lfquci69t3 Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut66bce1673566bce0af3e','2405448','wait',39,'adm09112754980.682000002')
20240814@175159.4991 l4j4anjlmonpstk3lfquci69t3 Query : use flama_phc
20240814@175159.4995 l4j4anjlmonpstk3lfquci69t3 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240814@175159.5030 l4j4anjlmonpstk3lfquci69t3 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1562';
20240814@175159.5058 l4j4anjlmonpstk3lfquci69t3 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1562';
20240814@175159.5098 l4j4anjlmonpstk3lfquci69t3 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1562';
20240814@175159.5123 l4j4anjlmonpstk3lfquci69t3 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1562';
20240814@175159.5680 pmbcvq5asmpeq2q9vcjq139psg Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240814@175159.5692 pmbcvq5asmpeq2q9vcjq139psg Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240814@175159.5740 pmbcvq5asmpeq2q9vcjq139psg Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1563';
20240814@175159.5793 pmbcvq5asmpeq2q9vcjq139psg Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1563';
20240814@175159.5847 pmbcvq5asmpeq2q9vcjq139psg Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1563';
20240814@175159.5872 pmbcvq5asmpeq2q9vcjq139psg Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1563';
20240814@175159.5923 pmbcvq5asmpeq2q9vcjq139psg Query : use flama_phc
20240814@175159.5926 pmbcvq5asmpeq2q9vcjq139psg Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240814@175159.5992 pmbcvq5asmpeq2q9vcjq139psg Query : use flama_phc
20240814@175159.5995 pmbcvq5asmpeq2q9vcjq139psg Query : select no, estab,szadrsdesc from szadrs where u_coddest=3080
20240814@175159.6078 pmbcvq5asmpeq2q9vcjq139psg Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1716.00.1'
20240814@175159.6100 pmbcvq5asmpeq2q9vcjq139psg Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.5396.00.1'
20240814@175159.6121 pmbcvq5asmpeq2q9vcjq139psg Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.646.00.01'
20240814@175159.6144 pmbcvq5asmpeq2q9vcjq139psg Query : use flama_phc
20240814@175159.6147 pmbcvq5asmpeq2q9vcjq139psg Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20240814@175159.6182 pmbcvq5asmpeq2q9vcjq139psg Query : use flama_phc
20240814@175159.6185 pmbcvq5asmpeq2q9vcjq139psg Query : select top 1 1 valor from td where td.ndoc = 39
20240814@175159.6216 pmbcvq5asmpeq2q9vcjq139psg Query : use flama_phc
20240814@175159.6219 pmbcvq5asmpeq2q9vcjq139psg 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')
20240814@175159.6249 pmbcvq5asmpeq2q9vcjq139psg 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
20240814@175159.6288 pmbcvq5asmpeq2q9vcjq139psg Query : use flama_phc
20240814@175159.6291 pmbcvq5asmpeq2q9vcjq139psg Query : select top 1 ~inactivo valor from cl where no = '101621' and estab = 0 order by inactivo desc
20240814@175159.6325 pmbcvq5asmpeq2q9vcjq139psg Query : use flama_phc
20240814@175159.6328 pmbcvq5asmpeq2q9vcjq139psg Query : select top 1 tipodoc,regrd from td where ndoc = 39
20240814@175159.6360 pmbcvq5asmpeq2q9vcjq139psg Query : use flama_phc
20240814@175159.6363 pmbcvq5asmpeq2q9vcjq139psg Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20240814@175159.6405 pmbcvq5asmpeq2q9vcjq139psg Query : use flama_phc
20240814@175159.6409 pmbcvq5asmpeq2q9vcjq139psg Query : select szadrsstamp valor from szadrs where szadrsdesc='j.o.m.,lda- barcelos entrega'
20240814@175159.6458 pmbcvq5asmpeq2q9vcjq139psg Query : use flama_phc
20240814@175159.6460 pmbcvq5asmpeq2q9vcjq139psg Query : select 1 valor from td where ndoc = 39
20240814@175159.6473 pmbcvq5asmpeq2q9vcjq139psg Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20240814@175159.6488 pmbcvq5asmpeq2q9vcjq139psg Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175159.6505 pmbcvq5asmpeq2q9vcjq139psg Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20240814@175159.6525 pmbcvq5asmpeq2q9vcjq139psg Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175159.6540 pmbcvq5asmpeq2q9vcjq139psg Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20240814@175159.6569 pmbcvq5asmpeq2q9vcjq139psg Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175159.6585 pmbcvq5asmpeq2q9vcjq139psg Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20240814@175159.6599 pmbcvq5asmpeq2q9vcjq139psg Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240814@175159.6669 pmbcvq5asmpeq2q9vcjq139psg Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240814@175159.6682 pmbcvq5asmpeq2q9vcjq139psg Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175159.6699 pmbcvq5asmpeq2q9vcjq139psg Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20240814@175159.6715 pmbcvq5asmpeq2q9vcjq139psg Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut66bce7171666bce0afa1' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20240814@175159.6898 pmbcvq5asmpeq2q9vcjq139psg Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175159.6927 pmbcvq5asmpeq2q9vcjq139psg Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20240814@175159.6964 pmbcvq5asmpeq2q9vcjq139psg Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20240814@175159.6976 pmbcvq5asmpeq2q9vcjq139psg Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20240814@175159.6989 pmbcvq5asmpeq2q9vcjq139psg Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20240814@175159.7001 pmbcvq5asmpeq2q9vcjq139psg Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20240814@175159.7013 pmbcvq5asmpeq2q9vcjq139psg Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20240814@175159.7025 pmbcvq5asmpeq2q9vcjq139psg Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20240814@175159.7037 pmbcvq5asmpeq2q9vcjq139psg Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut66bce7171666bce0afa1',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20240814@175159.7320 pmbcvq5asmpeq2q9vcjq139psg Query : select top 1 fno valor from wsftdata order by fno desc
20240814@175159.7337 pmbcvq5asmpeq2q9vcjq139psg Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175159.7355 pmbcvq5asmpeq2q9vcjq139psg Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20240814@175159.7378 pmbcvq5asmpeq2q9vcjq139psg Query : select 'normal' from dummy
20240814@175159.7396 pmbcvq5asmpeq2q9vcjq139psg Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut66bce7171666bce0afa1',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',376,101621,0,'2024-08-14',39,'euro',0,0,2024 ,?,?)
20240814@175159.7956 pmbcvq5asmpeq2q9vcjq139psg Query : use flama_phc
20240814@175159.7959 pmbcvq5asmpeq2q9vcjq139psg Query : select st.usalote valor from st where st.ref = '324.1716.00.1'
20240814@175159.7981 pmbcvq5asmpeq2q9vcjq139psg Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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.1716.00.1'
20240814@175159.7996 pmbcvq5asmpeq2q9vcjq139psg Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175159.8021 pmbcvq5asmpeq2q9vcjq139psg Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240814@175159.8050 pmbcvq5asmpeq2q9vcjq139psg Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175159.8065 pmbcvq5asmpeq2q9vcjq139psg Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240814@175159.8085 pmbcvq5asmpeq2q9vcjq139psg Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240814@175159.8098 pmbcvq5asmpeq2q9vcjq139psg Query : select sestamp valor from se where ref ='324.1716.00.1' and lote = 'r2100312300a'
20240814@175159.8112 pmbcvq5asmpeq2q9vcjq139psg Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175159.8127 pmbcvq5asmpeq2q9vcjq139psg Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240814@175159.8139 pmbcvq5asmpeq2q9vcjq139psg Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66bce2300966bce0afc6','aut66bce7171666bce0afa1' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240814@175159.8144 pmbcvq5asmpeq2q9vcjq139psg Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175159.8159 pmbcvq5asmpeq2q9vcjq139psg Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240814@175159.8190 pmbcvq5asmpeq2q9vcjq139psg Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem) values ('aut66bce2300966bce0afc6',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',4.000 ,'aut66bce7171666bce0afa1' ,0,0 ,2,23.00,10000,?,?,?,?)
20240814@175159.8455 pmbcvq5asmpeq2q9vcjq139psg Query : use flama_phc
20240814@175159.8458 pmbcvq5asmpeq2q9vcjq139psg Query : select st.usalote valor from st where st.ref = '324.5396.00.1'
20240814@175159.8479 pmbcvq5asmpeq2q9vcjq139psg Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.5396.00.1'
20240814@175159.8493 pmbcvq5asmpeq2q9vcjq139psg Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175159.8509 pmbcvq5asmpeq2q9vcjq139psg Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240814@175159.8535 pmbcvq5asmpeq2q9vcjq139psg Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175159.8552 pmbcvq5asmpeq2q9vcjq139psg Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240814@175159.8561 pmbcvq5asmpeq2q9vcjq139psg Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240814@175159.8574 pmbcvq5asmpeq2q9vcjq139psg Query : select sestamp valor from se where ref ='324.5396.00.1' and lote = 'r2300840100a'
20240814@175159.8588 pmbcvq5asmpeq2q9vcjq139psg Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175159.8602 pmbcvq5asmpeq2q9vcjq139psg Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240814@175159.8616 pmbcvq5asmpeq2q9vcjq139psg Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66bce1152266bce0afd1','aut66bce7171666bce0afa1' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240814@175159.8620 pmbcvq5asmpeq2q9vcjq139psg Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175159.8635 pmbcvq5asmpeq2q9vcjq139psg Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240814@175159.8665 pmbcvq5asmpeq2q9vcjq139psg Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem) values ('aut66bce1152266bce0afd1',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',6.000 ,'aut66bce7171666bce0afa1' ,0,0 ,2,23.00,20000,?,?,?,?)
20240814@175159.9032 pmbcvq5asmpeq2q9vcjq139psg Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175159.9086 pmbcvq5asmpeq2q9vcjq139psg Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240814@175159.9119 pmbcvq5asmpeq2q9vcjq139psg Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175159.9135 pmbcvq5asmpeq2q9vcjq139psg Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240814@175159.9144 pmbcvq5asmpeq2q9vcjq139psg Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240814@175159.9156 pmbcvq5asmpeq2q9vcjq139psg Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175159.9171 pmbcvq5asmpeq2q9vcjq139psg Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240814@175159.9183 pmbcvq5asmpeq2q9vcjq139psg Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66bce7753366bce0afdf','aut66bce7171666bce0afa1' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240814@175159.9188 pmbcvq5asmpeq2q9vcjq139psg Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175159.9203 pmbcvq5asmpeq2q9vcjq139psg Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240814@175159.9233 pmbcvq5asmpeq2q9vcjq139psg Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66bce7753366bce0afdf',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66bce7171666bce0afa1' ,0,0 ,2,23.00,30000,?,?,?)
20240814@175159.9519 pmbcvq5asmpeq2q9vcjq139psg Query : use flama_phc
20240814@175159.9522 pmbcvq5asmpeq2q9vcjq139psg Query : select st.usalote valor from st where st.ref = '324.646.00.01'
20240814@175159.9543 pmbcvq5asmpeq2q9vcjq139psg Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.646.00.01'
20240814@175159.9558 pmbcvq5asmpeq2q9vcjq139psg Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175159.9574 pmbcvq5asmpeq2q9vcjq139psg Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240814@175159.9602 pmbcvq5asmpeq2q9vcjq139psg Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175159.9617 pmbcvq5asmpeq2q9vcjq139psg Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240814@175159.9626 pmbcvq5asmpeq2q9vcjq139psg Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240814@175159.9638 pmbcvq5asmpeq2q9vcjq139psg Query : select sestamp valor from se where ref ='324.646.00.01' and lote = 'r2400055100a'
20240814@175159.9652 pmbcvq5asmpeq2q9vcjq139psg Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175159.9667 pmbcvq5asmpeq2q9vcjq139psg Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240814@175159.9678 pmbcvq5asmpeq2q9vcjq139psg Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66bce9116166bce0afeb','aut66bce7171666bce0afa1' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240814@175159.9684 pmbcvq5asmpeq2q9vcjq139psg Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175159.9700 pmbcvq5asmpeq2q9vcjq139psg Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240814@175159.9730 pmbcvq5asmpeq2q9vcjq139psg Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem) values ('aut66bce9116166bce0afeb',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',4.000 ,'aut66bce7171666bce0afa1' ,0,0 ,2,23.00,50000,?,?,?,?)
20240814@175159.9996 pmbcvq5asmpeq2q9vcjq139psg Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175200.1400 pmbcvq5asmpeq2q9vcjq139psg Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240814@175200.4500 pmbcvq5asmpeq2q9vcjq139psg Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175200.1431 pmbcvq5asmpeq2q9vcjq139psg Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240814@175200.1444 pmbcvq5asmpeq2q9vcjq139psg Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240814@175200.1457 pmbcvq5asmpeq2q9vcjq139psg Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175200.1475 pmbcvq5asmpeq2q9vcjq139psg Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240814@175200.1489 pmbcvq5asmpeq2q9vcjq139psg Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66bce2712066bce0b023','aut66bce7171666bce0afa1' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240814@175200.1494 pmbcvq5asmpeq2q9vcjq139psg Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175200.1508 pmbcvq5asmpeq2q9vcjq139psg Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240814@175200.1536 pmbcvq5asmpeq2q9vcjq139psg Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66bce2712066bce0b023',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66bce7171666bce0afa1' ,0,0 ,2,23.00,60000,?,?,?)
20240814@175200.1818 pmbcvq5asmpeq2q9vcjq139psg Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut66bce7171666bce0afa1','2405449','wait',39,'adm09112754980.682000002')
20240814@175200.1917 pmbcvq5asmpeq2q9vcjq139psg Query : use flama_phc
20240814@175200.1920 pmbcvq5asmpeq2q9vcjq139psg Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240814@175200.1953 pmbcvq5asmpeq2q9vcjq139psg Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1563';
20240814@175200.1981 pmbcvq5asmpeq2q9vcjq139psg Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1563';
20240814@175200.2034 pmbcvq5asmpeq2q9vcjq139psg Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1563';
20240814@175200.2066 pmbcvq5asmpeq2q9vcjq139psg Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1563';
20240814@175200.2714 225f6dpetipt8i3j9kaf327ro8 Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240814@175200.2727 225f6dpetipt8i3j9kaf327ro8 Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240814@175200.2784 225f6dpetipt8i3j9kaf327ro8 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1564';
20240814@175200.2842 225f6dpetipt8i3j9kaf327ro8 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1564';
20240814@175200.2909 225f6dpetipt8i3j9kaf327ro8 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1564';
20240814@175200.2941 225f6dpetipt8i3j9kaf327ro8 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1564';
20240814@175200.2993 225f6dpetipt8i3j9kaf327ro8 Query : use flama_phc
20240814@175200.2996 225f6dpetipt8i3j9kaf327ro8 Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240814@175200.3078 225f6dpetipt8i3j9kaf327ro8 Query : use flama_phc
20240814@175200.3081 225f6dpetipt8i3j9kaf327ro8 Query : select no, estab,szadrsdesc from szadrs where u_coddest=1452
20240814@175200.3167 225f6dpetipt8i3j9kaf327ro8 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.5396.00.1'
20240814@175200.3188 225f6dpetipt8i3j9kaf327ro8 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1832.00.2'
20240814@175200.3209 225f6dpetipt8i3j9kaf327ro8 Query : use flama_phc
20240814@175200.3213 225f6dpetipt8i3j9kaf327ro8 Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20240814@175200.3251 225f6dpetipt8i3j9kaf327ro8 Query : use flama_phc
20240814@175200.3254 225f6dpetipt8i3j9kaf327ro8 Query : select top 1 1 valor from td where td.ndoc = 39
20240814@175200.3297 225f6dpetipt8i3j9kaf327ro8 Query : use flama_phc
20240814@175200.3300 225f6dpetipt8i3j9kaf327ro8 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')
20240814@175200.3332 225f6dpetipt8i3j9kaf327ro8 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
20240814@175200.3370 225f6dpetipt8i3j9kaf327ro8 Query : use flama_phc
20240814@175200.3373 225f6dpetipt8i3j9kaf327ro8 Query : select top 1 ~inactivo valor from cl where no = '101621' and estab = 0 order by inactivo desc
20240814@175200.3405 225f6dpetipt8i3j9kaf327ro8 Query : use flama_phc
20240814@175200.3408 225f6dpetipt8i3j9kaf327ro8 Query : select top 1 tipodoc,regrd from td where ndoc = 39
20240814@175200.3450 225f6dpetipt8i3j9kaf327ro8 Query : use flama_phc
20240814@175200.3453 225f6dpetipt8i3j9kaf327ro8 Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20240814@175200.3506 225f6dpetipt8i3j9kaf327ro8 Query : use flama_phc
20240814@175200.3510 225f6dpetipt8i3j9kaf327ro8 Query : select szadrsstamp valor from szadrs where szadrsdesc='j.o.m. - castelo branco'
20240814@175200.3558 225f6dpetipt8i3j9kaf327ro8 Query : use flama_phc
20240814@175200.3561 225f6dpetipt8i3j9kaf327ro8 Query : select 1 valor from td where ndoc = 39
20240814@175200.3573 225f6dpetipt8i3j9kaf327ro8 Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20240814@175200.3589 225f6dpetipt8i3j9kaf327ro8 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175200.3606 225f6dpetipt8i3j9kaf327ro8 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20240814@175200.3626 225f6dpetipt8i3j9kaf327ro8 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175200.3641 225f6dpetipt8i3j9kaf327ro8 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20240814@175200.3671 225f6dpetipt8i3j9kaf327ro8 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175200.3686 225f6dpetipt8i3j9kaf327ro8 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20240814@175200.3700 225f6dpetipt8i3j9kaf327ro8 Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240814@175200.3783 225f6dpetipt8i3j9kaf327ro8 Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240814@175200.3797 225f6dpetipt8i3j9kaf327ro8 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175200.3814 225f6dpetipt8i3j9kaf327ro8 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20240814@175200.3833 225f6dpetipt8i3j9kaf327ro8 Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut66bce8820666bce0b05a' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20240814@175200.4043 225f6dpetipt8i3j9kaf327ro8 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175200.4062 225f6dpetipt8i3j9kaf327ro8 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20240814@175200.4098 225f6dpetipt8i3j9kaf327ro8 Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20240814@175200.4111 225f6dpetipt8i3j9kaf327ro8 Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20240814@175200.4125 225f6dpetipt8i3j9kaf327ro8 Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20240814@175200.4137 225f6dpetipt8i3j9kaf327ro8 Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20240814@175200.4150 225f6dpetipt8i3j9kaf327ro8 Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20240814@175200.4162 225f6dpetipt8i3j9kaf327ro8 Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20240814@175200.4174 225f6dpetipt8i3j9kaf327ro8 Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut66bce8820666bce0b05a',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20240814@175200.4480 225f6dpetipt8i3j9kaf327ro8 Query : select top 1 fno valor from wsftdata order by fno desc
20240814@175200.4513 225f6dpetipt8i3j9kaf327ro8 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175200.4530 225f6dpetipt8i3j9kaf327ro8 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20240814@175200.4557 225f6dpetipt8i3j9kaf327ro8 Query : select 'normal' from dummy
20240814@175200.4573 225f6dpetipt8i3j9kaf327ro8 Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut66bce8820666bce0b05a',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',377,101621,0,'2024-08-14',39,'euro',0,0,2024 ,?,?)
20240814@175200.4862 225f6dpetipt8i3j9kaf327ro8 Query : use flama_phc
20240814@175200.4865 225f6dpetipt8i3j9kaf327ro8 Query : select st.usalote valor from st where st.ref = '324.5396.00.1'
20240814@175200.4899 225f6dpetipt8i3j9kaf327ro8 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.5396.00.1'
20240814@175200.4913 225f6dpetipt8i3j9kaf327ro8 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175200.4931 225f6dpetipt8i3j9kaf327ro8 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240814@175200.4960 225f6dpetipt8i3j9kaf327ro8 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175200.4975 225f6dpetipt8i3j9kaf327ro8 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240814@175200.4985 225f6dpetipt8i3j9kaf327ro8 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240814@175200.4998 225f6dpetipt8i3j9kaf327ro8 Query : select sestamp valor from se where ref ='324.5396.00.1' and lote = 'r2300840100a'
20240814@175200.5011 225f6dpetipt8i3j9kaf327ro8 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175200.5026 225f6dpetipt8i3j9kaf327ro8 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240814@175200.5038 225f6dpetipt8i3j9kaf327ro8 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66bce9977466bce0b07a','aut66bce8820666bce0b05a' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240814@175200.5042 225f6dpetipt8i3j9kaf327ro8 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175200.5067 225f6dpetipt8i3j9kaf327ro8 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240814@175200.5099 225f6dpetipt8i3j9kaf327ro8 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem) values ('aut66bce9977466bce0b07a',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',6.000 ,'aut66bce8820666bce0b05a' ,0,0 ,2,23.00,10000,?,?,?,?)
20240814@175200.5366 225f6dpetipt8i3j9kaf327ro8 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175200.5382 225f6dpetipt8i3j9kaf327ro8 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240814@175200.5422 225f6dpetipt8i3j9kaf327ro8 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175200.5438 225f6dpetipt8i3j9kaf327ro8 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240814@175200.5447 225f6dpetipt8i3j9kaf327ro8 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240814@175200.5460 225f6dpetipt8i3j9kaf327ro8 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175200.5474 225f6dpetipt8i3j9kaf327ro8 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240814@175200.5486 225f6dpetipt8i3j9kaf327ro8 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66bce3981866bce0b085','aut66bce8820666bce0b05a' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240814@175200.5491 225f6dpetipt8i3j9kaf327ro8 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175200.5506 225f6dpetipt8i3j9kaf327ro8 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240814@175200.5560 225f6dpetipt8i3j9kaf327ro8 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66bce3981866bce0b085',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66bce8820666bce0b05a' ,0,0 ,2,23.00,20000,?,?,?)
20240814@175200.5835 225f6dpetipt8i3j9kaf327ro8 Query : use flama_phc
20240814@175200.5838 225f6dpetipt8i3j9kaf327ro8 Query : select st.usalote valor from st where st.ref = '324.1832.00.2'
20240814@175200.6113 225f6dpetipt8i3j9kaf327ro8 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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.1832.00.2'
20240814@175200.6141 225f6dpetipt8i3j9kaf327ro8 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175200.6159 225f6dpetipt8i3j9kaf327ro8 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240814@175200.6187 225f6dpetipt8i3j9kaf327ro8 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175200.6204 225f6dpetipt8i3j9kaf327ro8 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240814@175200.6213 225f6dpetipt8i3j9kaf327ro8 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240814@175200.6225 225f6dpetipt8i3j9kaf327ro8 Query : select sestamp valor from se where ref ='324.1832.00.2' and lote = 'r2301271100a'
20240814@175200.6238 225f6dpetipt8i3j9kaf327ro8 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175200.6253 225f6dpetipt8i3j9kaf327ro8 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240814@175200.6265 225f6dpetipt8i3j9kaf327ro8 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66bce5662666bce0b098','aut66bce8820666bce0b05a' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240814@175200.6270 225f6dpetipt8i3j9kaf327ro8 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175200.6285 225f6dpetipt8i3j9kaf327ro8 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240814@175200.6314 225f6dpetipt8i3j9kaf327ro8 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem) values ('aut66bce5662666bce0b098',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',4.000 ,'aut66bce8820666bce0b05a' ,0,0 ,2,23.00,40000,?,?,?,?)
20240814@175200.6601 225f6dpetipt8i3j9kaf327ro8 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175200.6619 225f6dpetipt8i3j9kaf327ro8 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240814@175200.6648 225f6dpetipt8i3j9kaf327ro8 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175200.6664 225f6dpetipt8i3j9kaf327ro8 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240814@175200.6672 225f6dpetipt8i3j9kaf327ro8 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240814@175200.6684 225f6dpetipt8i3j9kaf327ro8 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175200.6698 225f6dpetipt8i3j9kaf327ro8 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240814@175200.6710 225f6dpetipt8i3j9kaf327ro8 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66bce6035066bce0b0a3','aut66bce8820666bce0b05a' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240814@175200.6714 225f6dpetipt8i3j9kaf327ro8 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240814@175200.6730 225f6dpetipt8i3j9kaf327ro8 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240814@175200.6759 225f6dpetipt8i3j9kaf327ro8 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66bce6035066bce0b0a3',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66bce8820666bce0b05a' ,0,0 ,2,23.00,50000,?,?,?)
20240814@175200.7035 225f6dpetipt8i3j9kaf327ro8 Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut66bce8820666bce0b05a','2405450','wait',39,'adm09112754980.682000002')
20240814@175200.7126 225f6dpetipt8i3j9kaf327ro8 Query : use flama_phc
20240814@175200.7129 225f6dpetipt8i3j9kaf327ro8 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240814@175200.7165 225f6dpetipt8i3j9kaf327ro8 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1564';
20240814@175200.7192 225f6dpetipt8i3j9kaf327ro8 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1564';
20240814@175200.7241 225f6dpetipt8i3j9kaf327ro8 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1564';
20240814@175200.7276 225f6dpetipt8i3j9kaf327ro8 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1564';

20240816@182010.6770 4r2abf9n2rbncngh7q5h1g8q01 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1565';
20240816@182010.6839 4r2abf9n2rbncngh7q5h1g8q01 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1565';
20240816@182010.6868 4r2abf9n2rbncngh7q5h1g8q01 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1565';
20240816@182010.6922 4r2abf9n2rbncngh7q5h1g8q01 Query : use flama_phc
20240816@182010.6926 4r2abf9n2rbncngh7q5h1g8q01 Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240816@182010.7036 4r2abf9n2rbncngh7q5h1g8q01 Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.988.00.01'
20240816@182010.7188 4r2abf9n2rbncngh7q5h1g8q01 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 = 2400410 and bi.ref ='324.988.00.01' and bi.lordem =20000
20240816@182010.7573 4r2abf9n2rbncngh7q5h1g8q01 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 = 'cps24041135338,012000002 ' 
20240816@182010.7939 4r2abf9n2rbncngh7q5h1g8q01 Query : use flama_phc
20240816@182010.7943 4r2abf9n2rbncngh7q5h1g8q01 Query : select top 1 1 valor from ts where ts.ndos = 61
20240816@182010.8058 4r2abf9n2rbncngh7q5h1g8q01 Query : use flama_phc
20240816@182010.8062 4r2abf9n2rbncngh7q5h1g8q01 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')
20240816@182010.8216 4r2abf9n2rbncngh7q5h1g8q01 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
20240816@182010.8457 4r2abf9n2rbncngh7q5h1g8q01 Query : use flama_phc
20240816@182010.8462 4r2abf9n2rbncngh7q5h1g8q01 Query : select top 1 ~inactivo valor from fl where no = '202383' and estab = 00 order by inactivo desc
20240816@182010.8609 4r2abf9n2rbncngh7q5h1g8q01 Query : use flama_phc
20240816@182010.8613 4r2abf9n2rbncngh7q5h1g8q01 Query : select 1 valor from ts where ndos = 61
20240816@182010.8717 4r2abf9n2rbncngh7q5h1g8q01 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240816@182010.9077 4r2abf9n2rbncngh7q5h1g8q01 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bo' and documentnumber = 61
20240816@182010.9125 4r2abf9n2rbncngh7q5h1g8q01 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240816@182010.9143 4r2abf9n2rbncngh7q5h1g8q01 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bo2' and documentnumber = 61
20240816@182010.9154 4r2abf9n2rbncngh7q5h1g8q01 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240816@182010.9171 4r2abf9n2rbncngh7q5h1g8q01 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bo3' and documentnumber = 61
20240816@182010.9182 4r2abf9n2rbncngh7q5h1g8q01 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
20240816@182010.9330 4r2abf9n2rbncngh7q5h1g8q01 Query : select top 1 bo.obrano valor from bo bo where bo.ndos = 61 and boano=2024 order by obrano desc
20240816@182010.9500 4r2abf9n2rbncngh7q5h1g8q01 Query : select top 1 bo.obrano valor from bo bo where bo.ndos = 61 and boano=2024 order by obrano desc
20240816@182010.9523 4r2abf9n2rbncngh7q5h1g8q01 Query : use flama_phc
20240816@182010.9541 4r2abf9n2rbncngh7q5h1g8q01 Query : select top 1 no,estab,nome, morada, local,codpost,ncont,pncont,pais,inactivo,motiseimp,codmotiseimp from fl where no='202383' and estab=00
20240816@182010.9640 4r2abf9n2rbncngh7q5h1g8q01 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240816@182010.9659 4r2abf9n2rbncngh7q5h1g8q01 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bo3' and documentnumber = 61
20240816@182010.9706 4r2abf9n2rbncngh7q5h1g8q01 Query : insert into bo3 (bo3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66bf88113866bf8a4ae8',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut')
20240816@182010.9791 4r2abf9n2rbncngh7q5h1g8q01 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240816@182010.9815 4r2abf9n2rbncngh7q5h1g8q01 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bo2' and documentnumber = 61
20240816@182010.9831 4r2abf9n2rbncngh7q5h1g8q01 Query : insert into bo2 (bo2stamp, tiposaft, idserie,cambio,cambiofixo,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66bf88113866bf8a4ae8','--','bo',7.8651685393258426966 ,1,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut')
20240816@182011.2270 4r2abf9n2rbncngh7q5h1g8q01 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240816@182011.2480 4r2abf9n2rbncngh7q5h1g8q01 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bo' and documentnumber = 61
20240816@182011.2640 4r2abf9n2rbncngh7q5h1g8q01 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 ('aut66bf88113866bf8a4ae8','guia r. fornecedor','2024-08-16',61,2402308,?,?,?,?,?,?,?,?,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')
20240816@182011.8610 4r2abf9n2rbncngh7q5h1g8q01 Query : use flama_phc
20240816@182011.8650 4r2abf9n2rbncngh7q5h1g8q01 Query : select st.usalote valor from st where st.ref = '324.988.00.01'
20240816@182011.9960 4r2abf9n2rbncngh7q5h1g8q01 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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'
20240816@182011.1143 4r2abf9n2rbncngh7q5h1g8q01 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240816@182011.1164 4r2abf9n2rbncngh7q5h1g8q01 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 61
20240816@182011.1181 4r2abf9n2rbncngh7q5h1g8q01 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240816@182011.1200 4r2abf9n2rbncngh7q5h1g8q01 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 61
20240816@182011.1215 4r2abf9n2rbncngh7q5h1g8q01 Query : select sestamp valor from se where ref ='324.988.00.01' and lote = 'r2400410200a'
20240816@182011.1282 4r2abf9n2rbncngh7q5h1g8q01 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240816@182011.1302 4r2abf9n2rbncngh7q5h1g8q01 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'se' and documentnumber = 0
20240816@182011.1315 4r2abf9n2rbncngh7q5h1g8q01 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240816@182011.1333 4r2abf9n2rbncngh7q5h1g8q01 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'se' and documentnumber = 0
20240816@182011.1349 4r2abf9n2rbncngh7q5h1g8q01 Query : insert into se (sestamp,ref, lote, data,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66bf82462566bf8a4b20',?,?,'20240816',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut;','aut;')
20240816@182011.1608 4r2abf9n2rbncngh7q5h1g8q01 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240816@182011.1919 4r2abf9n2rbncngh7q5h1g8q01 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240816@182011.2033 4r2abf9n2rbncngh7q5h1g8q01 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 61
20240816@182011.2050 4r2abf9n2rbncngh7q5h1g8q01 Query : insert into bi2 (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut66bf89110466bf8a4b2e','aut66bf88113866bf8a4ae8',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 = 'aut66bf88113866bf8a4ae8'
20240816@182011.2464 4r2abf9n2rbncngh7q5h1g8q01 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240816@182011.2685 4r2abf9n2rbncngh7q5h1g8q01 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 61
20240816@182011.2710 4r2abf9n2rbncngh7q5h1g8q01 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 'aut66bf89110466bf8a4b2e',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut',bo.obrano, 2800, 2800*.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 ,8.9,8.9*200.48,8.9,8.9*200.48 ,0,0,'un ',' ' ,bo.marcada,1 ,8.9*2800,8.9*2800*200.48 ,10.294000,10.294000*200.48 ,10.294000,10.294000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,8.9,8.9*200.48,8.9*2800,8.9*2800*200.48,'cps24041135338,012000002 ',70,70*2800,70,70*2800,?,?,?,4 from bo bo where bo.bostamp = 'aut66bf88113866bf8a4ae8'
20240816@182011.7945 4r2abf9n2rbncngh7q5h1g8q01 Query : use flama_phc
20240816@182011.7951 4r2abf9n2rbncngh7q5h1g8q01 Query : declare @bostamp varchar(25) = 'aut66bf88113866bf8a4ae8' ,@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 
20240816@182012.5120 4r2abf9n2rbncngh7q5h1g8q01 Query : use flama_phc
20240816@182012.5170 4r2abf9n2rbncngh7q5h1g8q01 Query : select 1 valor from bo where bo.bostamp = 'aut66bf88113866bf8a4ae8'
20240816@182012.6790 4r2abf9n2rbncngh7q5h1g8q01 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) = 'aut66bf88113866bf8a4ae8' 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 
