20240825@204555.4028 ovr8sslioslf3ag4l29d252vja Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1665';
20240825@204555.4054 ovr8sslioslf3ag4l29d252vja Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1665';
20240825@204555.4591 ubtk33o8d14ga2agugiteomhij Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240825@204555.4603 ubtk33o8d14ga2agugiteomhij Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240825@204555.4674 ubtk33o8d14ga2agugiteomhij Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1666';
20240825@204555.4755 ubtk33o8d14ga2agugiteomhij Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1666';
20240825@204555.4813 ubtk33o8d14ga2agugiteomhij Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1666';
20240825@204555.4845 ubtk33o8d14ga2agugiteomhij Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1666';
20240825@204555.4905 ubtk33o8d14ga2agugiteomhij Query : use flama_phc
20240825@204555.4910 ubtk33o8d14ga2agugiteomhij Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240825@204555.4977 ubtk33o8d14ga2agugiteomhij Query : use flama_phc
20240825@204555.4981 ubtk33o8d14ga2agugiteomhij Query : select no, estab,szadrsdesc from szadrs where u_coddest=812
20240825@204555.5108 ubtk33o8d14ga2agugiteomhij 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'
20240825@204555.5131 ubtk33o8d14ga2agugiteomhij Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2055 and bo.obrano = 2405532 and bi.ref ='324.5396.00.1' and bi.lordem =1
20240825@204555.5611 ubtk33o8d14ga2agugiteomhij Query : use flama_phc
20240825@204555.5616 ubtk33o8d14ga2agugiteomhij Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20240825@204555.5661 ubtk33o8d14ga2agugiteomhij Query : use flama_phc
20240825@204555.5665 ubtk33o8d14ga2agugiteomhij Query : select top 1 1 valor from td where td.ndoc = 39
20240825@204555.5698 ubtk33o8d14ga2agugiteomhij Query : use flama_phc
20240825@204555.5702 ubtk33o8d14ga2agugiteomhij 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')
20240825@204555.5733 ubtk33o8d14ga2agugiteomhij 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
20240825@204555.5773 ubtk33o8d14ga2agugiteomhij Query : use flama_phc
20240825@204555.5777 ubtk33o8d14ga2agugiteomhij Query : select top 1 ~inactivo valor from cl where no = '101621' and estab = 0 order by inactivo desc
20240825@204555.5810 ubtk33o8d14ga2agugiteomhij Query : use flama_phc
20240825@204555.5814 ubtk33o8d14ga2agugiteomhij Query : select top 1 tipodoc,regrd from td where ndoc = 39
20240825@204555.5845 ubtk33o8d14ga2agugiteomhij Query : use flama_phc
20240825@204555.5849 ubtk33o8d14ga2agugiteomhij Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20240825@204555.5891 ubtk33o8d14ga2agugiteomhij Query : use flama_phc
20240825@204555.5894 ubtk33o8d14ga2agugiteomhij Query : select szadrsstamp valor from szadrs where szadrsdesc='j.o.m.,lda - santarem'
20240825@204555.5946 ubtk33o8d14ga2agugiteomhij Query : use flama_phc
20240825@204555.5949 ubtk33o8d14ga2agugiteomhij Query : select 1 valor from td where ndoc = 39
20240825@204555.5963 ubtk33o8d14ga2agugiteomhij Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20240825@204555.5979 ubtk33o8d14ga2agugiteomhij Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240825@204555.6000 ubtk33o8d14ga2agugiteomhij Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20240825@204555.6023 ubtk33o8d14ga2agugiteomhij Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240825@204555.6041 ubtk33o8d14ga2agugiteomhij Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20240825@204555.6078 ubtk33o8d14ga2agugiteomhij Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240825@204555.6097 ubtk33o8d14ga2agugiteomhij Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20240825@204555.6112 ubtk33o8d14ga2agugiteomhij Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240825@204555.6186 ubtk33o8d14ga2agugiteomhij Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240825@204555.6201 ubtk33o8d14ga2agugiteomhij Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240825@204555.6222 ubtk33o8d14ga2agugiteomhij Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20240825@204555.6241 ubtk33o8d14ga2agugiteomhij Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut66cb80542366cb89f395' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20240825@204555.6508 ubtk33o8d14ga2agugiteomhij Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240825@204555.6533 ubtk33o8d14ga2agugiteomhij Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20240825@204555.6574 ubtk33o8d14ga2agugiteomhij Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20240825@204555.6588 ubtk33o8d14ga2agugiteomhij Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20240825@204555.6602 ubtk33o8d14ga2agugiteomhij Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20240825@204555.6617 ubtk33o8d14ga2agugiteomhij Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20240825@204555.6632 ubtk33o8d14ga2agugiteomhij Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20240825@204555.6646 ubtk33o8d14ga2agugiteomhij Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20240825@204555.6660 ubtk33o8d14ga2agugiteomhij Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut66cb80542366cb89f395',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20240825@204555.7041 ubtk33o8d14ga2agugiteomhij Query : select top 1 fno valor from wsftdata order by fno desc
20240825@204555.7069 ubtk33o8d14ga2agugiteomhij Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240825@204555.7091 ubtk33o8d14ga2agugiteomhij Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20240825@204555.7121 ubtk33o8d14ga2agugiteomhij Query : select 'normal' from dummy
20240825@204555.7141 ubtk33o8d14ga2agugiteomhij Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut66cb80542366cb89f395',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',466,101621,0,'2024-08-25',39,'euro',0,0,2024 ,?,?)
20240825@204555.7595 ubtk33o8d14ga2agugiteomhij Query : use flama_phc
20240825@204555.7598 ubtk33o8d14ga2agugiteomhij Query : select st.usalote valor from st where st.ref = '324.5396.00.1'
20240825@204555.7626 ubtk33o8d14ga2agugiteomhij Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 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'
20240825@204555.7643 ubtk33o8d14ga2agugiteomhij Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240825@204555.7667 ubtk33o8d14ga2agugiteomhij Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240825@204555.7698 ubtk33o8d14ga2agugiteomhij Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240825@204555.7716 ubtk33o8d14ga2agugiteomhij Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240825@204555.7726 ubtk33o8d14ga2agugiteomhij Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240825@204555.7748 ubtk33o8d14ga2agugiteomhij Query : select sestamp valor from se where ref ='324.5396.00.1' and lote = 'r2300840100a'
20240825@204555.7766 ubtk33o8d14ga2agugiteomhij Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240825@204555.7787 ubtk33o8d14ga2agugiteomhij Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240825@204555.7802 ubtk33o8d14ga2agugiteomhij Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66cb83508066cb89f3bd','aut66cb80542366cb89f395' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240825@204555.7807 ubtk33o8d14ga2agugiteomhij Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240825@204555.7826 ubtk33o8d14ga2agugiteomhij Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240825@204555.7861 ubtk33o8d14ga2agugiteomhij Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66cb83508066cb89f3bd',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',6.000 ,'aut66cb80542366cb89f395' ,0,0 ,2,23.00,10000,?,?,?,?,?)
20240825@204555.8268 ubtk33o8d14ga2agugiteomhij Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240825@204555.8290 ubtk33o8d14ga2agugiteomhij Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240825@204555.8325 ubtk33o8d14ga2agugiteomhij Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240825@204555.8345 ubtk33o8d14ga2agugiteomhij Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240825@204555.8357 ubtk33o8d14ga2agugiteomhij Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240825@204555.8370 ubtk33o8d14ga2agugiteomhij Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240825@204555.8385 ubtk33o8d14ga2agugiteomhij Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240825@204555.8397 ubtk33o8d14ga2agugiteomhij Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66cb89756766cb89f3cc','aut66cb80542366cb89f395' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240825@204555.8402 ubtk33o8d14ga2agugiteomhij Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240825@204555.8417 ubtk33o8d14ga2agugiteomhij Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240825@204555.8448 ubtk33o8d14ga2agugiteomhij Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66cb89756766cb89f3cc',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66cb80542366cb89f395' ,0,0 ,2,23.00,20000,?,?,?)
20240825@204555.8734 ubtk33o8d14ga2agugiteomhij Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut66cb80542366cb89f395','2405532','wait',39,'adm09112754980.682000002')
20240825@204555.8806 ubtk33o8d14ga2agugiteomhij Query : use flama_phc
20240825@204555.8810 ubtk33o8d14ga2agugiteomhij Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240825@204555.8842 ubtk33o8d14ga2agugiteomhij Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1666';
20240825@204555.8871 ubtk33o8d14ga2agugiteomhij Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1666';
20240825@204555.8912 ubtk33o8d14ga2agugiteomhij Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1666';
20240825@204555.8941 ubtk33o8d14ga2agugiteomhij Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1666';
20240825@204555.9459 dohi2qopc0skvqhv1f13pjacj9 Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240825@204555.9472 dohi2qopc0skvqhv1f13pjacj9 Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240825@204555.9531 dohi2qopc0skvqhv1f13pjacj9 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1667';
20240825@204555.9593 dohi2qopc0skvqhv1f13pjacj9 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1667';
20240825@204555.9645 dohi2qopc0skvqhv1f13pjacj9 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1667';
20240825@204555.9675 dohi2qopc0skvqhv1f13pjacj9 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1667';
20240825@204555.9728 dohi2qopc0skvqhv1f13pjacj9 Query : use flama_phc
20240825@204555.9733 dohi2qopc0skvqhv1f13pjacj9 Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240825@204555.9804 dohi2qopc0skvqhv1f13pjacj9 Query : use flama_phc
20240825@204555.9808 dohi2qopc0skvqhv1f13pjacj9 Query : select no, estab,szadrsdesc from szadrs where u_coddest=2374
20240825@204556.1450 dohi2qopc0skvqhv1f13pjacj9 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'
20240825@204556.1730 dohi2qopc0skvqhv1f13pjacj9 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2055 and bo.obrano = 2405533 and bi.ref ='324.1832.00.2' and bi.lordem =1
20240825@204556.6020 dohi2qopc0skvqhv1f13pjacj9 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'
20240825@204556.6250 dohi2qopc0skvqhv1f13pjacj9 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2055 and bo.obrano = 2405533 and bi.ref ='324.1832.00.2' and bi.lordem =2
20240825@204556.1026 dohi2qopc0skvqhv1f13pjacj9 Query : use flama_phc
20240825@204556.1031 dohi2qopc0skvqhv1f13pjacj9 Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20240825@204556.1068 dohi2qopc0skvqhv1f13pjacj9 Query : use flama_phc
20240825@204556.1071 dohi2qopc0skvqhv1f13pjacj9 Query : select top 1 1 valor from td where td.ndoc = 39
20240825@204556.1104 dohi2qopc0skvqhv1f13pjacj9 Query : use flama_phc
20240825@204556.1107 dohi2qopc0skvqhv1f13pjacj9 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')
20240825@204556.1138 dohi2qopc0skvqhv1f13pjacj9 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
20240825@204556.1174 dohi2qopc0skvqhv1f13pjacj9 Query : use flama_phc
20240825@204556.1177 dohi2qopc0skvqhv1f13pjacj9 Query : select top 1 ~inactivo valor from cl where no = '101621' and estab = 0 order by inactivo desc
20240825@204556.1205 dohi2qopc0skvqhv1f13pjacj9 Query : use flama_phc
20240825@204556.1208 dohi2qopc0skvqhv1f13pjacj9 Query : select top 1 tipodoc,regrd from td where ndoc = 39
20240825@204556.1240 dohi2qopc0skvqhv1f13pjacj9 Query : use flama_phc
20240825@204556.1243 dohi2qopc0skvqhv1f13pjacj9 Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20240825@204556.1290 dohi2qopc0skvqhv1f13pjacj9 Query : use flama_phc
20240825@204556.1294 dohi2qopc0skvqhv1f13pjacj9 Query : select szadrsstamp valor from szadrs where szadrsdesc='j.o.m.,lda - vila real'
20240825@204556.1340 dohi2qopc0skvqhv1f13pjacj9 Query : use flama_phc
20240825@204556.1343 dohi2qopc0skvqhv1f13pjacj9 Query : select 1 valor from td where ndoc = 39
20240825@204556.1356 dohi2qopc0skvqhv1f13pjacj9 Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20240825@204556.1370 dohi2qopc0skvqhv1f13pjacj9 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240825@204556.1389 dohi2qopc0skvqhv1f13pjacj9 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20240825@204556.1411 dohi2qopc0skvqhv1f13pjacj9 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240825@204556.1428 dohi2qopc0skvqhv1f13pjacj9 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20240825@204556.1460 dohi2qopc0skvqhv1f13pjacj9 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240825@204556.1477 dohi2qopc0skvqhv1f13pjacj9 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20240825@204556.1491 dohi2qopc0skvqhv1f13pjacj9 Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240825@204556.1633 dohi2qopc0skvqhv1f13pjacj9 Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240825@204556.1649 dohi2qopc0skvqhv1f13pjacj9 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240825@204556.1670 dohi2qopc0skvqhv1f13pjacj9 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20240825@204556.1688 dohi2qopc0skvqhv1f13pjacj9 Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut66cb86208666cb89f424' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20240825@204556.1902 dohi2qopc0skvqhv1f13pjacj9 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240825@204556.1923 dohi2qopc0skvqhv1f13pjacj9 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20240825@204556.1958 dohi2qopc0skvqhv1f13pjacj9 Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20240825@204556.1971 dohi2qopc0skvqhv1f13pjacj9 Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20240825@204556.1983 dohi2qopc0skvqhv1f13pjacj9 Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20240825@204556.1995 dohi2qopc0skvqhv1f13pjacj9 Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20240825@204556.2008 dohi2qopc0skvqhv1f13pjacj9 Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20240825@204556.2020 dohi2qopc0skvqhv1f13pjacj9 Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20240825@204556.2032 dohi2qopc0skvqhv1f13pjacj9 Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut66cb86208666cb89f424',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20240825@204556.2302 dohi2qopc0skvqhv1f13pjacj9 Query : select top 1 fno valor from wsftdata order by fno desc
20240825@204556.2327 dohi2qopc0skvqhv1f13pjacj9 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240825@204556.2344 dohi2qopc0skvqhv1f13pjacj9 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20240825@204556.2367 dohi2qopc0skvqhv1f13pjacj9 Query : select 'normal' from dummy
20240825@204556.2383 dohi2qopc0skvqhv1f13pjacj9 Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut66cb86208666cb89f424',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',467,101621,0,'2024-08-25',39,'euro',0,0,2024 ,?,?)
20240825@204556.2710 dohi2qopc0skvqhv1f13pjacj9 Query : use flama_phc
20240825@204556.2714 dohi2qopc0skvqhv1f13pjacj9 Query : select st.usalote valor from st where st.ref = '324.1832.00.2'
20240825@204556.2741 dohi2qopc0skvqhv1f13pjacj9 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 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'
20240825@204556.2757 dohi2qopc0skvqhv1f13pjacj9 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240825@204556.2777 dohi2qopc0skvqhv1f13pjacj9 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240825@204556.2806 dohi2qopc0skvqhv1f13pjacj9 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240825@204556.2823 dohi2qopc0skvqhv1f13pjacj9 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240825@204556.2832 dohi2qopc0skvqhv1f13pjacj9 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240825@204556.2844 dohi2qopc0skvqhv1f13pjacj9 Query : select sestamp valor from se where ref ='324.1832.00.2' and lote = 'r2301271100a'
20240825@204556.2856 dohi2qopc0skvqhv1f13pjacj9 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240825@204556.2871 dohi2qopc0skvqhv1f13pjacj9 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240825@204556.2883 dohi2qopc0skvqhv1f13pjacj9 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66cb81264266cb89f445','aut66cb86208666cb89f424' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240825@204556.2888 dohi2qopc0skvqhv1f13pjacj9 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240825@204556.2902 dohi2qopc0skvqhv1f13pjacj9 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240825@204556.2931 dohi2qopc0skvqhv1f13pjacj9 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66cb81264266cb89f445',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',3.000 ,'aut66cb86208666cb89f424' ,0,0 ,2,23.00,10000,?,?,?,?,?)
20240825@204556.3264 dohi2qopc0skvqhv1f13pjacj9 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240825@204556.3284 dohi2qopc0skvqhv1f13pjacj9 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240825@204556.3311 dohi2qopc0skvqhv1f13pjacj9 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240825@204556.3326 dohi2qopc0skvqhv1f13pjacj9 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240825@204556.3335 dohi2qopc0skvqhv1f13pjacj9 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240825@204556.3347 dohi2qopc0skvqhv1f13pjacj9 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240825@204556.3362 dohi2qopc0skvqhv1f13pjacj9 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240825@204556.3373 dohi2qopc0skvqhv1f13pjacj9 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66cb89023666cb89f451','aut66cb86208666cb89f424' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240825@204556.3378 dohi2qopc0skvqhv1f13pjacj9 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240825@204556.3391 dohi2qopc0skvqhv1f13pjacj9 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240825@204556.3418 dohi2qopc0skvqhv1f13pjacj9 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66cb89023666cb89f451',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66cb86208666cb89f424' ,0,0 ,2,23.00,20000,?,?,?)
20240825@204556.3701 dohi2qopc0skvqhv1f13pjacj9 Query : use flama_phc
20240825@204556.3705 dohi2qopc0skvqhv1f13pjacj9 Query : select st.usalote valor from st where st.ref = '324.1832.00.2'
20240825@204556.3724 dohi2qopc0skvqhv1f13pjacj9 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 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'
20240825@204556.3738 dohi2qopc0skvqhv1f13pjacj9 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240825@204556.3754 dohi2qopc0skvqhv1f13pjacj9 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240825@204556.3779 dohi2qopc0skvqhv1f13pjacj9 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240825@204556.3793 dohi2qopc0skvqhv1f13pjacj9 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240825@204556.3801 dohi2qopc0skvqhv1f13pjacj9 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240825@204556.3814 dohi2qopc0skvqhv1f13pjacj9 Query : select sestamp valor from se where ref ='324.1832.00.2' and lote = 'r2301271100a'
20240825@204556.3827 dohi2qopc0skvqhv1f13pjacj9 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240825@204556.3841 dohi2qopc0skvqhv1f13pjacj9 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240825@204556.3852 dohi2qopc0skvqhv1f13pjacj9 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66cb80594966cb89f45d','aut66cb86208666cb89f424' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240825@204556.3857 dohi2qopc0skvqhv1f13pjacj9 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240825@204556.3871 dohi2qopc0skvqhv1f13pjacj9 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240825@204556.3897 dohi2qopc0skvqhv1f13pjacj9 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66cb80594966cb89f45d',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',1.000 ,'aut66cb86208666cb89f424' ,0,0 ,2,23.00,40000,?,?,?,?,?)
20240825@204556.4185 dohi2qopc0skvqhv1f13pjacj9 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240825@204556.4204 dohi2qopc0skvqhv1f13pjacj9 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240825@204556.4229 dohi2qopc0skvqhv1f13pjacj9 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240825@204556.4243 dohi2qopc0skvqhv1f13pjacj9 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240825@204556.4252 dohi2qopc0skvqhv1f13pjacj9 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240825@204556.4269 dohi2qopc0skvqhv1f13pjacj9 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240825@204556.4284 dohi2qopc0skvqhv1f13pjacj9 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240825@204556.4296 dohi2qopc0skvqhv1f13pjacj9 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66cb82479366cb89f468','aut66cb86208666cb89f424' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240825@204556.4301 dohi2qopc0skvqhv1f13pjacj9 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240825@204556.4315 dohi2qopc0skvqhv1f13pjacj9 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240825@204556.4346 dohi2qopc0skvqhv1f13pjacj9 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66cb82479366cb89f468',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66cb86208666cb89f424' ,0,0 ,2,23.00,50000,?,?,?)
20240825@204556.4641 dohi2qopc0skvqhv1f13pjacj9 Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut66cb86208666cb89f424','2405533','wait',39,'adm09112754980.682000002')
20240825@204556.4721 dohi2qopc0skvqhv1f13pjacj9 Query : use flama_phc
20240825@204556.4725 dohi2qopc0skvqhv1f13pjacj9 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240825@204556.4756 dohi2qopc0skvqhv1f13pjacj9 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1667';
20240825@204556.4786 dohi2qopc0skvqhv1f13pjacj9 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1667';
20240825@204556.4825 dohi2qopc0skvqhv1f13pjacj9 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1667';
20240825@204556.4862 dohi2qopc0skvqhv1f13pjacj9 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1667';
20240825@204556.5454 7dhtbqrp2urqd2qlavud6ni2eg Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240825@204556.5467 7dhtbqrp2urqd2qlavud6ni2eg Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240825@204556.6794 7dhtbqrp2urqd2qlavud6ni2eg Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1668';
20240825@204556.6874 7dhtbqrp2urqd2qlavud6ni2eg Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1668';
20240825@204556.6930 7dhtbqrp2urqd2qlavud6ni2eg Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1668';
20240825@204556.6959 7dhtbqrp2urqd2qlavud6ni2eg Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1668';
20240825@204556.7008 7dhtbqrp2urqd2qlavud6ni2eg Query : use flama_phc
20240825@204556.7013 7dhtbqrp2urqd2qlavud6ni2eg Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240825@204556.7081 7dhtbqrp2urqd2qlavud6ni2eg Query : use flama_phc
20240825@204556.7085 7dhtbqrp2urqd2qlavud6ni2eg Query : select no, estab,szadrsdesc from szadrs where u_coddest=1452
20240825@204556.7195 7dhtbqrp2urqd2qlavud6ni2eg Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1831.00.2'
20240825@204556.7405 7dhtbqrp2urqd2qlavud6ni2eg Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2055 and bo.obrano = 2405534 and bi.ref ='324.1831.00.2' and bi.lordem =1
20240825@204556.7812 7dhtbqrp2urqd2qlavud6ni2eg Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1831.00.2'
20240825@204556.7839 7dhtbqrp2urqd2qlavud6ni2eg Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2055 and bo.obrano = 2405534 and bi.ref ='324.1831.00.2' and bi.lordem =2
20240825@204556.8196 7dhtbqrp2urqd2qlavud6ni2eg Query : use flama_phc
20240825@204556.8200 7dhtbqrp2urqd2qlavud6ni2eg Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20240825@204556.8238 7dhtbqrp2urqd2qlavud6ni2eg Query : use flama_phc
20240825@204556.8242 7dhtbqrp2urqd2qlavud6ni2eg Query : select top 1 1 valor from td where td.ndoc = 39
20240825@204556.8285 7dhtbqrp2urqd2qlavud6ni2eg Query : use flama_phc
20240825@204556.8289 7dhtbqrp2urqd2qlavud6ni2eg 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')
20240825@204556.8322 7dhtbqrp2urqd2qlavud6ni2eg 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
20240825@204556.8360 7dhtbqrp2urqd2qlavud6ni2eg Query : use flama_phc
20240825@204556.8364 7dhtbqrp2urqd2qlavud6ni2eg Query : select top 1 ~inactivo valor from cl where no = '101621' and estab = 0 order by inactivo desc
20240825@204556.8397 7dhtbqrp2urqd2qlavud6ni2eg Query : use flama_phc
20240825@204556.8401 7dhtbqrp2urqd2qlavud6ni2eg Query : select top 1 tipodoc,regrd from td where ndoc = 39
20240825@204556.8436 7dhtbqrp2urqd2qlavud6ni2eg Query : use flama_phc
20240825@204556.8440 7dhtbqrp2urqd2qlavud6ni2eg Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20240825@204556.8482 7dhtbqrp2urqd2qlavud6ni2eg Query : use flama_phc
20240825@204556.8485 7dhtbqrp2urqd2qlavud6ni2eg Query : select szadrsstamp valor from szadrs where szadrsdesc='j.o.m. - castelo branco'
20240825@204556.8537 7dhtbqrp2urqd2qlavud6ni2eg Query : use flama_phc
20240825@204556.8541 7dhtbqrp2urqd2qlavud6ni2eg Query : select 1 valor from td where ndoc = 39
20240825@204556.8556 7dhtbqrp2urqd2qlavud6ni2eg Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20240825@204556.8575 7dhtbqrp2urqd2qlavud6ni2eg Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240825@204556.8595 7dhtbqrp2urqd2qlavud6ni2eg Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20240825@204556.8619 7dhtbqrp2urqd2qlavud6ni2eg Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240825@204556.8636 7dhtbqrp2urqd2qlavud6ni2eg Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20240825@204556.8671 7dhtbqrp2urqd2qlavud6ni2eg Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240825@204556.8688 7dhtbqrp2urqd2qlavud6ni2eg Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20240825@204556.8703 7dhtbqrp2urqd2qlavud6ni2eg Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240825@204556.8776 7dhtbqrp2urqd2qlavud6ni2eg Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240825@204556.8792 7dhtbqrp2urqd2qlavud6ni2eg Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240825@204556.8811 7dhtbqrp2urqd2qlavud6ni2eg Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20240825@204556.8831 7dhtbqrp2urqd2qlavud6ni2eg Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut66cb86390166cb89f4d4' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20240825@204556.9022 7dhtbqrp2urqd2qlavud6ni2eg Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240825@204556.9043 7dhtbqrp2urqd2qlavud6ni2eg Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20240825@204556.9078 7dhtbqrp2urqd2qlavud6ni2eg Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20240825@204556.9090 7dhtbqrp2urqd2qlavud6ni2eg Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20240825@204556.9102 7dhtbqrp2urqd2qlavud6ni2eg Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20240825@204556.9115 7dhtbqrp2urqd2qlavud6ni2eg Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20240825@204556.9127 7dhtbqrp2urqd2qlavud6ni2eg Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20240825@204556.9139 7dhtbqrp2urqd2qlavud6ni2eg Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20240825@204556.9150 7dhtbqrp2urqd2qlavud6ni2eg Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut66cb86390166cb89f4d4',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20240825@204556.9407 7dhtbqrp2urqd2qlavud6ni2eg Query : select top 1 fno valor from wsftdata order by fno desc
20240825@204556.9429 7dhtbqrp2urqd2qlavud6ni2eg Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240825@204556.9446 7dhtbqrp2urqd2qlavud6ni2eg Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20240825@204556.9469 7dhtbqrp2urqd2qlavud6ni2eg Query : select 'normal' from dummy
20240825@204556.9483 7dhtbqrp2urqd2qlavud6ni2eg Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut66cb86390166cb89f4d4',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',468,101621,0,'2024-08-25',39,'euro',0,0,2024 ,?,?)
20240825@204556.9796 7dhtbqrp2urqd2qlavud6ni2eg Query : use flama_phc
20240825@204556.9800 7dhtbqrp2urqd2qlavud6ni2eg Query : select st.usalote valor from st where st.ref = '324.1831.00.2'
20240825@204556.9825 7dhtbqrp2urqd2qlavud6ni2eg Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.1831.00.2'
20240825@204556.9993 7dhtbqrp2urqd2qlavud6ni2eg Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240825@204557.1100 7dhtbqrp2urqd2qlavud6ni2eg Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240825@204557.3700 7dhtbqrp2urqd2qlavud6ni2eg Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240825@204557.5100 7dhtbqrp2urqd2qlavud6ni2eg Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240825@204557.6000 7dhtbqrp2urqd2qlavud6ni2eg Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240825@204557.7200 7dhtbqrp2urqd2qlavud6ni2eg Query : select sestamp valor from se where ref ='324.1831.00.2' and lote = 'r2301271200a'
20240825@204557.8700 7dhtbqrp2urqd2qlavud6ni2eg Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240825@204557.1040 7dhtbqrp2urqd2qlavud6ni2eg Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240825@204557.1190 7dhtbqrp2urqd2qlavud6ni2eg Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66cb85396966cb89f502','aut66cb86390166cb89f4d4' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240825@204557.1240 7dhtbqrp2urqd2qlavud6ni2eg Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240825@204557.3080 7dhtbqrp2urqd2qlavud6ni2eg Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240825@204557.3440 7dhtbqrp2urqd2qlavud6ni2eg Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66cb85396966cb89f502',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',3.000 ,'aut66cb86390166cb89f4d4' ,0,0 ,2,23.00,10000,?,?,?,?,?)
20240825@204557.6280 7dhtbqrp2urqd2qlavud6ni2eg Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240825@204557.6470 7dhtbqrp2urqd2qlavud6ni2eg Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240825@204557.6740 7dhtbqrp2urqd2qlavud6ni2eg Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240825@204557.6890 7dhtbqrp2urqd2qlavud6ni2eg Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240825@204557.6980 7dhtbqrp2urqd2qlavud6ni2eg Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240825@204557.7110 7dhtbqrp2urqd2qlavud6ni2eg Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240825@204557.7250 7dhtbqrp2urqd2qlavud6ni2eg Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240825@204557.7370 7dhtbqrp2urqd2qlavud6ni2eg Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66cb83338966cb89f511','aut66cb86390166cb89f4d4' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240825@204557.7430 7dhtbqrp2urqd2qlavud6ni2eg Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240825@204557.7570 7dhtbqrp2urqd2qlavud6ni2eg Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240825@204557.7870 7dhtbqrp2urqd2qlavud6ni2eg Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66cb83338966cb89f511',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66cb86390166cb89f4d4' ,0,0 ,2,23.00,20000,?,?,?)
20240825@204557.1070 7dhtbqrp2urqd2qlavud6ni2eg Query : use flama_phc
20240825@204557.1074 7dhtbqrp2urqd2qlavud6ni2eg Query : select st.usalote valor from st where st.ref = '324.1831.00.2'
20240825@204557.1096 7dhtbqrp2urqd2qlavud6ni2eg Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.1831.00.2'
20240825@204557.1111 7dhtbqrp2urqd2qlavud6ni2eg Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240825@204557.1129 7dhtbqrp2urqd2qlavud6ni2eg Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240825@204557.1158 7dhtbqrp2urqd2qlavud6ni2eg Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240825@204557.1174 7dhtbqrp2urqd2qlavud6ni2eg Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240825@204557.1183 7dhtbqrp2urqd2qlavud6ni2eg Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240825@204557.1197 7dhtbqrp2urqd2qlavud6ni2eg Query : select sestamp valor from se where ref ='324.1831.00.2' and lote = 'r2301271200a'
20240825@204557.1211 7dhtbqrp2urqd2qlavud6ni2eg Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240825@204557.1228 7dhtbqrp2urqd2qlavud6ni2eg Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240825@204557.1240 7dhtbqrp2urqd2qlavud6ni2eg Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66cb89587666cb89f51d','aut66cb86390166cb89f4d4' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240825@204557.1246 7dhtbqrp2urqd2qlavud6ni2eg Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240825@204557.1263 7dhtbqrp2urqd2qlavud6ni2eg Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240825@204557.1296 7dhtbqrp2urqd2qlavud6ni2eg Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66cb89587666cb89f51d',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',1.000 ,'aut66cb86390166cb89f4d4' ,0,0 ,2,23.00,40000,?,?,?,?,?)
20240825@204557.1594 7dhtbqrp2urqd2qlavud6ni2eg Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240825@204557.1613 7dhtbqrp2urqd2qlavud6ni2eg Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240825@204557.1641 7dhtbqrp2urqd2qlavud6ni2eg Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240825@204557.1656 7dhtbqrp2urqd2qlavud6ni2eg Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240825@204557.1665 7dhtbqrp2urqd2qlavud6ni2eg Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240825@204557.1679 7dhtbqrp2urqd2qlavud6ni2eg Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240825@204557.1695 7dhtbqrp2urqd2qlavud6ni2eg Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240825@204557.1708 7dhtbqrp2urqd2qlavud6ni2eg Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66cb86304366cb89f529','aut66cb86390166cb89f4d4' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240825@204557.1713 7dhtbqrp2urqd2qlavud6ni2eg Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240825@204557.1729 7dhtbqrp2urqd2qlavud6ni2eg Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240825@204557.1758 7dhtbqrp2urqd2qlavud6ni2eg Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66cb86304366cb89f529',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66cb86390166cb89f4d4' ,0,0 ,2,23.00,50000,?,?,?)
20240825@204557.2044 7dhtbqrp2urqd2qlavud6ni2eg Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut66cb86390166cb89f4d4','2405534','wait',39,'adm09112754980.682000002')
20240825@204557.2119 7dhtbqrp2urqd2qlavud6ni2eg Query : use flama_phc
20240825@204557.2123 7dhtbqrp2urqd2qlavud6ni2eg Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240825@204557.2153 7dhtbqrp2urqd2qlavud6ni2eg Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1668';
20240825@204557.2186 7dhtbqrp2urqd2qlavud6ni2eg Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1668';
20240825@204557.2226 7dhtbqrp2urqd2qlavud6ni2eg Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1668';
20240825@204557.2252 7dhtbqrp2urqd2qlavud6ni2eg Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1668';
20240825@204557.4177 gs6qqdhq8jira2sl6ntfpq1fji Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240825@204557.4188 gs6qqdhq8jira2sl6ntfpq1fji Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240825@204557.4242 gs6qqdhq8jira2sl6ntfpq1fji Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1669';
20240825@204557.4305 gs6qqdhq8jira2sl6ntfpq1fji Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1669';
20240825@204557.4355 gs6qqdhq8jira2sl6ntfpq1fji Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1669';
20240825@204557.4381 gs6qqdhq8jira2sl6ntfpq1fji Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1669';
20240825@204557.4429 gs6qqdhq8jira2sl6ntfpq1fji Query : use flama_phc
20240825@204557.4433 gs6qqdhq8jira2sl6ntfpq1fji Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240825@204557.4496 gs6qqdhq8jira2sl6ntfpq1fji Query : use flama_phc
20240825@204557.4499 gs6qqdhq8jira2sl6ntfpq1fji Query : select no, estab,szadrsdesc from szadrs where u_coddest=1453
20240825@204557.4591 gs6qqdhq8jira2sl6ntfpq1fji 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'
20240825@204557.4813 gs6qqdhq8jira2sl6ntfpq1fji Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2055 and bo.obrano = 2405535 and bi.ref ='324.1833.00.2' and bi.lordem =1
20240825@204557.5157 gs6qqdhq8jira2sl6ntfpq1fji 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'
20240825@204557.5180 gs6qqdhq8jira2sl6ntfpq1fji Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2055 and bo.obrano = 2405535 and bi.ref ='324.1833.00.2' and bi.lordem =2
20240825@204557.5524 gs6qqdhq8jira2sl6ntfpq1fji Query : use flama_phc
20240825@204557.5528 gs6qqdhq8jira2sl6ntfpq1fji Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20240825@204557.5563 gs6qqdhq8jira2sl6ntfpq1fji Query : use flama_phc
20240825@204557.5567 gs6qqdhq8jira2sl6ntfpq1fji Query : select top 1 1 valor from td where td.ndoc = 39
20240825@204557.5599 gs6qqdhq8jira2sl6ntfpq1fji Query : use flama_phc
20240825@204557.5602 gs6qqdhq8jira2sl6ntfpq1fji 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')
20240825@204557.5634 gs6qqdhq8jira2sl6ntfpq1fji 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
20240825@204557.5671 gs6qqdhq8jira2sl6ntfpq1fji Query : use flama_phc
20240825@204557.5675 gs6qqdhq8jira2sl6ntfpq1fji Query : select top 1 ~inactivo valor from cl where no = '101621' and estab = 0 order by inactivo desc
20240825@204557.5705 gs6qqdhq8jira2sl6ntfpq1fji Query : use flama_phc
20240825@204557.5708 gs6qqdhq8jira2sl6ntfpq1fji Query : select top 1 tipodoc,regrd from td where ndoc = 39
20240825@204557.5745 gs6qqdhq8jira2sl6ntfpq1fji Query : use flama_phc
20240825@204557.5749 gs6qqdhq8jira2sl6ntfpq1fji Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20240825@204557.5794 gs6qqdhq8jira2sl6ntfpq1fji Query : use flama_phc
20240825@204557.5798 gs6qqdhq8jira2sl6ntfpq1fji Query : select szadrsstamp valor from szadrs where szadrsdesc='jom - batalha'
20240825@204557.5849 gs6qqdhq8jira2sl6ntfpq1fji Query : use flama_phc
20240825@204557.5853 gs6qqdhq8jira2sl6ntfpq1fji Query : select 1 valor from td where ndoc = 39
20240825@204557.5869 gs6qqdhq8jira2sl6ntfpq1fji Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20240825@204557.5886 gs6qqdhq8jira2sl6ntfpq1fji Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240825@204557.5909 gs6qqdhq8jira2sl6ntfpq1fji Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20240825@204557.5936 gs6qqdhq8jira2sl6ntfpq1fji Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240825@204557.5955 gs6qqdhq8jira2sl6ntfpq1fji Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20240825@204557.5991 gs6qqdhq8jira2sl6ntfpq1fji Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240825@204557.6009 gs6qqdhq8jira2sl6ntfpq1fji Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20240825@204557.6024 gs6qqdhq8jira2sl6ntfpq1fji Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240825@204557.6098 gs6qqdhq8jira2sl6ntfpq1fji Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240825@204557.6113 gs6qqdhq8jira2sl6ntfpq1fji Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240825@204557.6132 gs6qqdhq8jira2sl6ntfpq1fji Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20240825@204557.6150 gs6qqdhq8jira2sl6ntfpq1fji Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut66cb80128966cb89f593' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20240825@204557.6336 gs6qqdhq8jira2sl6ntfpq1fji Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240825@204557.6357 gs6qqdhq8jira2sl6ntfpq1fji Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20240825@204557.6395 gs6qqdhq8jira2sl6ntfpq1fji Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20240825@204557.6409 gs6qqdhq8jira2sl6ntfpq1fji Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20240825@204557.6422 gs6qqdhq8jira2sl6ntfpq1fji Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20240825@204557.6435 gs6qqdhq8jira2sl6ntfpq1fji Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20240825@204557.6448 gs6qqdhq8jira2sl6ntfpq1fji Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20240825@204557.6462 gs6qqdhq8jira2sl6ntfpq1fji Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20240825@204557.6474 gs6qqdhq8jira2sl6ntfpq1fji Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut66cb80128966cb89f593',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20240825@204557.6736 gs6qqdhq8jira2sl6ntfpq1fji Query : select top 1 fno valor from wsftdata order by fno desc
20240825@204557.6760 gs6qqdhq8jira2sl6ntfpq1fji Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240825@204557.6778 gs6qqdhq8jira2sl6ntfpq1fji Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20240825@204557.6805 gs6qqdhq8jira2sl6ntfpq1fji Query : select 'normal' from dummy
20240825@204557.6821 gs6qqdhq8jira2sl6ntfpq1fji Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut66cb80128966cb89f593',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',469,101621,0,'2024-08-25',39,'euro',0,0,2024 ,?,?)
20240825@204557.7143 gs6qqdhq8jira2sl6ntfpq1fji Query : use flama_phc
20240825@204557.7147 gs6qqdhq8jira2sl6ntfpq1fji Query : select st.usalote valor from st where st.ref = '324.1833.00.2'
20240825@204557.7170 gs6qqdhq8jira2sl6ntfpq1fji Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 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'
20240825@204557.7338 gs6qqdhq8jira2sl6ntfpq1fji Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240825@204557.7355 gs6qqdhq8jira2sl6ntfpq1fji Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240825@204557.7382 gs6qqdhq8jira2sl6ntfpq1fji Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240825@204557.7396 gs6qqdhq8jira2sl6ntfpq1fji Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240825@204557.7405 gs6qqdhq8jira2sl6ntfpq1fji Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240825@204557.7418 gs6qqdhq8jira2sl6ntfpq1fji Query : select sestamp valor from se where ref ='324.1833.00.2' and lote = 'r2301257100a'
20240825@204557.7439 gs6qqdhq8jira2sl6ntfpq1fji Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240825@204557.7453 gs6qqdhq8jira2sl6ntfpq1fji Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240825@204557.7465 gs6qqdhq8jira2sl6ntfpq1fji Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66cb85321366cb89f5b5','aut66cb80128966cb89f593' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240825@204557.7470 gs6qqdhq8jira2sl6ntfpq1fji Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240825@204557.7484 gs6qqdhq8jira2sl6ntfpq1fji Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240825@204557.7513 gs6qqdhq8jira2sl6ntfpq1fji Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66cb85321366cb89f5b5',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',3.000 ,'aut66cb80128966cb89f593' ,0,0 ,2,23.00,10000,?,?,?,?,?)
20240825@204557.7806 gs6qqdhq8jira2sl6ntfpq1fji Query : use flama_phc
20240825@204557.7810 gs6qqdhq8jira2sl6ntfpq1fji Query : select st.usalote valor from st where st.ref = '324.1833.00.2'
20240825@204557.7832 gs6qqdhq8jira2sl6ntfpq1fji Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 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'
20240825@204557.7857 gs6qqdhq8jira2sl6ntfpq1fji Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240825@204557.7875 gs6qqdhq8jira2sl6ntfpq1fji Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240825@204557.7901 gs6qqdhq8jira2sl6ntfpq1fji Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240825@204557.7917 gs6qqdhq8jira2sl6ntfpq1fji Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240825@204557.7926 gs6qqdhq8jira2sl6ntfpq1fji Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240825@204557.7938 gs6qqdhq8jira2sl6ntfpq1fji Query : select sestamp valor from se where ref ='324.1833.00.2' and lote = 'r2301257100a'
20240825@204557.7951 gs6qqdhq8jira2sl6ntfpq1fji Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240825@204557.7965 gs6qqdhq8jira2sl6ntfpq1fji Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240825@204557.7977 gs6qqdhq8jira2sl6ntfpq1fji Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66cb84876366cb89f5c2','aut66cb80128966cb89f593' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240825@204557.7982 gs6qqdhq8jira2sl6ntfpq1fji Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240825@204557.7997 gs6qqdhq8jira2sl6ntfpq1fji Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240825@204557.8026 gs6qqdhq8jira2sl6ntfpq1fji Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66cb84876366cb89f5c2',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',1.000 ,'aut66cb80128966cb89f593' ,0,0 ,2,23.00,20000,?,?,?,?,?)
20240825@204557.8310 gs6qqdhq8jira2sl6ntfpq1fji Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut66cb80128966cb89f593','2405535','wait',39,'adm09112754980.682000002')
20240825@204557.8383 gs6qqdhq8jira2sl6ntfpq1fji Query : use flama_phc
20240825@204557.8387 gs6qqdhq8jira2sl6ntfpq1fji Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240825@204557.8419 gs6qqdhq8jira2sl6ntfpq1fji Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1669';
20240825@204557.8454 gs6qqdhq8jira2sl6ntfpq1fji Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1669';
20240825@204557.8497 gs6qqdhq8jira2sl6ntfpq1fji Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1669';
20240825@204557.8526 gs6qqdhq8jira2sl6ntfpq1fji Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1669';
20240825@204557.9062 v6dl0mqrfq7mj8jgeigi65r9bb Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240825@204557.9075 v6dl0mqrfq7mj8jgeigi65r9bb Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240825@204557.9131 v6dl0mqrfq7mj8jgeigi65r9bb Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1670';
20240825@204557.9199 v6dl0mqrfq7mj8jgeigi65r9bb Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1670';
20240825@204557.9253 v6dl0mqrfq7mj8jgeigi65r9bb Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1670';
20240825@204557.9283 v6dl0mqrfq7mj8jgeigi65r9bb Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1670';
20240825@204557.9333 v6dl0mqrfq7mj8jgeigi65r9bb Query : use flama_phc
20240825@204557.9337 v6dl0mqrfq7mj8jgeigi65r9bb Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240825@204558.6620 v6dl0mqrfq7mj8jgeigi65r9bb Query : use flama_phc
20240825@204558.6690 v6dl0mqrfq7mj8jgeigi65r9bb Query : select no, estab,szadrsdesc from szadrs where u_coddest=908
20240825@204558.7650 v6dl0mqrfq7mj8jgeigi65r9bb Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.2031.00.1'
20240825@204558.7890 v6dl0mqrfq7mj8jgeigi65r9bb Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2055 and bo.obrano = 2405536 and bi.ref ='324.2031.00.1' and bi.lordem =1
20240825@204558.1142 v6dl0mqrfq7mj8jgeigi65r9bb Query : use flama_phc
20240825@204558.1146 v6dl0mqrfq7mj8jgeigi65r9bb Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20240825@204558.1184 v6dl0mqrfq7mj8jgeigi65r9bb Query : use flama_phc
20240825@204558.1187 v6dl0mqrfq7mj8jgeigi65r9bb Query : select top 1 1 valor from td where td.ndoc = 39
20240825@204558.1216 v6dl0mqrfq7mj8jgeigi65r9bb Query : use flama_phc
20240825@204558.1219 v6dl0mqrfq7mj8jgeigi65r9bb 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')
20240825@204558.1247 v6dl0mqrfq7mj8jgeigi65r9bb 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
20240825@204558.1284 v6dl0mqrfq7mj8jgeigi65r9bb Query : use flama_phc
20240825@204558.1287 v6dl0mqrfq7mj8jgeigi65r9bb Query : select top 1 ~inactivo valor from cl where no = '101621' and estab = 0 order by inactivo desc
20240825@204558.1315 v6dl0mqrfq7mj8jgeigi65r9bb Query : use flama_phc
20240825@204558.1318 v6dl0mqrfq7mj8jgeigi65r9bb Query : select top 1 tipodoc,regrd from td where ndoc = 39
20240825@204558.1348 v6dl0mqrfq7mj8jgeigi65r9bb Query : use flama_phc
20240825@204558.1351 v6dl0mqrfq7mj8jgeigi65r9bb Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20240825@204558.1393 v6dl0mqrfq7mj8jgeigi65r9bb Query : use flama_phc
20240825@204558.1396 v6dl0mqrfq7mj8jgeigi65r9bb Query : select szadrsstamp valor from szadrs where szadrsdesc='j.o.m.,lda-aveiro'
20240825@204558.1442 v6dl0mqrfq7mj8jgeigi65r9bb Query : use flama_phc
20240825@204558.1446 v6dl0mqrfq7mj8jgeigi65r9bb Query : select 1 valor from td where ndoc = 39
20240825@204558.1459 v6dl0mqrfq7mj8jgeigi65r9bb Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20240825@204558.1474 v6dl0mqrfq7mj8jgeigi65r9bb Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240825@204558.1492 v6dl0mqrfq7mj8jgeigi65r9bb Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20240825@204558.1513 v6dl0mqrfq7mj8jgeigi65r9bb Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240825@204558.1528 v6dl0mqrfq7mj8jgeigi65r9bb Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20240825@204558.1557 v6dl0mqrfq7mj8jgeigi65r9bb Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240825@204558.1572 v6dl0mqrfq7mj8jgeigi65r9bb Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20240825@204558.1585 v6dl0mqrfq7mj8jgeigi65r9bb Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240825@204558.1656 v6dl0mqrfq7mj8jgeigi65r9bb Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240825@204558.1670 v6dl0mqrfq7mj8jgeigi65r9bb Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240825@204558.1686 v6dl0mqrfq7mj8jgeigi65r9bb Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20240825@204558.1703 v6dl0mqrfq7mj8jgeigi65r9bb Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut66cb86079866cb89f626' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20240825@204558.1906 v6dl0mqrfq7mj8jgeigi65r9bb Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240825@204558.1929 v6dl0mqrfq7mj8jgeigi65r9bb Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20240825@204558.1969 v6dl0mqrfq7mj8jgeigi65r9bb Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20240825@204558.1982 v6dl0mqrfq7mj8jgeigi65r9bb Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20240825@204558.1993 v6dl0mqrfq7mj8jgeigi65r9bb Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20240825@204558.2006 v6dl0mqrfq7mj8jgeigi65r9bb Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20240825@204558.2018 v6dl0mqrfq7mj8jgeigi65r9bb Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20240825@204558.2031 v6dl0mqrfq7mj8jgeigi65r9bb Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20240825@204558.2046 v6dl0mqrfq7mj8jgeigi65r9bb Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut66cb86079866cb89f626',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20240825@204558.2352 v6dl0mqrfq7mj8jgeigi65r9bb Query : select top 1 fno valor from wsftdata order by fno desc
20240825@204558.2375 v6dl0mqrfq7mj8jgeigi65r9bb Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240825@204558.2392 v6dl0mqrfq7mj8jgeigi65r9bb Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20240825@204558.2414 v6dl0mqrfq7mj8jgeigi65r9bb Query : select 'normal' from dummy
20240825@204558.2429 v6dl0mqrfq7mj8jgeigi65r9bb Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut66cb86079866cb89f626',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',470,101621,0,'2024-08-25',39,'euro',0,0,2024 ,?,?)
20240825@204558.2777 v6dl0mqrfq7mj8jgeigi65r9bb Query : use flama_phc
20240825@204558.2782 v6dl0mqrfq7mj8jgeigi65r9bb Query : select st.usalote valor from st where st.ref = '324.2031.00.1'
20240825@204558.2805 v6dl0mqrfq7mj8jgeigi65r9bb Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.2031.00.1'
20240825@204558.2820 v6dl0mqrfq7mj8jgeigi65r9bb Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240825@204558.2841 v6dl0mqrfq7mj8jgeigi65r9bb Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240825@204558.2873 v6dl0mqrfq7mj8jgeigi65r9bb Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240825@204558.2891 v6dl0mqrfq7mj8jgeigi65r9bb Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240825@204558.2903 v6dl0mqrfq7mj8jgeigi65r9bb Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240825@204558.2919 v6dl0mqrfq7mj8jgeigi65r9bb Query : select sestamp valor from se where ref ='324.2031.00.1' and lote = 'r2100232100a'
20240825@204558.2938 v6dl0mqrfq7mj8jgeigi65r9bb Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240825@204558.2958 v6dl0mqrfq7mj8jgeigi65r9bb Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240825@204558.2973 v6dl0mqrfq7mj8jgeigi65r9bb Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66cb88691666cb89f647','aut66cb86079866cb89f626' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240825@204558.2979 v6dl0mqrfq7mj8jgeigi65r9bb Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240825@204558.2997 v6dl0mqrfq7mj8jgeigi65r9bb Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240825@204558.3034 v6dl0mqrfq7mj8jgeigi65r9bb Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66cb88691666cb89f647',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',6.000 ,'aut66cb86079866cb89f626' ,0,0 ,2,23.00,10000,?,?,?,?,?)
20240825@204558.3341 v6dl0mqrfq7mj8jgeigi65r9bb Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240825@204558.3363 v6dl0mqrfq7mj8jgeigi65r9bb Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240825@204558.3398 v6dl0mqrfq7mj8jgeigi65r9bb Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240825@204558.3416 v6dl0mqrfq7mj8jgeigi65r9bb Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240825@204558.3429 v6dl0mqrfq7mj8jgeigi65r9bb Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240825@204558.3447 v6dl0mqrfq7mj8jgeigi65r9bb Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240825@204558.3466 v6dl0mqrfq7mj8jgeigi65r9bb Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240825@204558.3480 v6dl0mqrfq7mj8jgeigi65r9bb Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66cb81400866cb89f654','aut66cb86079866cb89f626' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240825@204558.3486 v6dl0mqrfq7mj8jgeigi65r9bb Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240825@204558.3504 v6dl0mqrfq7mj8jgeigi65r9bb Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240825@204558.3538 v6dl0mqrfq7mj8jgeigi65r9bb Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66cb81400866cb89f654',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66cb86079866cb89f626' ,0,0 ,2,23.00,20000,?,?,?)
20240825@204558.3844 v6dl0mqrfq7mj8jgeigi65r9bb Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut66cb86079866cb89f626','2405536','wait',39,'adm09112754980.682000002')
20240825@204558.3929 v6dl0mqrfq7mj8jgeigi65r9bb Query : use flama_phc
20240825@204558.3934 v6dl0mqrfq7mj8jgeigi65r9bb Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240825@204558.3967 v6dl0mqrfq7mj8jgeigi65r9bb Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1670';
20240825@204558.4000 v6dl0mqrfq7mj8jgeigi65r9bb Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1670';
20240825@204558.4046 v6dl0mqrfq7mj8jgeigi65r9bb Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1670';
20240825@204558.4077 v6dl0mqrfq7mj8jgeigi65r9bb Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1670';
20240825@204558.4696 dl6gtadvr2d1dbj38m2c9spdmk Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240825@204558.4709 dl6gtadvr2d1dbj38m2c9spdmk Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240825@204558.4766 dl6gtadvr2d1dbj38m2c9spdmk Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1671';
20240825@204558.4832 dl6gtadvr2d1dbj38m2c9spdmk Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1671';
20240825@204558.4884 dl6gtadvr2d1dbj38m2c9spdmk Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1671';
20240825@204558.4912 dl6gtadvr2d1dbj38m2c9spdmk Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1671';
20240825@204558.4962 dl6gtadvr2d1dbj38m2c9spdmk Query : use flama_phc
20240825@204558.4966 dl6gtadvr2d1dbj38m2c9spdmk Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240825@204558.5037 dl6gtadvr2d1dbj38m2c9spdmk Query : use flama_phc
20240825@204558.5041 dl6gtadvr2d1dbj38m2c9spdmk Query : select no, estab,szadrsdesc from szadrs where u_coddest=3080
20240825@204558.5139 dl6gtadvr2d1dbj38m2c9spdmk Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.2031.00.1'
20240825@204558.5163 dl6gtadvr2d1dbj38m2c9spdmk Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2055 and bo.obrano = 2405537 and bi.ref ='324.2031.00.1' and bi.lordem =1
20240825@204558.5526 dl6gtadvr2d1dbj38m2c9spdmk Query : use flama_phc
20240825@204558.5530 dl6gtadvr2d1dbj38m2c9spdmk Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20240825@204558.5569 dl6gtadvr2d1dbj38m2c9spdmk Query : use flama_phc
20240825@204558.5573 dl6gtadvr2d1dbj38m2c9spdmk Query : select top 1 1 valor from td where td.ndoc = 39
20240825@204558.5608 dl6gtadvr2d1dbj38m2c9spdmk Query : use flama_phc
20240825@204558.5612 dl6gtadvr2d1dbj38m2c9spdmk 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')
20240825@204558.5646 dl6gtadvr2d1dbj38m2c9spdmk 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
20240825@204558.5684 dl6gtadvr2d1dbj38m2c9spdmk Query : use flama_phc
20240825@204558.5688 dl6gtadvr2d1dbj38m2c9spdmk Query : select top 1 ~inactivo valor from cl where no = '101621' and estab = 0 order by inactivo desc
20240825@204558.5721 dl6gtadvr2d1dbj38m2c9spdmk Query : use flama_phc
20240825@204558.5724 dl6gtadvr2d1dbj38m2c9spdmk Query : select top 1 tipodoc,regrd from td where ndoc = 39
20240825@204558.5756 dl6gtadvr2d1dbj38m2c9spdmk Query : use flama_phc
20240825@204558.5759 dl6gtadvr2d1dbj38m2c9spdmk Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20240825@204558.5802 dl6gtadvr2d1dbj38m2c9spdmk Query : use flama_phc
20240825@204558.5805 dl6gtadvr2d1dbj38m2c9spdmk Query : select szadrsstamp valor from szadrs where szadrsdesc='j.o.m.,lda- barcelos entrega'
20240825@204558.5857 dl6gtadvr2d1dbj38m2c9spdmk Query : use flama_phc
20240825@204558.5860 dl6gtadvr2d1dbj38m2c9spdmk Query : select 1 valor from td where ndoc = 39
20240825@204558.5874 dl6gtadvr2d1dbj38m2c9spdmk Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20240825@204558.5890 dl6gtadvr2d1dbj38m2c9spdmk Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240825@204558.5908 dl6gtadvr2d1dbj38m2c9spdmk Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20240825@204558.5935 dl6gtadvr2d1dbj38m2c9spdmk Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240825@204558.5954 dl6gtadvr2d1dbj38m2c9spdmk Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20240825@204558.5985 dl6gtadvr2d1dbj38m2c9spdmk Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240825@204558.6003 dl6gtadvr2d1dbj38m2c9spdmk Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20240825@204558.6019 dl6gtadvr2d1dbj38m2c9spdmk Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240825@204558.6111 dl6gtadvr2d1dbj38m2c9spdmk Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240825@204558.6126 dl6gtadvr2d1dbj38m2c9spdmk Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240825@204558.6146 dl6gtadvr2d1dbj38m2c9spdmk Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20240825@204558.6163 dl6gtadvr2d1dbj38m2c9spdmk Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut66cb80508766cb89f692' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20240825@204558.6367 dl6gtadvr2d1dbj38m2c9spdmk Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240825@204558.6391 dl6gtadvr2d1dbj38m2c9spdmk Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20240825@204558.6430 dl6gtadvr2d1dbj38m2c9spdmk Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20240825@204558.6444 dl6gtadvr2d1dbj38m2c9spdmk Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20240825@204558.6457 dl6gtadvr2d1dbj38m2c9spdmk Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20240825@204558.6471 dl6gtadvr2d1dbj38m2c9spdmk Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20240825@204558.6484 dl6gtadvr2d1dbj38m2c9spdmk Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20240825@204558.6497 dl6gtadvr2d1dbj38m2c9spdmk Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20240825@204558.6510 dl6gtadvr2d1dbj38m2c9spdmk Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut66cb80508766cb89f692',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20240825@204558.6787 dl6gtadvr2d1dbj38m2c9spdmk Query : select top 1 fno valor from wsftdata order by fno desc
20240825@204558.6813 dl6gtadvr2d1dbj38m2c9spdmk Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240825@204558.8062 dl6gtadvr2d1dbj38m2c9spdmk Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20240825@204558.8089 dl6gtadvr2d1dbj38m2c9spdmk Query : select 'normal' from dummy
20240825@204558.8108 dl6gtadvr2d1dbj38m2c9spdmk Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut66cb80508766cb89f692',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',471,101621,0,'2024-08-25',39,'euro',0,0,2024 ,?,?)
20240825@204558.8448 dl6gtadvr2d1dbj38m2c9spdmk Query : use flama_phc
20240825@204558.8452 dl6gtadvr2d1dbj38m2c9spdmk Query : select st.usalote valor from st where st.ref = '324.2031.00.1'
20240825@204558.8481 dl6gtadvr2d1dbj38m2c9spdmk Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.2031.00.1'
20240825@204558.8497 dl6gtadvr2d1dbj38m2c9spdmk Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240825@204558.8516 dl6gtadvr2d1dbj38m2c9spdmk Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240825@204558.8547 dl6gtadvr2d1dbj38m2c9spdmk Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240825@204558.8565 dl6gtadvr2d1dbj38m2c9spdmk Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240825@204558.8576 dl6gtadvr2d1dbj38m2c9spdmk Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240825@204558.8591 dl6gtadvr2d1dbj38m2c9spdmk Query : select sestamp valor from se where ref ='324.2031.00.1' and lote = 'r2100232100a'
20240825@204558.8607 dl6gtadvr2d1dbj38m2c9spdmk Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240825@204558.8629 dl6gtadvr2d1dbj38m2c9spdmk Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240825@204558.8645 dl6gtadvr2d1dbj38m2c9spdmk Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66cb84849566cb89f6d2','aut66cb80508766cb89f692' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240825@204558.8651 dl6gtadvr2d1dbj38m2c9spdmk Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240825@204558.8670 dl6gtadvr2d1dbj38m2c9spdmk Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240825@204558.8709 dl6gtadvr2d1dbj38m2c9spdmk Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66cb84849566cb89f6d2',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',6.000 ,'aut66cb80508766cb89f692' ,0,0 ,2,23.00,10000,?,?,?,?,?)
20240825@204558.8993 dl6gtadvr2d1dbj38m2c9spdmk Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240825@204558.9013 dl6gtadvr2d1dbj38m2c9spdmk Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240825@204558.9042 dl6gtadvr2d1dbj38m2c9spdmk Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240825@204558.9057 dl6gtadvr2d1dbj38m2c9spdmk Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240825@204558.9067 dl6gtadvr2d1dbj38m2c9spdmk Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240825@204558.9081 dl6gtadvr2d1dbj38m2c9spdmk Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240825@204558.9096 dl6gtadvr2d1dbj38m2c9spdmk Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240825@204558.9108 dl6gtadvr2d1dbj38m2c9spdmk Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66cb81861966cb89f6dd','aut66cb80508766cb89f692' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240825@204558.9115 dl6gtadvr2d1dbj38m2c9spdmk Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240825@204558.9129 dl6gtadvr2d1dbj38m2c9spdmk Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240825@204558.9158 dl6gtadvr2d1dbj38m2c9spdmk Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66cb81861966cb89f6dd',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66cb80508766cb89f692' ,0,0 ,2,23.00,20000,?,?,?)
20240825@204558.9434 dl6gtadvr2d1dbj38m2c9spdmk Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut66cb80508766cb89f692','2405537','wait',39,'adm09112754980.682000002')
20240825@204558.9522 dl6gtadvr2d1dbj38m2c9spdmk Query : use flama_phc
20240825@204558.9526 dl6gtadvr2d1dbj38m2c9spdmk Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240825@204558.9564 dl6gtadvr2d1dbj38m2c9spdmk Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1671';
20240825@204558.9599 dl6gtadvr2d1dbj38m2c9spdmk Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1671';
20240825@204558.9648 dl6gtadvr2d1dbj38m2c9spdmk Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1671';
20240825@204558.9679 dl6gtadvr2d1dbj38m2c9spdmk Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1671';
20240825@204559.2300 7osc0a14g150fan9qe5f55vkmj Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240825@204559.2440 7osc0a14g150fan9qe5f55vkmj Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240825@204559.3040 7osc0a14g150fan9qe5f55vkmj Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1672';
20240825@204559.3750 7osc0a14g150fan9qe5f55vkmj Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1672';
20240825@204559.4290 7osc0a14g150fan9qe5f55vkmj Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1672';
20240825@204559.4580 7osc0a14g150fan9qe5f55vkmj Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1672';
20240825@204559.5140 7osc0a14g150fan9qe5f55vkmj Query : use flama_phc
20240825@204559.5180 7osc0a14g150fan9qe5f55vkmj Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240825@204559.5850 7osc0a14g150fan9qe5f55vkmj Query : use flama_phc
20240825@204559.5890 7osc0a14g150fan9qe5f55vkmj Query : select no, estab,szadrsdesc from szadrs where u_coddest=323
20240825@204559.8500 7osc0a14g150fan9qe5f55vkmj Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.2031.00.1'
20240825@204559.8790 7osc0a14g150fan9qe5f55vkmj Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2055 and bo.obrano = 2405538 and bi.ref ='324.2031.00.1' and bi.lordem =1
20240825@204559.1366 7osc0a14g150fan9qe5f55vkmj Query : use flama_phc
20240825@204559.1370 7osc0a14g150fan9qe5f55vkmj Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20240825@204559.1406 7osc0a14g150fan9qe5f55vkmj Query : use flama_phc
20240825@204559.1410 7osc0a14g150fan9qe5f55vkmj Query : select top 1 1 valor from td where td.ndoc = 39
20240825@204559.1445 7osc0a14g150fan9qe5f55vkmj Query : use flama_phc
20240825@204559.1449 7osc0a14g150fan9qe5f55vkmj 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')
20240825@204559.1479 7osc0a14g150fan9qe5f55vkmj 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
20240825@204559.1517 7osc0a14g150fan9qe5f55vkmj Query : use flama_phc
20240825@204559.1521 7osc0a14g150fan9qe5f55vkmj Query : select top 1 ~inactivo valor from cl where no = '101621' and estab = 0 order by inactivo desc
20240825@204559.1552 7osc0a14g150fan9qe5f55vkmj Query : use flama_phc
20240825@204559.1555 7osc0a14g150fan9qe5f55vkmj Query : select top 1 tipodoc,regrd from td where ndoc = 39
20240825@204559.1587 7osc0a14g150fan9qe5f55vkmj Query : use flama_phc
20240825@204559.1591 7osc0a14g150fan9qe5f55vkmj Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20240825@204559.1633 7osc0a14g150fan9qe5f55vkmj Query : use flama_phc
20240825@204559.1637 7osc0a14g150fan9qe5f55vkmj Query : select szadrsstamp valor from szadrs where szadrsdesc='joaquim oliveira mendes,lda jom- brg retail'
20240825@204559.1686 7osc0a14g150fan9qe5f55vkmj Query : use flama_phc
20240825@204559.1690 7osc0a14g150fan9qe5f55vkmj Query : select 1 valor from td where ndoc = 39
20240825@204559.1704 7osc0a14g150fan9qe5f55vkmj Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20240825@204559.1719 7osc0a14g150fan9qe5f55vkmj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240825@204559.1738 7osc0a14g150fan9qe5f55vkmj Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20240825@204559.1759 7osc0a14g150fan9qe5f55vkmj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240825@204559.1774 7osc0a14g150fan9qe5f55vkmj Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20240825@204559.1806 7osc0a14g150fan9qe5f55vkmj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240825@204559.1823 7osc0a14g150fan9qe5f55vkmj Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20240825@204559.1840 7osc0a14g150fan9qe5f55vkmj Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240825@204559.1912 7osc0a14g150fan9qe5f55vkmj Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240825@204559.1927 7osc0a14g150fan9qe5f55vkmj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240825@204559.1945 7osc0a14g150fan9qe5f55vkmj Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20240825@204559.1962 7osc0a14g150fan9qe5f55vkmj Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut66cb84688766cb89f72c' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20240825@204559.2159 7osc0a14g150fan9qe5f55vkmj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240825@204559.2186 7osc0a14g150fan9qe5f55vkmj Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20240825@204559.2223 7osc0a14g150fan9qe5f55vkmj Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20240825@204559.2237 7osc0a14g150fan9qe5f55vkmj Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20240825@204559.2250 7osc0a14g150fan9qe5f55vkmj Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20240825@204559.2263 7osc0a14g150fan9qe5f55vkmj Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20240825@204559.2276 7osc0a14g150fan9qe5f55vkmj Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20240825@204559.2291 7osc0a14g150fan9qe5f55vkmj Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20240825@204559.2306 7osc0a14g150fan9qe5f55vkmj Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut66cb84688766cb89f72c',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20240825@204559.2613 7osc0a14g150fan9qe5f55vkmj Query : select top 1 fno valor from wsftdata order by fno desc
20240825@204559.2640 7osc0a14g150fan9qe5f55vkmj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240825@204559.2663 7osc0a14g150fan9qe5f55vkmj Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20240825@204559.2693 7osc0a14g150fan9qe5f55vkmj Query : select 'normal' from dummy
20240825@204559.2711 7osc0a14g150fan9qe5f55vkmj Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut66cb84688766cb89f72c',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',472,101621,0,'2024-08-25',39,'euro',0,0,2024 ,?,?)
20240825@204559.3226 7osc0a14g150fan9qe5f55vkmj Query : use flama_phc
20240825@204559.3231 7osc0a14g150fan9qe5f55vkmj Query : select st.usalote valor from st where st.ref = '324.2031.00.1'
20240825@204559.4564 7osc0a14g150fan9qe5f55vkmj Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.2031.00.1'
20240825@204559.4583 7osc0a14g150fan9qe5f55vkmj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240825@204559.4602 7osc0a14g150fan9qe5f55vkmj Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240825@204559.4632 7osc0a14g150fan9qe5f55vkmj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240825@204559.4649 7osc0a14g150fan9qe5f55vkmj Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240825@204559.4659 7osc0a14g150fan9qe5f55vkmj Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240825@204559.4673 7osc0a14g150fan9qe5f55vkmj Query : select sestamp valor from se where ref ='324.2031.00.1' and lote = 'r2100232100a'
20240825@204559.4692 7osc0a14g150fan9qe5f55vkmj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240825@204559.4710 7osc0a14g150fan9qe5f55vkmj Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240825@204559.4726 7osc0a14g150fan9qe5f55vkmj Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66cb83129466cb89f772','aut66cb84688766cb89f72c' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240825@204559.4733 7osc0a14g150fan9qe5f55vkmj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240825@204559.4752 7osc0a14g150fan9qe5f55vkmj Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240825@204559.4783 7osc0a14g150fan9qe5f55vkmj Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66cb83129466cb89f772',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',6.000 ,'aut66cb84688766cb89f72c' ,0,0 ,2,23.00,10000,?,?,?,?,?)
20240825@204559.5116 7osc0a14g150fan9qe5f55vkmj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240825@204559.5137 7osc0a14g150fan9qe5f55vkmj Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240825@204559.5166 7osc0a14g150fan9qe5f55vkmj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240825@204559.5182 7osc0a14g150fan9qe5f55vkmj Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240825@204559.5191 7osc0a14g150fan9qe5f55vkmj Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240825@204559.5204 7osc0a14g150fan9qe5f55vkmj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240825@204559.5219 7osc0a14g150fan9qe5f55vkmj Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240825@204559.5232 7osc0a14g150fan9qe5f55vkmj Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66cb89192266cb89f77f','aut66cb84688766cb89f72c' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240825@204559.5237 7osc0a14g150fan9qe5f55vkmj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240825@204559.5252 7osc0a14g150fan9qe5f55vkmj Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240825@204559.5282 7osc0a14g150fan9qe5f55vkmj Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66cb89192266cb89f77f',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66cb84688766cb89f72c' ,0,0 ,2,23.00,20000,?,?,?)
20240825@204559.5565 7osc0a14g150fan9qe5f55vkmj Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut66cb84688766cb89f72c','2405538','wait',39,'adm09112754980.682000002')
20240825@204559.5640 7osc0a14g150fan9qe5f55vkmj Query : use flama_phc
20240825@204559.5644 7osc0a14g150fan9qe5f55vkmj Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240825@204559.5673 7osc0a14g150fan9qe5f55vkmj Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1672';
20240825@204559.5703 7osc0a14g150fan9qe5f55vkmj Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1672';
20240825@204559.5741 7osc0a14g150fan9qe5f55vkmj Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1672';
20240825@204559.5765 7osc0a14g150fan9qe5f55vkmj Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1672';
20240825@204559.6573 386637upvneal9ulrai4lne298 Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240825@204559.6586 386637upvneal9ulrai4lne298 Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240825@204559.6642 386637upvneal9ulrai4lne298 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1673';
20240825@204559.6704 386637upvneal9ulrai4lne298 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1673';
20240825@204559.6754 386637upvneal9ulrai4lne298 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1673';
20240825@204559.6781 386637upvneal9ulrai4lne298 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1673';
20240825@204559.6832 386637upvneal9ulrai4lne298 Query : use flama_phc
20240825@204559.6836 386637upvneal9ulrai4lne298 Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240825@204559.6905 386637upvneal9ulrai4lne298 Query : use flama_phc
20240825@204559.6909 386637upvneal9ulrai4lne298 Query : select no, estab,szadrsdesc from szadrs where u_coddest=3145
20240825@204559.7006 386637upvneal9ulrai4lne298 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.2031.00.1'
20240825@204559.7028 386637upvneal9ulrai4lne298 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2055 and bo.obrano = 2405539 and bi.ref ='324.2031.00.1' and bi.lordem =1
20240825@204559.7381 386637upvneal9ulrai4lne298 Query : use flama_phc
20240825@204559.7385 386637upvneal9ulrai4lne298 Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20240825@204559.7420 386637upvneal9ulrai4lne298 Query : use flama_phc
20240825@204559.7423 386637upvneal9ulrai4lne298 Query : select top 1 1 valor from td where td.ndoc = 39
20240825@204559.7453 386637upvneal9ulrai4lne298 Query : use flama_phc
20240825@204559.7456 386637upvneal9ulrai4lne298 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')
20240825@204559.7485 386637upvneal9ulrai4lne298 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
20240825@204559.7519 386637upvneal9ulrai4lne298 Query : use flama_phc
20240825@204559.7522 386637upvneal9ulrai4lne298 Query : select top 1 ~inactivo valor from cl where no = '101621' and estab = 0 order by inactivo desc
20240825@204559.7552 386637upvneal9ulrai4lne298 Query : use flama_phc
20240825@204559.7555 386637upvneal9ulrai4lne298 Query : select top 1 tipodoc,regrd from td where ndoc = 39
20240825@204559.7584 386637upvneal9ulrai4lne298 Query : use flama_phc
20240825@204559.7587 386637upvneal9ulrai4lne298 Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20240825@204559.7628 386637upvneal9ulrai4lne298 Query : use flama_phc
20240825@204559.7632 386637upvneal9ulrai4lne298 Query : select szadrsstamp valor from szadrs where szadrsdesc='jom - caldas da rainha'
20240825@204559.7679 386637upvneal9ulrai4lne298 Query : use flama_phc
20240825@204559.7682 386637upvneal9ulrai4lne298 Query : select 1 valor from td where ndoc = 39
20240825@204559.7695 386637upvneal9ulrai4lne298 Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20240825@204559.7710 386637upvneal9ulrai4lne298 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240825@204559.7729 386637upvneal9ulrai4lne298 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20240825@204559.7749 386637upvneal9ulrai4lne298 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240825@204559.7765 386637upvneal9ulrai4lne298 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20240825@204559.7795 386637upvneal9ulrai4lne298 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240825@204559.7810 386637upvneal9ulrai4lne298 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20240825@204559.7823 386637upvneal9ulrai4lne298 Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240825@204559.7894 386637upvneal9ulrai4lne298 Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240825@204559.7908 386637upvneal9ulrai4lne298 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240825@204559.7925 386637upvneal9ulrai4lne298 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20240825@204559.7942 386637upvneal9ulrai4lne298 Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut66cb82661866cb89f7bf' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20240825@204559.8134 386637upvneal9ulrai4lne298 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240825@204559.8155 386637upvneal9ulrai4lne298 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20240825@204559.8191 386637upvneal9ulrai4lne298 Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20240825@204559.8204 386637upvneal9ulrai4lne298 Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20240825@204559.8216 386637upvneal9ulrai4lne298 Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20240825@204559.8228 386637upvneal9ulrai4lne298 Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20240825@204559.8240 386637upvneal9ulrai4lne298 Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20240825@204559.8251 386637upvneal9ulrai4lne298 Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20240825@204559.8263 386637upvneal9ulrai4lne298 Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut66cb82661866cb89f7bf',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20240825@204559.8537 386637upvneal9ulrai4lne298 Query : select top 1 fno valor from wsftdata order by fno desc
20240825@204559.8559 386637upvneal9ulrai4lne298 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240825@204559.8576 386637upvneal9ulrai4lne298 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20240825@204559.8600 386637upvneal9ulrai4lne298 Query : select 'normal' from dummy
20240825@204559.8615 386637upvneal9ulrai4lne298 Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut66cb82661866cb89f7bf',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',473,101621,0,'2024-08-25',39,'euro',0,0,2024 ,?,?)
20240825@204559.8945 386637upvneal9ulrai4lne298 Query : use flama_phc
20240825@204559.8949 386637upvneal9ulrai4lne298 Query : select st.usalote valor from st where st.ref = '324.2031.00.1'
20240825@204559.8974 386637upvneal9ulrai4lne298 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.2031.00.1'
20240825@204559.8990 386637upvneal9ulrai4lne298 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240825@204559.9008 386637upvneal9ulrai4lne298 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240825@204559.9038 386637upvneal9ulrai4lne298 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240825@204559.9056 386637upvneal9ulrai4lne298 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240825@204559.9067 386637upvneal9ulrai4lne298 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240825@204559.9082 386637upvneal9ulrai4lne298 Query : select sestamp valor from se where ref ='324.2031.00.1' and lote = 'r2100232100a'
20240825@204559.9097 386637upvneal9ulrai4lne298 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240825@204559.9114 386637upvneal9ulrai4lne298 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240825@204559.9129 386637upvneal9ulrai4lne298 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66cb80773466cb89f7de','aut66cb82661866cb89f7bf' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240825@204559.9135 386637upvneal9ulrai4lne298 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240825@204559.9153 386637upvneal9ulrai4lne298 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240825@204559.9189 386637upvneal9ulrai4lne298 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66cb80773466cb89f7de',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',6.000 ,'aut66cb82661866cb89f7bf' ,0,0 ,2,23.00,10000,?,?,?,?,?)
20240825@204559.9499 386637upvneal9ulrai4lne298 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240825@204559.9519 386637upvneal9ulrai4lne298 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240825@204559.9551 386637upvneal9ulrai4lne298 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240825@204559.9567 386637upvneal9ulrai4lne298 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240825@204559.9578 386637upvneal9ulrai4lne298 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240825@204559.9594 386637upvneal9ulrai4lne298 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240825@204559.9612 386637upvneal9ulrai4lne298 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240825@204559.9626 386637upvneal9ulrai4lne298 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66cb80270766cb89f7ea','aut66cb82661866cb89f7bf' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240825@204559.9632 386637upvneal9ulrai4lne298 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240825@204559.9648 386637upvneal9ulrai4lne298 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240825@204559.9687 386637upvneal9ulrai4lne298 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66cb80270766cb89f7ea',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66cb82661866cb89f7bf' ,0,0 ,2,23.00,20000,?,?,?)
20240825@204600.9000 386637upvneal9ulrai4lne298 Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut66cb82661866cb89f7bf','2405539','wait',39,'adm09112754980.682000002')
20240825@204600.8800 386637upvneal9ulrai4lne298 Query : use flama_phc
20240825@204600.9200 386637upvneal9ulrai4lne298 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240825@204600.1250 386637upvneal9ulrai4lne298 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1673';
20240825@204600.1580 386637upvneal9ulrai4lne298 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1673';
20240825@204600.2040 386637upvneal9ulrai4lne298 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1673';
20240825@204600.2320 386637upvneal9ulrai4lne298 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1673';
20240825@204600.1924 4i0bkv0h5564sogqt983mtmged Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240825@204600.1939 4i0bkv0h5564sogqt983mtmged Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240825@204600.2004 4i0bkv0h5564sogqt983mtmged Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1674';
20240825@204600.2082 4i0bkv0h5564sogqt983mtmged Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1674';
20240825@204600.2143 4i0bkv0h5564sogqt983mtmged Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1674';
20240825@204600.2174 4i0bkv0h5564sogqt983mtmged Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1674';
20240825@204600.2233 4i0bkv0h5564sogqt983mtmged Query : use flama_phc
20240825@204600.2238 4i0bkv0h5564sogqt983mtmged Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240825@204600.2309 4i0bkv0h5564sogqt983mtmged Query : use flama_phc
20240825@204600.2313 4i0bkv0h5564sogqt983mtmged Query : select no, estab,szadrsdesc from szadrs where u_coddest=416
20240825@204600.2436 4i0bkv0h5564sogqt983mtmged Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1416.00.1'
20240825@204600.2674 4i0bkv0h5564sogqt983mtmged Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2055 and bo.obrano = 2405540 and bi.ref ='324.1416.00.1' and bi.lordem =1
20240825@204600.3442 4i0bkv0h5564sogqt983mtmged Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1416.00.1'
20240825@204600.3468 4i0bkv0h5564sogqt983mtmged Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2055 and bo.obrano = 2405540 and bi.ref ='324.1416.00.1' and bi.lordem =1
20240825@204600.3487 4i0bkv0h5564sogqt983mtmged Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.736.00.01'
20240825@204600.3513 4i0bkv0h5564sogqt983mtmged Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2055 and bo.obrano = 2405540 and bi.ref ='324.736.00.01' and bi.lordem =3
20240825@204600.4040 4i0bkv0h5564sogqt983mtmged Query : use flama_phc
20240825@204600.4045 4i0bkv0h5564sogqt983mtmged Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20240825@204600.4085 4i0bkv0h5564sogqt983mtmged Query : use flama_phc
20240825@204600.4089 4i0bkv0h5564sogqt983mtmged Query : select top 1 1 valor from td where td.ndoc = 39
20240825@204600.4123 4i0bkv0h5564sogqt983mtmged Query : use flama_phc
20240825@204600.4127 4i0bkv0h5564sogqt983mtmged 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')
20240825@204600.4161 4i0bkv0h5564sogqt983mtmged 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
20240825@204600.4203 4i0bkv0h5564sogqt983mtmged Query : use flama_phc
20240825@204600.4206 4i0bkv0h5564sogqt983mtmged Query : select top 1 ~inactivo valor from cl where no = '102079' and estab = 0 order by inactivo desc
20240825@204600.4403 4i0bkv0h5564sogqt983mtmged Query : use flama_phc
20240825@204600.4407 4i0bkv0h5564sogqt983mtmged Query : select top 1 tipodoc,regrd from td where ndoc = 39
20240825@204600.4442 4i0bkv0h5564sogqt983mtmged Query : use flama_phc
20240825@204600.4446 4i0bkv0h5564sogqt983mtmged Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20240825@204600.4491 4i0bkv0h5564sogqt983mtmged Query : use flama_phc
20240825@204600.4494 4i0bkv0h5564sogqt983mtmged Query : select szadrsstamp valor from szadrs where szadrsdesc='bragajav, lda.'
20240825@204600.4551 4i0bkv0h5564sogqt983mtmged Query : use flama_phc
20240825@204600.4555 4i0bkv0h5564sogqt983mtmged Query : select 1 valor from td where ndoc = 39
20240825@204600.4571 4i0bkv0h5564sogqt983mtmged Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20240825@204600.4586 4i0bkv0h5564sogqt983mtmged Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240825@204600.4605 4i0bkv0h5564sogqt983mtmged Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20240825@204600.4628 4i0bkv0h5564sogqt983mtmged Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240825@204600.4643 4i0bkv0h5564sogqt983mtmged Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20240825@204600.4675 4i0bkv0h5564sogqt983mtmged Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240825@204600.4693 4i0bkv0h5564sogqt983mtmged Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20240825@204600.4708 4i0bkv0h5564sogqt983mtmged Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240825@204600.4779 4i0bkv0h5564sogqt983mtmged Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240825@204600.4794 4i0bkv0h5564sogqt983mtmged Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240825@204600.4811 4i0bkv0h5564sogqt983mtmged Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20240825@204600.4829 4i0bkv0h5564sogqt983mtmged Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut66cb88143966cb89f872' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20240825@204600.5031 4i0bkv0h5564sogqt983mtmged Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240825@204600.5055 4i0bkv0h5564sogqt983mtmged Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20240825@204600.5093 4i0bkv0h5564sogqt983mtmged Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20240825@204600.5106 4i0bkv0h5564sogqt983mtmged Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20240825@204600.5118 4i0bkv0h5564sogqt983mtmged Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20240825@204600.5131 4i0bkv0h5564sogqt983mtmged Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20240825@204600.5144 4i0bkv0h5564sogqt983mtmged Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20240825@204600.5156 4i0bkv0h5564sogqt983mtmged Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20240825@204600.5168 4i0bkv0h5564sogqt983mtmged Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut66cb88143966cb89f872',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20240825@204600.5466 4i0bkv0h5564sogqt983mtmged Query : select top 1 fno valor from wsftdata order by fno desc
20240825@204600.5490 4i0bkv0h5564sogqt983mtmged Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240825@204600.5508 4i0bkv0h5564sogqt983mtmged Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20240825@204600.5533 4i0bkv0h5564sogqt983mtmged Query : select 'normal' from dummy
20240825@204600.5550 4i0bkv0h5564sogqt983mtmged Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut66cb88143966cb89f872',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',474,102079,0,'2024-08-25',39,'euro',0,0,2024 ,?,?)
20240825@204600.5870 4i0bkv0h5564sogqt983mtmged Query : use flama_phc
20240825@204600.5874 4i0bkv0h5564sogqt983mtmged Query : select st.usalote valor from st where st.ref = '324.1416.00.1'
20240825@204600.5900 4i0bkv0h5564sogqt983mtmged Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.1416.00.1'
20240825@204600.6063 4i0bkv0h5564sogqt983mtmged Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240825@204600.6081 4i0bkv0h5564sogqt983mtmged Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240825@204600.6110 4i0bkv0h5564sogqt983mtmged Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240825@204600.6130 4i0bkv0h5564sogqt983mtmged Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240825@204600.6139 4i0bkv0h5564sogqt983mtmged Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240825@204600.6153 4i0bkv0h5564sogqt983mtmged Query : select sestamp valor from se where ref ='324.1416.00.1' and lote = 'r2400079200a'
20240825@204600.6169 4i0bkv0h5564sogqt983mtmged Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240825@204600.6186 4i0bkv0h5564sogqt983mtmged Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240825@204600.6198 4i0bkv0h5564sogqt983mtmged Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66cb84603866cb89f896','aut66cb88143966cb89f872' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240825@204600.6204 4i0bkv0h5564sogqt983mtmged Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240825@204600.6220 4i0bkv0h5564sogqt983mtmged Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240825@204600.6251 4i0bkv0h5564sogqt983mtmged Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66cb84603866cb89f896',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',4.000 ,'aut66cb88143966cb89f872' ,0,0 ,2,23.00,10000,?,?,?,?,?)
20240825@204600.6539 4i0bkv0h5564sogqt983mtmged Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240825@204600.6558 4i0bkv0h5564sogqt983mtmged Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240825@204600.6585 4i0bkv0h5564sogqt983mtmged Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240825@204600.6600 4i0bkv0h5564sogqt983mtmged Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240825@204600.6608 4i0bkv0h5564sogqt983mtmged Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240825@204600.6622 4i0bkv0h5564sogqt983mtmged Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240825@204600.6636 4i0bkv0h5564sogqt983mtmged Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240825@204600.6648 4i0bkv0h5564sogqt983mtmged Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66cb83166166cb89f8a1','aut66cb88143966cb89f872' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240825@204600.6653 4i0bkv0h5564sogqt983mtmged Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240825@204600.6669 4i0bkv0h5564sogqt983mtmged Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240825@204600.6700 4i0bkv0h5564sogqt983mtmged Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66cb83166166cb89f8a1',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66cb88143966cb89f872' ,0,0 ,2,23.00,20000,?,?,?)
20240825@204600.6983 4i0bkv0h5564sogqt983mtmged Query : use flama_phc
20240825@204600.6988 4i0bkv0h5564sogqt983mtmged Query : select st.usalote valor from st where st.ref = '324.1416.00.1'
20240825@204600.7012 4i0bkv0h5564sogqt983mtmged Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.1416.00.1'
20240825@204600.7030 4i0bkv0h5564sogqt983mtmged Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240825@204600.7047 4i0bkv0h5564sogqt983mtmged Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240825@204600.7075 4i0bkv0h5564sogqt983mtmged Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240825@204600.7096 4i0bkv0h5564sogqt983mtmged Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240825@204600.7105 4i0bkv0h5564sogqt983mtmged Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240825@204600.7121 4i0bkv0h5564sogqt983mtmged Query : select sestamp valor from se where ref ='324.1416.00.1' and lote = 'r2400079200a'
20240825@204600.7136 4i0bkv0h5564sogqt983mtmged Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240825@204600.7152 4i0bkv0h5564sogqt983mtmged Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240825@204600.7173 4i0bkv0h5564sogqt983mtmged Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66cb86464866cb89f8ae','aut66cb88143966cb89f872' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240825@204600.7181 4i0bkv0h5564sogqt983mtmged Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240825@204600.7202 4i0bkv0h5564sogqt983mtmged Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240825@204600.7239 4i0bkv0h5564sogqt983mtmged Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66cb86464866cb89f8ae',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',8.000 ,'aut66cb88143966cb89f872' ,0,0 ,2,23.00,40000,?,?,?,?,?)
20240825@204600.7543 4i0bkv0h5564sogqt983mtmged Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240825@204600.8254 4i0bkv0h5564sogqt983mtmged Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240825@204600.8813 4i0bkv0h5564sogqt983mtmged Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240825@204600.8832 4i0bkv0h5564sogqt983mtmged Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240825@204600.8842 4i0bkv0h5564sogqt983mtmged Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240825@204600.8854 4i0bkv0h5564sogqt983mtmged Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240825@204600.8869 4i0bkv0h5564sogqt983mtmged Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240825@204600.8882 4i0bkv0h5564sogqt983mtmged Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66cb85354166cb89f8d8','aut66cb88143966cb89f872' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240825@204600.8888 4i0bkv0h5564sogqt983mtmged Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240825@204600.8902 4i0bkv0h5564sogqt983mtmged Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240825@204600.9054 4i0bkv0h5564sogqt983mtmged Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66cb85354166cb89f8d8',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66cb88143966cb89f872' ,0,0 ,2,23.00,50000,?,?,?)
20240825@204600.9364 4i0bkv0h5564sogqt983mtmged Query : use flama_phc
20240825@204600.9368 4i0bkv0h5564sogqt983mtmged Query : select st.usalote valor from st where st.ref = '324.736.00.01'
20240825@204600.9390 4i0bkv0h5564sogqt983mtmged Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.736.00.01'
20240825@204600.9407 4i0bkv0h5564sogqt983mtmged Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240825@204600.9423 4i0bkv0h5564sogqt983mtmged Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240825@204600.9453 4i0bkv0h5564sogqt983mtmged Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240825@204600.9469 4i0bkv0h5564sogqt983mtmged Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240825@204600.9478 4i0bkv0h5564sogqt983mtmged Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240825@204600.9494 4i0bkv0h5564sogqt983mtmged Query : select sestamp valor from se where ref ='324.736.00.01' and lote = 'r2400239300a'
20240825@204600.9509 4i0bkv0h5564sogqt983mtmged Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240825@204600.9533 4i0bkv0h5564sogqt983mtmged Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240825@204600.9548 4i0bkv0h5564sogqt983mtmged Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66cb87671766cb89f8e8','aut66cb88143966cb89f872' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240825@204600.9554 4i0bkv0h5564sogqt983mtmged Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240825@204600.9572 4i0bkv0h5564sogqt983mtmged Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240825@204600.9607 4i0bkv0h5564sogqt983mtmged Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66cb87671766cb89f8e8',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',12.000 ,'aut66cb88143966cb89f872' ,0,0 ,2,23.00,70000,?,?,?,?,?)
20240825@204600.9916 4i0bkv0h5564sogqt983mtmged Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut66cb88143966cb89f872','2405540','wait',39,'adm09112754980.682000002')
20240825@204600.9995 4i0bkv0h5564sogqt983mtmged Query : use flama_phc
20240825@204600.9999 4i0bkv0h5564sogqt983mtmged Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240825@204601.3300 4i0bkv0h5564sogqt983mtmged Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1674';
20240825@204601.6600 4i0bkv0h5564sogqt983mtmged Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1674';
20240825@204601.1100 4i0bkv0h5564sogqt983mtmged Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1674';
20240825@204601.1360 4i0bkv0h5564sogqt983mtmged Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1674';
20240825@204601.7190 ee66p0uoitm1p8amm76tsnf6vi Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240825@204601.7320 ee66p0uoitm1p8amm76tsnf6vi Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240825@204601.7960 ee66p0uoitm1p8amm76tsnf6vi Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1675';
20240825@204601.8640 ee66p0uoitm1p8amm76tsnf6vi Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1675';
20240825@204601.9190 ee66p0uoitm1p8amm76tsnf6vi Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1675';
20240825@204601.9510 ee66p0uoitm1p8amm76tsnf6vi Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1675';
20240825@204601.1003 ee66p0uoitm1p8amm76tsnf6vi Query : use flama_phc
20240825@204601.1009 ee66p0uoitm1p8amm76tsnf6vi Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240825@204601.1082 ee66p0uoitm1p8amm76tsnf6vi Query : use flama_phc
20240825@204601.1087 ee66p0uoitm1p8amm76tsnf6vi Query : select no, estab,szadrsdesc from szadrs where u_coddest=2759
20240825@204601.1134 ee66p0uoitm1p8amm76tsnf6vi 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'
20240825@204601.1156 ee66p0uoitm1p8amm76tsnf6vi Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2055 and bo.obrano = 2405541 and bi.ref ='324.1824.00.1' and bi.lordem =1
20240825@204601.1751 ee66p0uoitm1p8amm76tsnf6vi Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.988.00.01'
20240825@204601.1987 ee66p0uoitm1p8amm76tsnf6vi Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2055 and bo.obrano = 2405541 and bi.ref ='324.988.00.01' and bi.lordem =2
20240825@204601.2417 ee66p0uoitm1p8amm76tsnf6vi Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.948.00.01'
20240825@204601.2602 ee66p0uoitm1p8amm76tsnf6vi Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2055 and bo.obrano = 2405541 and bi.ref ='324.948.00.01' and bi.lordem =3
20240825@204601.2977 ee66p0uoitm1p8amm76tsnf6vi Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.2232.00.1'
20240825@204601.3164 ee66p0uoitm1p8amm76tsnf6vi Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2055 and bo.obrano = 2405541 and bi.ref ='324.2232.00.1' and bi.lordem =4
20240825@204601.3543 ee66p0uoitm1p8amm76tsnf6vi Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.497.00.01'
20240825@204601.3729 ee66p0uoitm1p8amm76tsnf6vi Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2055 and bo.obrano = 2405541 and bi.ref ='324.497.00.01' and bi.lordem =5
20240825@204601.4075 ee66p0uoitm1p8amm76tsnf6vi Query : use flama_phc
20240825@204601.4079 ee66p0uoitm1p8amm76tsnf6vi Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20240825@204601.4114 ee66p0uoitm1p8amm76tsnf6vi Query : use flama_phc
20240825@204601.4118 ee66p0uoitm1p8amm76tsnf6vi Query : select top 1 1 valor from td where td.ndoc = 39
20240825@204601.4159 ee66p0uoitm1p8amm76tsnf6vi Query : use flama_phc
20240825@204601.4197 ee66p0uoitm1p8amm76tsnf6vi 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')
20240825@204601.4325 ee66p0uoitm1p8amm76tsnf6vi 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
20240825@204601.4369 ee66p0uoitm1p8amm76tsnf6vi Query : use flama_phc
20240825@204601.4374 ee66p0uoitm1p8amm76tsnf6vi Query : select top 1 ~inactivo valor from cl where no = '102145' and estab = 0 order by inactivo desc
20240825@204601.4405 ee66p0uoitm1p8amm76tsnf6vi Query : use flama_phc
20240825@204601.4409 ee66p0uoitm1p8amm76tsnf6vi Query : select top 1 tipodoc,regrd from td where ndoc = 39
20240825@204601.4441 ee66p0uoitm1p8amm76tsnf6vi Query : use flama_phc
20240825@204601.4445 ee66p0uoitm1p8amm76tsnf6vi Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20240825@204601.4488 ee66p0uoitm1p8amm76tsnf6vi Query : use flama_phc
20240825@204601.4491 ee66p0uoitm1p8amm76tsnf6vi Query : select szadrsstamp valor from szadrs where szadrsdesc='paulo jorge almeida gomes unip.,lda.-entrega'
20240825@204601.4539 ee66p0uoitm1p8amm76tsnf6vi Query : use flama_phc
20240825@204601.4542 ee66p0uoitm1p8amm76tsnf6vi Query : select 1 valor from td where ndoc = 39
20240825@204601.4556 ee66p0uoitm1p8amm76tsnf6vi Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20240825@204601.4573 ee66p0uoitm1p8amm76tsnf6vi Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240825@204601.4593 ee66p0uoitm1p8amm76tsnf6vi Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20240825@204601.4614 ee66p0uoitm1p8amm76tsnf6vi Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240825@204601.4637 ee66p0uoitm1p8amm76tsnf6vi Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20240825@204601.4679 ee66p0uoitm1p8amm76tsnf6vi Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240825@204601.4703 ee66p0uoitm1p8amm76tsnf6vi Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20240825@204601.4722 ee66p0uoitm1p8amm76tsnf6vi Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240825@204601.4822 ee66p0uoitm1p8amm76tsnf6vi Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240825@204601.4837 ee66p0uoitm1p8amm76tsnf6vi Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240825@204601.4856 ee66p0uoitm1p8amm76tsnf6vi Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20240825@204601.4873 ee66p0uoitm1p8amm76tsnf6vi Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut66cb83007666cb89f973' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20240825@204601.5088 ee66p0uoitm1p8amm76tsnf6vi Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240825@204601.5112 ee66p0uoitm1p8amm76tsnf6vi Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20240825@204601.5154 ee66p0uoitm1p8amm76tsnf6vi Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20240825@204601.5166 ee66p0uoitm1p8amm76tsnf6vi Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20240825@204601.5179 ee66p0uoitm1p8amm76tsnf6vi Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20240825@204601.5192 ee66p0uoitm1p8amm76tsnf6vi Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20240825@204601.5204 ee66p0uoitm1p8amm76tsnf6vi Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20240825@204601.5216 ee66p0uoitm1p8amm76tsnf6vi Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20240825@204601.5228 ee66p0uoitm1p8amm76tsnf6vi Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut66cb83007666cb89f973',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20240825@204601.5606 ee66p0uoitm1p8amm76tsnf6vi Query : select top 1 fno valor from wsftdata order by fno desc
20240825@204601.6684 ee66p0uoitm1p8amm76tsnf6vi Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240825@204601.6703 ee66p0uoitm1p8amm76tsnf6vi Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20240825@204601.6728 ee66p0uoitm1p8amm76tsnf6vi Query : select 'normal' from dummy
20240825@204601.6743 ee66p0uoitm1p8amm76tsnf6vi Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut66cb83007666cb89f973',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',475,102145,0,'2024-08-25',39,'euro',0,0,2024 ,?,?)
20240825@204601.7071 ee66p0uoitm1p8amm76tsnf6vi Query : use flama_phc
20240825@204601.7074 ee66p0uoitm1p8amm76tsnf6vi Query : select st.usalote valor from st where st.ref = '324.1824.00.1'
20240825@204601.7106 ee66p0uoitm1p8amm76tsnf6vi Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 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'
20240825@204601.7121 ee66p0uoitm1p8amm76tsnf6vi Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240825@204601.7141 ee66p0uoitm1p8amm76tsnf6vi Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240825@204601.7172 ee66p0uoitm1p8amm76tsnf6vi Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240825@204601.7192 ee66p0uoitm1p8amm76tsnf6vi Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240825@204601.7204 ee66p0uoitm1p8amm76tsnf6vi Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240825@204601.7218 ee66p0uoitm1p8amm76tsnf6vi Query : select sestamp valor from se where ref ='324.1824.00.1' and lote = 'r2301210200a'
20240825@204601.7234 ee66p0uoitm1p8amm76tsnf6vi Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240825@204601.7249 ee66p0uoitm1p8amm76tsnf6vi Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240825@204601.7262 ee66p0uoitm1p8amm76tsnf6vi Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66cb83742166cb89f9b0','aut66cb83007666cb89f973' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240825@204601.7267 ee66p0uoitm1p8amm76tsnf6vi Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240825@204601.7282 ee66p0uoitm1p8amm76tsnf6vi Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240825@204601.7312 ee66p0uoitm1p8amm76tsnf6vi Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66cb83742166cb89f9b0',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',4.000 ,'aut66cb83007666cb89f973' ,0,0 ,2,23.00,10000,?,?,?,?,?)
20240825@204601.7633 ee66p0uoitm1p8amm76tsnf6vi Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240825@204601.7657 ee66p0uoitm1p8amm76tsnf6vi Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240825@204601.7688 ee66p0uoitm1p8amm76tsnf6vi Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240825@204601.7707 ee66p0uoitm1p8amm76tsnf6vi Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240825@204601.7719 ee66p0uoitm1p8amm76tsnf6vi Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240825@204601.7736 ee66p0uoitm1p8amm76tsnf6vi Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240825@204601.7755 ee66p0uoitm1p8amm76tsnf6vi Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240825@204601.7770 ee66p0uoitm1p8amm76tsnf6vi Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66cb89210566cb89f9bc','aut66cb83007666cb89f973' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240825@204601.7776 ee66p0uoitm1p8amm76tsnf6vi Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240825@204601.7795 ee66p0uoitm1p8amm76tsnf6vi Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240825@204601.7835 ee66p0uoitm1p8amm76tsnf6vi Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66cb89210566cb89f9bc',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66cb83007666cb89f973' ,0,0 ,2,23.00,20000,?,?,?)
20240825@204601.8135 ee66p0uoitm1p8amm76tsnf6vi Query : use flama_phc
20240825@204601.8139 ee66p0uoitm1p8amm76tsnf6vi Query : select st.usalote valor from st where st.ref = '324.988.00.01'
20240825@204601.8163 ee66p0uoitm1p8amm76tsnf6vi Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 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'
20240825@204601.8344 ee66p0uoitm1p8amm76tsnf6vi Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240825@204601.8364 ee66p0uoitm1p8amm76tsnf6vi Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240825@204601.8396 ee66p0uoitm1p8amm76tsnf6vi Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240825@204601.8414 ee66p0uoitm1p8amm76tsnf6vi Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240825@204601.8424 ee66p0uoitm1p8amm76tsnf6vi Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240825@204601.8442 ee66p0uoitm1p8amm76tsnf6vi Query : select sestamp valor from se where ref ='324.988.00.01' and lote = 'r2400410200a'
20240825@204601.8474 ee66p0uoitm1p8amm76tsnf6vi Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240825@204601.8493 ee66p0uoitm1p8amm76tsnf6vi Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240825@204601.8506 ee66p0uoitm1p8amm76tsnf6vi Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66cb87998166cb89f9ce','aut66cb83007666cb89f973' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240825@204601.8512 ee66p0uoitm1p8amm76tsnf6vi Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240825@204601.8528 ee66p0uoitm1p8amm76tsnf6vi Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240825@204601.8562 ee66p0uoitm1p8amm76tsnf6vi Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66cb87998166cb89f9ce',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',2.000 ,'aut66cb83007666cb89f973' ,0,0 ,2,23.00,40000,?,?,?,?,?)
20240825@204601.8870 ee66p0uoitm1p8amm76tsnf6vi Query : use flama_phc
20240825@204601.8875 ee66p0uoitm1p8amm76tsnf6vi Query : select st.usalote valor from st where st.ref = '324.948.00.01'
20240825@204601.8901 ee66p0uoitm1p8amm76tsnf6vi Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.948.00.01'
20240825@204601.9084 ee66p0uoitm1p8amm76tsnf6vi Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240825@204601.9107 ee66p0uoitm1p8amm76tsnf6vi Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240825@204601.9143 ee66p0uoitm1p8amm76tsnf6vi Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240825@204601.9162 ee66p0uoitm1p8amm76tsnf6vi Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240825@204601.9172 ee66p0uoitm1p8amm76tsnf6vi Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240825@204601.9187 ee66p0uoitm1p8amm76tsnf6vi Query : select sestamp valor from se where ref ='324.948.00.01' and lote = 'r2301091200a'
20240825@204601.9212 ee66p0uoitm1p8amm76tsnf6vi Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240825@204601.9234 ee66p0uoitm1p8amm76tsnf6vi Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240825@204601.9250 ee66p0uoitm1p8amm76tsnf6vi Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66cb81354566cb89f9e0','aut66cb83007666cb89f973' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240825@204601.9256 ee66p0uoitm1p8amm76tsnf6vi Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240825@204601.9276 ee66p0uoitm1p8amm76tsnf6vi Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240825@204601.9336 ee66p0uoitm1p8amm76tsnf6vi Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66cb81354566cb89f9e0',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',2.000 ,'aut66cb83007666cb89f973' ,0,0 ,2,23.00,50000,?,?,?,?,?)
20240825@204601.9729 ee66p0uoitm1p8amm76tsnf6vi Query : use flama_phc
20240825@204601.9733 ee66p0uoitm1p8amm76tsnf6vi Query : select st.usalote valor from st where st.ref = '324.2232.00.1'
20240825@204601.9763 ee66p0uoitm1p8amm76tsnf6vi Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.2232.00.1'
20240825@204601.9948 ee66p0uoitm1p8amm76tsnf6vi Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240825@204601.9970 ee66p0uoitm1p8amm76tsnf6vi Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240825@204602.6000 ee66p0uoitm1p8amm76tsnf6vi Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240825@204602.2600 ee66p0uoitm1p8amm76tsnf6vi Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240825@204602.3800 ee66p0uoitm1p8amm76tsnf6vi Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240825@204602.5300 ee66p0uoitm1p8amm76tsnf6vi Query : select sestamp valor from se where ref ='324.2232.00.1' and lote = 'r2400241100a'
20240825@204602.7100 ee66p0uoitm1p8amm76tsnf6vi Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240825@204602.9100 ee66p0uoitm1p8amm76tsnf6vi Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240825@204602.1050 ee66p0uoitm1p8amm76tsnf6vi Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66cb87478166cb89fa01','aut66cb83007666cb89f973' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240825@204602.1110 ee66p0uoitm1p8amm76tsnf6vi Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240825@204602.1320 ee66p0uoitm1p8amm76tsnf6vi Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240825@204602.1690 ee66p0uoitm1p8amm76tsnf6vi Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66cb87478166cb89fa01',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',2.000 ,'aut66cb83007666cb89f973' ,0,0 ,2,23.00,60000,?,?,?,?,?)
20240825@204602.5910 ee66p0uoitm1p8amm76tsnf6vi Query : use flama_phc
20240825@204602.5950 ee66p0uoitm1p8amm76tsnf6vi Query : select st.usalote valor from st where st.ref = '324.497.00.01'
20240825@204602.6220 ee66p0uoitm1p8amm76tsnf6vi Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.497.00.01'
20240825@204602.8020 ee66p0uoitm1p8amm76tsnf6vi Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240825@204602.8230 ee66p0uoitm1p8amm76tsnf6vi Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240825@204602.8540 ee66p0uoitm1p8amm76tsnf6vi Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240825@204602.8790 ee66p0uoitm1p8amm76tsnf6vi Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240825@204602.1425 ee66p0uoitm1p8amm76tsnf6vi Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240825@204602.1441 ee66p0uoitm1p8amm76tsnf6vi Query : select sestamp valor from se where ref ='324.497.00.01' and lote = 'r2300022100a'
20240825@204602.1701 ee66p0uoitm1p8amm76tsnf6vi Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240825@204602.1844 ee66p0uoitm1p8amm76tsnf6vi Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240825@204602.1857 ee66p0uoitm1p8amm76tsnf6vi Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66cb80311366cb89fa29','aut66cb83007666cb89f973' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240825@204602.1864 ee66p0uoitm1p8amm76tsnf6vi Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240825@204602.1882 ee66p0uoitm1p8amm76tsnf6vi Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240825@204602.1916 ee66p0uoitm1p8amm76tsnf6vi Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66cb80311366cb89fa29',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',8.000 ,'aut66cb83007666cb89f973' ,0,0 ,2,23.00,70000,?,?,?,?,?)
20240825@204602.2294 ee66p0uoitm1p8amm76tsnf6vi Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut66cb83007666cb89f973','2405541','wait',39,'adm09112754980.682000002')
20240825@204602.2376 ee66p0uoitm1p8amm76tsnf6vi Query : use flama_phc
20240825@204602.2381 ee66p0uoitm1p8amm76tsnf6vi Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240825@204602.2416 ee66p0uoitm1p8amm76tsnf6vi Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1675';
20240825@204602.2449 ee66p0uoitm1p8amm76tsnf6vi Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1675';
20240825@204602.2507 ee66p0uoitm1p8amm76tsnf6vi Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1675';
20240825@204602.2537 ee66p0uoitm1p8amm76tsnf6vi Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1675';
20240825@204602.3254 3dhdqm1t2608ld11k6do241fjm Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240825@204602.3269 3dhdqm1t2608ld11k6do241fjm Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240825@204602.3338 3dhdqm1t2608ld11k6do241fjm Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1676';
20240825@204602.3433 3dhdqm1t2608ld11k6do241fjm Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1676';
20240825@204602.3497 3dhdqm1t2608ld11k6do241fjm Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1676';
20240825@204602.3534 3dhdqm1t2608ld11k6do241fjm Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1676';
20240825@204602.3591 3dhdqm1t2608ld11k6do241fjm Query : use flama_phc
20240825@204602.3595 3dhdqm1t2608ld11k6do241fjm Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240825@204602.3665 3dhdqm1t2608ld11k6do241fjm Query : use flama_phc
20240825@204602.3669 3dhdqm1t2608ld11k6do241fjm Query : select no, estab,szadrsdesc from szadrs where u_coddest=635
20240825@204602.3805 3dhdqm1t2608ld11k6do241fjm Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.736.00.01'
20240825@204602.3831 3dhdqm1t2608ld11k6do241fjm Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2055 and bo.obrano = 2405542 and bi.ref ='324.736.00.01' and bi.lordem =1
20240825@204602.4247 3dhdqm1t2608ld11k6do241fjm Query : use flama_phc
20240825@204602.4251 3dhdqm1t2608ld11k6do241fjm Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20240825@204602.4332 3dhdqm1t2608ld11k6do241fjm Query : use flama_phc
20240825@204602.4336 3dhdqm1t2608ld11k6do241fjm Query : select top 1 1 valor from td where td.ndoc = 39
20240825@204602.4370 3dhdqm1t2608ld11k6do241fjm Query : use flama_phc
20240825@204602.4373 3dhdqm1t2608ld11k6do241fjm 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')
20240825@204602.4406 3dhdqm1t2608ld11k6do241fjm 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
20240825@204602.4445 3dhdqm1t2608ld11k6do241fjm Query : use flama_phc
20240825@204602.4448 3dhdqm1t2608ld11k6do241fjm Query : select top 1 ~inactivo valor from cl where no = '100053' and estab = 0 order by inactivo desc
20240825@204602.4612 3dhdqm1t2608ld11k6do241fjm Query : use flama_phc
20240825@204602.4616 3dhdqm1t2608ld11k6do241fjm Query : select top 1 tipodoc,regrd from td where ndoc = 39
20240825@204602.4658 3dhdqm1t2608ld11k6do241fjm Query : use flama_phc
20240825@204602.4662 3dhdqm1t2608ld11k6do241fjm Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20240825@204602.4710 3dhdqm1t2608ld11k6do241fjm Query : use flama_phc
20240825@204602.4713 3dhdqm1t2608ld11k6do241fjm Query : select szadrsstamp valor from szadrs where szadrsdesc='irmaos peixoto, s.a.'
20240825@204602.4762 3dhdqm1t2608ld11k6do241fjm Query : use flama_phc
20240825@204602.4765 3dhdqm1t2608ld11k6do241fjm Query : select 1 valor from td where ndoc = 39
20240825@204602.4790 3dhdqm1t2608ld11k6do241fjm Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20240825@204602.4806 3dhdqm1t2608ld11k6do241fjm Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240825@204602.4832 3dhdqm1t2608ld11k6do241fjm Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20240825@204602.4859 3dhdqm1t2608ld11k6do241fjm Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240825@204602.4877 3dhdqm1t2608ld11k6do241fjm Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20240825@204602.4911 3dhdqm1t2608ld11k6do241fjm Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240825@204602.4929 3dhdqm1t2608ld11k6do241fjm Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20240825@204602.4944 3dhdqm1t2608ld11k6do241fjm Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240825@204602.5074 3dhdqm1t2608ld11k6do241fjm Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240825@204602.5091 3dhdqm1t2608ld11k6do241fjm Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240825@204602.5109 3dhdqm1t2608ld11k6do241fjm Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20240825@204602.5128 3dhdqm1t2608ld11k6do241fjm Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut66cb85961166cb89fa78' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20240825@204602.5373 3dhdqm1t2608ld11k6do241fjm Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240825@204602.5400 3dhdqm1t2608ld11k6do241fjm Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20240825@204602.5442 3dhdqm1t2608ld11k6do241fjm Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20240825@204602.5457 3dhdqm1t2608ld11k6do241fjm Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20240825@204602.5471 3dhdqm1t2608ld11k6do241fjm Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20240825@204602.5484 3dhdqm1t2608ld11k6do241fjm Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20240825@204602.5496 3dhdqm1t2608ld11k6do241fjm Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20240825@204602.5508 3dhdqm1t2608ld11k6do241fjm Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20240825@204602.5521 3dhdqm1t2608ld11k6do241fjm Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut66cb85961166cb89fa78',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20240825@204602.5876 3dhdqm1t2608ld11k6do241fjm Query : select top 1 fno valor from wsftdata order by fno desc
20240825@204602.5904 3dhdqm1t2608ld11k6do241fjm Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240825@204602.5926 3dhdqm1t2608ld11k6do241fjm Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20240825@204602.5957 3dhdqm1t2608ld11k6do241fjm Query : select 'normal' from dummy
20240825@204602.5975 3dhdqm1t2608ld11k6do241fjm Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut66cb85961166cb89fa78',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',476,100053,0,'2024-08-25',39,'euro',0,0,2024 ,?,?)
20240825@204602.6381 3dhdqm1t2608ld11k6do241fjm Query : use flama_phc
20240825@204602.6385 3dhdqm1t2608ld11k6do241fjm Query : select st.usalote valor from st where st.ref = '324.736.00.01'
20240825@204602.6409 3dhdqm1t2608ld11k6do241fjm Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.736.00.01'
20240825@204602.6432 3dhdqm1t2608ld11k6do241fjm Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240825@204602.8380 3dhdqm1t2608ld11k6do241fjm Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240825@204602.8407 3dhdqm1t2608ld11k6do241fjm Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240825@204602.8425 3dhdqm1t2608ld11k6do241fjm Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240825@204602.8438 3dhdqm1t2608ld11k6do241fjm Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240825@204602.8451 3dhdqm1t2608ld11k6do241fjm Query : select sestamp valor from se where ref ='324.736.00.01' and lote = 'r2400239300a'
20240825@204602.8465 3dhdqm1t2608ld11k6do241fjm Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240825@204602.8480 3dhdqm1t2608ld11k6do241fjm Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240825@204602.8494 3dhdqm1t2608ld11k6do241fjm Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66cb89941066cb89face','aut66cb85961166cb89fa78' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240825@204602.8499 3dhdqm1t2608ld11k6do241fjm Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240825@204602.8515 3dhdqm1t2608ld11k6do241fjm Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240825@204602.8547 3dhdqm1t2608ld11k6do241fjm Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66cb89941066cb89face',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',12.000 ,'aut66cb85961166cb89fa78' ,0,0 ,2,23.00,10000,?,?,?,?,?)
20240825@204602.9969 3dhdqm1t2608ld11k6do241fjm Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut66cb85961166cb89fa78','2405542','wait',39,'adm09112754980.682000002')
20240825@204603.5000 3dhdqm1t2608ld11k6do241fjm Query : use flama_phc
20240825@204603.5300 3dhdqm1t2608ld11k6do241fjm Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240825@204603.8400 3dhdqm1t2608ld11k6do241fjm Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1676';
20240825@204603.1130 3dhdqm1t2608ld11k6do241fjm Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1676';
20240825@204603.1530 3dhdqm1t2608ld11k6do241fjm Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1676';
20240825@204603.1780 3dhdqm1t2608ld11k6do241fjm Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1676';
20240825@204603.7680 euolnr6mvfq7nhrge5pb7h6r6s Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240825@204603.7800 euolnr6mvfq7nhrge5pb7h6r6s Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240825@204603.8390 euolnr6mvfq7nhrge5pb7h6r6s Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1677';
20240825@204603.8990 euolnr6mvfq7nhrge5pb7h6r6s Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1677';
20240825@204603.9680 euolnr6mvfq7nhrge5pb7h6r6s Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1677';
20240825@204603.9960 euolnr6mvfq7nhrge5pb7h6r6s Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1677';
20240825@204603.1046 euolnr6mvfq7nhrge5pb7h6r6s Query : use flama_phc
20240825@204603.1050 euolnr6mvfq7nhrge5pb7h6r6s Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240825@204603.1116 euolnr6mvfq7nhrge5pb7h6r6s Query : use flama_phc
20240825@204603.1120 euolnr6mvfq7nhrge5pb7h6r6s Query : select no, estab,szadrsdesc from szadrs where u_coddest=1328
20240825@204603.1218 euolnr6mvfq7nhrge5pb7h6r6s Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '304.421.00.04'
20240825@204603.1241 euolnr6mvfq7nhrge5pb7h6r6s Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2055 and bo.obrano = 2405546 and bi.ref ='304.421.00.04' and bi.lordem =1
20240825@204603.1619 euolnr6mvfq7nhrge5pb7h6r6s Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '304.422.00.07'
20240825@204603.1645 euolnr6mvfq7nhrge5pb7h6r6s Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2055 and bo.obrano = 2405546 and bi.ref ='304.422.00.07' and bi.lordem =3
20240825@204603.2019 euolnr6mvfq7nhrge5pb7h6r6s Query : use flama_phc
20240825@204603.2023 euolnr6mvfq7nhrge5pb7h6r6s Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20240825@204603.2059 euolnr6mvfq7nhrge5pb7h6r6s Query : use flama_phc
20240825@204603.2062 euolnr6mvfq7nhrge5pb7h6r6s Query : select top 1 1 valor from td where td.ndoc = 39
20240825@204603.2094 euolnr6mvfq7nhrge5pb7h6r6s Query : use flama_phc
20240825@204603.2098 euolnr6mvfq7nhrge5pb7h6r6s 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')
20240825@204603.2131 euolnr6mvfq7nhrge5pb7h6r6s 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
20240825@204603.2168 euolnr6mvfq7nhrge5pb7h6r6s Query : use flama_phc
20240825@204603.2172 euolnr6mvfq7nhrge5pb7h6r6s Query : select top 1 ~inactivo valor from cl where no = '101621' and estab = 0 order by inactivo desc
20240825@204603.2207 euolnr6mvfq7nhrge5pb7h6r6s Query : use flama_phc
20240825@204603.2210 euolnr6mvfq7nhrge5pb7h6r6s Query : select top 1 tipodoc,regrd from td where ndoc = 39
20240825@204603.2244 euolnr6mvfq7nhrge5pb7h6r6s Query : use flama_phc
20240825@204603.2248 euolnr6mvfq7nhrge5pb7h6r6s Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20240825@204603.2292 euolnr6mvfq7nhrge5pb7h6r6s Query : use flama_phc
20240825@204603.2296 euolnr6mvfq7nhrge5pb7h6r6s Query : select szadrsstamp valor from szadrs where szadrsdesc='j.o.m.,lda - mealhada'
20240825@204603.2347 euolnr6mvfq7nhrge5pb7h6r6s Query : use flama_phc
20240825@204603.2350 euolnr6mvfq7nhrge5pb7h6r6s Query : select 1 valor from td where ndoc = 39
20240825@204603.2365 euolnr6mvfq7nhrge5pb7h6r6s Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20240825@204603.2382 euolnr6mvfq7nhrge5pb7h6r6s Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240825@204603.2400 euolnr6mvfq7nhrge5pb7h6r6s Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20240825@204603.2424 euolnr6mvfq7nhrge5pb7h6r6s Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240825@204603.2443 euolnr6mvfq7nhrge5pb7h6r6s Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20240825@204603.2474 euolnr6mvfq7nhrge5pb7h6r6s Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240825@204603.2489 euolnr6mvfq7nhrge5pb7h6r6s Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20240825@204603.2503 euolnr6mvfq7nhrge5pb7h6r6s Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240825@204603.2572 euolnr6mvfq7nhrge5pb7h6r6s Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240825@204603.2586 euolnr6mvfq7nhrge5pb7h6r6s Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240825@204603.2602 euolnr6mvfq7nhrge5pb7h6r6s Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20240825@204603.2619 euolnr6mvfq7nhrge5pb7h6r6s Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut66cb85317466cb89fb3d' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20240825@204603.2814 euolnr6mvfq7nhrge5pb7h6r6s Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240825@204603.2835 euolnr6mvfq7nhrge5pb7h6r6s Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20240825@204603.2870 euolnr6mvfq7nhrge5pb7h6r6s Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20240825@204603.2884 euolnr6mvfq7nhrge5pb7h6r6s Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20240825@204603.2896 euolnr6mvfq7nhrge5pb7h6r6s Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20240825@204603.2909 euolnr6mvfq7nhrge5pb7h6r6s Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20240825@204603.2920 euolnr6mvfq7nhrge5pb7h6r6s Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20240825@204603.2933 euolnr6mvfq7nhrge5pb7h6r6s Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20240825@204603.2944 euolnr6mvfq7nhrge5pb7h6r6s Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut66cb85317466cb89fb3d',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20240825@204603.3389 euolnr6mvfq7nhrge5pb7h6r6s Query : select top 1 fno valor from wsftdata order by fno desc
20240825@204603.3413 euolnr6mvfq7nhrge5pb7h6r6s Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240825@204603.3435 euolnr6mvfq7nhrge5pb7h6r6s Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20240825@204603.3460 euolnr6mvfq7nhrge5pb7h6r6s Query : select 'normal' from dummy
20240825@204603.3476 euolnr6mvfq7nhrge5pb7h6r6s Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut66cb85317466cb89fb3d',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',477,101621,0,'2024-08-25',39,'euro',0,0,2024 ,?,?)
20240825@204603.3791 euolnr6mvfq7nhrge5pb7h6r6s Query : use flama_phc
20240825@204603.3794 euolnr6mvfq7nhrge5pb7h6r6s Query : select st.usalote valor from st where st.ref = '304.421.00.04'
20240825@204603.3816 euolnr6mvfq7nhrge5pb7h6r6s Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '304.421.00.04'
20240825@204603.3830 euolnr6mvfq7nhrge5pb7h6r6s Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240825@204603.3846 euolnr6mvfq7nhrge5pb7h6r6s Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240825@204603.3871 euolnr6mvfq7nhrge5pb7h6r6s Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240825@204603.3889 euolnr6mvfq7nhrge5pb7h6r6s Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240825@204603.4008 euolnr6mvfq7nhrge5pb7h6r6s Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240825@204603.4068 euolnr6mvfq7nhrge5pb7h6r6s Query : select sestamp valor from se where ref ='304.421.00.04' and lote = '240896'
20240825@204603.4110 euolnr6mvfq7nhrge5pb7h6r6s Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240825@204603.4151 euolnr6mvfq7nhrge5pb7h6r6s Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240825@204603.4187 euolnr6mvfq7nhrge5pb7h6r6s Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66cb83828266cb89fb64','aut66cb85317466cb89fb3d' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240825@204603.4197 euolnr6mvfq7nhrge5pb7h6r6s Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240825@204603.4441 euolnr6mvfq7nhrge5pb7h6r6s Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240825@204603.4570 euolnr6mvfq7nhrge5pb7h6r6s Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66cb83828266cb89fb64',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',12.000 ,'aut66cb85317466cb89fb3d' ,0,0 ,2,23.00,10000,?,?,?,?,?)
20240825@204603.4942 euolnr6mvfq7nhrge5pb7h6r6s Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240825@204603.5255 euolnr6mvfq7nhrge5pb7h6r6s Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240825@204603.5407 euolnr6mvfq7nhrge5pb7h6r6s Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240825@204603.5439 euolnr6mvfq7nhrge5pb7h6r6s Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240825@204603.5451 euolnr6mvfq7nhrge5pb7h6r6s Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240825@204603.5463 euolnr6mvfq7nhrge5pb7h6r6s Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240825@204603.5479 euolnr6mvfq7nhrge5pb7h6r6s Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240825@204603.5491 euolnr6mvfq7nhrge5pb7h6r6s Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66cb83448266cb89fb85','aut66cb85317466cb89fb3d' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240825@204603.5496 euolnr6mvfq7nhrge5pb7h6r6s Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240825@204603.5510 euolnr6mvfq7nhrge5pb7h6r6s Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240825@204603.5538 euolnr6mvfq7nhrge5pb7h6r6s Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66cb83448266cb89fb85',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66cb85317466cb89fb3d' ,0,0 ,2,23.00,20000,?,?,?)
20240825@204603.5817 euolnr6mvfq7nhrge5pb7h6r6s Query : use flama_phc
20240825@204603.5820 euolnr6mvfq7nhrge5pb7h6r6s Query : select st.usalote valor from st where st.ref = '304.422.00.07'
20240825@204603.5839 euolnr6mvfq7nhrge5pb7h6r6s Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '304.422.00.07'
20240825@204603.5853 euolnr6mvfq7nhrge5pb7h6r6s Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240825@204603.5869 euolnr6mvfq7nhrge5pb7h6r6s Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240825@204603.5895 euolnr6mvfq7nhrge5pb7h6r6s Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240825@204603.5910 euolnr6mvfq7nhrge5pb7h6r6s Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240825@204603.5919 euolnr6mvfq7nhrge5pb7h6r6s Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240825@204603.5933 euolnr6mvfq7nhrge5pb7h6r6s Query : select sestamp valor from se where ref ='304.422.00.07' and lote = '240647'
20240825@204603.5945 euolnr6mvfq7nhrge5pb7h6r6s Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240825@204603.5959 euolnr6mvfq7nhrge5pb7h6r6s Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240825@204603.5971 euolnr6mvfq7nhrge5pb7h6r6s Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66cb80890866cb89fb91','aut66cb85317466cb89fb3d' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240825@204603.5975 euolnr6mvfq7nhrge5pb7h6r6s Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240825@204603.5989 euolnr6mvfq7nhrge5pb7h6r6s Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240825@204603.6018 euolnr6mvfq7nhrge5pb7h6r6s Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66cb80890866cb89fb91',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',12.000 ,'aut66cb85317466cb89fb3d' ,0,0 ,2,23.00,40000,?,?,?,?,?)
20240825@204603.6542 euolnr6mvfq7nhrge5pb7h6r6s Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut66cb85317466cb89fb3d','2405546','wait',39,'adm09112754980.682000002')
20240825@204603.6696 euolnr6mvfq7nhrge5pb7h6r6s Query : use flama_phc
20240825@204603.6699 euolnr6mvfq7nhrge5pb7h6r6s Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240825@204603.6729 euolnr6mvfq7nhrge5pb7h6r6s Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1677';
20240825@204603.6757 euolnr6mvfq7nhrge5pb7h6r6s Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1677';
20240825@204603.6794 euolnr6mvfq7nhrge5pb7h6r6s Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1677';
20240825@204603.6817 euolnr6mvfq7nhrge5pb7h6r6s Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1677';

20240826@155517.2803 g7o21v2kkehjc0so25vl91bdsa Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1678';
20240826@155517.2906 g7o21v2kkehjc0so25vl91bdsa Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1678';
20240826@155517.2940 g7o21v2kkehjc0so25vl91bdsa Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1678';
20240826@155517.2995 g7o21v2kkehjc0so25vl91bdsa Query : use flama_phc
20240826@155517.2999 g7o21v2kkehjc0so25vl91bdsa Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240826@155517.3131 g7o21v2kkehjc0so25vl91bdsa Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.692.00.01'
20240826@155517.3274 g7o21v2kkehjc0so25vl91bdsa 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 = 2400211 and bi.ref ='324.692.00.01' and bi.lordem =20000
20240826@155517.3653 g7o21v2kkehjc0so25vl91bdsa 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 = 'cps24022736412,174000002 ' 
20240826@155517.4096 g7o21v2kkehjc0so25vl91bdsa Query : use flama_phc
20240826@155517.4100 g7o21v2kkehjc0so25vl91bdsa Query : select top 1 1 valor from ts where ts.ndos = 61
20240826@155517.4233 g7o21v2kkehjc0so25vl91bdsa Query : use flama_phc
20240826@155517.4238 g7o21v2kkehjc0so25vl91bdsa 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')
20240826@155517.4336 g7o21v2kkehjc0so25vl91bdsa 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
20240826@155517.4543 g7o21v2kkehjc0so25vl91bdsa Query : use flama_phc
20240826@155517.4546 g7o21v2kkehjc0so25vl91bdsa Query : select top 1 ~inactivo valor from fl where no = '202532' and estab = 00 order by inactivo desc
20240826@155517.4697 g7o21v2kkehjc0so25vl91bdsa Query : use flama_phc
20240826@155517.4701 g7o21v2kkehjc0so25vl91bdsa Query : select 1 valor from ts where ndos = 61
20240826@155517.4791 g7o21v2kkehjc0so25vl91bdsa Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240826@155517.5349 g7o21v2kkehjc0so25vl91bdsa Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bo' and documentnumber = 61
20240826@155517.5424 g7o21v2kkehjc0so25vl91bdsa Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240826@155517.5449 g7o21v2kkehjc0so25vl91bdsa Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bo2' and documentnumber = 61
20240826@155517.5462 g7o21v2kkehjc0so25vl91bdsa Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240826@155517.5490 g7o21v2kkehjc0so25vl91bdsa Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bo3' and documentnumber = 61
20240826@155517.5504 g7o21v2kkehjc0so25vl91bdsa 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
20240826@155517.5704 g7o21v2kkehjc0so25vl91bdsa Query : select top 1 bo.obrano valor from bo bo where bo.ndos = 61 and boano=2024 order by obrano desc
20240826@155517.5830 g7o21v2kkehjc0so25vl91bdsa Query : select top 1 bo.obrano valor from bo bo where bo.ndos = 61 and boano=2024 order by obrano desc
20240826@155517.5860 g7o21v2kkehjc0so25vl91bdsa Query : use flama_phc
20240826@155517.5869 g7o21v2kkehjc0so25vl91bdsa Query : select top 1 no,estab,nome, morada, local,codpost,ncont,pncont,pais,inactivo,motiseimp,codmotiseimp from fl where no='202532' and estab=00
20240826@155517.5988 g7o21v2kkehjc0so25vl91bdsa Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240826@155517.6008 g7o21v2kkehjc0so25vl91bdsa Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bo3' and documentnumber = 61
20240826@155517.6053 g7o21v2kkehjc0so25vl91bdsa Query : insert into bo3 (bo3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66cc98398866cc97558f',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut')
20240826@155517.6129 g7o21v2kkehjc0so25vl91bdsa Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240826@155517.6172 g7o21v2kkehjc0so25vl91bdsa Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bo2' and documentnumber = 61
20240826@155517.6187 g7o21v2kkehjc0so25vl91bdsa Query : insert into bo2 (bo2stamp, tiposaft, idserie,cambio,cambiofixo,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66cc98398866cc97558f','--','bo',1.0944466963923794081 ,1,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut')
20240826@155517.6408 g7o21v2kkehjc0so25vl91bdsa Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240826@155517.6432 g7o21v2kkehjc0so25vl91bdsa Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bo' and documentnumber = 61
20240826@155517.6449 g7o21v2kkehjc0so25vl91bdsa 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 ('aut66cc98398866cc97558f','guia r. fornecedor','2024-08-26',61,2402337,?,?,?,?,?,?,?,?,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')
20240826@155517.7009 g7o21v2kkehjc0so25vl91bdsa Query : use flama_phc
20240826@155517.7014 g7o21v2kkehjc0so25vl91bdsa Query : select st.usalote valor from st where st.ref = '324.692.00.01'
20240826@155517.7168 g7o21v2kkehjc0so25vl91bdsa Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.692.00.01'
20240826@155517.7343 g7o21v2kkehjc0so25vl91bdsa Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240826@155517.7362 g7o21v2kkehjc0so25vl91bdsa Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 61
20240826@155517.7382 g7o21v2kkehjc0so25vl91bdsa Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240826@155517.7408 g7o21v2kkehjc0so25vl91bdsa Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 61
20240826@155517.7419 g7o21v2kkehjc0so25vl91bdsa Query : select sestamp valor from se where ref ='324.692.00.01' and lote = 'r2400211200a'
20240826@155517.7484 g7o21v2kkehjc0so25vl91bdsa Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240826@155517.7504 g7o21v2kkehjc0so25vl91bdsa Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'se' and documentnumber = 0
20240826@155517.7515 g7o21v2kkehjc0so25vl91bdsa Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240826@155517.7532 g7o21v2kkehjc0so25vl91bdsa Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'se' and documentnumber = 0
20240826@155517.7547 g7o21v2kkehjc0so25vl91bdsa Query : insert into se (sestamp,ref, lote, data,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66cc94359466cc9755b7',?,?,'20240826',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut;','aut;')
20240826@155517.8168 g7o21v2kkehjc0so25vl91bdsa Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240826@155517.8216 g7o21v2kkehjc0so25vl91bdsa Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240826@155517.8270 g7o21v2kkehjc0so25vl91bdsa Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 61
20240826@155517.8319 g7o21v2kkehjc0so25vl91bdsa Query : insert into bi2 (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut66cc98032866cc9755c8','aut66cc98398866cc97558f',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 = 'aut66cc98398866cc97558f'
20240826@155517.8554 g7o21v2kkehjc0so25vl91bdsa Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240826@155517.8581 g7o21v2kkehjc0so25vl91bdsa Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 61
20240826@155517.8604 g7o21v2kkehjc0so25vl91bdsa 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 'aut66cc98032866cc9755c8',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut',bo.obrano, 1044, 1044*.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 ,24.67,24.67*200.48,24.67,24.67*200.48 ,0,0,'un ',' ' ,bo.marcada,1 ,24.67*1044,24.67*1044*200.48 ,31.029000,31.029000*200.48 ,31.029000,31.029000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,24.67,24.67*200.48,24.67*1044,24.67*1044*200.48,'cps24022736412,174000002 ',27,27*1044,27,27*1044,?,?,?,4 from bo bo where bo.bostamp = 'aut66cc98398866cc97558f'
20240826@155525.4050 g7o21v2kkehjc0so25vl91bdsa Query : use flama_phc
20240826@155525.4110 g7o21v2kkehjc0so25vl91bdsa Query : declare @bostamp varchar(25) = 'aut66cc98398866cc97558f' ,@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 
20240826@155539.3672 g7o21v2kkehjc0so25vl91bdsa Query : use flama_phc
20240826@155539.3676 g7o21v2kkehjc0so25vl91bdsa Query : select 1 valor from bo where bo.bostamp = 'aut66cc98398866cc97558f'
20240826@155539.3999 g7o21v2kkehjc0so25vl91bdsa 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) = 'aut66cc98398866cc97558f' 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 
20240826@155539.7821 g7o21v2kkehjc0so25vl91bdsa Query : use flama_phc
20240826@155539.7825 g7o21v2kkehjc0so25vl91bdsa Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240826@155539.7878 g7o21v2kkehjc0so25vl91bdsa Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1678';
20240826@155539.7912 g7o21v2kkehjc0so25vl91bdsa Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1678';

20240826@183617.9120 9giprp5d0rusg1lijvtafoeiii Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1679';
20240826@183617.9179 9giprp5d0rusg1lijvtafoeiii Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1679';
20240826@183617.9201 9giprp5d0rusg1lijvtafoeiii Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1679';
20240826@183617.9259 9giprp5d0rusg1lijvtafoeiii Query : use flama_phc
20240826@183617.9262 9giprp5d0rusg1lijvtafoeiii Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240826@183617.9429 9giprp5d0rusg1lijvtafoeiii Query : use flama_phc
20240826@183617.9433 9giprp5d0rusg1lijvtafoeiii Query : select no, estab,szadrsdesc from szadrs where u_coddest=8748
20240826@183617.9539 9giprp5d0rusg1lijvtafoeiii Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.4970.00.1'
20240826@183617.9708 9giprp5d0rusg1lijvtafoeiii Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2055 and bo.obrano = 2405547 and bi.ref ='324.4970.00.1' and bi.lordem =1
20240826@183618.5500 9giprp5d0rusg1lijvtafoeiii Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.727.00.01'
20240826@183618.2120 9giprp5d0rusg1lijvtafoeiii Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2055 and bo.obrano = 2405547 and bi.ref ='324.727.00.01' and bi.lordem =2
20240826@183618.5450 9giprp5d0rusg1lijvtafoeiii Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '304.4320.00.1'
20240826@183618.7430 9giprp5d0rusg1lijvtafoeiii Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2055 and bo.obrano = 2405547 and bi.ref ='304.4320.00.1' and bi.lordem =3
20240826@183618.1094 9giprp5d0rusg1lijvtafoeiii Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.4990.00.1'
20240826@183618.1251 9giprp5d0rusg1lijvtafoeiii Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2055 and bo.obrano = 2405547 and bi.ref ='324.4990.00.1' and bi.lordem =4
20240826@183618.1591 9giprp5d0rusg1lijvtafoeiii Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.4421.00.1'
20240826@183618.1756 9giprp5d0rusg1lijvtafoeiii Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2055 and bo.obrano = 2405547 and bi.ref ='324.4421.00.1' and bi.lordem =5
20240826@183618.2118 9giprp5d0rusg1lijvtafoeiii Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.4902.00.1'
20240826@183618.2285 9giprp5d0rusg1lijvtafoeiii Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2055 and bo.obrano = 2405547 and bi.ref ='324.4902.00.1' and bi.lordem =6
20240826@183618.2643 9giprp5d0rusg1lijvtafoeiii Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1608.00.1'
20240826@183618.2823 9giprp5d0rusg1lijvtafoeiii Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2055 and bo.obrano = 2405547 and bi.ref ='324.1608.00.1' and bi.lordem =7
20240826@183618.4046 9giprp5d0rusg1lijvtafoeiii Query : use flama_phc
20240826@183618.4088 9giprp5d0rusg1lijvtafoeiii Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20240826@183618.4610 9giprp5d0rusg1lijvtafoeiii Query : use flama_phc
20240826@183618.4613 9giprp5d0rusg1lijvtafoeiii Query : select top 1 1 valor from td where td.ndoc = 39
20240826@183618.4725 9giprp5d0rusg1lijvtafoeiii Query : use flama_phc
20240826@183618.4728 9giprp5d0rusg1lijvtafoeiii 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')
20240826@183618.4841 9giprp5d0rusg1lijvtafoeiii 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
20240826@183618.5024 9giprp5d0rusg1lijvtafoeiii Query : use flama_phc
20240826@183618.5027 9giprp5d0rusg1lijvtafoeiii Query : select top 1 ~inactivo valor from cl where no = '102253' and estab = 0 order by inactivo desc
20240826@183618.5150 9giprp5d0rusg1lijvtafoeiii Query : use flama_phc
20240826@183618.5153 9giprp5d0rusg1lijvtafoeiii Query : select top 1 tipodoc,regrd from td where ndoc = 39
20240826@183618.5240 9giprp5d0rusg1lijvtafoeiii Query : use flama_phc
20240826@183618.5243 9giprp5d0rusg1lijvtafoeiii Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20240826@183618.5312 9giprp5d0rusg1lijvtafoeiii Query : use flama_phc
20240826@183618.5315 9giprp5d0rusg1lijvtafoeiii Query : select szadrsstamp valor from szadrs where szadrsdesc='fnac - entrega'
20240826@183618.5361 9giprp5d0rusg1lijvtafoeiii Query : use flama_phc
20240826@183618.5365 9giprp5d0rusg1lijvtafoeiii Query : select 1 valor from td where ndoc = 39
20240826@183618.5432 9giprp5d0rusg1lijvtafoeiii Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20240826@183618.5491 9giprp5d0rusg1lijvtafoeiii Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240826@183618.5793 9giprp5d0rusg1lijvtafoeiii Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20240826@183618.5873 9giprp5d0rusg1lijvtafoeiii Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240826@183618.5890 9giprp5d0rusg1lijvtafoeiii Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20240826@183618.5934 9giprp5d0rusg1lijvtafoeiii Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240826@183618.5950 9giprp5d0rusg1lijvtafoeiii Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20240826@183618.5965 9giprp5d0rusg1lijvtafoeiii Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240826@183618.6183 9giprp5d0rusg1lijvtafoeiii Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240826@183618.6314 9giprp5d0rusg1lijvtafoeiii Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240826@183618.6332 9giprp5d0rusg1lijvtafoeiii Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20240826@183618.6379 9giprp5d0rusg1lijvtafoeiii Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut66ccb4056666ccbd1291' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20240826@183618.6677 9giprp5d0rusg1lijvtafoeiii Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240826@183618.6694 9giprp5d0rusg1lijvtafoeiii Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20240826@183618.6731 9giprp5d0rusg1lijvtafoeiii Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20240826@183618.6830 9giprp5d0rusg1lijvtafoeiii Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20240826@183618.6939 9giprp5d0rusg1lijvtafoeiii Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20240826@183618.7029 9giprp5d0rusg1lijvtafoeiii Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20240826@183618.7109 9giprp5d0rusg1lijvtafoeiii Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20240826@183618.7184 9giprp5d0rusg1lijvtafoeiii Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20240826@183618.7268 9giprp5d0rusg1lijvtafoeiii Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut66ccb4056666ccbd1291',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20240826@183618.7728 9giprp5d0rusg1lijvtafoeiii Query : select top 1 fno valor from wsftdata order by fno desc
20240826@183618.7901 9giprp5d0rusg1lijvtafoeiii Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240826@183618.7918 9giprp5d0rusg1lijvtafoeiii Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20240826@183618.7944 9giprp5d0rusg1lijvtafoeiii Query : select 'normal' from dummy
20240826@183618.7992 9giprp5d0rusg1lijvtafoeiii Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut66ccb4056666ccbd1291',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',478,102253,0,'2024-08-26',39,'euro',0,0,2024 ,?,?)
20240826@183618.8584 9giprp5d0rusg1lijvtafoeiii Query : use flama_phc
20240826@183618.8587 9giprp5d0rusg1lijvtafoeiii Query : select st.usalote valor from st where st.ref = '324.4970.00.1'
20240826@183618.9749 9giprp5d0rusg1lijvtafoeiii Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.4970.00.1'
20240826@183618.9954 9giprp5d0rusg1lijvtafoeiii Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240826@183618.9971 9giprp5d0rusg1lijvtafoeiii Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240826@183618.9999 9giprp5d0rusg1lijvtafoeiii Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240826@183619.1500 9giprp5d0rusg1lijvtafoeiii Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240826@183619.2600 9giprp5d0rusg1lijvtafoeiii Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240826@183619.6700 9giprp5d0rusg1lijvtafoeiii Query : select sestamp valor from se where ref ='324.4970.00.1' and lote = 'r2400205200a'
20240826@183619.1330 9giprp5d0rusg1lijvtafoeiii Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240826@183619.1560 9giprp5d0rusg1lijvtafoeiii Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240826@183619.1700 9giprp5d0rusg1lijvtafoeiii Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66ccb9793366ccbd1303','aut66ccb4056666ccbd1291' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240826@183619.2210 9giprp5d0rusg1lijvtafoeiii Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240826@183619.2360 9giprp5d0rusg1lijvtafoeiii Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240826@183619.2700 9giprp5d0rusg1lijvtafoeiii Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66ccb9793366ccbd1303',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',4.000 ,'aut66ccb4056666ccbd1291' ,0,0 ,2,23.00,10000,?,?,?,?,?)
20240826@183619.1791 9giprp5d0rusg1lijvtafoeiii Query : use flama_phc
20240826@183619.1794 9giprp5d0rusg1lijvtafoeiii Query : select st.usalote valor from st where st.ref = '324.727.00.01'
20240826@183619.1818 9giprp5d0rusg1lijvtafoeiii Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.727.00.01'
20240826@183619.1995 9giprp5d0rusg1lijvtafoeiii Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240826@183619.2012 9giprp5d0rusg1lijvtafoeiii Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240826@183619.2039 9giprp5d0rusg1lijvtafoeiii Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240826@183619.2053 9giprp5d0rusg1lijvtafoeiii Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240826@183619.2071 9giprp5d0rusg1lijvtafoeiii Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240826@183619.2083 9giprp5d0rusg1lijvtafoeiii Query : select sestamp valor from se where ref ='324.727.00.01' and lote = 'r2300534200a'
20240826@183619.2107 9giprp5d0rusg1lijvtafoeiii Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240826@183619.2121 9giprp5d0rusg1lijvtafoeiii Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240826@183619.2135 9giprp5d0rusg1lijvtafoeiii Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66ccb3394966ccbd1333','aut66ccb4056666ccbd1291' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240826@183619.2139 9giprp5d0rusg1lijvtafoeiii Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240826@183619.2153 9giprp5d0rusg1lijvtafoeiii Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240826@183619.2181 9giprp5d0rusg1lijvtafoeiii Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66ccb3394966ccbd1333',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',8.000 ,'aut66ccb4056666ccbd1291' ,0,0 ,2,23.00,20000,?,?,?,?,?)
20240826@183619.2442 9giprp5d0rusg1lijvtafoeiii Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240826@183619.2458 9giprp5d0rusg1lijvtafoeiii Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240826@183619.2483 9giprp5d0rusg1lijvtafoeiii Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240826@183619.2498 9giprp5d0rusg1lijvtafoeiii Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240826@183619.2506 9giprp5d0rusg1lijvtafoeiii Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240826@183619.2519 9giprp5d0rusg1lijvtafoeiii Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240826@183619.2533 9giprp5d0rusg1lijvtafoeiii Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240826@183619.2545 9giprp5d0rusg1lijvtafoeiii Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66ccb5615766ccbd133d','aut66ccb4056666ccbd1291' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240826@183619.2548 9giprp5d0rusg1lijvtafoeiii Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240826@183619.2563 9giprp5d0rusg1lijvtafoeiii Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240826@183619.2590 9giprp5d0rusg1lijvtafoeiii Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66ccb5615766ccbd133d',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66ccb4056666ccbd1291' ,0,0 ,2,23.00,30000,?,?,?)
20240826@183619.2927 9giprp5d0rusg1lijvtafoeiii Query : use flama_phc
20240826@183619.2930 9giprp5d0rusg1lijvtafoeiii Query : select st.usalote valor from st where st.ref = '304.4320.00.1'
20240826@183619.2949 9giprp5d0rusg1lijvtafoeiii Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '304.4320.00.1'
20240826@183619.3097 9giprp5d0rusg1lijvtafoeiii Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240826@183619.3114 9giprp5d0rusg1lijvtafoeiii Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240826@183619.3139 9giprp5d0rusg1lijvtafoeiii Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240826@183619.3153 9giprp5d0rusg1lijvtafoeiii Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240826@183619.3161 9giprp5d0rusg1lijvtafoeiii Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240826@183619.3174 9giprp5d0rusg1lijvtafoeiii Query : select sestamp valor from se where ref ='304.4320.00.1' and lote = '240897'
20240826@183619.3203 9giprp5d0rusg1lijvtafoeiii Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240826@183619.3219 9giprp5d0rusg1lijvtafoeiii Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240826@183619.3231 9giprp5d0rusg1lijvtafoeiii Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66ccb7332466ccbd134e','aut66ccb4056666ccbd1291' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240826@183619.3235 9giprp5d0rusg1lijvtafoeiii Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240826@183619.3250 9giprp5d0rusg1lijvtafoeiii Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240826@183619.3280 9giprp5d0rusg1lijvtafoeiii Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66ccb7332466ccbd134e',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',12.000 ,'aut66ccb4056666ccbd1291' ,0,0 ,2,23.00,50000,?,?,?,?,?)
20240826@183619.3541 9giprp5d0rusg1lijvtafoeiii Query : use flama_phc
20240826@183619.3544 9giprp5d0rusg1lijvtafoeiii Query : select st.usalote valor from st where st.ref = '324.4990.00.1'
20240826@183619.3563 9giprp5d0rusg1lijvtafoeiii Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.4990.00.1'
20240826@183619.3717 9giprp5d0rusg1lijvtafoeiii Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240826@183619.3733 9giprp5d0rusg1lijvtafoeiii Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240826@183619.3759 9giprp5d0rusg1lijvtafoeiii Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240826@183619.3775 9giprp5d0rusg1lijvtafoeiii Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240826@183619.3782 9giprp5d0rusg1lijvtafoeiii Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240826@183619.3794 9giprp5d0rusg1lijvtafoeiii Query : select sestamp valor from se where ref ='324.4990.00.1' and lote = 'r2100189200a'
20240826@183619.3832 9giprp5d0rusg1lijvtafoeiii Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240826@183619.3849 9giprp5d0rusg1lijvtafoeiii Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240826@183619.3861 9giprp5d0rusg1lijvtafoeiii Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66ccb1521766ccbd135d','aut66ccb4056666ccbd1291' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240826@183619.3866 9giprp5d0rusg1lijvtafoeiii Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240826@183619.3884 9giprp5d0rusg1lijvtafoeiii Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240826@183619.3914 9giprp5d0rusg1lijvtafoeiii Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66ccb1521766ccbd135d',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',6.000 ,'aut66ccb4056666ccbd1291' ,0,0 ,2,23.00,60000,?,?,?,?,?)
20240826@183619.4204 9giprp5d0rusg1lijvtafoeiii Query : use flama_phc
20240826@183619.4207 9giprp5d0rusg1lijvtafoeiii Query : select st.usalote valor from st where st.ref = '324.4421.00.1'
20240826@183619.4228 9giprp5d0rusg1lijvtafoeiii Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.4421.00.1'
20240826@183619.4420 9giprp5d0rusg1lijvtafoeiii Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240826@183619.4439 9giprp5d0rusg1lijvtafoeiii Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240826@183619.4467 9giprp5d0rusg1lijvtafoeiii Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240826@183619.4484 9giprp5d0rusg1lijvtafoeiii Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240826@183619.4493 9giprp5d0rusg1lijvtafoeiii Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240826@183619.4505 9giprp5d0rusg1lijvtafoeiii Query : select sestamp valor from se where ref ='324.4421.00.1' and lote = 'r2100324100a'
20240826@183619.4532 9giprp5d0rusg1lijvtafoeiii Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240826@183619.4549 9giprp5d0rusg1lijvtafoeiii Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240826@183619.4561 9giprp5d0rusg1lijvtafoeiii Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66ccb4889466ccbd136e','aut66ccb4056666ccbd1291' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240826@183619.4566 9giprp5d0rusg1lijvtafoeiii Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240826@183619.4582 9giprp5d0rusg1lijvtafoeiii Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240826@183619.4613 9giprp5d0rusg1lijvtafoeiii Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66ccb4889466ccbd136e',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',3.000 ,'aut66ccb4056666ccbd1291' ,0,0 ,2,23.00,70000,?,?,?,?,?)
20240826@183619.4947 9giprp5d0rusg1lijvtafoeiii Query : use flama_phc
20240826@183619.4951 9giprp5d0rusg1lijvtafoeiii Query : select st.usalote valor from st where st.ref = '324.4902.00.1'
20240826@183619.5066 9giprp5d0rusg1lijvtafoeiii Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.4902.00.1'
20240826@183619.5440 9giprp5d0rusg1lijvtafoeiii Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240826@183619.5484 9giprp5d0rusg1lijvtafoeiii Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240826@183619.5509 9giprp5d0rusg1lijvtafoeiii Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240826@183619.5525 9giprp5d0rusg1lijvtafoeiii Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240826@183619.5533 9giprp5d0rusg1lijvtafoeiii Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240826@183619.5544 9giprp5d0rusg1lijvtafoeiii Query : select sestamp valor from se where ref ='324.4902.00.1' and lote = 'r2400145200a'
20240826@183619.5565 9giprp5d0rusg1lijvtafoeiii Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240826@183619.5579 9giprp5d0rusg1lijvtafoeiii Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240826@183619.5590 9giprp5d0rusg1lijvtafoeiii Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66ccb2005466ccbd1387','aut66ccb4056666ccbd1291' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240826@183619.5595 9giprp5d0rusg1lijvtafoeiii Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240826@183619.5608 9giprp5d0rusg1lijvtafoeiii Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240826@183619.5634 9giprp5d0rusg1lijvtafoeiii Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66ccb2005466ccbd1387',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',4.000 ,'aut66ccb4056666ccbd1291' ,0,0 ,2,23.00,80000,?,?,?,?,?)
20240826@183619.6169 9giprp5d0rusg1lijvtafoeiii Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240826@183619.6186 9giprp5d0rusg1lijvtafoeiii Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240826@183619.6209 9giprp5d0rusg1lijvtafoeiii Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240826@183619.6275 9giprp5d0rusg1lijvtafoeiii Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240826@183619.6283 9giprp5d0rusg1lijvtafoeiii Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240826@183619.6294 9giprp5d0rusg1lijvtafoeiii Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240826@183619.6308 9giprp5d0rusg1lijvtafoeiii Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240826@183619.6319 9giprp5d0rusg1lijvtafoeiii Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66ccb2064766ccbd1399','aut66ccb4056666ccbd1291' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240826@183619.6323 9giprp5d0rusg1lijvtafoeiii Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240826@183619.6337 9giprp5d0rusg1lijvtafoeiii Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240826@183619.6363 9giprp5d0rusg1lijvtafoeiii Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66ccb2064766ccbd1399',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66ccb4056666ccbd1291' ,0,0 ,2,23.00,90000,?,?,?)
20240826@183619.6646 9giprp5d0rusg1lijvtafoeiii Query : use flama_phc
20240826@183619.6650 9giprp5d0rusg1lijvtafoeiii Query : select st.usalote valor from st where st.ref = '324.1608.00.1'
20240826@183619.6669 9giprp5d0rusg1lijvtafoeiii Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.1608.00.1'
20240826@183619.6818 9giprp5d0rusg1lijvtafoeiii Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240826@183619.6833 9giprp5d0rusg1lijvtafoeiii Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240826@183619.6857 9giprp5d0rusg1lijvtafoeiii Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240826@183619.6990 9giprp5d0rusg1lijvtafoeiii Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240826@183619.7084 9giprp5d0rusg1lijvtafoeiii Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240826@183619.7096 9giprp5d0rusg1lijvtafoeiii Query : select sestamp valor from se where ref ='324.1608.00.1' and lote = 'r2100202100a'
20240826@183619.7117 9giprp5d0rusg1lijvtafoeiii Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240826@183619.7133 9giprp5d0rusg1lijvtafoeiii Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240826@183619.7144 9giprp5d0rusg1lijvtafoeiii Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66ccb1324066ccbd13ad','aut66ccb4056666ccbd1291' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240826@183619.7149 9giprp5d0rusg1lijvtafoeiii Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240826@183619.7163 9giprp5d0rusg1lijvtafoeiii Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240826@183619.7190 9giprp5d0rusg1lijvtafoeiii Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66ccb1324066ccbd13ad',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',6.000 ,'aut66ccb4056666ccbd1291' ,0,0 ,2,23.00,110000,?,?,?,?,?)
20240826@183619.7448 9giprp5d0rusg1lijvtafoeiii Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut66ccb4056666ccbd1291','2405547','wait',39,'adm09112754980.682000002')
20240826@183619.9626 9giprp5d0rusg1lijvtafoeiii Query : use flama_phc
20240826@183619.9629 9giprp5d0rusg1lijvtafoeiii Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240826@183619.9678 9giprp5d0rusg1lijvtafoeiii Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1679';
20240826@183619.9706 9giprp5d0rusg1lijvtafoeiii Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1679';
20240826@183619.9743 9giprp5d0rusg1lijvtafoeiii Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1679';
20240826@183619.9766 9giprp5d0rusg1lijvtafoeiii Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1679';
20240826@183620.3050 qj7flmtttr4ae0ppfgu65i54ia Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240826@183620.3170 qj7flmtttr4ae0ppfgu65i54ia Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240826@183620.3690 qj7flmtttr4ae0ppfgu65i54ia Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1680';
20240826@183620.4210 qj7flmtttr4ae0ppfgu65i54ia Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1680';
20240826@183620.4690 qj7flmtttr4ae0ppfgu65i54ia Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1680';
20240826@183620.4940 qj7flmtttr4ae0ppfgu65i54ia Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1680';
20240826@183620.5380 qj7flmtttr4ae0ppfgu65i54ia Query : use flama_phc
20240826@183620.5410 qj7flmtttr4ae0ppfgu65i54ia Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240826@183620.6100 qj7flmtttr4ae0ppfgu65i54ia Query : use flama_phc
20240826@183620.6130 qj7flmtttr4ae0ppfgu65i54ia Query : select no, estab,szadrsdesc from szadrs where u_coddest=8748
20240826@183620.6510 qj7flmtttr4ae0ppfgu65i54ia Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '304.4320.00.1'
20240826@183620.6710 qj7flmtttr4ae0ppfgu65i54ia Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2055 and bo.obrano = 2405548 and bi.ref ='304.4320.00.1' and bi.lordem =1
20240826@183620.1013 qj7flmtttr4ae0ppfgu65i54ia Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.4990.00.1'
20240826@183620.1033 qj7flmtttr4ae0ppfgu65i54ia Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2055 and bo.obrano = 2405548 and bi.ref ='324.4990.00.1' and bi.lordem =2
20240826@183620.1366 qj7flmtttr4ae0ppfgu65i54ia Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.4990.00.1'
20240826@183620.1387 qj7flmtttr4ae0ppfgu65i54ia Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2055 and bo.obrano = 2405548 and bi.ref ='324.4990.00.1' and bi.lordem =2
20240826@183620.1478 qj7flmtttr4ae0ppfgu65i54ia Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.4970.00.1'
20240826@183620.1735 qj7flmtttr4ae0ppfgu65i54ia Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2055 and bo.obrano = 2405548 and bi.ref ='324.4970.00.1' and bi.lordem =3
20240826@183620.2339 qj7flmtttr4ae0ppfgu65i54ia Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.727.00.01'
20240826@183620.2364 qj7flmtttr4ae0ppfgu65i54ia Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2055 and bo.obrano = 2405548 and bi.ref ='324.727.00.01' and bi.lordem =4
20240826@183620.2999 qj7flmtttr4ae0ppfgu65i54ia Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.4902.00.1'
20240826@183620.3019 qj7flmtttr4ae0ppfgu65i54ia Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2055 and bo.obrano = 2405548 and bi.ref ='324.4902.00.1' and bi.lordem =5
20240826@183620.3373 qj7flmtttr4ae0ppfgu65i54ia Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.691.00.01'
20240826@183620.3543 qj7flmtttr4ae0ppfgu65i54ia Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2055 and bo.obrano = 2405548 and bi.ref ='324.691.00.01' and bi.lordem =6
20240826@183620.3881 qj7flmtttr4ae0ppfgu65i54ia Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.691.00.01'
20240826@183620.3901 qj7flmtttr4ae0ppfgu65i54ia Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2055 and bo.obrano = 2405548 and bi.ref ='324.691.00.01' and bi.lordem =6
20240826@183620.3917 qj7flmtttr4ae0ppfgu65i54ia Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.4960.00.1'
20240826@183620.4087 qj7flmtttr4ae0ppfgu65i54ia Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2055 and bo.obrano = 2405548 and bi.ref ='324.4960.00.1' and bi.lordem =7
20240826@183620.4493 qj7flmtttr4ae0ppfgu65i54ia Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.4906.00.1'
20240826@183620.4667 qj7flmtttr4ae0ppfgu65i54ia Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2055 and bo.obrano = 2405548 and bi.ref ='324.4906.00.1' and bi.lordem =8
20240826@183620.5004 qj7flmtttr4ae0ppfgu65i54ia Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1608.00.1'
20240826@183620.5024 qj7flmtttr4ae0ppfgu65i54ia Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2055 and bo.obrano = 2405548 and bi.ref ='324.1608.00.1' and bi.lordem =9
20240826@183620.5359 qj7flmtttr4ae0ppfgu65i54ia Query : use flama_phc
20240826@183620.5363 qj7flmtttr4ae0ppfgu65i54ia Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20240826@183620.5401 qj7flmtttr4ae0ppfgu65i54ia Query : use flama_phc
20240826@183620.5404 qj7flmtttr4ae0ppfgu65i54ia Query : select top 1 1 valor from td where td.ndoc = 39
20240826@183620.5434 qj7flmtttr4ae0ppfgu65i54ia Query : use flama_phc
20240826@183620.5437 qj7flmtttr4ae0ppfgu65i54ia 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')
20240826@183620.5464 qj7flmtttr4ae0ppfgu65i54ia 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
20240826@183620.5499 qj7flmtttr4ae0ppfgu65i54ia Query : use flama_phc
20240826@183620.5501 qj7flmtttr4ae0ppfgu65i54ia Query : select top 1 ~inactivo valor from cl where no = '102253' and estab = 0 order by inactivo desc
20240826@183620.5531 qj7flmtttr4ae0ppfgu65i54ia Query : use flama_phc
20240826@183620.5534 qj7flmtttr4ae0ppfgu65i54ia Query : select top 1 tipodoc,regrd from td where ndoc = 39
20240826@183620.5563 qj7flmtttr4ae0ppfgu65i54ia Query : use flama_phc
20240826@183620.5566 qj7flmtttr4ae0ppfgu65i54ia Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20240826@183620.5605 qj7flmtttr4ae0ppfgu65i54ia Query : use flama_phc
20240826@183620.5608 qj7flmtttr4ae0ppfgu65i54ia Query : select szadrsstamp valor from szadrs where szadrsdesc='fnac - entrega'
20240826@183620.5653 qj7flmtttr4ae0ppfgu65i54ia Query : use flama_phc
20240826@183620.5655 qj7flmtttr4ae0ppfgu65i54ia Query : select 1 valor from td where ndoc = 39
20240826@183620.5674 qj7flmtttr4ae0ppfgu65i54ia Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20240826@183620.5689 qj7flmtttr4ae0ppfgu65i54ia Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240826@183620.5707 qj7flmtttr4ae0ppfgu65i54ia Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20240826@183620.5725 qj7flmtttr4ae0ppfgu65i54ia Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240826@183620.5740 qj7flmtttr4ae0ppfgu65i54ia Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20240826@183620.5767 qj7flmtttr4ae0ppfgu65i54ia Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240826@183620.5781 qj7flmtttr4ae0ppfgu65i54ia Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20240826@183620.5793 qj7flmtttr4ae0ppfgu65i54ia Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240826@183620.5889 qj7flmtttr4ae0ppfgu65i54ia Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240826@183620.5903 qj7flmtttr4ae0ppfgu65i54ia Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240826@183620.5919 qj7flmtttr4ae0ppfgu65i54ia Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20240826@183620.5934 qj7flmtttr4ae0ppfgu65i54ia Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut66ccb1147966ccbd148d' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20240826@183620.6139 qj7flmtttr4ae0ppfgu65i54ia Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240826@183620.6159 qj7flmtttr4ae0ppfgu65i54ia Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20240826@183620.6195 qj7flmtttr4ae0ppfgu65i54ia Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20240826@183620.6208 qj7flmtttr4ae0ppfgu65i54ia Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20240826@183620.6219 qj7flmtttr4ae0ppfgu65i54ia Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20240826@183620.6230 qj7flmtttr4ae0ppfgu65i54ia Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20240826@183620.6241 qj7flmtttr4ae0ppfgu65i54ia Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20240826@183620.6253 qj7flmtttr4ae0ppfgu65i54ia Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20240826@183620.6264 qj7flmtttr4ae0ppfgu65i54ia Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut66ccb1147966ccbd148d',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20240826@183620.6524 qj7flmtttr4ae0ppfgu65i54ia Query : select top 1 fno valor from wsftdata order by fno desc
20240826@183620.6546 qj7flmtttr4ae0ppfgu65i54ia Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240826@183620.6563 qj7flmtttr4ae0ppfgu65i54ia Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20240826@183620.6585 qj7flmtttr4ae0ppfgu65i54ia Query : select 'normal' from dummy
20240826@183620.6599 qj7flmtttr4ae0ppfgu65i54ia Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut66ccb1147966ccbd148d',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',479,102253,0,'2024-08-26',39,'euro',0,0,2024 ,?,?)
20240826@183620.6899 qj7flmtttr4ae0ppfgu65i54ia Query : use flama_phc
20240826@183620.6902 qj7flmtttr4ae0ppfgu65i54ia Query : select st.usalote valor from st where st.ref = '304.4320.00.1'
20240826@183620.6923 qj7flmtttr4ae0ppfgu65i54ia Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '304.4320.00.1'
20240826@183620.6937 qj7flmtttr4ae0ppfgu65i54ia Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240826@183620.6953 qj7flmtttr4ae0ppfgu65i54ia Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240826@183620.6979 qj7flmtttr4ae0ppfgu65i54ia Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240826@183620.6994 qj7flmtttr4ae0ppfgu65i54ia Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240826@183620.7002 qj7flmtttr4ae0ppfgu65i54ia Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240826@183620.7014 qj7flmtttr4ae0ppfgu65i54ia Query : select sestamp valor from se where ref ='304.4320.00.1' and lote = '240897'
20240826@183620.7026 qj7flmtttr4ae0ppfgu65i54ia Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240826@183620.7040 qj7flmtttr4ae0ppfgu65i54ia Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240826@183620.7051 qj7flmtttr4ae0ppfgu65i54ia Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66ccb9068066ccbd14ab','aut66ccb1147966ccbd148d' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240826@183620.7056 qj7flmtttr4ae0ppfgu65i54ia Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240826@183620.7071 qj7flmtttr4ae0ppfgu65i54ia Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240826@183620.7099 qj7flmtttr4ae0ppfgu65i54ia Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66ccb9068066ccbd14ab',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',4.000 ,'aut66ccb1147966ccbd148d' ,0,0 ,2,23.00,10000,?,?,?,?,?)
20240826@183620.7461 qj7flmtttr4ae0ppfgu65i54ia Query : use flama_phc
20240826@183620.7464 qj7flmtttr4ae0ppfgu65i54ia Query : select st.usalote valor from st where st.ref = '324.4990.00.1'
20240826@183620.7485 qj7flmtttr4ae0ppfgu65i54ia Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.4990.00.1'
20240826@183620.7499 qj7flmtttr4ae0ppfgu65i54ia Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240826@183620.7516 qj7flmtttr4ae0ppfgu65i54ia Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240826@183620.7543 qj7flmtttr4ae0ppfgu65i54ia Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240826@183620.7557 qj7flmtttr4ae0ppfgu65i54ia Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240826@183620.7565 qj7flmtttr4ae0ppfgu65i54ia Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240826@183620.7578 qj7flmtttr4ae0ppfgu65i54ia Query : select sestamp valor from se where ref ='324.4990.00.1' and lote = 'r2100189200a'
20240826@183620.7592 qj7flmtttr4ae0ppfgu65i54ia Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240826@183620.7606 qj7flmtttr4ae0ppfgu65i54ia Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240826@183620.7620 qj7flmtttr4ae0ppfgu65i54ia Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66ccb1514266ccbd14b9','aut66ccb1147966ccbd148d' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240826@183620.7626 qj7flmtttr4ae0ppfgu65i54ia Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240826@183620.7642 qj7flmtttr4ae0ppfgu65i54ia Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240826@183620.7675 qj7flmtttr4ae0ppfgu65i54ia Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66ccb1514266ccbd14b9',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',10.000 ,'aut66ccb1147966ccbd148d' ,0,0 ,2,23.00,20000,?,?,?,?,?)
20240826@183620.8012 qj7flmtttr4ae0ppfgu65i54ia Query : use flama_phc
20240826@183620.8020 qj7flmtttr4ae0ppfgu65i54ia Query : select st.usalote valor from st where st.ref = '324.4990.00.1'
20240826@183620.8230 qj7flmtttr4ae0ppfgu65i54ia Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.4990.00.1'
20240826@183620.8251 qj7flmtttr4ae0ppfgu65i54ia Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240826@183620.8267 qj7flmtttr4ae0ppfgu65i54ia Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240826@183620.8293 qj7flmtttr4ae0ppfgu65i54ia Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240826@183620.8308 qj7flmtttr4ae0ppfgu65i54ia Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240826@183620.8317 qj7flmtttr4ae0ppfgu65i54ia Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240826@183620.8328 qj7flmtttr4ae0ppfgu65i54ia Query : select sestamp valor from se where ref ='324.4990.00.1' and lote = 'r2100189200a'
20240826@183620.8340 qj7flmtttr4ae0ppfgu65i54ia Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240826@183620.8355 qj7flmtttr4ae0ppfgu65i54ia Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240826@183620.8367 qj7flmtttr4ae0ppfgu65i54ia Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66ccb3233166ccbd14cb','aut66ccb1147966ccbd148d' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240826@183620.8372 qj7flmtttr4ae0ppfgu65i54ia Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240826@183620.8386 qj7flmtttr4ae0ppfgu65i54ia Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240826@183620.8414 qj7flmtttr4ae0ppfgu65i54ia Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66ccb3233166ccbd14cb',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',2.000 ,'aut66ccb1147966ccbd148d' ,0,0 ,2,23.00,30000,?,?,?,?,?)
20240826@183620.8718 qj7flmtttr4ae0ppfgu65i54ia Query : use flama_phc
20240826@183620.8721 qj7flmtttr4ae0ppfgu65i54ia Query : select st.usalote valor from st where st.ref = '324.4970.00.1'
20240826@183620.8740 qj7flmtttr4ae0ppfgu65i54ia Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.4970.00.1'
20240826@183620.8754 qj7flmtttr4ae0ppfgu65i54ia Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240826@183620.8771 qj7flmtttr4ae0ppfgu65i54ia Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240826@183620.8795 qj7flmtttr4ae0ppfgu65i54ia Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240826@183620.8810 qj7flmtttr4ae0ppfgu65i54ia Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240826@183620.8819 qj7flmtttr4ae0ppfgu65i54ia Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240826@183620.8830 qj7flmtttr4ae0ppfgu65i54ia Query : select sestamp valor from se where ref ='324.4970.00.1' and lote = 'r2400205200a'
20240826@183620.8845 qj7flmtttr4ae0ppfgu65i54ia Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240826@183620.8861 qj7flmtttr4ae0ppfgu65i54ia Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240826@183620.8874 qj7flmtttr4ae0ppfgu65i54ia Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66ccb4136966ccbd14d7','aut66ccb1147966ccbd148d' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240826@183620.8879 qj7flmtttr4ae0ppfgu65i54ia Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240826@183620.8896 qj7flmtttr4ae0ppfgu65i54ia Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240826@183620.8926 qj7flmtttr4ae0ppfgu65i54ia Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66ccb4136966ccbd14d7',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',20.000 ,'aut66ccb1147966ccbd148d' ,0,0 ,2,23.00,40000,?,?,?,?,?)
20240826@183620.9240 qj7flmtttr4ae0ppfgu65i54ia Query : use flama_phc
20240826@183620.9244 qj7flmtttr4ae0ppfgu65i54ia Query : select st.usalote valor from st where st.ref = '324.727.00.01'
20240826@183620.9268 qj7flmtttr4ae0ppfgu65i54ia Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.727.00.01'
20240826@183620.9284 qj7flmtttr4ae0ppfgu65i54ia Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240826@183620.9329 qj7flmtttr4ae0ppfgu65i54ia Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240826@183620.9482 qj7flmtttr4ae0ppfgu65i54ia Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240826@183621.1100 qj7flmtttr4ae0ppfgu65i54ia Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240826@183621.5640 qj7flmtttr4ae0ppfgu65i54ia Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240826@183621.5800 qj7flmtttr4ae0ppfgu65i54ia Query : select sestamp valor from se where ref ='324.727.00.01' and lote = 'r2300534200a'
20240826@183621.5930 qj7flmtttr4ae0ppfgu65i54ia Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240826@183621.6110 qj7flmtttr4ae0ppfgu65i54ia Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240826@183621.6250 qj7flmtttr4ae0ppfgu65i54ia Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66ccb0165866ccbd150e','aut66ccb1147966ccbd148d' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240826@183621.6300 qj7flmtttr4ae0ppfgu65i54ia Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240826@183621.6470 qj7flmtttr4ae0ppfgu65i54ia Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240826@183621.6760 qj7flmtttr4ae0ppfgu65i54ia Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66ccb0165866ccbd150e',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',8.000 ,'aut66ccb1147966ccbd148d' ,0,0 ,2,23.00,50000,?,?,?,?,?)
20240826@183621.9680 qj7flmtttr4ae0ppfgu65i54ia Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240826@183621.9850 qj7flmtttr4ae0ppfgu65i54ia Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240826@183621.1011 qj7flmtttr4ae0ppfgu65i54ia Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240826@183621.1037 qj7flmtttr4ae0ppfgu65i54ia Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240826@183621.1046 qj7flmtttr4ae0ppfgu65i54ia Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240826@183621.1059 qj7flmtttr4ae0ppfgu65i54ia Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240826@183621.1075 qj7flmtttr4ae0ppfgu65i54ia Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240826@183621.1088 qj7flmtttr4ae0ppfgu65i54ia Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66ccb5641166ccbd1519','aut66ccb1147966ccbd148d' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240826@183621.1093 qj7flmtttr4ae0ppfgu65i54ia Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240826@183621.1109 qj7flmtttr4ae0ppfgu65i54ia Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240826@183621.1140 qj7flmtttr4ae0ppfgu65i54ia Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66ccb5641166ccbd1519',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66ccb1147966ccbd148d' ,0,0 ,2,23.00,60000,?,?,?)
20240826@183621.1418 qj7flmtttr4ae0ppfgu65i54ia Query : use flama_phc
20240826@183621.1421 qj7flmtttr4ae0ppfgu65i54ia Query : select st.usalote valor from st where st.ref = '324.4902.00.1'
20240826@183621.1443 qj7flmtttr4ae0ppfgu65i54ia Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.4902.00.1'
20240826@183621.1458 qj7flmtttr4ae0ppfgu65i54ia Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240826@183621.1475 qj7flmtttr4ae0ppfgu65i54ia Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240826@183621.1503 qj7flmtttr4ae0ppfgu65i54ia Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240826@183621.1519 qj7flmtttr4ae0ppfgu65i54ia Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240826@183621.1531 qj7flmtttr4ae0ppfgu65i54ia Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240826@183621.1543 qj7flmtttr4ae0ppfgu65i54ia Query : select sestamp valor from se where ref ='324.4902.00.1' and lote = 'r2400145200a'
20240826@183621.1557 qj7flmtttr4ae0ppfgu65i54ia Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240826@183621.1572 qj7flmtttr4ae0ppfgu65i54ia Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240826@183621.1585 qj7flmtttr4ae0ppfgu65i54ia Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66ccb9135266ccbd1526','aut66ccb1147966ccbd148d' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240826@183621.1590 qj7flmtttr4ae0ppfgu65i54ia Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240826@183621.1606 qj7flmtttr4ae0ppfgu65i54ia Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240826@183621.1637 qj7flmtttr4ae0ppfgu65i54ia Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66ccb9135266ccbd1526',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',8.000 ,'aut66ccb1147966ccbd148d' ,0,0 ,2,23.00,80000,?,?,?,?,?)
20240826@183621.1914 qj7flmtttr4ae0ppfgu65i54ia Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240826@183621.1932 qj7flmtttr4ae0ppfgu65i54ia Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240826@183621.1960 qj7flmtttr4ae0ppfgu65i54ia Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240826@183621.1976 qj7flmtttr4ae0ppfgu65i54ia Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240826@183621.1986 qj7flmtttr4ae0ppfgu65i54ia Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240826@183621.2000 qj7flmtttr4ae0ppfgu65i54ia Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240826@183621.2016 qj7flmtttr4ae0ppfgu65i54ia Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240826@183621.2028 qj7flmtttr4ae0ppfgu65i54ia Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66ccb6630466ccbd1530','aut66ccb1147966ccbd148d' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240826@183621.2033 qj7flmtttr4ae0ppfgu65i54ia Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240826@183621.2048 qj7flmtttr4ae0ppfgu65i54ia Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240826@183621.2078 qj7flmtttr4ae0ppfgu65i54ia Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66ccb6630466ccbd1530',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66ccb1147966ccbd148d' ,0,0 ,2,23.00,90000,?,?,?)
20240826@183621.2385 qj7flmtttr4ae0ppfgu65i54ia Query : use flama_phc
20240826@183621.2388 qj7flmtttr4ae0ppfgu65i54ia Query : select st.usalote valor from st where st.ref = '324.691.00.01'
20240826@183621.2411 qj7flmtttr4ae0ppfgu65i54ia Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.691.00.01'
20240826@183621.2572 qj7flmtttr4ae0ppfgu65i54ia Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240826@183621.2589 qj7flmtttr4ae0ppfgu65i54ia Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240826@183621.2626 qj7flmtttr4ae0ppfgu65i54ia Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240826@183621.2641 qj7flmtttr4ae0ppfgu65i54ia Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240826@183621.2650 qj7flmtttr4ae0ppfgu65i54ia Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240826@183621.2663 qj7flmtttr4ae0ppfgu65i54ia Query : select sestamp valor from se where ref ='324.691.00.01' and lote = 'r2400209200a'
20240826@183621.2677 qj7flmtttr4ae0ppfgu65i54ia Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240826@183621.2692 qj7flmtttr4ae0ppfgu65i54ia Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240826@183621.2704 qj7flmtttr4ae0ppfgu65i54ia Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66ccb4467266ccbd1541','aut66ccb1147966ccbd148d' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240826@183621.2709 qj7flmtttr4ae0ppfgu65i54ia Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240826@183621.2724 qj7flmtttr4ae0ppfgu65i54ia Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240826@183621.3075 qj7flmtttr4ae0ppfgu65i54ia Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66ccb4467266ccbd1541',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',2.000 ,'aut66ccb1147966ccbd148d' ,0,0 ,2,23.00,110000,?,?,?,?,?)
20240826@183621.3366 qj7flmtttr4ae0ppfgu65i54ia Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240826@183621.3383 qj7flmtttr4ae0ppfgu65i54ia Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240826@183621.3409 qj7flmtttr4ae0ppfgu65i54ia Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240826@183621.3425 qj7flmtttr4ae0ppfgu65i54ia Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240826@183621.3434 qj7flmtttr4ae0ppfgu65i54ia Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240826@183621.3446 qj7flmtttr4ae0ppfgu65i54ia Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240826@183621.3461 qj7flmtttr4ae0ppfgu65i54ia Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240826@183621.3474 qj7flmtttr4ae0ppfgu65i54ia Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66ccb3715166ccbd1554','aut66ccb1147966ccbd148d' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240826@183621.3478 qj7flmtttr4ae0ppfgu65i54ia Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240826@183621.3493 qj7flmtttr4ae0ppfgu65i54ia Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240826@183621.3522 qj7flmtttr4ae0ppfgu65i54ia Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66ccb3715166ccbd1554',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66ccb1147966ccbd148d' ,0,0 ,2,23.00,120000,?,?,?)
20240826@183621.3795 qj7flmtttr4ae0ppfgu65i54ia Query : use flama_phc
20240826@183621.3799 qj7flmtttr4ae0ppfgu65i54ia Query : select st.usalote valor from st where st.ref = '324.691.00.01'
20240826@183621.3819 qj7flmtttr4ae0ppfgu65i54ia Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.691.00.01'
20240826@183621.3834 qj7flmtttr4ae0ppfgu65i54ia Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240826@183621.3850 qj7flmtttr4ae0ppfgu65i54ia Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240826@183621.3877 qj7flmtttr4ae0ppfgu65i54ia Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240826@183621.3894 qj7flmtttr4ae0ppfgu65i54ia Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240826@183621.3903 qj7flmtttr4ae0ppfgu65i54ia Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240826@183621.3917 qj7flmtttr4ae0ppfgu65i54ia Query : select sestamp valor from se where ref ='324.691.00.01' and lote = 'r2400209200a'
20240826@183621.3930 qj7flmtttr4ae0ppfgu65i54ia Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240826@183621.3945 qj7flmtttr4ae0ppfgu65i54ia Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240826@183621.3957 qj7flmtttr4ae0ppfgu65i54ia Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66ccb1125166ccbd155f','aut66ccb1147966ccbd148d' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240826@183621.3962 qj7flmtttr4ae0ppfgu65i54ia Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240826@183621.3977 qj7flmtttr4ae0ppfgu65i54ia Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240826@183621.4006 qj7flmtttr4ae0ppfgu65i54ia Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66ccb1125166ccbd155f',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',4.000 ,'aut66ccb1147966ccbd148d' ,0,0 ,2,23.00,140000,?,?,?,?,?)
20240826@183621.4301 qj7flmtttr4ae0ppfgu65i54ia Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240826@183621.4320 qj7flmtttr4ae0ppfgu65i54ia Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240826@183621.4349 qj7flmtttr4ae0ppfgu65i54ia Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240826@183621.4365 qj7flmtttr4ae0ppfgu65i54ia Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240826@183621.4374 qj7flmtttr4ae0ppfgu65i54ia Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240826@183621.4388 qj7flmtttr4ae0ppfgu65i54ia Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240826@183621.4403 qj7flmtttr4ae0ppfgu65i54ia Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240826@183621.4416 qj7flmtttr4ae0ppfgu65i54ia Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66ccb6209166ccbd156b','aut66ccb1147966ccbd148d' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240826@183621.4421 qj7flmtttr4ae0ppfgu65i54ia Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240826@183621.4436 qj7flmtttr4ae0ppfgu65i54ia Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240826@183621.4465 qj7flmtttr4ae0ppfgu65i54ia Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66ccb6209166ccbd156b',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66ccb1147966ccbd148d' ,0,0 ,2,23.00,150000,?,?,?)
20240826@183621.4763 qj7flmtttr4ae0ppfgu65i54ia Query : use flama_phc
20240826@183621.4767 qj7flmtttr4ae0ppfgu65i54ia Query : select st.usalote valor from st where st.ref = '324.4960.00.1'
20240826@183621.4788 qj7flmtttr4ae0ppfgu65i54ia Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.4960.00.1'
20240826@183621.4947 qj7flmtttr4ae0ppfgu65i54ia Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240826@183621.4964 qj7flmtttr4ae0ppfgu65i54ia Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240826@183621.4990 qj7flmtttr4ae0ppfgu65i54ia Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240826@183621.5004 qj7flmtttr4ae0ppfgu65i54ia Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240826@183621.5013 qj7flmtttr4ae0ppfgu65i54ia Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240826@183621.5025 qj7flmtttr4ae0ppfgu65i54ia Query : select sestamp valor from se where ref ='324.4960.00.1' and lote = 'r2100754100a'
20240826@183621.5053 qj7flmtttr4ae0ppfgu65i54ia Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240826@183621.5069 qj7flmtttr4ae0ppfgu65i54ia Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240826@183621.5084 qj7flmtttr4ae0ppfgu65i54ia Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66ccb5977166ccbd157b','aut66ccb1147966ccbd148d' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240826@183621.5088 qj7flmtttr4ae0ppfgu65i54ia Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240826@183621.5103 qj7flmtttr4ae0ppfgu65i54ia Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240826@183621.5135 qj7flmtttr4ae0ppfgu65i54ia Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66ccb5977166ccbd157b',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',24.000 ,'aut66ccb1147966ccbd148d' ,0,0 ,2,23.00,170000,?,?,?,?,?)
20240826@183621.5438 qj7flmtttr4ae0ppfgu65i54ia Query : use flama_phc
20240826@183621.5442 qj7flmtttr4ae0ppfgu65i54ia Query : select st.usalote valor from st where st.ref = '324.4906.00.1'
20240826@183621.5466 qj7flmtttr4ae0ppfgu65i54ia Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.4906.00.1'
20240826@183621.5639 qj7flmtttr4ae0ppfgu65i54ia Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240826@183621.5658 qj7flmtttr4ae0ppfgu65i54ia Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240826@183621.5685 qj7flmtttr4ae0ppfgu65i54ia Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240826@183621.5702 qj7flmtttr4ae0ppfgu65i54ia Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240826@183621.5712 qj7flmtttr4ae0ppfgu65i54ia Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240826@183621.5727 qj7flmtttr4ae0ppfgu65i54ia Query : select sestamp valor from se where ref ='324.4906.00.1' and lote = 'r2300207200a'
20240826@183621.5754 qj7flmtttr4ae0ppfgu65i54ia Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240826@183621.5771 qj7flmtttr4ae0ppfgu65i54ia Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240826@183621.5784 qj7flmtttr4ae0ppfgu65i54ia Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66ccb5042166ccbd158c','aut66ccb1147966ccbd148d' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240826@183621.5788 qj7flmtttr4ae0ppfgu65i54ia Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240826@183621.5804 qj7flmtttr4ae0ppfgu65i54ia Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240826@183621.5834 qj7flmtttr4ae0ppfgu65i54ia Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66ccb5042166ccbd158c',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',4.000 ,'aut66ccb1147966ccbd148d' ,0,0 ,2,23.00,180000,?,?,?,?,?)
20240826@183621.6153 qj7flmtttr4ae0ppfgu65i54ia Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240826@183621.6174 qj7flmtttr4ae0ppfgu65i54ia Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240826@183621.6202 qj7flmtttr4ae0ppfgu65i54ia Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240826@183621.6218 qj7flmtttr4ae0ppfgu65i54ia Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240826@183621.6227 qj7flmtttr4ae0ppfgu65i54ia Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240826@183621.6241 qj7flmtttr4ae0ppfgu65i54ia Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240826@183621.6257 qj7flmtttr4ae0ppfgu65i54ia Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240826@183621.6270 qj7flmtttr4ae0ppfgu65i54ia Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66ccb2571566ccbd1598','aut66ccb1147966ccbd148d' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240826@183621.6275 qj7flmtttr4ae0ppfgu65i54ia Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240826@183621.6290 qj7flmtttr4ae0ppfgu65i54ia Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240826@183621.6322 qj7flmtttr4ae0ppfgu65i54ia Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66ccb2571566ccbd1598',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66ccb1147966ccbd148d' ,0,0 ,2,23.00,190000,?,?,?)
20240826@183621.6600 qj7flmtttr4ae0ppfgu65i54ia Query : use flama_phc
20240826@183621.6604 qj7flmtttr4ae0ppfgu65i54ia Query : select st.usalote valor from st where st.ref = '324.1608.00.1'
20240826@183621.6626 qj7flmtttr4ae0ppfgu65i54ia Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.1608.00.1'
20240826@183621.6641 qj7flmtttr4ae0ppfgu65i54ia Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240826@183621.6658 qj7flmtttr4ae0ppfgu65i54ia Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240826@183621.6687 qj7flmtttr4ae0ppfgu65i54ia Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240826@183621.6704 qj7flmtttr4ae0ppfgu65i54ia Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240826@183621.6713 qj7flmtttr4ae0ppfgu65i54ia Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240826@183621.6726 qj7flmtttr4ae0ppfgu65i54ia Query : select sestamp valor from se where ref ='324.1608.00.1' and lote = 'r2100202100a'
20240826@183621.6739 qj7flmtttr4ae0ppfgu65i54ia Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240826@183621.6754 qj7flmtttr4ae0ppfgu65i54ia Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240826@183621.6766 qj7flmtttr4ae0ppfgu65i54ia Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66ccb2250666ccbd15a4','aut66ccb1147966ccbd148d' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240826@183621.6771 qj7flmtttr4ae0ppfgu65i54ia Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240826@183621.6785 qj7flmtttr4ae0ppfgu65i54ia Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240826@183621.6815 qj7flmtttr4ae0ppfgu65i54ia Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66ccb2250666ccbd15a4',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',6.000 ,'aut66ccb1147966ccbd148d' ,0,0 ,2,23.00,210000,?,?,?,?,?)
20240826@183621.7088 qj7flmtttr4ae0ppfgu65i54ia Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut66ccb1147966ccbd148d','2405548','wait',39,'adm09112754980.682000002')
20240826@183621.7162 qj7flmtttr4ae0ppfgu65i54ia Query : use flama_phc
20240826@183621.7165 qj7flmtttr4ae0ppfgu65i54ia Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240826@183621.7196 qj7flmtttr4ae0ppfgu65i54ia Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1680';
20240826@183621.7225 qj7flmtttr4ae0ppfgu65i54ia Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1680';
20240826@183621.7264 qj7flmtttr4ae0ppfgu65i54ia Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1680';
20240826@183621.7288 qj7flmtttr4ae0ppfgu65i54ia Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1680';
20240826@183621.7841 a57lko051oist5cg8gsqu1ojaq Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240826@183621.7853 a57lko051oist5cg8gsqu1ojaq Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240826@183621.7905 a57lko051oist5cg8gsqu1ojaq Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1681';
20240826@183621.8041 a57lko051oist5cg8gsqu1ojaq Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1681';
20240826@183621.8117 a57lko051oist5cg8gsqu1ojaq Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1681';
20240826@183621.8154 a57lko051oist5cg8gsqu1ojaq Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1681';
20240826@183621.8199 a57lko051oist5cg8gsqu1ojaq Query : use flama_phc
20240826@183621.8203 a57lko051oist5cg8gsqu1ojaq Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240826@183621.8267 a57lko051oist5cg8gsqu1ojaq Query : use flama_phc
20240826@183621.8270 a57lko051oist5cg8gsqu1ojaq Query : select no, estab,szadrsdesc from szadrs where u_coddest=4743
20240826@183621.8359 a57lko051oist5cg8gsqu1ojaq 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'
20240826@183621.8569 a57lko051oist5cg8gsqu1ojaq Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2055 and bo.obrano = 2405552 and bi.ref ='324.1646.00.1' and bi.lordem =1
20240826@183621.8930 a57lko051oist5cg8gsqu1ojaq Query : use flama_phc
20240826@183621.8933 a57lko051oist5cg8gsqu1ojaq Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20240826@183621.8966 a57lko051oist5cg8gsqu1ojaq Query : use flama_phc
20240826@183621.8970 a57lko051oist5cg8gsqu1ojaq Query : select top 1 1 valor from td where td.ndoc = 39
20240826@183621.8999 a57lko051oist5cg8gsqu1ojaq Query : use flama_phc
20240826@183621.9002 a57lko051oist5cg8gsqu1ojaq 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')
20240826@183621.9032 a57lko051oist5cg8gsqu1ojaq 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
20240826@183621.9068 a57lko051oist5cg8gsqu1ojaq Query : use flama_phc
20240826@183621.9071 a57lko051oist5cg8gsqu1ojaq Query : select top 1 ~inactivo valor from cl where no = '101597' and estab = 0 order by inactivo desc
20240826@183621.9214 a57lko051oist5cg8gsqu1ojaq Query : use flama_phc
20240826@183621.9218 a57lko051oist5cg8gsqu1ojaq Query : select top 1 tipodoc,regrd from td where ndoc = 39
20240826@183621.9250 a57lko051oist5cg8gsqu1ojaq Query : use flama_phc
20240826@183621.9253 a57lko051oist5cg8gsqu1ojaq Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20240826@183621.9344 a57lko051oist5cg8gsqu1ojaq Query : use flama_phc
20240826@183621.9348 a57lko051oist5cg8gsqu1ojaq Query : select szadrsstamp valor from szadrs where szadrsdesc='101597 - auchan retail portugal , sa'
20240826@183621.9436 a57lko051oist5cg8gsqu1ojaq Query : use flama_phc
20240826@183621.9439 a57lko051oist5cg8gsqu1ojaq Query : select 1 valor from td where ndoc = 39
20240826@183621.9453 a57lko051oist5cg8gsqu1ojaq Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20240826@183621.9481 a57lko051oist5cg8gsqu1ojaq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240826@183621.9506 a57lko051oist5cg8gsqu1ojaq Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20240826@183621.9539 a57lko051oist5cg8gsqu1ojaq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240826@183621.9576 a57lko051oist5cg8gsqu1ojaq Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20240826@183621.9603 a57lko051oist5cg8gsqu1ojaq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240826@183621.9617 a57lko051oist5cg8gsqu1ojaq Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20240826@183621.9630 a57lko051oist5cg8gsqu1ojaq Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240826@183621.9701 a57lko051oist5cg8gsqu1ojaq Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240826@183621.9873 a57lko051oist5cg8gsqu1ojaq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240826@183621.9955 a57lko051oist5cg8gsqu1ojaq Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20240826@183621.9971 a57lko051oist5cg8gsqu1ojaq Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut66ccb4694266ccbd15eb' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20240826@183622.1580 a57lko051oist5cg8gsqu1ojaq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240826@183622.1760 a57lko051oist5cg8gsqu1ojaq Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20240826@183622.2080 a57lko051oist5cg8gsqu1ojaq Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20240826@183622.2430 a57lko051oist5cg8gsqu1ojaq Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20240826@183622.2550 a57lko051oist5cg8gsqu1ojaq Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20240826@183622.2680 a57lko051oist5cg8gsqu1ojaq Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20240826@183622.2820 a57lko051oist5cg8gsqu1ojaq Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20240826@183622.2930 a57lko051oist5cg8gsqu1ojaq Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20240826@183622.3040 a57lko051oist5cg8gsqu1ojaq Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut66ccb4694266ccbd15eb',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20240826@183622.6700 a57lko051oist5cg8gsqu1ojaq Query : select top 1 fno valor from wsftdata order by fno desc
20240826@183622.6910 a57lko051oist5cg8gsqu1ojaq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240826@183622.7100 a57lko051oist5cg8gsqu1ojaq Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20240826@183622.7330 a57lko051oist5cg8gsqu1ojaq Query : select 'normal' from dummy
20240826@183622.7480 a57lko051oist5cg8gsqu1ojaq Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut66ccb4694266ccbd15eb',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',480,101597,0,'2024-08-26',39,'euro',0,0,2024 ,?,?)
20240826@183622.1064 a57lko051oist5cg8gsqu1ojaq Query : use flama_phc
20240826@183622.1067 a57lko051oist5cg8gsqu1ojaq Query : select st.usalote valor from st where st.ref = '324.1646.00.1'
20240826@183622.1091 a57lko051oist5cg8gsqu1ojaq Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 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'
20240826@183622.1253 a57lko051oist5cg8gsqu1ojaq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240826@183622.1276 a57lko051oist5cg8gsqu1ojaq Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240826@183622.1309 a57lko051oist5cg8gsqu1ojaq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240826@183622.1324 a57lko051oist5cg8gsqu1ojaq Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240826@183622.1333 a57lko051oist5cg8gsqu1ojaq Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240826@183622.1345 a57lko051oist5cg8gsqu1ojaq Query : select sestamp valor from se where ref ='324.1646.00.1' and lote = 'r2100904100a'
20240826@183622.1383 a57lko051oist5cg8gsqu1ojaq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240826@183622.1426 a57lko051oist5cg8gsqu1ojaq Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240826@183622.1452 a57lko051oist5cg8gsqu1ojaq Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66ccb8061266ccbd1621','aut66ccb4694266ccbd15eb' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240826@183622.1457 a57lko051oist5cg8gsqu1ojaq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240826@183622.1504 a57lko051oist5cg8gsqu1ojaq Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240826@183622.1622 a57lko051oist5cg8gsqu1ojaq Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66ccb8061266ccbd1621',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',2.000 ,'aut66ccb4694266ccbd15eb' ,0,0 ,2,23.00,10000,?,?,?,?,?)
20240826@183622.1925 a57lko051oist5cg8gsqu1ojaq Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut66ccb4694266ccbd15eb','2405552','wait',39,'adm09112754980.682000002')
20240826@183622.1998 a57lko051oist5cg8gsqu1ojaq Query : use flama_phc
20240826@183622.2001 a57lko051oist5cg8gsqu1ojaq Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240826@183622.2031 a57lko051oist5cg8gsqu1ojaq Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1681';
20240826@183622.2058 a57lko051oist5cg8gsqu1ojaq Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1681';
20240826@183622.2096 a57lko051oist5cg8gsqu1ojaq Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1681';
20240826@183622.2119 a57lko051oist5cg8gsqu1ojaq Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1681';
20240826@183622.2733 44duf0771u1p3qqgtnf9l8o673 Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240826@183622.2745 44duf0771u1p3qqgtnf9l8o673 Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240826@183622.2798 44duf0771u1p3qqgtnf9l8o673 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1682';
20240826@183622.2856 44duf0771u1p3qqgtnf9l8o673 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1682';
20240826@183622.2916 44duf0771u1p3qqgtnf9l8o673 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1682';
20240826@183622.2942 44duf0771u1p3qqgtnf9l8o673 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1682';
20240826@183622.2988 44duf0771u1p3qqgtnf9l8o673 Query : use flama_phc
20240826@183622.2992 44duf0771u1p3qqgtnf9l8o673 Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240826@183622.3052 44duf0771u1p3qqgtnf9l8o673 Query : use flama_phc
20240826@183622.3055 44duf0771u1p3qqgtnf9l8o673 Query : select no, estab,szadrsdesc from szadrs where u_coddest=4743
20240826@183622.3094 44duf0771u1p3qqgtnf9l8o673 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'
20240826@183622.3115 44duf0771u1p3qqgtnf9l8o673 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2055 and bo.obrano = 2405553 and bi.ref ='324.1646.00.1' and bi.lordem =1
20240826@183622.3499 44duf0771u1p3qqgtnf9l8o673 Query : use flama_phc
20240826@183622.3502 44duf0771u1p3qqgtnf9l8o673 Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20240826@183622.3535 44duf0771u1p3qqgtnf9l8o673 Query : use flama_phc
20240826@183622.3538 44duf0771u1p3qqgtnf9l8o673 Query : select top 1 1 valor from td where td.ndoc = 39
20240826@183622.3567 44duf0771u1p3qqgtnf9l8o673 Query : use flama_phc
20240826@183622.3570 44duf0771u1p3qqgtnf9l8o673 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')
20240826@183622.3598 44duf0771u1p3qqgtnf9l8o673 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
20240826@183622.3633 44duf0771u1p3qqgtnf9l8o673 Query : use flama_phc
20240826@183622.3636 44duf0771u1p3qqgtnf9l8o673 Query : select top 1 ~inactivo valor from cl where no = '101597' and estab = 0 order by inactivo desc
20240826@183622.3665 44duf0771u1p3qqgtnf9l8o673 Query : use flama_phc
20240826@183622.3668 44duf0771u1p3qqgtnf9l8o673 Query : select top 1 tipodoc,regrd from td where ndoc = 39
20240826@183622.3696 44duf0771u1p3qqgtnf9l8o673 Query : use flama_phc
20240826@183622.3699 44duf0771u1p3qqgtnf9l8o673 Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20240826@183622.3739 44duf0771u1p3qqgtnf9l8o673 Query : use flama_phc
20240826@183622.3742 44duf0771u1p3qqgtnf9l8o673 Query : select szadrsstamp valor from szadrs where szadrsdesc='101597 - auchan retail portugal , sa'
20240826@183622.3785 44duf0771u1p3qqgtnf9l8o673 Query : use flama_phc
20240826@183622.3788 44duf0771u1p3qqgtnf9l8o673 Query : select 1 valor from td where ndoc = 39
20240826@183622.3801 44duf0771u1p3qqgtnf9l8o673 Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20240826@183622.3815 44duf0771u1p3qqgtnf9l8o673 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240826@183622.3834 44duf0771u1p3qqgtnf9l8o673 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20240826@183622.3853 44duf0771u1p3qqgtnf9l8o673 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240826@183622.3868 44duf0771u1p3qqgtnf9l8o673 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20240826@183622.3895 44duf0771u1p3qqgtnf9l8o673 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240826@183622.3909 44duf0771u1p3qqgtnf9l8o673 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20240826@183622.3923 44duf0771u1p3qqgtnf9l8o673 Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240826@183622.4013 44duf0771u1p3qqgtnf9l8o673 Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240826@183622.4026 44duf0771u1p3qqgtnf9l8o673 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240826@183622.4045 44duf0771u1p3qqgtnf9l8o673 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20240826@183622.4062 44duf0771u1p3qqgtnf9l8o673 Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut66ccb5848066ccbd165f' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20240826@183622.4263 44duf0771u1p3qqgtnf9l8o673 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240826@183622.4283 44duf0771u1p3qqgtnf9l8o673 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20240826@183622.4322 44duf0771u1p3qqgtnf9l8o673 Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20240826@183622.4336 44duf0771u1p3qqgtnf9l8o673 Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20240826@183622.4349 44duf0771u1p3qqgtnf9l8o673 Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20240826@183622.4362 44duf0771u1p3qqgtnf9l8o673 Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20240826@183622.4374 44duf0771u1p3qqgtnf9l8o673 Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20240826@183622.4385 44duf0771u1p3qqgtnf9l8o673 Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20240826@183622.4397 44duf0771u1p3qqgtnf9l8o673 Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut66ccb5848066ccbd165f',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20240826@183622.4712 44duf0771u1p3qqgtnf9l8o673 Query : select top 1 fno valor from wsftdata order by fno desc
20240826@183622.4924 44duf0771u1p3qqgtnf9l8o673 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240826@183622.4943 44duf0771u1p3qqgtnf9l8o673 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20240826@183622.4966 44duf0771u1p3qqgtnf9l8o673 Query : select 'normal' from dummy
20240826@183622.4986 44duf0771u1p3qqgtnf9l8o673 Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut66ccb5848066ccbd165f',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',481,101597,0,'2024-08-26',39,'euro',0,0,2024 ,?,?)
20240826@183622.5318 44duf0771u1p3qqgtnf9l8o673 Query : use flama_phc
20240826@183622.5322 44duf0771u1p3qqgtnf9l8o673 Query : select st.usalote valor from st where st.ref = '324.1646.00.1'
20240826@183622.5346 44duf0771u1p3qqgtnf9l8o673 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 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'
20240826@183622.5359 44duf0771u1p3qqgtnf9l8o673 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240826@183622.5377 44duf0771u1p3qqgtnf9l8o673 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240826@183622.5402 44duf0771u1p3qqgtnf9l8o673 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240826@183622.6619 44duf0771u1p3qqgtnf9l8o673 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240826@183622.6632 44duf0771u1p3qqgtnf9l8o673 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240826@183622.6645 44duf0771u1p3qqgtnf9l8o673 Query : select sestamp valor from se where ref ='324.1646.00.1' and lote = 'r2100904100a'
20240826@183622.6659 44duf0771u1p3qqgtnf9l8o673 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240826@183622.6675 44duf0771u1p3qqgtnf9l8o673 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240826@183622.6686 44duf0771u1p3qqgtnf9l8o673 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66ccb1326266ccbd16a2','aut66ccb5848066ccbd165f' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240826@183622.6691 44duf0771u1p3qqgtnf9l8o673 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240826@183622.6705 44duf0771u1p3qqgtnf9l8o673 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240826@183622.6733 44duf0771u1p3qqgtnf9l8o673 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66ccb1326266ccbd16a2',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',2.000 ,'aut66ccb5848066ccbd165f' ,0,0 ,2,23.00,10000,?,?,?,?,?)
20240826@183622.7004 44duf0771u1p3qqgtnf9l8o673 Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut66ccb5848066ccbd165f','2405553','wait',39,'adm09112754980.682000002')
20240826@183622.7090 44duf0771u1p3qqgtnf9l8o673 Query : use flama_phc
20240826@183622.7094 44duf0771u1p3qqgtnf9l8o673 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240826@183622.7122 44duf0771u1p3qqgtnf9l8o673 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1682';
20240826@183622.7149 44duf0771u1p3qqgtnf9l8o673 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1682';
20240826@183622.7188 44duf0771u1p3qqgtnf9l8o673 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1682';
20240826@183622.7210 44duf0771u1p3qqgtnf9l8o673 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1682';
20240826@183622.7719 6vafrob8u1jfqiumlp93etd1rt Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240826@183622.7730 6vafrob8u1jfqiumlp93etd1rt Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240826@183622.7788 6vafrob8u1jfqiumlp93etd1rt Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1683';
20240826@183622.7842 6vafrob8u1jfqiumlp93etd1rt Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1683';
20240826@183622.7900 6vafrob8u1jfqiumlp93etd1rt Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1683';
20240826@183622.7925 6vafrob8u1jfqiumlp93etd1rt Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1683';
20240826@183622.7973 6vafrob8u1jfqiumlp93etd1rt Query : use flama_phc
20240826@183622.7983 6vafrob8u1jfqiumlp93etd1rt Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240826@183622.8043 6vafrob8u1jfqiumlp93etd1rt Query : use flama_phc
20240826@183622.8046 6vafrob8u1jfqiumlp93etd1rt Query : select no, estab,szadrsdesc from szadrs where u_coddest=4743
20240826@183622.8088 6vafrob8u1jfqiumlp93etd1rt Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1667.00.1'
20240826@183622.8270 6vafrob8u1jfqiumlp93etd1rt Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2055 and bo.obrano = 2405554 and bi.ref ='324.1667.00.1' and bi.lordem =1
20240826@183622.8669 6vafrob8u1jfqiumlp93etd1rt Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1667.00.1'
20240826@183622.8690 6vafrob8u1jfqiumlp93etd1rt Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2055 and bo.obrano = 2405554 and bi.ref ='324.1667.00.1' and bi.lordem =1
20240826@183622.8710 6vafrob8u1jfqiumlp93etd1rt Query : use flama_phc
20240826@183622.8713 6vafrob8u1jfqiumlp93etd1rt Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20240826@183622.8773 6vafrob8u1jfqiumlp93etd1rt Query : use flama_phc
20240826@183622.8777 6vafrob8u1jfqiumlp93etd1rt Query : select top 1 1 valor from td where td.ndoc = 39
20240826@183622.8807 6vafrob8u1jfqiumlp93etd1rt Query : use flama_phc
20240826@183622.8810 6vafrob8u1jfqiumlp93etd1rt 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')
20240826@183622.8841 6vafrob8u1jfqiumlp93etd1rt 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
20240826@183622.8879 6vafrob8u1jfqiumlp93etd1rt Query : use flama_phc
20240826@183622.8882 6vafrob8u1jfqiumlp93etd1rt Query : select top 1 ~inactivo valor from cl where no = '101597' and estab = 0 order by inactivo desc
20240826@183622.8910 6vafrob8u1jfqiumlp93etd1rt Query : use flama_phc
20240826@183622.8913 6vafrob8u1jfqiumlp93etd1rt Query : select top 1 tipodoc,regrd from td where ndoc = 39
20240826@183622.8942 6vafrob8u1jfqiumlp93etd1rt Query : use flama_phc
20240826@183622.8944 6vafrob8u1jfqiumlp93etd1rt Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20240826@183622.8982 6vafrob8u1jfqiumlp93etd1rt Query : use flama_phc
20240826@183622.8985 6vafrob8u1jfqiumlp93etd1rt Query : select szadrsstamp valor from szadrs where szadrsdesc='101597 - auchan retail portugal , sa'
20240826@183622.9031 6vafrob8u1jfqiumlp93etd1rt Query : use flama_phc
20240826@183622.9034 6vafrob8u1jfqiumlp93etd1rt Query : select 1 valor from td where ndoc = 39
20240826@183622.9046 6vafrob8u1jfqiumlp93etd1rt Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20240826@183622.9060 6vafrob8u1jfqiumlp93etd1rt Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240826@183622.9075 6vafrob8u1jfqiumlp93etd1rt Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20240826@183622.9094 6vafrob8u1jfqiumlp93etd1rt Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240826@183622.9108 6vafrob8u1jfqiumlp93etd1rt Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20240826@183622.9134 6vafrob8u1jfqiumlp93etd1rt Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240826@183622.9148 6vafrob8u1jfqiumlp93etd1rt Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20240826@183622.9162 6vafrob8u1jfqiumlp93etd1rt Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240826@183622.9299 6vafrob8u1jfqiumlp93etd1rt Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240826@183622.9312 6vafrob8u1jfqiumlp93etd1rt Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240826@183622.9327 6vafrob8u1jfqiumlp93etd1rt Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20240826@183622.9343 6vafrob8u1jfqiumlp93etd1rt Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut66ccb7593366ccbd16df' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20240826@183622.9529 6vafrob8u1jfqiumlp93etd1rt Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240826@183622.9546 6vafrob8u1jfqiumlp93etd1rt Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20240826@183622.9581 6vafrob8u1jfqiumlp93etd1rt Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20240826@183622.9594 6vafrob8u1jfqiumlp93etd1rt Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20240826@183622.9607 6vafrob8u1jfqiumlp93etd1rt Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20240826@183622.9622 6vafrob8u1jfqiumlp93etd1rt Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20240826@183622.9635 6vafrob8u1jfqiumlp93etd1rt Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20240826@183622.9648 6vafrob8u1jfqiumlp93etd1rt Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20240826@183622.9660 6vafrob8u1jfqiumlp93etd1rt Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut66ccb7593366ccbd16df',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20240826@183622.9969 6vafrob8u1jfqiumlp93etd1rt Query : select top 1 fno valor from wsftdata order by fno desc
20240826@183622.9991 6vafrob8u1jfqiumlp93etd1rt Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240826@183623.9000 6vafrob8u1jfqiumlp93etd1rt Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20240826@183623.3300 6vafrob8u1jfqiumlp93etd1rt Query : select 'normal' from dummy
20240826@183623.4800 6vafrob8u1jfqiumlp93etd1rt Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut66ccb7593366ccbd16df',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',482,101597,0,'2024-08-26',39,'euro',0,0,2024 ,?,?)
20240826@183623.3960 6vafrob8u1jfqiumlp93etd1rt Query : use flama_phc
20240826@183623.3990 6vafrob8u1jfqiumlp93etd1rt Query : select st.usalote valor from st where st.ref = '324.1667.00.1'
20240826@183623.4240 6vafrob8u1jfqiumlp93etd1rt Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.1667.00.1'
20240826@183623.5850 6vafrob8u1jfqiumlp93etd1rt Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240826@183623.6020 6vafrob8u1jfqiumlp93etd1rt Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240826@183623.6310 6vafrob8u1jfqiumlp93etd1rt Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240826@183623.6480 6vafrob8u1jfqiumlp93etd1rt Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240826@183623.6590 6vafrob8u1jfqiumlp93etd1rt Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240826@183623.6720 6vafrob8u1jfqiumlp93etd1rt Query : select sestamp valor from se where ref ='324.1667.00.1' and lote = 'r2400065200a'
20240826@183623.6930 6vafrob8u1jfqiumlp93etd1rt Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240826@183623.7190 6vafrob8u1jfqiumlp93etd1rt Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240826@183623.7320 6vafrob8u1jfqiumlp93etd1rt Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66ccb7345366ccbd1710','aut66ccb7593366ccbd16df' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240826@183623.7370 6vafrob8u1jfqiumlp93etd1rt Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240826@183623.7530 6vafrob8u1jfqiumlp93etd1rt Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240826@183623.7820 6vafrob8u1jfqiumlp93etd1rt Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66ccb7345366ccbd1710',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',18.000 ,'aut66ccb7593366ccbd16df' ,0,0 ,2,23.00,10000,?,?,?,?,?)
20240826@183623.1080 6vafrob8u1jfqiumlp93etd1rt Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240826@183623.1097 6vafrob8u1jfqiumlp93etd1rt Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240826@183623.1124 6vafrob8u1jfqiumlp93etd1rt Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240826@183623.1139 6vafrob8u1jfqiumlp93etd1rt Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240826@183623.1147 6vafrob8u1jfqiumlp93etd1rt Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240826@183623.1160 6vafrob8u1jfqiumlp93etd1rt Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240826@183623.1176 6vafrob8u1jfqiumlp93etd1rt Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240826@183623.1188 6vafrob8u1jfqiumlp93etd1rt Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66ccb3650966ccbd171c','aut66ccb7593366ccbd16df' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240826@183623.1193 6vafrob8u1jfqiumlp93etd1rt Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240826@183623.1208 6vafrob8u1jfqiumlp93etd1rt Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240826@183623.1485 6vafrob8u1jfqiumlp93etd1rt Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66ccb3650966ccbd171c',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66ccb7593366ccbd16df' ,0,0 ,2,23.00,20000,?,?,?)
20240826@183623.1765 6vafrob8u1jfqiumlp93etd1rt Query : use flama_phc
20240826@183623.1769 6vafrob8u1jfqiumlp93etd1rt Query : select st.usalote valor from st where st.ref = '324.1667.00.1'
20240826@183623.1790 6vafrob8u1jfqiumlp93etd1rt Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.1667.00.1'
20240826@183623.1805 6vafrob8u1jfqiumlp93etd1rt Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240826@183623.1822 6vafrob8u1jfqiumlp93etd1rt Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240826@183623.1853 6vafrob8u1jfqiumlp93etd1rt Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240826@183623.1881 6vafrob8u1jfqiumlp93etd1rt Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240826@183623.1891 6vafrob8u1jfqiumlp93etd1rt Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240826@183623.1904 6vafrob8u1jfqiumlp93etd1rt Query : select sestamp valor from se where ref ='324.1667.00.1' and lote = 'r2400065200a'
20240826@183623.1918 6vafrob8u1jfqiumlp93etd1rt Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240826@183623.1932 6vafrob8u1jfqiumlp93etd1rt Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240826@183623.1944 6vafrob8u1jfqiumlp93etd1rt Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66ccb3537066ccbd172e','aut66ccb7593366ccbd16df' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240826@183623.1948 6vafrob8u1jfqiumlp93etd1rt Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240826@183623.1963 6vafrob8u1jfqiumlp93etd1rt Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240826@183623.1992 6vafrob8u1jfqiumlp93etd1rt Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66ccb3537066ccbd172e',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',18.000 ,'aut66ccb7593366ccbd16df' ,0,0 ,2,23.00,40000,?,?,?,?,?)
20240826@183623.2281 6vafrob8u1jfqiumlp93etd1rt Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240826@183623.2299 6vafrob8u1jfqiumlp93etd1rt Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240826@183623.2337 6vafrob8u1jfqiumlp93etd1rt Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240826@183623.2352 6vafrob8u1jfqiumlp93etd1rt Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240826@183623.2361 6vafrob8u1jfqiumlp93etd1rt Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240826@183623.2449 6vafrob8u1jfqiumlp93etd1rt Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240826@183623.2467 6vafrob8u1jfqiumlp93etd1rt Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240826@183623.2480 6vafrob8u1jfqiumlp93etd1rt Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66ccb5360866ccbd173b','aut66ccb7593366ccbd16df' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240826@183623.2485 6vafrob8u1jfqiumlp93etd1rt Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240826@183623.2500 6vafrob8u1jfqiumlp93etd1rt Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240826@183623.2530 6vafrob8u1jfqiumlp93etd1rt Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66ccb5360866ccbd173b',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66ccb7593366ccbd16df' ,0,0 ,2,23.00,50000,?,?,?)
20240826@183623.2821 6vafrob8u1jfqiumlp93etd1rt Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut66ccb7593366ccbd16df','2405554','wait',39,'adm09112754980.682000002')
20240826@183623.2891 6vafrob8u1jfqiumlp93etd1rt Query : use flama_phc
20240826@183623.2894 6vafrob8u1jfqiumlp93etd1rt Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240826@183623.2923 6vafrob8u1jfqiumlp93etd1rt Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1683';
20240826@183623.2951 6vafrob8u1jfqiumlp93etd1rt Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1683';
20240826@183623.2990 6vafrob8u1jfqiumlp93etd1rt Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1683';
20240826@183623.3015 6vafrob8u1jfqiumlp93etd1rt Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1683';
20240826@183623.3590 1t12aeqblcb3061jc4gg7dk2dc Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240826@183623.3601 1t12aeqblcb3061jc4gg7dk2dc Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240826@183623.3651 1t12aeqblcb3061jc4gg7dk2dc Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1684';
20240826@183623.3707 1t12aeqblcb3061jc4gg7dk2dc Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1684';
20240826@183623.3755 1t12aeqblcb3061jc4gg7dk2dc Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1684';
20240826@183623.3791 1t12aeqblcb3061jc4gg7dk2dc Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1684';
20240826@183623.3836 1t12aeqblcb3061jc4gg7dk2dc Query : use flama_phc
20240826@183623.3839 1t12aeqblcb3061jc4gg7dk2dc Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240826@183623.3902 1t12aeqblcb3061jc4gg7dk2dc Query : use flama_phc
20240826@183623.3905 1t12aeqblcb3061jc4gg7dk2dc Query : select no, estab,szadrsdesc from szadrs where u_coddest=5546
20240826@183623.3995 1t12aeqblcb3061jc4gg7dk2dc Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.939.00.01'
20240826@183623.4184 1t12aeqblcb3061jc4gg7dk2dc Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2055 and bo.obrano = 2405555 and bi.ref ='324.939.00.01' and bi.lordem =1
20240826@183623.4528 1t12aeqblcb3061jc4gg7dk2dc Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.4930.00.1'
20240826@183623.4701 1t12aeqblcb3061jc4gg7dk2dc Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2055 and bo.obrano = 2405555 and bi.ref ='324.4930.00.1' and bi.lordem =2
20240826@183623.5088 1t12aeqblcb3061jc4gg7dk2dc Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.727.00.01'
20240826@183623.5113 1t12aeqblcb3061jc4gg7dk2dc Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2055 and bo.obrano = 2405555 and bi.ref ='324.727.00.01' and bi.lordem =3
20240826@183623.5466 1t12aeqblcb3061jc4gg7dk2dc Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '304.4320.00.1'
20240826@183623.5485 1t12aeqblcb3061jc4gg7dk2dc Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2055 and bo.obrano = 2405555 and bi.ref ='304.4320.00.1' and bi.lordem =4
20240826@183623.5846 1t12aeqblcb3061jc4gg7dk2dc Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.5343.00.1'
20240826@183623.6018 1t12aeqblcb3061jc4gg7dk2dc Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2055 and bo.obrano = 2405555 and bi.ref ='324.5343.00.1' and bi.lordem =5
20240826@183623.6362 1t12aeqblcb3061jc4gg7dk2dc Query : use flama_phc
20240826@183623.6366 1t12aeqblcb3061jc4gg7dk2dc Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20240826@183623.6397 1t12aeqblcb3061jc4gg7dk2dc Query : use flama_phc
20240826@183623.6400 1t12aeqblcb3061jc4gg7dk2dc Query : select top 1 1 valor from td where td.ndoc = 39
20240826@183623.6428 1t12aeqblcb3061jc4gg7dk2dc Query : use flama_phc
20240826@183623.6431 1t12aeqblcb3061jc4gg7dk2dc 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')
20240826@183623.6457 1t12aeqblcb3061jc4gg7dk2dc 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
20240826@183623.6489 1t12aeqblcb3061jc4gg7dk2dc Query : use flama_phc
20240826@183623.6492 1t12aeqblcb3061jc4gg7dk2dc Query : select top 1 ~inactivo valor from cl where no = '199506' and estab = 0 order by inactivo desc
20240826@183623.6632 1t12aeqblcb3061jc4gg7dk2dc Query : use flama_phc
20240826@183623.6635 1t12aeqblcb3061jc4gg7dk2dc Query : select top 1 tipodoc,regrd from td where ndoc = 39
20240826@183623.6662 1t12aeqblcb3061jc4gg7dk2dc Query : use flama_phc
20240826@183623.6665 1t12aeqblcb3061jc4gg7dk2dc Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20240826@183623.6703 1t12aeqblcb3061jc4gg7dk2dc Query : use flama_phc
20240826@183623.6706 1t12aeqblcb3061jc4gg7dk2dc Query : select szadrsstamp valor from szadrs where szadrsdesc='199506 - itmp alimentar, s.a.'
20240826@183623.6960 1t12aeqblcb3061jc4gg7dk2dc Query : use flama_phc
20240826@183623.6964 1t12aeqblcb3061jc4gg7dk2dc Query : select 1 valor from td where ndoc = 39
20240826@183623.6978 1t12aeqblcb3061jc4gg7dk2dc Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20240826@183623.6992 1t12aeqblcb3061jc4gg7dk2dc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240826@183623.7009 1t12aeqblcb3061jc4gg7dk2dc Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20240826@183623.7028 1t12aeqblcb3061jc4gg7dk2dc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240826@183623.7042 1t12aeqblcb3061jc4gg7dk2dc Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20240826@183623.7069 1t12aeqblcb3061jc4gg7dk2dc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240826@183623.7083 1t12aeqblcb3061jc4gg7dk2dc Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20240826@183623.7095 1t12aeqblcb3061jc4gg7dk2dc Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240826@183623.7163 1t12aeqblcb3061jc4gg7dk2dc Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240826@183623.7176 1t12aeqblcb3061jc4gg7dk2dc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240826@183623.7190 1t12aeqblcb3061jc4gg7dk2dc Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20240826@183623.7205 1t12aeqblcb3061jc4gg7dk2dc Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut66ccb1659566ccbd17ad' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20240826@183623.7406 1t12aeqblcb3061jc4gg7dk2dc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240826@183623.7426 1t12aeqblcb3061jc4gg7dk2dc Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20240826@183623.7457 1t12aeqblcb3061jc4gg7dk2dc Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20240826@183623.7469 1t12aeqblcb3061jc4gg7dk2dc Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20240826@183623.7482 1t12aeqblcb3061jc4gg7dk2dc Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20240826@183623.7494 1t12aeqblcb3061jc4gg7dk2dc Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20240826@183623.7509 1t12aeqblcb3061jc4gg7dk2dc Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20240826@183623.7520 1t12aeqblcb3061jc4gg7dk2dc Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20240826@183623.7533 1t12aeqblcb3061jc4gg7dk2dc Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut66ccb1659566ccbd17ad',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20240826@183623.8613 1t12aeqblcb3061jc4gg7dk2dc Query : select top 1 fno valor from wsftdata order by fno desc
20240826@183623.9112 1t12aeqblcb3061jc4gg7dk2dc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240826@183623.9131 1t12aeqblcb3061jc4gg7dk2dc Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20240826@183623.9168 1t12aeqblcb3061jc4gg7dk2dc Query : select 'normal' from dummy
20240826@183623.9184 1t12aeqblcb3061jc4gg7dk2dc Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut66ccb1659566ccbd17ad',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',483,199506,0,'2024-08-26',39,'euro',0,0,2024 ,?,?)
20240826@183623.9508 1t12aeqblcb3061jc4gg7dk2dc Query : use flama_phc
20240826@183623.9512 1t12aeqblcb3061jc4gg7dk2dc Query : select st.usalote valor from st where st.ref = '324.939.00.01'
20240826@183623.9536 1t12aeqblcb3061jc4gg7dk2dc Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.939.00.01'
20240826@183623.9710 1t12aeqblcb3061jc4gg7dk2dc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240826@183623.9728 1t12aeqblcb3061jc4gg7dk2dc Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240826@183623.9754 1t12aeqblcb3061jc4gg7dk2dc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240826@183623.9769 1t12aeqblcb3061jc4gg7dk2dc Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240826@183623.9777 1t12aeqblcb3061jc4gg7dk2dc Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240826@183623.9789 1t12aeqblcb3061jc4gg7dk2dc Query : select sestamp valor from se where ref ='324.939.00.01' and lote = 'r2301371200a'
20240826@183623.9816 1t12aeqblcb3061jc4gg7dk2dc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240826@183623.9830 1t12aeqblcb3061jc4gg7dk2dc Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240826@183623.9842 1t12aeqblcb3061jc4gg7dk2dc Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66ccb1084466ccbd17ef','aut66ccb1659566ccbd17ad' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240826@183623.9846 1t12aeqblcb3061jc4gg7dk2dc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240826@183623.9860 1t12aeqblcb3061jc4gg7dk2dc Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240826@183623.9888 1t12aeqblcb3061jc4gg7dk2dc Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66ccb1084466ccbd17ef',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',8.000 ,'aut66ccb1659566ccbd17ad' ,0,0 ,2,23.00,10000,?,?,?,?,?)
20240826@183624.1770 1t12aeqblcb3061jc4gg7dk2dc Query : use flama_phc
20240826@183624.1800 1t12aeqblcb3061jc4gg7dk2dc Query : select st.usalote valor from st where st.ref = '324.4930.00.1'
20240826@183624.2030 1t12aeqblcb3061jc4gg7dk2dc Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.4930.00.1'
20240826@183624.3630 1t12aeqblcb3061jc4gg7dk2dc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240826@183624.3800 1t12aeqblcb3061jc4gg7dk2dc Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240826@183624.4090 1t12aeqblcb3061jc4gg7dk2dc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240826@183624.4250 1t12aeqblcb3061jc4gg7dk2dc Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240826@183624.4340 1t12aeqblcb3061jc4gg7dk2dc Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240826@183624.4480 1t12aeqblcb3061jc4gg7dk2dc Query : select sestamp valor from se where ref ='324.4930.00.1' and lote = 'r2400066200a'
20240826@183624.4640 1t12aeqblcb3061jc4gg7dk2dc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240826@183624.4820 1t12aeqblcb3061jc4gg7dk2dc Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240826@183624.4940 1t12aeqblcb3061jc4gg7dk2dc Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66ccb9269666ccbd180b','aut66ccb1659566ccbd17ad' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240826@183624.4990 1t12aeqblcb3061jc4gg7dk2dc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240826@183624.5150 1t12aeqblcb3061jc4gg7dk2dc Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240826@183624.5460 1t12aeqblcb3061jc4gg7dk2dc Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66ccb9269666ccbd180b',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',6.000 ,'aut66ccb1659566ccbd17ad' ,0,0 ,2,23.00,20000,?,?,?,?,?)
20240826@183624.8210 1t12aeqblcb3061jc4gg7dk2dc Query : use flama_phc
20240826@183624.8250 1t12aeqblcb3061jc4gg7dk2dc Query : select st.usalote valor from st where st.ref = '324.727.00.01'
20240826@183624.8480 1t12aeqblcb3061jc4gg7dk2dc Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.727.00.01'
20240826@183624.8630 1t12aeqblcb3061jc4gg7dk2dc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240826@183624.8810 1t12aeqblcb3061jc4gg7dk2dc Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240826@183624.9080 1t12aeqblcb3061jc4gg7dk2dc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240826@183624.9240 1t12aeqblcb3061jc4gg7dk2dc Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240826@183624.9330 1t12aeqblcb3061jc4gg7dk2dc Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240826@183624.9460 1t12aeqblcb3061jc4gg7dk2dc Query : select sestamp valor from se where ref ='324.727.00.01' and lote = 'r2300534200a'
20240826@183624.9610 1t12aeqblcb3061jc4gg7dk2dc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240826@183624.9760 1t12aeqblcb3061jc4gg7dk2dc Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240826@183624.9880 1t12aeqblcb3061jc4gg7dk2dc Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66ccb2660666ccbd1817','aut66ccb1659566ccbd17ad' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240826@183624.9930 1t12aeqblcb3061jc4gg7dk2dc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240826@183624.1008 1t12aeqblcb3061jc4gg7dk2dc Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240826@183624.1037 1t12aeqblcb3061jc4gg7dk2dc Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66ccb2660666ccbd1817',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',12.000 ,'aut66ccb1659566ccbd17ad' ,0,0 ,2,23.00,30000,?,?,?,?,?)
20240826@183624.1313 1t12aeqblcb3061jc4gg7dk2dc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240826@183624.1331 1t12aeqblcb3061jc4gg7dk2dc Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240826@183624.1358 1t12aeqblcb3061jc4gg7dk2dc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240826@183624.1399 1t12aeqblcb3061jc4gg7dk2dc Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240826@183624.1408 1t12aeqblcb3061jc4gg7dk2dc Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240826@183624.1421 1t12aeqblcb3061jc4gg7dk2dc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240826@183624.1458 1t12aeqblcb3061jc4gg7dk2dc Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240826@183624.1471 1t12aeqblcb3061jc4gg7dk2dc Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66ccb1910766ccbd1822','aut66ccb1659566ccbd17ad' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240826@183624.1476 1t12aeqblcb3061jc4gg7dk2dc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240826@183624.1491 1t12aeqblcb3061jc4gg7dk2dc Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240826@183624.1519 1t12aeqblcb3061jc4gg7dk2dc Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66ccb1910766ccbd1822',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66ccb1659566ccbd17ad' ,0,0 ,2,23.00,40000,?,?,?)
20240826@183624.1808 1t12aeqblcb3061jc4gg7dk2dc Query : use flama_phc
20240826@183624.1811 1t12aeqblcb3061jc4gg7dk2dc Query : select st.usalote valor from st where st.ref = '304.4320.00.1'
20240826@183624.1833 1t12aeqblcb3061jc4gg7dk2dc Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '304.4320.00.1'
20240826@183624.1848 1t12aeqblcb3061jc4gg7dk2dc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240826@183624.1867 1t12aeqblcb3061jc4gg7dk2dc Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240826@183624.1896 1t12aeqblcb3061jc4gg7dk2dc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240826@183624.1912 1t12aeqblcb3061jc4gg7dk2dc Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240826@183624.1921 1t12aeqblcb3061jc4gg7dk2dc Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240826@183624.1934 1t12aeqblcb3061jc4gg7dk2dc Query : select sestamp valor from se where ref ='304.4320.00.1' and lote = '240897'
20240826@183624.1947 1t12aeqblcb3061jc4gg7dk2dc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240826@183624.1962 1t12aeqblcb3061jc4gg7dk2dc Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240826@183624.1976 1t12aeqblcb3061jc4gg7dk2dc Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66ccb4253066ccbd182f','aut66ccb1659566ccbd17ad' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240826@183624.1981 1t12aeqblcb3061jc4gg7dk2dc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240826@183624.1996 1t12aeqblcb3061jc4gg7dk2dc Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240826@183624.2027 1t12aeqblcb3061jc4gg7dk2dc Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66ccb4253066ccbd182f',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',12.000 ,'aut66ccb1659566ccbd17ad' ,0,0 ,2,23.00,60000,?,?,?,?,?)
20240826@183624.2301 1t12aeqblcb3061jc4gg7dk2dc Query : use flama_phc
20240826@183624.2305 1t12aeqblcb3061jc4gg7dk2dc Query : select st.usalote valor from st where st.ref = '324.5343.00.1'
20240826@183624.2329 1t12aeqblcb3061jc4gg7dk2dc Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.5343.00.1'
20240826@183624.2705 1t12aeqblcb3061jc4gg7dk2dc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240826@183624.2724 1t12aeqblcb3061jc4gg7dk2dc Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240826@183624.2753 1t12aeqblcb3061jc4gg7dk2dc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240826@183624.2770 1t12aeqblcb3061jc4gg7dk2dc Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240826@183624.2783 1t12aeqblcb3061jc4gg7dk2dc Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240826@183624.2796 1t12aeqblcb3061jc4gg7dk2dc Query : select sestamp valor from se where ref ='324.5343.00.1' and lote = 'r2300915100a'
20240826@183624.2827 1t12aeqblcb3061jc4gg7dk2dc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240826@183624.2842 1t12aeqblcb3061jc4gg7dk2dc Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240826@183624.2856 1t12aeqblcb3061jc4gg7dk2dc Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66ccb6917166ccbd1845','aut66ccb1659566ccbd17ad' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240826@183624.2861 1t12aeqblcb3061jc4gg7dk2dc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240826@183624.2876 1t12aeqblcb3061jc4gg7dk2dc Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240826@183624.2907 1t12aeqblcb3061jc4gg7dk2dc Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66ccb6917166ccbd1845',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',24.000 ,'aut66ccb1659566ccbd17ad' ,0,0 ,2,23.00,70000,?,?,?,?,?)
20240826@183624.3197 1t12aeqblcb3061jc4gg7dk2dc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240826@183624.3215 1t12aeqblcb3061jc4gg7dk2dc Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240826@183624.3243 1t12aeqblcb3061jc4gg7dk2dc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240826@183624.3259 1t12aeqblcb3061jc4gg7dk2dc Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240826@183624.3268 1t12aeqblcb3061jc4gg7dk2dc Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240826@183624.3283 1t12aeqblcb3061jc4gg7dk2dc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240826@183624.3298 1t12aeqblcb3061jc4gg7dk2dc Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240826@183624.3311 1t12aeqblcb3061jc4gg7dk2dc Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66ccb3783466ccbd1850','aut66ccb1659566ccbd17ad' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240826@183624.3316 1t12aeqblcb3061jc4gg7dk2dc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240826@183624.3331 1t12aeqblcb3061jc4gg7dk2dc Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240826@183624.3360 1t12aeqblcb3061jc4gg7dk2dc Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66ccb3783466ccbd1850',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66ccb1659566ccbd17ad' ,0,0 ,2,23.00,80000,?,?,?)
20240826@183624.3625 1t12aeqblcb3061jc4gg7dk2dc Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut66ccb1659566ccbd17ad','2405555','wait',39,'adm09112754980.682000002')
20240826@183624.3696 1t12aeqblcb3061jc4gg7dk2dc Query : use flama_phc
20240826@183624.3699 1t12aeqblcb3061jc4gg7dk2dc Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240826@183624.3729 1t12aeqblcb3061jc4gg7dk2dc Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1684';
20240826@183624.3765 1t12aeqblcb3061jc4gg7dk2dc Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1684';
20240826@183624.3803 1t12aeqblcb3061jc4gg7dk2dc Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1684';
20240826@183624.3828 1t12aeqblcb3061jc4gg7dk2dc Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1684';
20240826@183624.4367 g9o0mquulgg104daf0f6vec0kd Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240826@183624.4378 g9o0mquulgg104daf0f6vec0kd Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240826@183624.4428 g9o0mquulgg104daf0f6vec0kd Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1685';
20240826@183624.4484 g9o0mquulgg104daf0f6vec0kd Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1685';
20240826@183624.4533 g9o0mquulgg104daf0f6vec0kd Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1685';
20240826@183624.4555 g9o0mquulgg104daf0f6vec0kd Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1685';
20240826@183624.4598 g9o0mquulgg104daf0f6vec0kd Query : use flama_phc
20240826@183624.4601 g9o0mquulgg104daf0f6vec0kd Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240826@183624.4663 g9o0mquulgg104daf0f6vec0kd Query : use flama_phc
20240826@183624.4666 g9o0mquulgg104daf0f6vec0kd Query : select no, estab,szadrsdesc from szadrs where u_coddest=4743
20240826@183624.4706 g9o0mquulgg104daf0f6vec0kd Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.969.00.01'
20240826@183624.4887 g9o0mquulgg104daf0f6vec0kd Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2055 and bo.obrano = 2405556 and bi.ref ='324.969.00.01' and bi.lordem =1
20240826@183624.5299 g9o0mquulgg104daf0f6vec0kd Query : use flama_phc
20240826@183624.5304 g9o0mquulgg104daf0f6vec0kd Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20240826@183624.5384 g9o0mquulgg104daf0f6vec0kd Query : use flama_phc
20240826@183624.5387 g9o0mquulgg104daf0f6vec0kd Query : select top 1 1 valor from td where td.ndoc = 39
20240826@183624.5416 g9o0mquulgg104daf0f6vec0kd Query : use flama_phc
20240826@183624.5419 g9o0mquulgg104daf0f6vec0kd 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')
20240826@183624.5450 g9o0mquulgg104daf0f6vec0kd 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
20240826@183624.5482 g9o0mquulgg104daf0f6vec0kd Query : use flama_phc
20240826@183624.5485 g9o0mquulgg104daf0f6vec0kd Query : select top 1 ~inactivo valor from cl where no = '101597' and estab = 0 order by inactivo desc
20240826@183624.5513 g9o0mquulgg104daf0f6vec0kd Query : use flama_phc
20240826@183624.5516 g9o0mquulgg104daf0f6vec0kd Query : select top 1 tipodoc,regrd from td where ndoc = 39
20240826@183624.5544 g9o0mquulgg104daf0f6vec0kd Query : use flama_phc
20240826@183624.5546 g9o0mquulgg104daf0f6vec0kd Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20240826@183624.5583 g9o0mquulgg104daf0f6vec0kd Query : use flama_phc
20240826@183624.5586 g9o0mquulgg104daf0f6vec0kd Query : select szadrsstamp valor from szadrs where szadrsdesc='101597 - auchan retail portugal , sa'
20240826@183624.5628 g9o0mquulgg104daf0f6vec0kd Query : use flama_phc
20240826@183624.5630 g9o0mquulgg104daf0f6vec0kd Query : select 1 valor from td where ndoc = 39
20240826@183624.5642 g9o0mquulgg104daf0f6vec0kd Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20240826@183624.5656 g9o0mquulgg104daf0f6vec0kd Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240826@183624.5672 g9o0mquulgg104daf0f6vec0kd Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20240826@183624.5690 g9o0mquulgg104daf0f6vec0kd Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240826@183624.5714 g9o0mquulgg104daf0f6vec0kd Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20240826@183624.5739 g9o0mquulgg104daf0f6vec0kd Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240826@183624.5753 g9o0mquulgg104daf0f6vec0kd Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20240826@183624.5765 g9o0mquulgg104daf0f6vec0kd Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240826@183624.5838 g9o0mquulgg104daf0f6vec0kd Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240826@183624.5851 g9o0mquulgg104daf0f6vec0kd Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240826@183624.5868 g9o0mquulgg104daf0f6vec0kd Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20240826@183624.5883 g9o0mquulgg104daf0f6vec0kd Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut66ccb5969666ccbd188c' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20240826@183624.6082 g9o0mquulgg104daf0f6vec0kd Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240826@183624.6102 g9o0mquulgg104daf0f6vec0kd Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20240826@183624.6136 g9o0mquulgg104daf0f6vec0kd Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20240826@183624.6149 g9o0mquulgg104daf0f6vec0kd Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20240826@183624.6161 g9o0mquulgg104daf0f6vec0kd Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20240826@183624.6173 g9o0mquulgg104daf0f6vec0kd Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20240826@183624.6185 g9o0mquulgg104daf0f6vec0kd Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20240826@183624.6198 g9o0mquulgg104daf0f6vec0kd Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20240826@183624.6210 g9o0mquulgg104daf0f6vec0kd Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut66ccb5969666ccbd188c',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20240826@183624.6552 g9o0mquulgg104daf0f6vec0kd Query : select top 1 fno valor from wsftdata order by fno desc
20240826@183624.6719 g9o0mquulgg104daf0f6vec0kd Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240826@183624.6737 g9o0mquulgg104daf0f6vec0kd Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20240826@183624.6760 g9o0mquulgg104daf0f6vec0kd Query : select 'normal' from dummy
20240826@183624.6776 g9o0mquulgg104daf0f6vec0kd Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut66ccb5969666ccbd188c',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',484,101597,0,'2024-08-26',39,'euro',0,0,2024 ,?,?)
20240826@183624.8170 g9o0mquulgg104daf0f6vec0kd Query : use flama_phc
20240826@183624.8177 g9o0mquulgg104daf0f6vec0kd Query : select st.usalote valor from st where st.ref = '324.969.00.01'
20240826@183624.8204 g9o0mquulgg104daf0f6vec0kd Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.969.00.01'
20240826@183624.8373 g9o0mquulgg104daf0f6vec0kd Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240826@183624.8389 g9o0mquulgg104daf0f6vec0kd Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240826@183624.8417 g9o0mquulgg104daf0f6vec0kd Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240826@183624.8432 g9o0mquulgg104daf0f6vec0kd Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240826@183624.8440 g9o0mquulgg104daf0f6vec0kd Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240826@183624.8454 g9o0mquulgg104daf0f6vec0kd Query : select sestamp valor from se where ref ='324.969.00.01' and lote = 'r2100601100a'
20240826@183624.8481 g9o0mquulgg104daf0f6vec0kd Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240826@183624.8495 g9o0mquulgg104daf0f6vec0kd Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240826@183624.8507 g9o0mquulgg104daf0f6vec0kd Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66ccb3388066ccbd18cf','aut66ccb5969666ccbd188c' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240826@183624.8512 g9o0mquulgg104daf0f6vec0kd Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240826@183624.8526 g9o0mquulgg104daf0f6vec0kd Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240826@183624.8555 g9o0mquulgg104daf0f6vec0kd Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66ccb3388066ccbd18cf',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',2.000 ,'aut66ccb5969666ccbd188c' ,0,0 ,2,23.00,10000,?,?,?,?,?)
20240826@183624.8832 g9o0mquulgg104daf0f6vec0kd Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut66ccb5969666ccbd188c','2405556','wait',39,'adm09112754980.682000002')
20240826@183624.8900 g9o0mquulgg104daf0f6vec0kd Query : use flama_phc
20240826@183624.8903 g9o0mquulgg104daf0f6vec0kd Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240826@183624.8932 g9o0mquulgg104daf0f6vec0kd Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1685';
20240826@183624.8960 g9o0mquulgg104daf0f6vec0kd Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1685';
20240826@183624.8997 g9o0mquulgg104daf0f6vec0kd Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1685';
20240826@183624.9020 g9o0mquulgg104daf0f6vec0kd Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1685';
20240826@183624.9521 4nl7hfighjnrv61hbmek4sndim Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240826@183624.9532 4nl7hfighjnrv61hbmek4sndim Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240826@183624.9583 4nl7hfighjnrv61hbmek4sndim Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1686';
20240826@183624.9639 4nl7hfighjnrv61hbmek4sndim Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1686';
20240826@183624.9686 4nl7hfighjnrv61hbmek4sndim Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1686';
20240826@183624.9709 4nl7hfighjnrv61hbmek4sndim Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1686';
20240826@183624.9752 4nl7hfighjnrv61hbmek4sndim Query : use flama_phc
20240826@183624.9755 4nl7hfighjnrv61hbmek4sndim Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240826@183624.9817 4nl7hfighjnrv61hbmek4sndim Query : use flama_phc
20240826@183624.9819 4nl7hfighjnrv61hbmek4sndim Query : select no, estab,szadrsdesc from szadrs where u_coddest=4743
20240826@183624.9859 4nl7hfighjnrv61hbmek4sndim Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '325.4961.0100'
20240826@183625.4100 4nl7hfighjnrv61hbmek4sndim Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2055 and bo.obrano = 2405557 and bi.ref ='325.4961.0100' and bi.lordem =1
20240826@183625.5050 4nl7hfighjnrv61hbmek4sndim Query : use flama_phc
20240826@183625.5080 4nl7hfighjnrv61hbmek4sndim Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20240826@183625.5400 4nl7hfighjnrv61hbmek4sndim Query : use flama_phc
20240826@183625.5430 4nl7hfighjnrv61hbmek4sndim Query : select top 1 1 valor from td where td.ndoc = 39
20240826@183625.5710 4nl7hfighjnrv61hbmek4sndim Query : use flama_phc
20240826@183625.5740 4nl7hfighjnrv61hbmek4sndim 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')
20240826@183625.6020 4nl7hfighjnrv61hbmek4sndim 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
20240826@183625.6370 4nl7hfighjnrv61hbmek4sndim Query : use flama_phc
20240826@183625.6400 4nl7hfighjnrv61hbmek4sndim Query : select top 1 ~inactivo valor from cl where no = '101597' and estab = 0 order by inactivo desc
20240826@183625.6700 4nl7hfighjnrv61hbmek4sndim Query : use flama_phc
20240826@183625.6720 4nl7hfighjnrv61hbmek4sndim Query : select top 1 tipodoc,regrd from td where ndoc = 39
20240826@183625.7010 4nl7hfighjnrv61hbmek4sndim Query : use flama_phc
20240826@183625.7040 4nl7hfighjnrv61hbmek4sndim Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20240826@183625.7420 4nl7hfighjnrv61hbmek4sndim Query : use flama_phc
20240826@183625.7450 4nl7hfighjnrv61hbmek4sndim Query : select szadrsstamp valor from szadrs where szadrsdesc='101597 - auchan retail portugal , sa'
20240826@183625.7890 4nl7hfighjnrv61hbmek4sndim Query : use flama_phc
20240826@183625.7910 4nl7hfighjnrv61hbmek4sndim Query : select 1 valor from td where ndoc = 39
20240826@183625.8030 4nl7hfighjnrv61hbmek4sndim Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20240826@183625.8170 4nl7hfighjnrv61hbmek4sndim Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240826@183625.8330 4nl7hfighjnrv61hbmek4sndim Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20240826@183625.8510 4nl7hfighjnrv61hbmek4sndim Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240826@183625.8650 4nl7hfighjnrv61hbmek4sndim Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20240826@183625.8910 4nl7hfighjnrv61hbmek4sndim Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240826@183625.9050 4nl7hfighjnrv61hbmek4sndim Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20240826@183625.9170 4nl7hfighjnrv61hbmek4sndim Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240826@183625.9850 4nl7hfighjnrv61hbmek4sndim Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240826@183625.9970 4nl7hfighjnrv61hbmek4sndim Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240826@183625.1012 4nl7hfighjnrv61hbmek4sndim Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20240826@183625.1026 4nl7hfighjnrv61hbmek4sndim Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut66ccb9224066ccbd1916' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20240826@183625.1228 4nl7hfighjnrv61hbmek4sndim Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240826@183625.1245 4nl7hfighjnrv61hbmek4sndim Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20240826@183625.1278 4nl7hfighjnrv61hbmek4sndim Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20240826@183625.1289 4nl7hfighjnrv61hbmek4sndim Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20240826@183625.1302 4nl7hfighjnrv61hbmek4sndim Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20240826@183625.1313 4nl7hfighjnrv61hbmek4sndim Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20240826@183625.1324 4nl7hfighjnrv61hbmek4sndim Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20240826@183625.1336 4nl7hfighjnrv61hbmek4sndim Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20240826@183625.1347 4nl7hfighjnrv61hbmek4sndim Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut66ccb9224066ccbd1916',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20240826@183625.1665 4nl7hfighjnrv61hbmek4sndim Query : select top 1 fno valor from wsftdata order by fno desc
20240826@183625.1870 4nl7hfighjnrv61hbmek4sndim Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240826@183625.1888 4nl7hfighjnrv61hbmek4sndim Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20240826@183625.1913 4nl7hfighjnrv61hbmek4sndim Query : select 'normal' from dummy
20240826@183625.1929 4nl7hfighjnrv61hbmek4sndim Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut66ccb9224066ccbd1916',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',485,101597,0,'2024-08-26',39,'euro',0,0,2024 ,?,?)
20240826@183625.2260 4nl7hfighjnrv61hbmek4sndim Query : use flama_phc
20240826@183625.2264 4nl7hfighjnrv61hbmek4sndim Query : select st.usalote valor from st where st.ref = '325.4961.0100'
20240826@183625.2289 4nl7hfighjnrv61hbmek4sndim Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '325.4961.0100'
20240826@183625.2459 4nl7hfighjnrv61hbmek4sndim Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240826@183625.2475 4nl7hfighjnrv61hbmek4sndim Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240826@183625.2502 4nl7hfighjnrv61hbmek4sndim Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240826@183625.2519 4nl7hfighjnrv61hbmek4sndim Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240826@183625.2530 4nl7hfighjnrv61hbmek4sndim Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240826@183625.2543 4nl7hfighjnrv61hbmek4sndim Query : select sestamp valor from se where ref ='325.4961.0100' and lote = 'r210109215'
20240826@183625.2575 4nl7hfighjnrv61hbmek4sndim Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240826@183625.2591 4nl7hfighjnrv61hbmek4sndim Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240826@183625.2602 4nl7hfighjnrv61hbmek4sndim Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66ccb1107966ccbd193e','aut66ccb9224066ccbd1916' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240826@183625.2607 4nl7hfighjnrv61hbmek4sndim Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240826@183625.2623 4nl7hfighjnrv61hbmek4sndim Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240826@183625.2653 4nl7hfighjnrv61hbmek4sndim Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66ccb1107966ccbd193e',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',30.000 ,'aut66ccb9224066ccbd1916' ,0,0 ,2,23.00,10000,?,?,?,?,?)
20240826@183625.2995 4nl7hfighjnrv61hbmek4sndim Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut66ccb9224066ccbd1916','2405557','wait',39,'adm09112754980.682000002')
20240826@183625.3067 4nl7hfighjnrv61hbmek4sndim Query : use flama_phc
20240826@183625.3070 4nl7hfighjnrv61hbmek4sndim Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240826@183625.3102 4nl7hfighjnrv61hbmek4sndim Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1686';
20240826@183625.3129 4nl7hfighjnrv61hbmek4sndim Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1686';
20240826@183625.3172 4nl7hfighjnrv61hbmek4sndim Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1686';
20240826@183625.3199 4nl7hfighjnrv61hbmek4sndim Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1686';
20240826@183625.3719 f0b0p40rs3ave6c45sscid68gq Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240826@183625.3730 f0b0p40rs3ave6c45sscid68gq Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240826@183625.3782 f0b0p40rs3ave6c45sscid68gq Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1687';
20240826@183625.3838 f0b0p40rs3ave6c45sscid68gq Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1687';
20240826@183625.3889 f0b0p40rs3ave6c45sscid68gq Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1687';
20240826@183625.3914 f0b0p40rs3ave6c45sscid68gq Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1687';
20240826@183625.3960 f0b0p40rs3ave6c45sscid68gq Query : use flama_phc
20240826@183625.3963 f0b0p40rs3ave6c45sscid68gq Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240826@183625.4022 f0b0p40rs3ave6c45sscid68gq Query : use flama_phc
20240826@183625.4025 f0b0p40rs3ave6c45sscid68gq Query : select no, estab,szadrsdesc from szadrs where u_coddest=4740
20240826@183625.4117 f0b0p40rs3ave6c45sscid68gq Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '326.595.00.01'
20240826@183625.4294 f0b0p40rs3ave6c45sscid68gq Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2055 and bo.obrano = 2405558 and bi.ref ='326.595.00.01' and bi.lordem =1
20240826@183625.4665 f0b0p40rs3ave6c45sscid68gq Query : use flama_phc
20240826@183625.4668 f0b0p40rs3ave6c45sscid68gq Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20240826@183625.4699 f0b0p40rs3ave6c45sscid68gq Query : use flama_phc
20240826@183625.4702 f0b0p40rs3ave6c45sscid68gq Query : select top 1 1 valor from td where td.ndoc = 39
20240826@183625.4730 f0b0p40rs3ave6c45sscid68gq Query : use flama_phc
20240826@183625.4733 f0b0p40rs3ave6c45sscid68gq 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')
20240826@183625.4823 f0b0p40rs3ave6c45sscid68gq 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
20240826@183625.4859 f0b0p40rs3ave6c45sscid68gq Query : use flama_phc
20240826@183625.4862 f0b0p40rs3ave6c45sscid68gq Query : select top 1 ~inactivo valor from cl where no = '100810' and estab = 0 order by inactivo desc
20240826@183625.5387 f0b0p40rs3ave6c45sscid68gq Query : use flama_phc
20240826@183625.5393 f0b0p40rs3ave6c45sscid68gq Query : select top 1 tipodoc,regrd from td where ndoc = 39
20240826@183625.5437 f0b0p40rs3ave6c45sscid68gq Query : use flama_phc
20240826@183625.5442 f0b0p40rs3ave6c45sscid68gq Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20240826@183625.5835 f0b0p40rs3ave6c45sscid68gq Query : use flama_phc
20240826@183625.5839 f0b0p40rs3ave6c45sscid68gq Query : select szadrsstamp valor from szadrs where szadrsdesc='100810 - worten-equipamentos para o lar,sa.'
20240826@183625.5954 f0b0p40rs3ave6c45sscid68gq Query : use flama_phc
20240826@183625.5958 f0b0p40rs3ave6c45sscid68gq Query : select 1 valor from td where ndoc = 39
20240826@183625.5970 f0b0p40rs3ave6c45sscid68gq Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20240826@183625.5982 f0b0p40rs3ave6c45sscid68gq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240826@183625.5999 f0b0p40rs3ave6c45sscid68gq Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20240826@183625.6018 f0b0p40rs3ave6c45sscid68gq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240826@183625.6032 f0b0p40rs3ave6c45sscid68gq Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20240826@183625.6058 f0b0p40rs3ave6c45sscid68gq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240826@183625.6072 f0b0p40rs3ave6c45sscid68gq Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20240826@183625.6083 f0b0p40rs3ave6c45sscid68gq Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240826@183625.6151 f0b0p40rs3ave6c45sscid68gq Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240826@183625.6163 f0b0p40rs3ave6c45sscid68gq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240826@183625.6177 f0b0p40rs3ave6c45sscid68gq Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20240826@183625.6191 f0b0p40rs3ave6c45sscid68gq Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut66ccb0071566ccbd1994' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20240826@183625.6377 f0b0p40rs3ave6c45sscid68gq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240826@183625.6649 f0b0p40rs3ave6c45sscid68gq Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20240826@183625.6682 f0b0p40rs3ave6c45sscid68gq Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20240826@183625.6694 f0b0p40rs3ave6c45sscid68gq Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20240826@183625.6706 f0b0p40rs3ave6c45sscid68gq Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20240826@183625.6718 f0b0p40rs3ave6c45sscid68gq Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20240826@183625.6729 f0b0p40rs3ave6c45sscid68gq Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20240826@183625.6741 f0b0p40rs3ave6c45sscid68gq Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20240826@183625.6753 f0b0p40rs3ave6c45sscid68gq Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut66ccb0071566ccbd1994',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20240826@183625.7031 f0b0p40rs3ave6c45sscid68gq Query : select top 1 fno valor from wsftdata order by fno desc
20240826@183625.7053 f0b0p40rs3ave6c45sscid68gq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240826@183625.7073 f0b0p40rs3ave6c45sscid68gq Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20240826@183625.7102 f0b0p40rs3ave6c45sscid68gq Query : select 'normal' from dummy
20240826@183625.7121 f0b0p40rs3ave6c45sscid68gq Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut66ccb0071566ccbd1994',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',486,100810,0,'2024-08-26',39,'euro',0,0,2024 ,?,?)
20240826@183625.7446 f0b0p40rs3ave6c45sscid68gq Query : use flama_phc
20240826@183625.7450 f0b0p40rs3ave6c45sscid68gq Query : select st.usalote valor from st where st.ref = '326.595.00.01'
20240826@183625.7474 f0b0p40rs3ave6c45sscid68gq Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '326.595.00.01'
20240826@183625.7651 f0b0p40rs3ave6c45sscid68gq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240826@183625.7668 f0b0p40rs3ave6c45sscid68gq Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240826@183625.7695 f0b0p40rs3ave6c45sscid68gq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240826@183625.7711 f0b0p40rs3ave6c45sscid68gq Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240826@183625.7720 f0b0p40rs3ave6c45sscid68gq Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240826@183625.7733 f0b0p40rs3ave6c45sscid68gq Query : select sestamp valor from se where ref ='326.595.00.01' and lote = 'r2301243100a'
20240826@183625.7758 f0b0p40rs3ave6c45sscid68gq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240826@183625.7773 f0b0p40rs3ave6c45sscid68gq Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240826@183625.7789 f0b0p40rs3ave6c45sscid68gq Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66ccb3548966ccbd19bd','aut66ccb0071566ccbd1994' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240826@183625.7794 f0b0p40rs3ave6c45sscid68gq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240826@183625.7809 f0b0p40rs3ave6c45sscid68gq Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240826@183625.7841 f0b0p40rs3ave6c45sscid68gq Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66ccb3548966ccbd19bd',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',6.000 ,'aut66ccb0071566ccbd1994' ,0,0 ,2,23.00,10000,?,?,?,?,?)
20240826@183625.8119 f0b0p40rs3ave6c45sscid68gq Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut66ccb0071566ccbd1994','2405558','wait',39,'adm09112754980.682000002')
20240826@183625.8189 f0b0p40rs3ave6c45sscid68gq Query : use flama_phc
20240826@183625.8192 f0b0p40rs3ave6c45sscid68gq Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240826@183625.8225 f0b0p40rs3ave6c45sscid68gq Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1687';
20240826@183625.8253 f0b0p40rs3ave6c45sscid68gq Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1687';
20240826@183625.8293 f0b0p40rs3ave6c45sscid68gq Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1687';
20240826@183625.8316 f0b0p40rs3ave6c45sscid68gq Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1687';
20240826@183625.9154 uglhl8fdf0t1ifh9trhqhmbkm0 Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240826@183625.9165 uglhl8fdf0t1ifh9trhqhmbkm0 Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240826@183625.9215 uglhl8fdf0t1ifh9trhqhmbkm0 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1688';
20240826@183625.9273 uglhl8fdf0t1ifh9trhqhmbkm0 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1688';
20240826@183625.9321 uglhl8fdf0t1ifh9trhqhmbkm0 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1688';
20240826@183625.9344 uglhl8fdf0t1ifh9trhqhmbkm0 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1688';
20240826@183625.9388 uglhl8fdf0t1ifh9trhqhmbkm0 Query : use flama_phc
20240826@183625.9392 uglhl8fdf0t1ifh9trhqhmbkm0 Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240826@183625.9454 uglhl8fdf0t1ifh9trhqhmbkm0 Query : use flama_phc
20240826@183625.9457 uglhl8fdf0t1ifh9trhqhmbkm0 Query : select no, estab,szadrsdesc from szadrs where u_coddest=2461
20240826@183625.9548 uglhl8fdf0t1ifh9trhqhmbkm0 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'
20240826@183625.9956 uglhl8fdf0t1ifh9trhqhmbkm0 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2055 and bo.obrano = 2405559 and bi.ref ='327.8253.00.1' and bi.lordem =1
20240826@183626.6500 uglhl8fdf0t1ifh9trhqhmbkm0 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'
20240826@183626.7600 uglhl8fdf0t1ifh9trhqhmbkm0 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2055 and bo.obrano = 2405559 and bi.ref ='327.8253.00.1' and bi.lordem =1
20240826@183626.7780 uglhl8fdf0t1ifh9trhqhmbkm0 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '327.8261.00.1'
