20241008@095102.6582 0fohuqqg5vtbiodp87riirj28g Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@095102.6598 0fohuqqg5vtbiodp87riirj28g Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241008@095102.6622 0fohuqqg5vtbiodp87riirj28g Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@095102.6636 0fohuqqg5vtbiodp87riirj28g Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241008@095102.6644 0fohuqqg5vtbiodp87riirj28g Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241008@095102.6656 0fohuqqg5vtbiodp87riirj28g Query : select sestamp valor from se where ref ='304.422.00.07' and lote = '240647'
20241008@095102.6667 0fohuqqg5vtbiodp87riirj28g Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@095102.6681 0fohuqqg5vtbiodp87riirj28g Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241008@095102.6692 0fohuqqg5vtbiodp87riirj28g Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut6704f131306704f276a2','aut6704f089666704f2761f' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241008@095102.6697 0fohuqqg5vtbiodp87riirj28g Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@095102.6711 0fohuqqg5vtbiodp87riirj28g Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241008@095102.6737 0fohuqqg5vtbiodp87riirj28g Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem) values ('aut6704f131306704f276a2',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',32.000 ,'aut6704f089666704f2761f' ,0,0 ,2,23.00,30000,?,?,?,?)
20241008@095102.6952 0fohuqqg5vtbiodp87riirj28g Query : use flama_phc
20241008@095102.6955 0fohuqqg5vtbiodp87riirj28g Query : select st.usalote valor from st where st.ref = '304.422.00.07'
20241008@095102.6973 0fohuqqg5vtbiodp87riirj28g Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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'
20241008@095102.6986 0fohuqqg5vtbiodp87riirj28g Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@095102.7001 0fohuqqg5vtbiodp87riirj28g Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241008@095102.7024 0fohuqqg5vtbiodp87riirj28g Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@095102.7038 0fohuqqg5vtbiodp87riirj28g Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241008@095102.7046 0fohuqqg5vtbiodp87riirj28g Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241008@095102.7057 0fohuqqg5vtbiodp87riirj28g Query : select sestamp valor from se where ref ='304.422.00.07' and lote = '230738'
20241008@095102.7069 0fohuqqg5vtbiodp87riirj28g Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@095102.7083 0fohuqqg5vtbiodp87riirj28g Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241008@095102.7094 0fohuqqg5vtbiodp87riirj28g Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut6704f607456704f276ac','aut6704f089666704f2761f' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241008@095102.7098 0fohuqqg5vtbiodp87riirj28g Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@095102.7112 0fohuqqg5vtbiodp87riirj28g Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241008@095102.7141 0fohuqqg5vtbiodp87riirj28g Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem) values ('aut6704f607456704f276ac',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',20.000 ,'aut6704f089666704f2761f' ,0,0 ,2,23.00,40000,?,?,?,?)
20241008@095102.7344 0fohuqqg5vtbiodp87riirj28g Query : use flama_phc
20241008@095102.7347 0fohuqqg5vtbiodp87riirj28g Query : select st.usalote valor from st where st.ref = '324.1405.00.1'
20241008@095102.7367 0fohuqqg5vtbiodp87riirj28g Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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.1405.00.1'
20241008@095102.7560 0fohuqqg5vtbiodp87riirj28g Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@095102.7576 0fohuqqg5vtbiodp87riirj28g Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241008@095102.7600 0fohuqqg5vtbiodp87riirj28g Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@095102.7614 0fohuqqg5vtbiodp87riirj28g Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241008@095102.7622 0fohuqqg5vtbiodp87riirj28g Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241008@095102.7634 0fohuqqg5vtbiodp87riirj28g Query : select sestamp valor from se where ref ='324.1405.00.1' and lote = 'r2100212200a'
20241008@095102.7655 0fohuqqg5vtbiodp87riirj28g Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@095102.7669 0fohuqqg5vtbiodp87riirj28g Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241008@095102.7681 0fohuqqg5vtbiodp87riirj28g Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut6704f743296704f276ba','aut6704f089666704f2761f' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241008@095102.7684 0fohuqqg5vtbiodp87riirj28g Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@095102.7698 0fohuqqg5vtbiodp87riirj28g Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241008@095102.7725 0fohuqqg5vtbiodp87riirj28g Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem) values ('aut6704f743296704f276ba',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',6.000 ,'aut6704f089666704f2761f' ,0,0 ,2,23.00,50000,?,?,?,?)
20241008@095102.7935 0fohuqqg5vtbiodp87riirj28g Query : use flama_phc
20241008@095102.7938 0fohuqqg5vtbiodp87riirj28g Query : select st.usalote valor from st where st.ref = '324.1705.00.1'
20241008@095102.7958 0fohuqqg5vtbiodp87riirj28g Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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.1705.00.1'
20241008@095102.8093 0fohuqqg5vtbiodp87riirj28g Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@095102.8108 0fohuqqg5vtbiodp87riirj28g Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241008@095102.8133 0fohuqqg5vtbiodp87riirj28g Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@095102.8147 0fohuqqg5vtbiodp87riirj28g Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241008@095102.8155 0fohuqqg5vtbiodp87riirj28g Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241008@095102.8167 0fohuqqg5vtbiodp87riirj28g Query : select sestamp valor from se where ref ='324.1705.00.1' and lote = 'r2400050500a'
20241008@095102.8180 0fohuqqg5vtbiodp87riirj28g Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@095102.8194 0fohuqqg5vtbiodp87riirj28g Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241008@095102.8204 0fohuqqg5vtbiodp87riirj28g Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut6704f968406704f276c7','aut6704f089666704f2761f' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241008@095102.8208 0fohuqqg5vtbiodp87riirj28g Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@095102.8222 0fohuqqg5vtbiodp87riirj28g Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241008@095102.8252 0fohuqqg5vtbiodp87riirj28g Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem) values ('aut6704f968406704f276c7',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',12.000 ,'aut6704f089666704f2761f' ,0,0 ,2,23.00,60000,?,?,?,?)
20241008@095102.8464 0fohuqqg5vtbiodp87riirj28g Query : use flama_phc
20241008@095102.8467 0fohuqqg5vtbiodp87riirj28g Query : select st.usalote valor from st where st.ref = '304.4320.00.1'
20241008@095102.8487 0fohuqqg5vtbiodp87riirj28g Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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'
20241008@095102.8814 0fohuqqg5vtbiodp87riirj28g Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@095102.8830 0fohuqqg5vtbiodp87riirj28g Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241008@095102.8854 0fohuqqg5vtbiodp87riirj28g Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@095102.8868 0fohuqqg5vtbiodp87riirj28g Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241008@095102.8878 0fohuqqg5vtbiodp87riirj28g Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241008@095102.8890 0fohuqqg5vtbiodp87riirj28g Query : select sestamp valor from se where ref ='304.4320.00.1' and lote = '240180'
20241008@095102.8924 0fohuqqg5vtbiodp87riirj28g Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@095102.8945 0fohuqqg5vtbiodp87riirj28g Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241008@095102.8956 0fohuqqg5vtbiodp87riirj28g Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut6704f180456704f276d9','aut6704f089666704f2761f' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241008@095102.8960 0fohuqqg5vtbiodp87riirj28g Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@095102.8974 0fohuqqg5vtbiodp87riirj28g Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241008@095102.9002 0fohuqqg5vtbiodp87riirj28g Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem) values ('aut6704f180456704f276d9',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',64.000 ,'aut6704f089666704f2761f' ,0,0 ,2,23.00,70000,?,?,?,?)
20241008@095102.9400 0fohuqqg5vtbiodp87riirj28g Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut6704f089666704f2761f','2406534','wait',39,'adm09112754980.682000002')
20241008@095102.9820 0fohuqqg5vtbiodp87riirj28g Query : use flama_phc
20241008@095102.9832 0fohuqqg5vtbiodp87riirj28g Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20241008@095102.9865 0fohuqqg5vtbiodp87riirj28g Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2483';
20241008@095102.9958 0fohuqqg5vtbiodp87riirj28g Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2483';
20241008@095103.1150 0fohuqqg5vtbiodp87riirj28g Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2483';
20241008@095103.6710 0fohuqqg5vtbiodp87riirj28g Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2483';
20241008@095103.1589 ac9k6bm837ridmucpnn0jmej1t Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20241008@095103.1635 ac9k6bm837ridmucpnn0jmej1t Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20241008@095103.1869 ac9k6bm837ridmucpnn0jmej1t Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2484';
20241008@095103.2126 ac9k6bm837ridmucpnn0jmej1t Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2484';
20241008@095103.2226 ac9k6bm837ridmucpnn0jmej1t Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2484';
20241008@095103.2528 ac9k6bm837ridmucpnn0jmej1t Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2484';
20241008@095103.2712 ac9k6bm837ridmucpnn0jmej1t Query : use flama_phc
20241008@095103.2762 ac9k6bm837ridmucpnn0jmej1t Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20241008@095103.3194 ac9k6bm837ridmucpnn0jmej1t Query : use flama_phc
20241008@095103.3221 ac9k6bm837ridmucpnn0jmej1t Query : select no, estab,szadrsdesc from szadrs where u_coddest=4740
20241008@095103.3420 ac9k6bm837ridmucpnn0jmej1t Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '304.4860.00.1'
20241008@095103.3713 ac9k6bm837ridmucpnn0jmej1t Query : use flama_phc
20241008@095103.3751 ac9k6bm837ridmucpnn0jmej1t Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20241008@095103.3839 ac9k6bm837ridmucpnn0jmej1t Query : use flama_phc
20241008@095103.3843 ac9k6bm837ridmucpnn0jmej1t Query : select top 1 1 valor from td where td.ndoc = 39
20241008@095103.3877 ac9k6bm837ridmucpnn0jmej1t Query : use flama_phc
20241008@095103.3880 ac9k6bm837ridmucpnn0jmej1t 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')
20241008@095103.3951 ac9k6bm837ridmucpnn0jmej1t 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
20241008@095103.3988 ac9k6bm837ridmucpnn0jmej1t Query : use flama_phc
20241008@095103.3991 ac9k6bm837ridmucpnn0jmej1t Query : select top 1 ~inactivo valor from cl where no = '100810' and estab = 0 order by inactivo desc
20241008@095103.4280 ac9k6bm837ridmucpnn0jmej1t Query : use flama_phc
20241008@095103.4288 ac9k6bm837ridmucpnn0jmej1t Query : select top 1 tipodoc,regrd from td where ndoc = 39
20241008@095103.4334 ac9k6bm837ridmucpnn0jmej1t Query : use flama_phc
20241008@095103.4338 ac9k6bm837ridmucpnn0jmej1t Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20241008@095103.4390 ac9k6bm837ridmucpnn0jmej1t Query : use flama_phc
20241008@095103.4393 ac9k6bm837ridmucpnn0jmej1t Query : select szadrsstamp valor from szadrs where szadrsdesc='100810 - worten-equipamentos para o lar,sa.'
20241008@095103.4458 ac9k6bm837ridmucpnn0jmej1t Query : use flama_phc
20241008@095103.4461 ac9k6bm837ridmucpnn0jmej1t Query : select 1 valor from td where ndoc = 39
20241008@095103.4475 ac9k6bm837ridmucpnn0jmej1t Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20241008@095103.4490 ac9k6bm837ridmucpnn0jmej1t Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@095103.4507 ac9k6bm837ridmucpnn0jmej1t Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20241008@095103.4528 ac9k6bm837ridmucpnn0jmej1t Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@095103.4545 ac9k6bm837ridmucpnn0jmej1t Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20241008@095103.4573 ac9k6bm837ridmucpnn0jmej1t Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@095103.4587 ac9k6bm837ridmucpnn0jmej1t Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20241008@095103.4600 ac9k6bm837ridmucpnn0jmej1t Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20241008@095103.4664 ac9k6bm837ridmucpnn0jmej1t Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20241008@095103.4677 ac9k6bm837ridmucpnn0jmej1t Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@095103.4691 ac9k6bm837ridmucpnn0jmej1t Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20241008@095103.4707 ac9k6bm837ridmucpnn0jmej1t Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut6704f438586704f27770' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20241008@095103.4860 ac9k6bm837ridmucpnn0jmej1t Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@095103.4876 ac9k6bm837ridmucpnn0jmej1t Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20241008@095103.4926 ac9k6bm837ridmucpnn0jmej1t Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20241008@095103.4939 ac9k6bm837ridmucpnn0jmej1t Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20241008@095103.4951 ac9k6bm837ridmucpnn0jmej1t Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20241008@095103.4963 ac9k6bm837ridmucpnn0jmej1t Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20241008@095103.4974 ac9k6bm837ridmucpnn0jmej1t Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20241008@095103.4986 ac9k6bm837ridmucpnn0jmej1t Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20241008@095103.4997 ac9k6bm837ridmucpnn0jmej1t Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut6704f438586704f27770',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20241008@095103.5209 ac9k6bm837ridmucpnn0jmej1t Query : select top 1 fno valor from wsftdata order by fno desc
20241008@095103.5243 ac9k6bm837ridmucpnn0jmej1t Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@095103.5259 ac9k6bm837ridmucpnn0jmej1t Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20241008@095103.5284 ac9k6bm837ridmucpnn0jmej1t Query : select 'normal' from dummy
20241008@095103.5300 ac9k6bm837ridmucpnn0jmej1t Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut6704f438586704f27770',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',1135,100810,0,'2024-10-08',39,'euro',0,0,2024 ,?,?)
20241008@095103.5603 ac9k6bm837ridmucpnn0jmej1t Query : use flama_phc
20241008@095103.5632 ac9k6bm837ridmucpnn0jmej1t Query : select st.usalote valor from st where st.ref = '304.4860.00.1'
20241008@095103.5657 ac9k6bm837ridmucpnn0jmej1t Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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.4860.00.1'
20241008@095103.5818 ac9k6bm837ridmucpnn0jmej1t Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@095103.5835 ac9k6bm837ridmucpnn0jmej1t Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241008@095103.5860 ac9k6bm837ridmucpnn0jmej1t Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@095103.5878 ac9k6bm837ridmucpnn0jmej1t Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241008@095103.5886 ac9k6bm837ridmucpnn0jmej1t Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241008@095103.5898 ac9k6bm837ridmucpnn0jmej1t Query : select sestamp valor from se where ref ='304.4860.00.1' and lote = '241006'
20241008@095103.5912 ac9k6bm837ridmucpnn0jmej1t Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@095103.5926 ac9k6bm837ridmucpnn0jmej1t Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241008@095103.5985 ac9k6bm837ridmucpnn0jmej1t Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut6704f249796704f27790','aut6704f438586704f27770' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241008@095103.5990 ac9k6bm837ridmucpnn0jmej1t Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@095103.6007 ac9k6bm837ridmucpnn0jmej1t Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241008@095103.6036 ac9k6bm837ridmucpnn0jmej1t Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem) values ('aut6704f249796704f27790',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',40.000 ,'aut6704f438586704f27770' ,0,0 ,2,23.00,10000,?,?,?,?)
20241008@095103.6242 ac9k6bm837ridmucpnn0jmej1t Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut6704f438586704f27770','2406546','wait',39,'adm09112754980.682000002')
20241008@095103.6313 ac9k6bm837ridmucpnn0jmej1t Query : use flama_phc
20241008@095103.6317 ac9k6bm837ridmucpnn0jmej1t Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20241008@095103.6348 ac9k6bm837ridmucpnn0jmej1t Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2484';
20241008@095103.6383 ac9k6bm837ridmucpnn0jmej1t Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2484';
20241008@095103.6425 ac9k6bm837ridmucpnn0jmej1t Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2484';
20241008@095103.6451 ac9k6bm837ridmucpnn0jmej1t Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2484';
20241008@100624.2761 fjtcoc6246g25fpgtdggq0vi05 Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20241008@100624.2774 fjtcoc6246g25fpgtdggq0vi05 Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20241008@100624.2844 fjtcoc6246g25fpgtdggq0vi05 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2485';
20241008@100624.2902 fjtcoc6246g25fpgtdggq0vi05 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2485';
20241008@100624.2973 fjtcoc6246g25fpgtdggq0vi05 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2485';
20241008@100624.3001 fjtcoc6246g25fpgtdggq0vi05 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2485';
20241008@100624.3049 fjtcoc6246g25fpgtdggq0vi05 Query : use flama_phc
20241008@100624.3053 fjtcoc6246g25fpgtdggq0vi05 Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20241008@100624.3148 fjtcoc6246g25fpgtdggq0vi05 Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.648.00.01'
20241008@100624.3277 fjtcoc6246g25fpgtdggq0vi05 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 = 2400750 and bi.ref ='324.648.00.01' and bi.lordem =20000
20241008@100624.3638 fjtcoc6246g25fpgtdggq0vi05 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 = 'cps24061381255,674000002 ' 
20241008@100624.3975 fjtcoc6246g25fpgtdggq0vi05 Query : use flama_phc
20241008@100624.3979 fjtcoc6246g25fpgtdggq0vi05 Query : select top 1 1 valor from ts where ts.ndos = 61
20241008@100624.4109 fjtcoc6246g25fpgtdggq0vi05 Query : use flama_phc
20241008@100624.4112 fjtcoc6246g25fpgtdggq0vi05 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')
20241008@100624.4140 fjtcoc6246g25fpgtdggq0vi05 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
20241008@100624.4314 fjtcoc6246g25fpgtdggq0vi05 Query : use flama_phc
20241008@100624.4318 fjtcoc6246g25fpgtdggq0vi05 Query : select top 1 ~inactivo valor from fl where no = '202563' and estab = 00 order by inactivo desc
20241008@100624.4418 fjtcoc6246g25fpgtdggq0vi05 Query : use flama_phc
20241008@100624.4421 fjtcoc6246g25fpgtdggq0vi05 Query : select 1 valor from ts where ndos = 61
20241008@100624.4491 fjtcoc6246g25fpgtdggq0vi05 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@100624.4521 fjtcoc6246g25fpgtdggq0vi05 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bo' and documentnumber = 61
20241008@100624.4530 fjtcoc6246g25fpgtdggq0vi05 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@100624.4545 fjtcoc6246g25fpgtdggq0vi05 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bo2' and documentnumber = 61
20241008@100624.4555 fjtcoc6246g25fpgtdggq0vi05 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@100624.4569 fjtcoc6246g25fpgtdggq0vi05 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bo3' and documentnumber = 61
20241008@100624.4579 fjtcoc6246g25fpgtdggq0vi05 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
20241008@100624.4697 fjtcoc6246g25fpgtdggq0vi05 Query : select top 1 bo.obrano valor from bo bo where bo.ndos = 61 and boano=2024 order by obrano desc
20241008@100624.4795 fjtcoc6246g25fpgtdggq0vi05 Query : select top 1 bo.obrano valor from bo bo where bo.ndos = 61 and boano=2024 order by obrano desc
20241008@100624.4827 fjtcoc6246g25fpgtdggq0vi05 Query : use flama_phc
20241008@100624.4834 fjtcoc6246g25fpgtdggq0vi05 Query : select top 1 no,estab,nome, morada, local,codpost,ncont,pncont,pais,inactivo,motiseimp,codmotiseimp from fl where no='202563' and estab=00
20241008@100624.4900 fjtcoc6246g25fpgtdggq0vi05 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@100624.4915 fjtcoc6246g25fpgtdggq0vi05 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bo3' and documentnumber = 61
20241008@100624.4933 fjtcoc6246g25fpgtdggq0vi05 Query : insert into bo3 (bo3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut6704f130856704f61075',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut')
20241008@100624.4984 fjtcoc6246g25fpgtdggq0vi05 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@100624.5000 fjtcoc6246g25fpgtdggq0vi05 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bo2' and documentnumber = 61
20241008@100624.5013 fjtcoc6246g25fpgtdggq0vi05 Query : insert into bo2 (bo2stamp, tiposaft, idserie,cambio,cambiofixo,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut6704f130856704f61075','--','bo',1.0185185185185185185 ,1,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut')
20241008@100624.5213 fjtcoc6246g25fpgtdggq0vi05 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@100624.5229 fjtcoc6246g25fpgtdggq0vi05 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bo' and documentnumber = 61
20241008@100624.5242 fjtcoc6246g25fpgtdggq0vi05 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 ('aut6704f130856704f61075','guia r. fornecedor','2024-10-08',61,2402949,?,?,?,?,?,?,?,?,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')
20241008@100627.9170 fjtcoc6246g25fpgtdggq0vi05 Query : use flama_phc
20241008@100627.9173 fjtcoc6246g25fpgtdggq0vi05 Query : select st.usalote valor from st where st.ref = '324.648.00.01'
20241008@100627.9201 fjtcoc6246g25fpgtdggq0vi05 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.648.00.01'
20241008@100627.9351 fjtcoc6246g25fpgtdggq0vi05 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@100627.9370 fjtcoc6246g25fpgtdggq0vi05 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 61
20241008@100627.9383 fjtcoc6246g25fpgtdggq0vi05 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@100627.9398 fjtcoc6246g25fpgtdggq0vi05 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 61
20241008@100627.9428 fjtcoc6246g25fpgtdggq0vi05 Query : select sestamp valor from se where ref ='324.648.00.01' and lote = 'r2400750200a'
20241008@100627.9442 fjtcoc6246g25fpgtdggq0vi05 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@100627.9457 fjtcoc6246g25fpgtdggq0vi05 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'se' and documentnumber = 0
20241008@100627.9467 fjtcoc6246g25fpgtdggq0vi05 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@100627.9482 fjtcoc6246g25fpgtdggq0vi05 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'se' and documentnumber = 0
20241008@100627.9496 fjtcoc6246g25fpgtdggq0vi05 Query : insert into se (sestamp,ref, lote, data,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut6704f909506704f613e7',?,?,'20241008',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut;','aut;')
20241008@100628.2080 fjtcoc6246g25fpgtdggq0vi05 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241008@100628.2240 fjtcoc6246g25fpgtdggq0vi05 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@100628.2410 fjtcoc6246g25fpgtdggq0vi05 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 61
20241008@100628.2760 fjtcoc6246g25fpgtdggq0vi05 Query : insert into bi2 (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut6704f732806704f61405','aut6704f130856704f61075',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 = 'aut6704f130856704f61075'
20241008@100628.4870 fjtcoc6246g25fpgtdggq0vi05 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@100628.5030 fjtcoc6246g25fpgtdggq0vi05 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 61
20241008@100628.5200 fjtcoc6246g25fpgtdggq0vi05 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 'aut6704f732806704f61405',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut',bo.obrano, 1320, 1320*.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 ,23.76,23.76*200.48,23.76,23.76*200.48 ,0,0,'un ',' ' ,bo.marcada,1 ,23.76*1320,23.76*1320*200.48 ,.000000,.000000*200.48 ,.000000,.000000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,23.76,23.76*200.48,23.76*1320,23.76*1320*200.48,'cps24061381255,674000002 ',24.2,24.2*1320,24.2,24.2*1320,?,?,?,4 from bo bo where bo.bostamp = 'aut6704f130856704f61075'
20241008@100650.1817 fjtcoc6246g25fpgtdggq0vi05 Query : use flama_phc
20241008@100650.1824 fjtcoc6246g25fpgtdggq0vi05 Query : declare @bostamp varchar(25) = 'aut6704f130856704f61075' ,@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 
20241008@100702.4513 fjtcoc6246g25fpgtdggq0vi05 Query : use flama_phc
20241008@100702.4517 fjtcoc6246g25fpgtdggq0vi05 Query : select 1 valor from bo where bo.bostamp = 'aut6704f130856704f61075'
20241008@100702.4722 fjtcoc6246g25fpgtdggq0vi05 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) = 'aut6704f130856704f61075' 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 
20241008@100702.6855 fjtcoc6246g25fpgtdggq0vi05 Query : use flama_phc
20241008@100702.6858 fjtcoc6246g25fpgtdggq0vi05 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20241008@100702.6914 fjtcoc6246g25fpgtdggq0vi05 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2485';
20241008@100702.6948 fjtcoc6246g25fpgtdggq0vi05 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2485';
20241008@100702.7542 8mi1okfq8qjpqqvusnno66hsbh Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20241008@100702.7553 8mi1okfq8qjpqqvusnno66hsbh Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20241008@100702.8741 8mi1okfq8qjpqqvusnno66hsbh Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2486';
20241008@100702.8802 8mi1okfq8qjpqqvusnno66hsbh Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2486';
20241008@100702.8854 8mi1okfq8qjpqqvusnno66hsbh Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2486';
20241008@100702.8881 8mi1okfq8qjpqqvusnno66hsbh Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2486';
20241008@100702.8919 8mi1okfq8qjpqqvusnno66hsbh Query : use flama_phc
20241008@100702.8922 8mi1okfq8qjpqqvusnno66hsbh Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20241008@100702.8984 8mi1okfq8qjpqqvusnno66hsbh Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.644.00.01'
20241008@100702.9108 8mi1okfq8qjpqqvusnno66hsbh 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 = 2400749 and bi.ref ='324.644.00.01' and bi.lordem =20000
20241008@100702.9440 8mi1okfq8qjpqqvusnno66hsbh 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 = 'cps24061380975,521000002 ' 
20241008@100702.9789 8mi1okfq8qjpqqvusnno66hsbh Query : use flama_phc
20241008@100702.9793 8mi1okfq8qjpqqvusnno66hsbh Query : select top 1 1 valor from ts where ts.ndos = 61
20241008@100702.9826 8mi1okfq8qjpqqvusnno66hsbh Query : use flama_phc
20241008@100702.9829 8mi1okfq8qjpqqvusnno66hsbh 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')
20241008@100702.9859 8mi1okfq8qjpqqvusnno66hsbh 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
20241008@100702.9900 8mi1okfq8qjpqqvusnno66hsbh Query : use flama_phc
20241008@100702.9903 8mi1okfq8qjpqqvusnno66hsbh Query : select top 1 ~inactivo valor from fl where no = '202563' and estab = 00 order by inactivo desc
20241008@100702.9969 8mi1okfq8qjpqqvusnno66hsbh Query : use flama_phc
20241008@100702.9976 8mi1okfq8qjpqqvusnno66hsbh Query : select 1 valor from ts where ndos = 61
20241008@100702.9990 8mi1okfq8qjpqqvusnno66hsbh Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@100703.8000 8mi1okfq8qjpqqvusnno66hsbh Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bo' and documentnumber = 61
20241008@100703.1700 8mi1okfq8qjpqqvusnno66hsbh Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@100703.3300 8mi1okfq8qjpqqvusnno66hsbh Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bo2' and documentnumber = 61
20241008@100703.4300 8mi1okfq8qjpqqvusnno66hsbh Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@100703.5900 8mi1okfq8qjpqqvusnno66hsbh Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bo3' and documentnumber = 61
20241008@100703.6800 8mi1okfq8qjpqqvusnno66hsbh 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
20241008@100703.8600 8mi1okfq8qjpqqvusnno66hsbh Query : select top 1 bo.obrano valor from bo bo where bo.ndos = 61 and boano=2024 order by obrano desc
20241008@100703.1060 8mi1okfq8qjpqqvusnno66hsbh Query : select top 1 bo.obrano valor from bo bo where bo.ndos = 61 and boano=2024 order by obrano desc
20241008@100703.1250 8mi1okfq8qjpqqvusnno66hsbh Query : use flama_phc
20241008@100703.1310 8mi1okfq8qjpqqvusnno66hsbh Query : select top 1 no,estab,nome, morada, local,codpost,ncont,pncont,pais,inactivo,motiseimp,codmotiseimp from fl where no='202563' and estab=00
20241008@100703.1510 8mi1okfq8qjpqqvusnno66hsbh Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@100703.1690 8mi1okfq8qjpqqvusnno66hsbh Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bo3' and documentnumber = 61
20241008@100703.1810 8mi1okfq8qjpqqvusnno66hsbh Query : insert into bo3 (bo3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut6704f866216704f63703',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut')
20241008@100703.1850 8mi1okfq8qjpqqvusnno66hsbh Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@100703.2010 8mi1okfq8qjpqqvusnno66hsbh Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bo2' and documentnumber = 61
20241008@100703.2130 8mi1okfq8qjpqqvusnno66hsbh Query : insert into bo2 (bo2stamp, tiposaft, idserie,cambio,cambiofixo,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut6704f866216704f63703','--','bo',1.0183012670107930549 ,1,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut')
20241008@100703.2180 8mi1okfq8qjpqqvusnno66hsbh Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@100703.2340 8mi1okfq8qjpqqvusnno66hsbh Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bo' and documentnumber = 61
20241008@100703.2450 8mi1okfq8qjpqqvusnno66hsbh 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 ('aut6704f866216704f63703','guia r. fornecedor','2024-10-08',61,2402950,?,?,?,?,?,?,?,?,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')
20241008@100703.8910 8mi1okfq8qjpqqvusnno66hsbh Query : use flama_phc
20241008@100703.8950 8mi1okfq8qjpqqvusnno66hsbh Query : select st.usalote valor from st where st.ref = '324.644.00.01'
20241008@100703.9220 8mi1okfq8qjpqqvusnno66hsbh Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.644.00.01'
20241008@100703.1083 8mi1okfq8qjpqqvusnno66hsbh Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@100703.1123 8mi1okfq8qjpqqvusnno66hsbh Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 61
20241008@100703.1136 8mi1okfq8qjpqqvusnno66hsbh Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@100703.1151 8mi1okfq8qjpqqvusnno66hsbh Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 61
20241008@100703.1160 8mi1okfq8qjpqqvusnno66hsbh Query : select sestamp valor from se where ref ='324.644.00.01' and lote = 'r2400749200a'
20241008@100703.1174 8mi1okfq8qjpqqvusnno66hsbh Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@100703.1188 8mi1okfq8qjpqqvusnno66hsbh Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'se' and documentnumber = 0
20241008@100703.1197 8mi1okfq8qjpqqvusnno66hsbh Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@100703.1211 8mi1okfq8qjpqqvusnno66hsbh Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'se' and documentnumber = 0
20241008@100703.1223 8mi1okfq8qjpqqvusnno66hsbh Query : insert into se (sestamp,ref, lote, data,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut6704f935356704f6371d',?,?,'20241008',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut;','aut;')
20241008@100703.1299 8mi1okfq8qjpqqvusnno66hsbh Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241008@100703.1312 8mi1okfq8qjpqqvusnno66hsbh Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@100703.1327 8mi1okfq8qjpqqvusnno66hsbh Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 61
20241008@100703.1339 8mi1okfq8qjpqqvusnno66hsbh Query : insert into bi2 (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut6704f297036704f63720','aut6704f866216704f63703',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 = 'aut6704f866216704f63703'
20241008@100703.1502 8mi1okfq8qjpqqvusnno66hsbh Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@100703.1520 8mi1okfq8qjpqqvusnno66hsbh Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 61
20241008@100703.1537 8mi1okfq8qjpqqvusnno66hsbh 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 'aut6704f297036704f63720',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut',bo.obrano, 1470, 1470*.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 ,21.31,21.31*200.48,21.31,21.31*200.48 ,0,0,'un ',' ' ,bo.marcada,1 ,21.31*1470,21.31*1470*200.48 ,.000000,.000000*200.48 ,.000000,.000000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,21.31,21.31*200.48,21.31*1470,21.31*1470*200.48,'cps24061380975,521000002 ',21.7,21.7*1470,21.7,21.7*1470,?,?,?,4 from bo bo where bo.bostamp = 'aut6704f866216704f63703'
20241008@100703.2296 8mi1okfq8qjpqqvusnno66hsbh Query : use flama_phc
20241008@100703.2303 8mi1okfq8qjpqqvusnno66hsbh Query : declare @bostamp varchar(25) = 'aut6704f866216704f63703' ,@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 
20241008@100703.3856 8mi1okfq8qjpqqvusnno66hsbh Query : use flama_phc
20241008@100703.3859 8mi1okfq8qjpqqvusnno66hsbh Query : select 1 valor from bo where bo.bostamp = 'aut6704f866216704f63703'
20241008@100703.3874 8mi1okfq8qjpqqvusnno66hsbh 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) = 'aut6704f866216704f63703' 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 
20241008@100703.5918 8mi1okfq8qjpqqvusnno66hsbh Query : use flama_phc
20241008@100703.5922 8mi1okfq8qjpqqvusnno66hsbh Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20241008@100703.5998 8mi1okfq8qjpqqvusnno66hsbh Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2486';
20241008@100703.6041 8mi1okfq8qjpqqvusnno66hsbh Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2486';
20241008@101910.6050 eckslndgufspq5ti2839oe82ba Query : use flama_phc
20241008@101910.6054 eckslndgufspq5ti2839oe82ba Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20241008@101910.6137 eckslndgufspq5ti2839oe82ba Query : use flama_phc
20241008@101910.6140 eckslndgufspq5ti2839oe82ba Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20241008@103610.8440 hhga2fsi3bfhf7n2on2qdn2124 Query : use flama_phc
20241008@103610.8444 hhga2fsi3bfhf7n2on2qdn2124 Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20241008@103610.8524 hhga2fsi3bfhf7n2on2qdn2124 Query : use flama_phc
20241008@103610.8527 hhga2fsi3bfhf7n2on2qdn2124 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20241008@111914.7763 6ps6867jpg40620tqsplpqal0o Query : use flama_phc
20241008@111914.7768 6ps6867jpg40620tqsplpqal0o Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20241008@111914.7855 6ps6867jpg40620tqsplpqal0o Query : use flama_phc
20241008@111914.7858 6ps6867jpg40620tqsplpqal0o Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20241008@113615.4757 ssffu17mvsli5j91do9drv3vak Query : use flama_phc
20241008@113615.4814 ssffu17mvsli5j91do9drv3vak Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20241008@113615.4933 ssffu17mvsli5j91do9drv3vak Query : use flama_phc
20241008@113615.4936 ssffu17mvsli5j91do9drv3vak Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20241008@121910.6000 csnpftkulv7gggfdtuoe973dj6 Query : use flama_phc
20241008@121910.6034 csnpftkulv7gggfdtuoe973dj6 Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20241008@121910.6217 csnpftkulv7gggfdtuoe973dj6 Query : use flama_phc
20241008@121910.6225 csnpftkulv7gggfdtuoe973dj6 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20241008@123610.6951 2scfs88eltd4dq0rmkd49k7nfd Query : use flama_phc
20241008@123610.6956 2scfs88eltd4dq0rmkd49k7nfd Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20241008@123610.7043 2scfs88eltd4dq0rmkd49k7nfd Query : use flama_phc
20241008@123610.7046 2scfs88eltd4dq0rmkd49k7nfd Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20241008@131909.7686 ledakgf52317064vjohu6jb21v Query : use flama_phc
20241008@131909.7690 ledakgf52317064vjohu6jb21v Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20241008@131909.7907 ledakgf52317064vjohu6jb21v Query : use flama_phc
20241008@131909.7910 ledakgf52317064vjohu6jb21v Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20241008@133610.1195 ifudksoecv7pndlilt3kvvf5a7 Query : use flama_phc
20241008@133610.1200 ifudksoecv7pndlilt3kvvf5a7 Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20241008@133610.1299 ifudksoecv7pndlilt3kvvf5a7 Query : use flama_phc
20241008@133610.1303 ifudksoecv7pndlilt3kvvf5a7 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20241008@141910.5723 80ds157vujfv1sqntkqth4tqll Query : use flama_phc
20241008@141910.5727 80ds157vujfv1sqntkqth4tqll Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20241008@141910.5853 80ds157vujfv1sqntkqth4tqll Query : use flama_phc
20241008@141910.5856 80ds157vujfv1sqntkqth4tqll Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20241008@143609.9015 osvpu00u0mud3g9qdnuht04334 Query : use flama_phc
20241008@143609.9020 osvpu00u0mud3g9qdnuht04334 Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20241008@143609.9111 osvpu00u0mud3g9qdnuht04334 Query : use flama_phc
20241008@143609.9115 osvpu00u0mud3g9qdnuht04334 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20241008@151917.2111 i99cn086tb75k9d3tolniftaa5 Query : use flama_phc
20241008@151917.2140 i99cn086tb75k9d3tolniftaa5 Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20241008@151917.2266 i99cn086tb75k9d3tolniftaa5 Query : use flama_phc
20241008@151917.2269 i99cn086tb75k9d3tolniftaa5 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20241008@153616.9179 hjo9q2nmrpdt6gocfnkrj77v9a Query : use flama_phc
20241008@153616.9183 hjo9q2nmrpdt6gocfnkrj77v9a Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20241008@153616.9277 hjo9q2nmrpdt6gocfnkrj77v9a Query : use flama_phc
20241008@153616.9281 hjo9q2nmrpdt6gocfnkrj77v9a Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20241008@154509.5477 cs9hsp3ap28temo5eb9osbqjra Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20241008@154509.5509 cs9hsp3ap28temo5eb9osbqjra Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20241008@154509.5964 cs9hsp3ap28temo5eb9osbqjra Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2487';
20241008@154509.6239 cs9hsp3ap28temo5eb9osbqjra Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2487';
20241008@154509.7306 cs9hsp3ap28temo5eb9osbqjra Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2487';
20241008@154509.7350 cs9hsp3ap28temo5eb9osbqjra Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2487';
20241008@154509.7400 cs9hsp3ap28temo5eb9osbqjra Query : use flama_phc
20241008@154509.7405 cs9hsp3ap28temo5eb9osbqjra Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20241008@154509.7511 cs9hsp3ap28temo5eb9osbqjra Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '326.597.00.01'
20241008@154509.7652 cs9hsp3ap28temo5eb9osbqjra Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =gt2 and bo.boano =2002 and bo.obrano = 024/490 and bi.ref ='326.597.00.01' and bi.lordem =1
20241008@154509.7785 cs9hsp3ap28temo5eb9osbqjra Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.1833.00.2'
20241008@154509.7918 cs9hsp3ap28temo5eb9osbqjra Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =gt2 and bo.boano =2002 and bo.obrano = 024/490 and bi.ref ='324.1833.00.2' and bi.lordem =3
20241008@154509.8387 cs9hsp3ap28temo5eb9osbqjra Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '304.422.00.07'
20241008@154509.8521 cs9hsp3ap28temo5eb9osbqjra Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =gt2 and bo.boano =2002 and bo.obrano = 024/490 and bi.ref ='304.422.00.07' and bi.lordem =7
20241008@154509.8648 cs9hsp3ap28temo5eb9osbqjra Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '304.4320.00.1'
20241008@154509.8782 cs9hsp3ap28temo5eb9osbqjra Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =gt2 and bo.boano =2002 and bo.obrano = 024/490 and bi.ref ='304.4320.00.1' and bi.lordem =4
20241008@154509.8894 cs9hsp3ap28temo5eb9osbqjra Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.1837.00.1'
20241008@154509.9025 cs9hsp3ap28temo5eb9osbqjra Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =gt2 and bo.boano =2002 and bo.obrano = 024/490 and bi.ref ='324.1837.00.1' and bi.lordem =2
20241008@154509.9153 cs9hsp3ap28temo5eb9osbqjra Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '325.1290.1003'
20241008@154509.9285 cs9hsp3ap28temo5eb9osbqjra Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =gt2 and bo.boano =2002 and bo.obrano = 024/490 and bi.ref ='325.1290.1003' and bi.lordem =5
20241008@154509.9399 cs9hsp3ap28temo5eb9osbqjra Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '304.2186.00.1'
20241008@154509.9525 cs9hsp3ap28temo5eb9osbqjra Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =gt2 and bo.boano =2002 and bo.obrano = 024/490 and bi.ref ='304.2186.00.1' and bi.lordem =6
20241008@154509.9661 cs9hsp3ap28temo5eb9osbqjra Query : use flama_phc
20241008@154509.9665 cs9hsp3ap28temo5eb9osbqjra Query : select top 1 1 valor from ts where ts.ndos = 61
20241008@154509.9766 cs9hsp3ap28temo5eb9osbqjra Query : use flama_phc
20241008@154509.9769 cs9hsp3ap28temo5eb9osbqjra 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')
20241008@154509.9850 cs9hsp3ap28temo5eb9osbqjra 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
20241008@154510.1600 cs9hsp3ap28temo5eb9osbqjra Query : use flama_phc
20241008@154510.2100 cs9hsp3ap28temo5eb9osbqjra Query : select top 1 ~inactivo valor from fl where no = '1626' and estab = 26 order by inactivo desc
20241008@154510.1250 cs9hsp3ap28temo5eb9osbqjra Query : use flama_phc
20241008@154510.1290 cs9hsp3ap28temo5eb9osbqjra Query : select top 1 errorresult result ,errornumber errornumber ,descriptionpt description ,isnull(descriptionen,'') descriptionen ,isnull(descriptionfr,'') descriptionfr from wserrorcodes where errornumber = -230
20241008@154510.2380 cs9hsp3ap28temo5eb9osbqjra Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2487';
20241008@154510.2760 cs9hsp3ap28temo5eb9osbqjra Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2487';
20241008@161911.4434 hm6bd46jska1se1mjckao8hka6 Query : use flama_phc
20241008@161911.4476 hm6bd46jska1se1mjckao8hka6 Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20241008@161911.5301 hm6bd46jska1se1mjckao8hka6 Query : use flama_phc
20241008@161911.5345 hm6bd46jska1se1mjckao8hka6 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20241008@163611.3219 som237l5abkrfdvopr2njle2ea Query : use flama_phc
20241008@163611.3223 som237l5abkrfdvopr2njle2ea Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20241008@163611.3308 som237l5abkrfdvopr2njle2ea Query : use flama_phc
20241008@163611.3311 som237l5abkrfdvopr2njle2ea Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20241008@170206.8067 rirfues586lghn4no03lurld64 Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20241008@170206.8079 rirfues586lghn4no03lurld64 Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20241008@170206.8188 rirfues586lghn4no03lurld64 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2488';
20241008@170206.8249 rirfues586lghn4no03lurld64 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2488';
20241008@170206.8528 rirfues586lghn4no03lurld64 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2488';
20241008@170206.8645 rirfues586lghn4no03lurld64 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2488';
20241008@170206.8797 rirfues586lghn4no03lurld64 Query : use flama_phc
20241008@170206.8802 rirfues586lghn4no03lurld64 Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20241008@170206.8942 rirfues586lghn4no03lurld64 Query : use flama_phc
20241008@170206.8946 rirfues586lghn4no03lurld64 Query : select no, estab,szadrsdesc from szadrs where u_coddest=4740
20241008@170206.9070 rirfues586lghn4no03lurld64 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1670.00.1'
20241008@170206.9342 rirfues586lghn4no03lurld64 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2064 and bo.obrano = 2406499 and bi.ref ='324.1670.00.1' and bi.lordem =1
20241008@170206.9810 rirfues586lghn4no03lurld64 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.698.00.01'
20241008@170207.3300 rirfues586lghn4no03lurld64 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2064 and bo.obrano = 2406499 and bi.ref ='324.698.00.01' and bi.lordem =2
20241008@170207.4850 rirfues586lghn4no03lurld64 Query : use flama_phc
20241008@170207.4880 rirfues586lghn4no03lurld64 Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20241008@170207.6960 rirfues586lghn4no03lurld64 Query : use flama_phc
20241008@170207.7000 rirfues586lghn4no03lurld64 Query : select top 1 1 valor from td where td.ndoc = 39
20241008@170207.8850 rirfues586lghn4no03lurld64 Query : use flama_phc
20241008@170207.8900 rirfues586lghn4no03lurld64 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')
20241008@170207.1158 rirfues586lghn4no03lurld64 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
20241008@170207.1346 rirfues586lghn4no03lurld64 Query : use flama_phc
20241008@170207.1349 rirfues586lghn4no03lurld64 Query : select top 1 ~inactivo valor from cl where no = '100810' and estab = 0 order by inactivo desc
20241008@170207.1642 rirfues586lghn4no03lurld64 Query : use flama_phc
20241008@170207.1646 rirfues586lghn4no03lurld64 Query : select top 1 tipodoc,regrd from td where ndoc = 39
20241008@170207.1777 rirfues586lghn4no03lurld64 Query : use flama_phc
20241008@170207.1781 rirfues586lghn4no03lurld64 Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20241008@170207.1919 rirfues586lghn4no03lurld64 Query : use flama_phc
20241008@170207.1923 rirfues586lghn4no03lurld64 Query : select szadrsstamp valor from szadrs where szadrsdesc='100810 - worten-equipamentos para o lar,sa.'
20241008@170207.2042 rirfues586lghn4no03lurld64 Query : use flama_phc
20241008@170207.2046 rirfues586lghn4no03lurld64 Query : select 1 valor from td where ndoc = 39
20241008@170207.2117 rirfues586lghn4no03lurld64 Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20241008@170207.2202 rirfues586lghn4no03lurld64 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@170207.2892 rirfues586lghn4no03lurld64 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20241008@170207.3883 rirfues586lghn4no03lurld64 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@170207.4262 rirfues586lghn4no03lurld64 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20241008@170207.4970 rirfues586lghn4no03lurld64 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@170207.5040 rirfues586lghn4no03lurld64 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20241008@170207.5054 rirfues586lghn4no03lurld64 Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20241008@170207.5242 rirfues586lghn4no03lurld64 Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20241008@170207.5350 rirfues586lghn4no03lurld64 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@170207.5366 rirfues586lghn4no03lurld64 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20241008@170207.5407 rirfues586lghn4no03lurld64 Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut67055205396705577f7b' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20241008@170207.5836 rirfues586lghn4no03lurld64 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@170207.5854 rirfues586lghn4no03lurld64 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20241008@170207.5887 rirfues586lghn4no03lurld64 Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20241008@170207.6016 rirfues586lghn4no03lurld64 Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20241008@170207.6150 rirfues586lghn4no03lurld64 Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20241008@170207.6232 rirfues586lghn4no03lurld64 Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20241008@170207.6367 rirfues586lghn4no03lurld64 Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20241008@170207.6473 rirfues586lghn4no03lurld64 Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20241008@170207.6553 rirfues586lghn4no03lurld64 Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut67055205396705577f7b',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20241008@170207.7420 rirfues586lghn4no03lurld64 Query : select top 1 fno valor from wsftdata order by fno desc
20241008@170207.7530 rirfues586lghn4no03lurld64 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@170207.7547 rirfues586lghn4no03lurld64 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20241008@170207.7570 rirfues586lghn4no03lurld64 Query : select 'normal' from dummy
20241008@170207.7645 rirfues586lghn4no03lurld64 Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut67055205396705577f7b',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',1136,100810,0,'2024-10-08',39,'euro',0,0,2024 ,?,?)
20241008@170207.8131 rirfues586lghn4no03lurld64 Query : use flama_phc
20241008@170207.8134 rirfues586lghn4no03lurld64 Query : select st.usalote valor from st where st.ref = '324.1670.00.1'
20241008@170207.8522 rirfues586lghn4no03lurld64 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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.1670.00.1'
20241008@170207.8700 rirfues586lghn4no03lurld64 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@170207.8744 rirfues586lghn4no03lurld64 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241008@170207.8769 rirfues586lghn4no03lurld64 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@170207.8782 rirfues586lghn4no03lurld64 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241008@170207.8791 rirfues586lghn4no03lurld64 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241008@170207.8827 rirfues586lghn4no03lurld64 Query : select sestamp valor from se where ref ='324.1670.00.1' and lote = 'r2301213200a'
20241008@170207.8941 rirfues586lghn4no03lurld64 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@170207.8955 rirfues586lghn4no03lurld64 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241008@170207.8967 rirfues586lghn4no03lurld64 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut67055685586705577fda','aut67055205396705577f7b' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241008@170207.9046 rirfues586lghn4no03lurld64 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@170207.9061 rirfues586lghn4no03lurld64 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241008@170207.9088 rirfues586lghn4no03lurld64 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut67055685586705577fda',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',1.000 ,'aut67055205396705577f7b' ,0,0 ,2,23.00,10000,?,?,?,?,?)
20241008@170207.9865 rirfues586lghn4no03lurld64 Query : use flama_phc
20241008@170207.9868 rirfues586lghn4no03lurld64 Query : select st.usalote valor from st where st.ref = '324.698.00.01'
20241008@170207.9889 rirfues586lghn4no03lurld64 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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.698.00.01'
20241008@170208.9100 rirfues586lghn4no03lurld64 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@170208.1060 rirfues586lghn4no03lurld64 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241008@170208.1630 rirfues586lghn4no03lurld64 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@170208.1780 rirfues586lghn4no03lurld64 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241008@170208.1870 rirfues586lghn4no03lurld64 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241008@170208.1980 rirfues586lghn4no03lurld64 Query : select sestamp valor from se where ref ='324.698.00.01' and lote = 'r2400061200a'
20241008@170208.2160 rirfues586lghn4no03lurld64 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@170208.2300 rirfues586lghn4no03lurld64 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241008@170208.2420 rirfues586lghn4no03lurld64 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut67055944636705578005','aut67055205396705577f7b' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241008@170208.2450 rirfues586lghn4no03lurld64 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@170208.2600 rirfues586lghn4no03lurld64 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241008@170208.3210 rirfues586lghn4no03lurld64 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut67055944636705578005',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',1.000 ,'aut67055205396705577f7b' ,0,0 ,2,23.00,20000,?,?,?,?,?)
20241008@170208.6970 rirfues586lghn4no03lurld64 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@170208.7220 rirfues586lghn4no03lurld64 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241008@170208.7530 rirfues586lghn4no03lurld64 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@170208.7680 rirfues586lghn4no03lurld64 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241008@170208.7770 rirfues586lghn4no03lurld64 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241008@170208.8310 rirfues586lghn4no03lurld64 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@170208.8640 rirfues586lghn4no03lurld64 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241008@170208.8860 rirfues586lghn4no03lurld64 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut67055676456705578014','aut67055205396705577f7b' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241008@170208.8910 rirfues586lghn4no03lurld64 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@170208.9070 rirfues586lghn4no03lurld64 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241008@170208.1022 rirfues586lghn4no03lurld64 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut67055676456705578014',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut67055205396705577f7b' ,0,0 ,2,23.00,30000,?,?,?)
20241008@170208.1327 rirfues586lghn4no03lurld64 Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut67055205396705577f7b','2406499','wait',39,'adm09112754980.682000002')
20241008@170208.1460 rirfues586lghn4no03lurld64 Query : use flama_phc
20241008@170208.1464 rirfues586lghn4no03lurld64 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20241008@170208.1500 rirfues586lghn4no03lurld64 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2488';
20241008@170208.1568 rirfues586lghn4no03lurld64 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2488';
20241008@170208.1631 rirfues586lghn4no03lurld64 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2488';
20241008@170208.1667 rirfues586lghn4no03lurld64 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2488';
20241008@170208.2325 5bu08m0mbde2e0soi89eiecmoh Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20241008@170208.2336 5bu08m0mbde2e0soi89eiecmoh Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20241008@170208.2392 5bu08m0mbde2e0soi89eiecmoh Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2489';
20241008@170208.2449 5bu08m0mbde2e0soi89eiecmoh Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2489';
20241008@170208.2501 5bu08m0mbde2e0soi89eiecmoh Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2489';
20241008@170208.2795 5bu08m0mbde2e0soi89eiecmoh Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2489';
20241008@170208.3204 5bu08m0mbde2e0soi89eiecmoh Query : use flama_phc
20241008@170208.3247 5bu08m0mbde2e0soi89eiecmoh Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20241008@170208.4067 5bu08m0mbde2e0soi89eiecmoh Query : use flama_phc
20241008@170208.4071 5bu08m0mbde2e0soi89eiecmoh Query : select no, estab,szadrsdesc from szadrs where u_coddest=6737
20241008@170208.4397 5bu08m0mbde2e0soi89eiecmoh Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '328.9326.00.1'
20241008@170208.4555 5bu08m0mbde2e0soi89eiecmoh Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2065 and bo.obrano = 2406500 and bi.ref ='328.9326.00.1' and bi.lordem =1
20241008@170208.4875 5bu08m0mbde2e0soi89eiecmoh Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '328.9345.00.1'
20241008@170208.5031 5bu08m0mbde2e0soi89eiecmoh Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2065 and bo.obrano = 2406500 and bi.ref ='328.9345.00.1' and bi.lordem =2
20241008@170208.5397 5bu08m0mbde2e0soi89eiecmoh Query : use flama_phc
20241008@170208.5400 5bu08m0mbde2e0soi89eiecmoh Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20241008@170208.5436 5bu08m0mbde2e0soi89eiecmoh Query : use flama_phc
20241008@170208.5439 5bu08m0mbde2e0soi89eiecmoh Query : select top 1 1 valor from td where td.ndoc = 39
20241008@170208.5469 5bu08m0mbde2e0soi89eiecmoh Query : use flama_phc
20241008@170208.5474 5bu08m0mbde2e0soi89eiecmoh 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')
20241008@170208.5505 5bu08m0mbde2e0soi89eiecmoh 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
20241008@170208.5542 5bu08m0mbde2e0soi89eiecmoh Query : use flama_phc
20241008@170208.5545 5bu08m0mbde2e0soi89eiecmoh Query : select top 1 ~inactivo valor from cl where no = '100810' and estab = 0 order by inactivo desc
20241008@170208.5578 5bu08m0mbde2e0soi89eiecmoh Query : use flama_phc
20241008@170208.5580 5bu08m0mbde2e0soi89eiecmoh Query : select top 1 tipodoc,regrd from td where ndoc = 39
20241008@170208.5612 5bu08m0mbde2e0soi89eiecmoh Query : use flama_phc
20241008@170208.5615 5bu08m0mbde2e0soi89eiecmoh Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20241008@170208.5656 5bu08m0mbde2e0soi89eiecmoh Query : use flama_phc
20241008@170208.5660 5bu08m0mbde2e0soi89eiecmoh Query : select szadrsstamp valor from szadrs where szadrsdesc='100810 - worten-plaza large formats rainha'
20241008@170208.5714 5bu08m0mbde2e0soi89eiecmoh Query : use flama_phc
20241008@170208.5717 5bu08m0mbde2e0soi89eiecmoh Query : select 1 valor from td where ndoc = 39
20241008@170208.5729 5bu08m0mbde2e0soi89eiecmoh Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20241008@170208.5742 5bu08m0mbde2e0soi89eiecmoh Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@170208.5758 5bu08m0mbde2e0soi89eiecmoh Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20241008@170208.5803 5bu08m0mbde2e0soi89eiecmoh Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@170208.5819 5bu08m0mbde2e0soi89eiecmoh Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20241008@170208.5845 5bu08m0mbde2e0soi89eiecmoh Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@170208.5860 5bu08m0mbde2e0soi89eiecmoh Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20241008@170208.5872 5bu08m0mbde2e0soi89eiecmoh Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20241008@170208.5935 5bu08m0mbde2e0soi89eiecmoh Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20241008@170208.5951 5bu08m0mbde2e0soi89eiecmoh Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@170208.5968 5bu08m0mbde2e0soi89eiecmoh Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20241008@170208.5983 5bu08m0mbde2e0soi89eiecmoh Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut6705569706670557808f' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20241008@170208.6129 5bu08m0mbde2e0soi89eiecmoh Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@170208.6145 5bu08m0mbde2e0soi89eiecmoh Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20241008@170208.6181 5bu08m0mbde2e0soi89eiecmoh Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20241008@170208.6194 5bu08m0mbde2e0soi89eiecmoh Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20241008@170208.6205 5bu08m0mbde2e0soi89eiecmoh Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20241008@170208.6220 5bu08m0mbde2e0soi89eiecmoh Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20241008@170208.6232 5bu08m0mbde2e0soi89eiecmoh Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20241008@170208.6244 5bu08m0mbde2e0soi89eiecmoh Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20241008@170208.6257 5bu08m0mbde2e0soi89eiecmoh Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut6705569706670557808f',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20241008@170208.6512 5bu08m0mbde2e0soi89eiecmoh Query : select top 1 fno valor from wsftdata order by fno desc
20241008@170208.6540 5bu08m0mbde2e0soi89eiecmoh Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@170208.6557 5bu08m0mbde2e0soi89eiecmoh Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20241008@170208.6584 5bu08m0mbde2e0soi89eiecmoh Query : select 'normal' from dummy
20241008@170208.6602 5bu08m0mbde2e0soi89eiecmoh Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut6705569706670557808f',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',1137,100810,0,'2024-10-08',39,'euro',0,0,2024 ,?,?)
20241008@170208.6875 5bu08m0mbde2e0soi89eiecmoh Query : use flama_phc
20241008@170208.6879 5bu08m0mbde2e0soi89eiecmoh Query : select st.usalote valor from st where st.ref = '328.9326.00.1'
20241008@170208.6902 5bu08m0mbde2e0soi89eiecmoh Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '328.9326.00.1'
20241008@170208.7053 5bu08m0mbde2e0soi89eiecmoh Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@170208.7070 5bu08m0mbde2e0soi89eiecmoh Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241008@170208.7096 5bu08m0mbde2e0soi89eiecmoh Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@170208.7110 5bu08m0mbde2e0soi89eiecmoh Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241008@170208.7119 5bu08m0mbde2e0soi89eiecmoh Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241008@170208.7131 5bu08m0mbde2e0soi89eiecmoh Query : select sestamp valor from se where ref ='328.9326.00.1' and lote = 'r2300691100a'
20241008@170208.7151 5bu08m0mbde2e0soi89eiecmoh Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@170208.7165 5bu08m0mbde2e0soi89eiecmoh Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241008@170208.7177 5bu08m0mbde2e0soi89eiecmoh Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut670554803967055780ae','aut6705569706670557808f' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241008@170208.7181 5bu08m0mbde2e0soi89eiecmoh Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@170208.7199 5bu08m0mbde2e0soi89eiecmoh Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241008@170208.7228 5bu08m0mbde2e0soi89eiecmoh Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut670554803967055780ae',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',6.000 ,'aut6705569706670557808f' ,0,0 ,2,23.00,10000,?,?,?,?,?)
20241008@170208.7480 5bu08m0mbde2e0soi89eiecmoh Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@170208.7497 5bu08m0mbde2e0soi89eiecmoh Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241008@170208.7548 5bu08m0mbde2e0soi89eiecmoh Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@170208.7564 5bu08m0mbde2e0soi89eiecmoh Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241008@170208.7590 5bu08m0mbde2e0soi89eiecmoh Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241008@170208.7603 5bu08m0mbde2e0soi89eiecmoh Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@170208.7622 5bu08m0mbde2e0soi89eiecmoh Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241008@170208.7634 5bu08m0mbde2e0soi89eiecmoh Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut670552791867055780b9','aut6705569706670557808f' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241008@170208.7638 5bu08m0mbde2e0soi89eiecmoh Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@170208.7655 5bu08m0mbde2e0soi89eiecmoh Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241008@170208.7683 5bu08m0mbde2e0soi89eiecmoh Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut670552791867055780b9',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut6705569706670557808f' ,0,0 ,2,23.00,20000,?,?,?)
20241008@170208.7929 5bu08m0mbde2e0soi89eiecmoh Query : use flama_phc
20241008@170208.7933 5bu08m0mbde2e0soi89eiecmoh Query : select st.usalote valor from st where st.ref = '328.9345.00.1'
20241008@170208.7971 5bu08m0mbde2e0soi89eiecmoh Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '328.9345.00.1'
20241008@170208.8120 5bu08m0mbde2e0soi89eiecmoh Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@170208.8136 5bu08m0mbde2e0soi89eiecmoh Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241008@170208.8160 5bu08m0mbde2e0soi89eiecmoh Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@170208.8176 5bu08m0mbde2e0soi89eiecmoh Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241008@170208.8199 5bu08m0mbde2e0soi89eiecmoh Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241008@170208.8211 5bu08m0mbde2e0soi89eiecmoh Query : select sestamp valor from se where ref ='328.9345.00.1' and lote = 'r2101101300a'
20241008@170208.8236 5bu08m0mbde2e0soi89eiecmoh Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@170208.8250 5bu08m0mbde2e0soi89eiecmoh Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241008@170208.8261 5bu08m0mbde2e0soi89eiecmoh Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut670557187467055780c9','aut6705569706670557808f' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241008@170208.8265 5bu08m0mbde2e0soi89eiecmoh Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@170208.8279 5bu08m0mbde2e0soi89eiecmoh Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241008@170208.8307 5bu08m0mbde2e0soi89eiecmoh Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut670557187467055780c9',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',3.000 ,'aut6705569706670557808f' ,0,0 ,2,23.00,40000,?,?,?,?,?)
20241008@170208.8536 5bu08m0mbde2e0soi89eiecmoh Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@170208.8551 5bu08m0mbde2e0soi89eiecmoh Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241008@170208.8576 5bu08m0mbde2e0soi89eiecmoh Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@170208.8591 5bu08m0mbde2e0soi89eiecmoh Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241008@170208.8599 5bu08m0mbde2e0soi89eiecmoh Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241008@170208.8612 5bu08m0mbde2e0soi89eiecmoh Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@170208.8626 5bu08m0mbde2e0soi89eiecmoh Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241008@170208.8638 5bu08m0mbde2e0soi89eiecmoh Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut670553547167055780d2','aut6705569706670557808f' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241008@170208.8642 5bu08m0mbde2e0soi89eiecmoh Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@170208.8656 5bu08m0mbde2e0soi89eiecmoh Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241008@170208.8685 5bu08m0mbde2e0soi89eiecmoh Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut670553547167055780d2',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut6705569706670557808f' ,0,0 ,2,23.00,50000,?,?,?)
20241008@170208.8915 5bu08m0mbde2e0soi89eiecmoh Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut6705569706670557808f','2406500','wait',39,'adm09112754980.682000002')
20241008@170208.8990 5bu08m0mbde2e0soi89eiecmoh Query : use flama_phc
20241008@170208.8994 5bu08m0mbde2e0soi89eiecmoh Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20241008@170208.9026 5bu08m0mbde2e0soi89eiecmoh Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2489';
20241008@170208.9058 5bu08m0mbde2e0soi89eiecmoh Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2489';
20241008@170208.9106 5bu08m0mbde2e0soi89eiecmoh Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2489';
20241008@170208.9173 5bu08m0mbde2e0soi89eiecmoh Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2489';
20241008@170208.9796 osg474jb1biebevu29tk0npcsu Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20241008@170208.9808 osg474jb1biebevu29tk0npcsu Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20241008@170208.9868 osg474jb1biebevu29tk0npcsu Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2490';
20241008@170208.9924 osg474jb1biebevu29tk0npcsu Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2490';
20241008@170209.8000 osg474jb1biebevu29tk0npcsu Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2490';
20241008@170209.7100 osg474jb1biebevu29tk0npcsu Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2490';
20241008@170209.1330 osg474jb1biebevu29tk0npcsu Query : use flama_phc
20241008@170209.1370 osg474jb1biebevu29tk0npcsu Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20241008@170209.2380 osg474jb1biebevu29tk0npcsu Query : use flama_phc
20241008@170209.2430 osg474jb1biebevu29tk0npcsu Query : select no, estab,szadrsdesc from szadrs where u_coddest=4740
20241008@170209.2960 osg474jb1biebevu29tk0npcsu Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.2334.00.1'
20241008@170209.4740 osg474jb1biebevu29tk0npcsu Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2065 and bo.obrano = 2406501 and bi.ref ='324.2334.00.1' and bi.lordem =1
20241008@170209.8370 osg474jb1biebevu29tk0npcsu Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1317.00.1'
20241008@170209.1004 osg474jb1biebevu29tk0npcsu Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2065 and bo.obrano = 2406501 and bi.ref ='324.1317.00.1' and bi.lordem =2
20241008@170209.1354 osg474jb1biebevu29tk0npcsu Query : use flama_phc
20241008@170209.1358 osg474jb1biebevu29tk0npcsu Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20241008@170209.1392 osg474jb1biebevu29tk0npcsu Query : use flama_phc
20241008@170209.1396 osg474jb1biebevu29tk0npcsu Query : select top 1 1 valor from td where td.ndoc = 39
20241008@170209.1444 osg474jb1biebevu29tk0npcsu Query : use flama_phc
20241008@170209.1447 osg474jb1biebevu29tk0npcsu 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')
20241008@170209.1479 osg474jb1biebevu29tk0npcsu 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
20241008@170209.1552 osg474jb1biebevu29tk0npcsu Query : use flama_phc
20241008@170209.1555 osg474jb1biebevu29tk0npcsu Query : select top 1 ~inactivo valor from cl where no = '100810' and estab = 0 order by inactivo desc
20241008@170209.1587 osg474jb1biebevu29tk0npcsu Query : use flama_phc
20241008@170209.1589 osg474jb1biebevu29tk0npcsu Query : select top 1 tipodoc,regrd from td where ndoc = 39
20241008@170209.1622 osg474jb1biebevu29tk0npcsu Query : use flama_phc
20241008@170209.1625 osg474jb1biebevu29tk0npcsu Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20241008@170209.1697 osg474jb1biebevu29tk0npcsu Query : use flama_phc
20241008@170209.1700 osg474jb1biebevu29tk0npcsu Query : select szadrsstamp valor from szadrs where szadrsdesc='100810 - worten-equipamentos para o lar,sa.'
20241008@170209.1750 osg474jb1biebevu29tk0npcsu Query : use flama_phc
20241008@170209.1753 osg474jb1biebevu29tk0npcsu Query : select 1 valor from td where ndoc = 39
20241008@170209.1766 osg474jb1biebevu29tk0npcsu Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20241008@170209.1781 osg474jb1biebevu29tk0npcsu Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@170209.1797 osg474jb1biebevu29tk0npcsu Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20241008@170209.1819 osg474jb1biebevu29tk0npcsu Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@170209.1833 osg474jb1biebevu29tk0npcsu Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20241008@170209.1862 osg474jb1biebevu29tk0npcsu Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@170209.1877 osg474jb1biebevu29tk0npcsu Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20241008@170209.1890 osg474jb1biebevu29tk0npcsu Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20241008@170209.2259 osg474jb1biebevu29tk0npcsu Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20241008@170209.2274 osg474jb1biebevu29tk0npcsu Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@170209.2290 osg474jb1biebevu29tk0npcsu Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20241008@170209.2318 osg474jb1biebevu29tk0npcsu Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut6705560373670557812e' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20241008@170209.2491 osg474jb1biebevu29tk0npcsu Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@170209.2509 osg474jb1biebevu29tk0npcsu Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20241008@170209.2798 osg474jb1biebevu29tk0npcsu Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20241008@170209.2810 osg474jb1biebevu29tk0npcsu Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20241008@170209.2821 osg474jb1biebevu29tk0npcsu Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20241008@170209.2846 osg474jb1biebevu29tk0npcsu Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20241008@170209.2857 osg474jb1biebevu29tk0npcsu Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20241008@170209.2869 osg474jb1biebevu29tk0npcsu Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20241008@170209.2988 osg474jb1biebevu29tk0npcsu Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut6705560373670557812e',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20241008@170209.3284 osg474jb1biebevu29tk0npcsu Query : select top 1 fno valor from wsftdata order by fno desc
20241008@170209.3307 osg474jb1biebevu29tk0npcsu Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@170209.3324 osg474jb1biebevu29tk0npcsu Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20241008@170209.3360 osg474jb1biebevu29tk0npcsu Query : select 'normal' from dummy
20241008@170209.3376 osg474jb1biebevu29tk0npcsu Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut6705560373670557812e',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',1138,100810,0,'2024-10-08',39,'euro',0,0,2024 ,?,?)
20241008@170209.3645 osg474jb1biebevu29tk0npcsu Query : use flama_phc
20241008@170209.3648 osg474jb1biebevu29tk0npcsu Query : select st.usalote valor from st where st.ref = '324.2334.00.1'
20241008@170209.3670 osg474jb1biebevu29tk0npcsu Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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.2334.00.1'
20241008@170209.3820 osg474jb1biebevu29tk0npcsu Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@170209.3838 osg474jb1biebevu29tk0npcsu Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241008@170209.3864 osg474jb1biebevu29tk0npcsu Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@170209.3879 osg474jb1biebevu29tk0npcsu Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241008@170209.3887 osg474jb1biebevu29tk0npcsu Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241008@170209.3902 osg474jb1biebevu29tk0npcsu Query : select sestamp valor from se where ref ='324.2334.00.1' and lote = 'r2100585400a'
20241008@170209.3929 osg474jb1biebevu29tk0npcsu Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@170209.3945 osg474jb1biebevu29tk0npcsu Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241008@170209.3957 osg474jb1biebevu29tk0npcsu Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut6705540760670557815f','aut6705560373670557812e' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241008@170209.3963 osg474jb1biebevu29tk0npcsu Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@170209.3979 osg474jb1biebevu29tk0npcsu Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241008@170209.4011 osg474jb1biebevu29tk0npcsu Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut6705540760670557815f',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',1.000 ,'aut6705560373670557812e' ,0,0 ,2,23.00,10000,?,?,?,?,?)
20241008@170209.4260 osg474jb1biebevu29tk0npcsu Query : use flama_phc
20241008@170209.4263 osg474jb1biebevu29tk0npcsu Query : select st.usalote valor from st where st.ref = '324.1317.00.1'
20241008@170209.4284 osg474jb1biebevu29tk0npcsu Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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.1317.00.1'
20241008@170209.4436 osg474jb1biebevu29tk0npcsu Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@170209.4453 osg474jb1biebevu29tk0npcsu Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241008@170209.4482 osg474jb1biebevu29tk0npcsu Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@170209.4498 osg474jb1biebevu29tk0npcsu Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241008@170209.4507 osg474jb1biebevu29tk0npcsu Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241008@170209.4520 osg474jb1biebevu29tk0npcsu Query : select sestamp valor from se where ref ='324.1317.00.1' and lote = 'r2400458200a'
20241008@170209.4534 osg474jb1biebevu29tk0npcsu Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@170209.4549 osg474jb1biebevu29tk0npcsu Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241008@170209.4562 osg474jb1biebevu29tk0npcsu Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut6705558503670557816e','aut6705560373670557812e' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241008@170209.4566 osg474jb1biebevu29tk0npcsu Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@170209.4581 osg474jb1biebevu29tk0npcsu Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241008@170209.4609 osg474jb1biebevu29tk0npcsu Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut6705558503670557816e',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',3.000 ,'aut6705560373670557812e' ,0,0 ,2,23.00,20000,?,?,?,?,?)
20241008@170209.4846 osg474jb1biebevu29tk0npcsu Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut6705560373670557812e','2406501','wait',39,'adm09112754980.682000002')
20241008@170209.4921 osg474jb1biebevu29tk0npcsu Query : use flama_phc
20241008@170209.4924 osg474jb1biebevu29tk0npcsu Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20241008@170209.4957 osg474jb1biebevu29tk0npcsu Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2490';
20241008@170209.4988 osg474jb1biebevu29tk0npcsu Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2490';
20241008@170209.5059 osg474jb1biebevu29tk0npcsu Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2490';
20241008@170209.5089 osg474jb1biebevu29tk0npcsu Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2490';
20241008@170209.6242 ff4il7d006t425tfk9747mfn5u Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20241008@170209.6254 ff4il7d006t425tfk9747mfn5u Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20241008@170209.6313 ff4il7d006t425tfk9747mfn5u Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2491';
20241008@170209.6369 ff4il7d006t425tfk9747mfn5u Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2491';
20241008@170209.6426 ff4il7d006t425tfk9747mfn5u Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2491';
20241008@170209.6453 ff4il7d006t425tfk9747mfn5u Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2491';
20241008@170209.6514 ff4il7d006t425tfk9747mfn5u Query : use flama_phc
20241008@170209.6517 ff4il7d006t425tfk9747mfn5u Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20241008@170209.6585 ff4il7d006t425tfk9747mfn5u Query : use flama_phc
20241008@170209.6588 ff4il7d006t425tfk9747mfn5u Query : select no, estab,szadrsdesc from szadrs where u_coddest=4740
20241008@170209.6630 ff4il7d006t425tfk9747mfn5u 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'
20241008@170209.7046 ff4il7d006t425tfk9747mfn5u Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2065 and bo.obrano = 2406502 and bi.ref ='324.1667.00.1' and bi.lordem =1
20241008@170209.7374 ff4il7d006t425tfk9747mfn5u Query : use flama_phc
20241008@170209.7377 ff4il7d006t425tfk9747mfn5u Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20241008@170209.7411 ff4il7d006t425tfk9747mfn5u Query : use flama_phc
20241008@170209.7415 ff4il7d006t425tfk9747mfn5u Query : select top 1 1 valor from td where td.ndoc = 39
20241008@170209.7459 ff4il7d006t425tfk9747mfn5u Query : use flama_phc
20241008@170209.7462 ff4il7d006t425tfk9747mfn5u 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')
20241008@170209.7491 ff4il7d006t425tfk9747mfn5u 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
20241008@170209.7534 ff4il7d006t425tfk9747mfn5u Query : use flama_phc
20241008@170209.7537 ff4il7d006t425tfk9747mfn5u Query : select top 1 ~inactivo valor from cl where no = '100810' and estab = 0 order by inactivo desc
20241008@170209.7568 ff4il7d006t425tfk9747mfn5u Query : use flama_phc
20241008@170209.7570 ff4il7d006t425tfk9747mfn5u Query : select top 1 tipodoc,regrd from td where ndoc = 39
20241008@170209.7611 ff4il7d006t425tfk9747mfn5u Query : use flama_phc
20241008@170209.7614 ff4il7d006t425tfk9747mfn5u Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20241008@170209.7656 ff4il7d006t425tfk9747mfn5u Query : use flama_phc
20241008@170209.7659 ff4il7d006t425tfk9747mfn5u Query : select szadrsstamp valor from szadrs where szadrsdesc='100810 - worten-equipamentos para o lar,sa.'
20241008@170209.7706 ff4il7d006t425tfk9747mfn5u Query : use flama_phc
20241008@170209.7710 ff4il7d006t425tfk9747mfn5u Query : select 1 valor from td where ndoc = 39
20241008@170209.7722 ff4il7d006t425tfk9747mfn5u Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20241008@170209.7738 ff4il7d006t425tfk9747mfn5u Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@170209.7754 ff4il7d006t425tfk9747mfn5u Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20241008@170209.7775 ff4il7d006t425tfk9747mfn5u Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@170209.7790 ff4il7d006t425tfk9747mfn5u Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20241008@170209.7818 ff4il7d006t425tfk9747mfn5u Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@170209.7832 ff4il7d006t425tfk9747mfn5u Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20241008@170209.7845 ff4il7d006t425tfk9747mfn5u Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20241008@170209.7970 ff4il7d006t425tfk9747mfn5u Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20241008@170209.7983 ff4il7d006t425tfk9747mfn5u Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@170209.8001 ff4il7d006t425tfk9747mfn5u Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20241008@170209.8016 ff4il7d006t425tfk9747mfn5u Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut670553387967055781bf' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20241008@170209.8180 ff4il7d006t425tfk9747mfn5u Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@170209.8197 ff4il7d006t425tfk9747mfn5u Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20241008@170209.8231 ff4il7d006t425tfk9747mfn5u Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20241008@170209.8256 ff4il7d006t425tfk9747mfn5u Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20241008@170209.8269 ff4il7d006t425tfk9747mfn5u Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20241008@170209.8281 ff4il7d006t425tfk9747mfn5u Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20241008@170209.8293 ff4il7d006t425tfk9747mfn5u Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20241008@170209.8305 ff4il7d006t425tfk9747mfn5u Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20241008@170209.8317 ff4il7d006t425tfk9747mfn5u Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut670553387967055781bf',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20241008@170209.8548 ff4il7d006t425tfk9747mfn5u Query : select top 1 fno valor from wsftdata order by fno desc
20241008@170209.8573 ff4il7d006t425tfk9747mfn5u Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@170209.8591 ff4il7d006t425tfk9747mfn5u Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20241008@170209.8615 ff4il7d006t425tfk9747mfn5u Query : select 'normal' from dummy
20241008@170209.8630 ff4il7d006t425tfk9747mfn5u Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut670553387967055781bf',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',1139,100810,0,'2024-10-08',39,'euro',0,0,2024 ,?,?)
20241008@170209.8905 ff4il7d006t425tfk9747mfn5u Query : use flama_phc
20241008@170209.8908 ff4il7d006t425tfk9747mfn5u Query : select st.usalote valor from st where st.ref = '324.1667.00.1'
20241008@170209.8932 ff4il7d006t425tfk9747mfn5u Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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'
20241008@170209.9122 ff4il7d006t425tfk9747mfn5u Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@170209.9139 ff4il7d006t425tfk9747mfn5u Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241008@170209.9179 ff4il7d006t425tfk9747mfn5u Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@170209.9194 ff4il7d006t425tfk9747mfn5u Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241008@170209.9203 ff4il7d006t425tfk9747mfn5u Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241008@170209.9215 ff4il7d006t425tfk9747mfn5u Query : select sestamp valor from se where ref ='324.1667.00.1' and lote = 'r2400065200a'
20241008@170209.9235 ff4il7d006t425tfk9747mfn5u Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@170209.9249 ff4il7d006t425tfk9747mfn5u Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241008@170209.9260 ff4il7d006t425tfk9747mfn5u Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut670554439367055781e1','aut670553387967055781bf' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241008@170209.9264 ff4il7d006t425tfk9747mfn5u Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@170209.9279 ff4il7d006t425tfk9747mfn5u Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241008@170209.9307 ff4il7d006t425tfk9747mfn5u Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut670554439367055781e1',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',2.000 ,'aut670553387967055781bf' ,0,0 ,2,23.00,10000,?,?,?,?,?)
20241008@170209.9550 ff4il7d006t425tfk9747mfn5u Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@170209.9568 ff4il7d006t425tfk9747mfn5u Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241008@170209.9618 ff4il7d006t425tfk9747mfn5u Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@170209.9633 ff4il7d006t425tfk9747mfn5u Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241008@170209.9642 ff4il7d006t425tfk9747mfn5u Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241008@170209.9654 ff4il7d006t425tfk9747mfn5u Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@170209.9668 ff4il7d006t425tfk9747mfn5u Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241008@170209.9683 ff4il7d006t425tfk9747mfn5u Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut670550351367055781eb','aut670553387967055781bf' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241008@170209.9687 ff4il7d006t425tfk9747mfn5u Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@170209.9703 ff4il7d006t425tfk9747mfn5u Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241008@170209.9744 ff4il7d006t425tfk9747mfn5u Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut670550351367055781eb',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut670553387967055781bf' ,0,0 ,2,23.00,20000,?,?,?)
20241008@170209.9964 ff4il7d006t425tfk9747mfn5u Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut670553387967055781bf','2406502','wait',39,'adm09112754980.682000002')
20241008@170210.9800 ff4il7d006t425tfk9747mfn5u Query : use flama_phc
20241008@170210.1420 ff4il7d006t425tfk9747mfn5u Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20241008@170210.5510 ff4il7d006t425tfk9747mfn5u Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2491';
20241008@170210.9330 ff4il7d006t425tfk9747mfn5u Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2491';
20241008@170210.1359 ff4il7d006t425tfk9747mfn5u Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2491';
20241008@170210.1498 ff4il7d006t425tfk9747mfn5u Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2491';
20241008@170210.2072 9405o8tm7t5unn13b4scvo6lsj Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20241008@170210.2083 9405o8tm7t5unn13b4scvo6lsj Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20241008@170210.2139 9405o8tm7t5unn13b4scvo6lsj Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2492';
20241008@170210.2196 9405o8tm7t5unn13b4scvo6lsj Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2492';
20241008@170210.2388 9405o8tm7t5unn13b4scvo6lsj Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2492';
20241008@170210.2419 9405o8tm7t5unn13b4scvo6lsj Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2492';
20241008@170210.2476 9405o8tm7t5unn13b4scvo6lsj Query : use flama_phc
20241008@170210.2480 9405o8tm7t5unn13b4scvo6lsj Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20241008@170210.2541 9405o8tm7t5unn13b4scvo6lsj Query : use flama_phc
20241008@170210.2544 9405o8tm7t5unn13b4scvo6lsj Query : select no, estab,szadrsdesc from szadrs where u_coddest=2448
20241008@170210.2629 9405o8tm7t5unn13b4scvo6lsj Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.5540.00.1'
20241008@170210.2819 9405o8tm7t5unn13b4scvo6lsj Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2065 and bo.obrano = 2406536 and bi.ref ='324.5540.00.1' and bi.lordem =1
20241008@170210.3161 9405o8tm7t5unn13b4scvo6lsj 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'
20241008@170210.3326 9405o8tm7t5unn13b4scvo6lsj Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2065 and bo.obrano = 2406536 and bi.ref ='324.969.00.01' and bi.lordem =2
20241008@170210.3656 9405o8tm7t5unn13b4scvo6lsj Query : use flama_phc
20241008@170210.3659 9405o8tm7t5unn13b4scvo6lsj Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20241008@170210.3690 9405o8tm7t5unn13b4scvo6lsj Query : use flama_phc
20241008@170210.3693 9405o8tm7t5unn13b4scvo6lsj Query : select top 1 1 valor from td where td.ndoc = 39
20241008@170210.3723 9405o8tm7t5unn13b4scvo6lsj Query : use flama_phc
20241008@170210.3726 9405o8tm7t5unn13b4scvo6lsj 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')
20241008@170210.3782 9405o8tm7t5unn13b4scvo6lsj 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
20241008@170210.3820 9405o8tm7t5unn13b4scvo6lsj Query : use flama_phc
20241008@170210.3823 9405o8tm7t5unn13b4scvo6lsj Query : select top 1 ~inactivo valor from cl where no = '101889' and estab = 0 order by inactivo desc
20241008@170210.3958 9405o8tm7t5unn13b4scvo6lsj Query : use flama_phc
20241008@170210.3961 9405o8tm7t5unn13b4scvo6lsj Query : select top 1 tipodoc,regrd from td where ndoc = 39
20241008@170210.4014 9405o8tm7t5unn13b4scvo6lsj Query : use flama_phc
20241008@170210.4018 9405o8tm7t5unn13b4scvo6lsj Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20241008@170210.4056 9405o8tm7t5unn13b4scvo6lsj Query : use flama_phc
20241008@170210.4059 9405o8tm7t5unn13b4scvo6lsj Query : select szadrsstamp valor from szadrs where szadrsdesc='cooplecnorte,crl'
20241008@170210.4108 9405o8tm7t5unn13b4scvo6lsj Query : use flama_phc
20241008@170210.4111 9405o8tm7t5unn13b4scvo6lsj Query : select 1 valor from td where ndoc = 39
20241008@170210.4126 9405o8tm7t5unn13b4scvo6lsj Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20241008@170210.4140 9405o8tm7t5unn13b4scvo6lsj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@170210.4156 9405o8tm7t5unn13b4scvo6lsj Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20241008@170210.4196 9405o8tm7t5unn13b4scvo6lsj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@170210.4210 9405o8tm7t5unn13b4scvo6lsj Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20241008@170210.4238 9405o8tm7t5unn13b4scvo6lsj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@170210.4253 9405o8tm7t5unn13b4scvo6lsj Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20241008@170210.4265 9405o8tm7t5unn13b4scvo6lsj Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20241008@170210.4334 9405o8tm7t5unn13b4scvo6lsj Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20241008@170210.4347 9405o8tm7t5unn13b4scvo6lsj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@170210.4368 9405o8tm7t5unn13b4scvo6lsj Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20241008@170210.4387 9405o8tm7t5unn13b4scvo6lsj Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut67055616776705578268' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20241008@170210.4535 9405o8tm7t5unn13b4scvo6lsj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@170210.4580 9405o8tm7t5unn13b4scvo6lsj Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20241008@170210.4618 9405o8tm7t5unn13b4scvo6lsj Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20241008@170210.4632 9405o8tm7t5unn13b4scvo6lsj Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20241008@170210.4646 9405o8tm7t5unn13b4scvo6lsj Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20241008@170210.4661 9405o8tm7t5unn13b4scvo6lsj Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20241008@170210.4676 9405o8tm7t5unn13b4scvo6lsj Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20241008@170210.4688 9405o8tm7t5unn13b4scvo6lsj Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20241008@170210.4703 9405o8tm7t5unn13b4scvo6lsj Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut67055616776705578268',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20241008@170210.4923 9405o8tm7t5unn13b4scvo6lsj Query : select top 1 fno valor from wsftdata order by fno desc
20241008@170210.4947 9405o8tm7t5unn13b4scvo6lsj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@170210.4964 9405o8tm7t5unn13b4scvo6lsj Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20241008@170210.4987 9405o8tm7t5unn13b4scvo6lsj Query : select 'normal' from dummy
20241008@170210.5002 9405o8tm7t5unn13b4scvo6lsj Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut67055616776705578268',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',1140,101889,0,'2024-10-08',39,'euro',0,0,2024 ,?,?)
20241008@170210.5281 9405o8tm7t5unn13b4scvo6lsj Query : use flama_phc
20241008@170210.5284 9405o8tm7t5unn13b4scvo6lsj Query : select st.usalote valor from st where st.ref = '324.5540.00.1'
20241008@170210.5307 9405o8tm7t5unn13b4scvo6lsj Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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.5540.00.1'
20241008@170210.5464 9405o8tm7t5unn13b4scvo6lsj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@170210.5480 9405o8tm7t5unn13b4scvo6lsj Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241008@170210.5506 9405o8tm7t5unn13b4scvo6lsj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@170210.5520 9405o8tm7t5unn13b4scvo6lsj Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241008@170210.5529 9405o8tm7t5unn13b4scvo6lsj Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241008@170210.5541 9405o8tm7t5unn13b4scvo6lsj Query : select sestamp valor from se where ref ='324.5540.00.1' and lote = 'r2300830100a'
20241008@170210.5555 9405o8tm7t5unn13b4scvo6lsj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@170210.5570 9405o8tm7t5unn13b4scvo6lsj Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241008@170210.5581 9405o8tm7t5unn13b4scvo6lsj Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut67055335976705578287','aut67055616776705578268' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241008@170210.5585 9405o8tm7t5unn13b4scvo6lsj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@170210.5599 9405o8tm7t5unn13b4scvo6lsj Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241008@170210.5627 9405o8tm7t5unn13b4scvo6lsj Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut67055335976705578287',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',2.000 ,'aut67055616776705578268' ,0,0 ,2,23.00,10000,?,?,?,?,?)
20241008@170210.5848 9405o8tm7t5unn13b4scvo6lsj Query : use flama_phc
20241008@170210.5852 9405o8tm7t5unn13b4scvo6lsj Query : select st.usalote valor from st where st.ref = '324.969.00.01'
20241008@170210.5872 9405o8tm7t5unn13b4scvo6lsj Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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'
20241008@170210.6022 9405o8tm7t5unn13b4scvo6lsj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@170210.6039 9405o8tm7t5unn13b4scvo6lsj Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241008@170210.6091 9405o8tm7t5unn13b4scvo6lsj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@170210.6106 9405o8tm7t5unn13b4scvo6lsj Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241008@170210.6114 9405o8tm7t5unn13b4scvo6lsj Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241008@170210.6126 9405o8tm7t5unn13b4scvo6lsj Query : select sestamp valor from se where ref ='324.969.00.01' and lote = 'r2100601100a'
20241008@170210.6146 9405o8tm7t5unn13b4scvo6lsj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@170210.6160 9405o8tm7t5unn13b4scvo6lsj Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241008@170210.6172 9405o8tm7t5unn13b4scvo6lsj Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut67055798786705578296','aut67055616776705578268' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241008@170210.6176 9405o8tm7t5unn13b4scvo6lsj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@170210.6191 9405o8tm7t5unn13b4scvo6lsj Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241008@170210.6220 9405o8tm7t5unn13b4scvo6lsj Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut67055798786705578296',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',4.000 ,'aut67055616776705578268' ,0,0 ,2,23.00,20000,?,?,?,?,?)
20241008@170210.6443 9405o8tm7t5unn13b4scvo6lsj Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut67055616776705578268','2406536','wait',39,'adm09112754980.682000002')
20241008@170210.6520 9405o8tm7t5unn13b4scvo6lsj Query : use flama_phc
20241008@170210.6523 9405o8tm7t5unn13b4scvo6lsj Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20241008@170210.6556 9405o8tm7t5unn13b4scvo6lsj Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2492';
20241008@170210.6590 9405o8tm7t5unn13b4scvo6lsj Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2492';
20241008@170210.6632 9405o8tm7t5unn13b4scvo6lsj Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2492';
20241008@170210.6659 9405o8tm7t5unn13b4scvo6lsj Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2492';
20241008@170210.7378 nd1c75qrnp93t2ri2rqghkn8p2 Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20241008@170210.7390 nd1c75qrnp93t2ri2rqghkn8p2 Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20241008@170210.7453 nd1c75qrnp93t2ri2rqghkn8p2 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2493';
20241008@170210.7541 nd1c75qrnp93t2ri2rqghkn8p2 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2493';
20241008@170210.7656 nd1c75qrnp93t2ri2rqghkn8p2 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2493';
20241008@170210.7750 nd1c75qrnp93t2ri2rqghkn8p2 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2493';
20241008@170210.7822 nd1c75qrnp93t2ri2rqghkn8p2 Query : use flama_phc
20241008@170210.7825 nd1c75qrnp93t2ri2rqghkn8p2 Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20241008@170210.7914 nd1c75qrnp93t2ri2rqghkn8p2 Query : use flama_phc
20241008@170210.7917 nd1c75qrnp93t2ri2rqghkn8p2 Query : select no, estab,szadrsdesc from szadrs where u_coddest=2448
20241008@170210.8047 nd1c75qrnp93t2ri2rqghkn8p2 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.2066.00.1'
20241008@170210.8759 nd1c75qrnp93t2ri2rqghkn8p2 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2065 and bo.obrano = 2406537 and bi.ref ='324.2066.00.1' and bi.lordem =1
20241008@170210.9643 nd1c75qrnp93t2ri2rqghkn8p2 Query : use flama_phc
20241008@170210.9684 nd1c75qrnp93t2ri2rqghkn8p2 Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20241008@170211.1380 nd1c75qrnp93t2ri2rqghkn8p2 Query : use flama_phc
20241008@170211.1800 nd1c75qrnp93t2ri2rqghkn8p2 Query : select top 1 1 valor from td where td.ndoc = 39
20241008@170211.4880 nd1c75qrnp93t2ri2rqghkn8p2 Query : use flama_phc
20241008@170211.4910 nd1c75qrnp93t2ri2rqghkn8p2 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')
20241008@170211.5240 nd1c75qrnp93t2ri2rqghkn8p2 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
20241008@170211.5670 nd1c75qrnp93t2ri2rqghkn8p2 Query : use flama_phc
20241008@170211.5700 nd1c75qrnp93t2ri2rqghkn8p2 Query : select top 1 ~inactivo valor from cl where no = '101889' and estab = 0 order by inactivo desc
20241008@170211.6000 nd1c75qrnp93t2ri2rqghkn8p2 Query : use flama_phc
20241008@170211.6030 nd1c75qrnp93t2ri2rqghkn8p2 Query : select top 1 tipodoc,regrd from td where ndoc = 39
20241008@170211.6370 nd1c75qrnp93t2ri2rqghkn8p2 Query : use flama_phc
20241008@170211.6390 nd1c75qrnp93t2ri2rqghkn8p2 Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20241008@170211.6820 nd1c75qrnp93t2ri2rqghkn8p2 Query : use flama_phc
20241008@170211.6850 nd1c75qrnp93t2ri2rqghkn8p2 Query : select szadrsstamp valor from szadrs where szadrsdesc='cooplecnorte,crl'
20241008@170211.7350 nd1c75qrnp93t2ri2rqghkn8p2 Query : use flama_phc
20241008@170211.7380 nd1c75qrnp93t2ri2rqghkn8p2 Query : select 1 valor from td where ndoc = 39
20241008@170211.7500 nd1c75qrnp93t2ri2rqghkn8p2 Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20241008@170211.7640 nd1c75qrnp93t2ri2rqghkn8p2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@170211.7820 nd1c75qrnp93t2ri2rqghkn8p2 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20241008@170211.8020 nd1c75qrnp93t2ri2rqghkn8p2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@170211.8180 nd1c75qrnp93t2ri2rqghkn8p2 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20241008@170211.8470 nd1c75qrnp93t2ri2rqghkn8p2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@170211.8650 nd1c75qrnp93t2ri2rqghkn8p2 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20241008@170211.8830 nd1c75qrnp93t2ri2rqghkn8p2 Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20241008@170211.9850 nd1c75qrnp93t2ri2rqghkn8p2 Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20241008@170211.9990 nd1c75qrnp93t2ri2rqghkn8p2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@170211.1015 nd1c75qrnp93t2ri2rqghkn8p2 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20241008@170211.1032 nd1c75qrnp93t2ri2rqghkn8p2 Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut67055714576705578315' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20241008@170211.1210 nd1c75qrnp93t2ri2rqghkn8p2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@170211.1229 nd1c75qrnp93t2ri2rqghkn8p2 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20241008@170211.1282 nd1c75qrnp93t2ri2rqghkn8p2 Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20241008@170211.1295 nd1c75qrnp93t2ri2rqghkn8p2 Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20241008@170211.1309 nd1c75qrnp93t2ri2rqghkn8p2 Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20241008@170211.1322 nd1c75qrnp93t2ri2rqghkn8p2 Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20241008@170211.1335 nd1c75qrnp93t2ri2rqghkn8p2 Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20241008@170211.1348 nd1c75qrnp93t2ri2rqghkn8p2 Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20241008@170211.1361 nd1c75qrnp93t2ri2rqghkn8p2 Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut67055714576705578315',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20241008@170211.1570 nd1c75qrnp93t2ri2rqghkn8p2 Query : select top 1 fno valor from wsftdata order by fno desc
20241008@170211.1592 nd1c75qrnp93t2ri2rqghkn8p2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@170211.1609 nd1c75qrnp93t2ri2rqghkn8p2 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20241008@170211.1643 nd1c75qrnp93t2ri2rqghkn8p2 Query : select 'normal' from dummy
20241008@170211.1661 nd1c75qrnp93t2ri2rqghkn8p2 Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut67055714576705578315',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',1141,101889,0,'2024-10-08',39,'euro',0,0,2024 ,?,?)
20241008@170211.1940 nd1c75qrnp93t2ri2rqghkn8p2 Query : use flama_phc
20241008@170211.1944 nd1c75qrnp93t2ri2rqghkn8p2 Query : select st.usalote valor from st where st.ref = '324.2066.00.1'
20241008@170211.1977 nd1c75qrnp93t2ri2rqghkn8p2 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.2066.00.1'
20241008@170211.2189 nd1c75qrnp93t2ri2rqghkn8p2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@170211.2209 nd1c75qrnp93t2ri2rqghkn8p2 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241008@170211.2242 nd1c75qrnp93t2ri2rqghkn8p2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@170211.2261 nd1c75qrnp93t2ri2rqghkn8p2 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241008@170211.2270 nd1c75qrnp93t2ri2rqghkn8p2 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241008@170211.2283 nd1c75qrnp93t2ri2rqghkn8p2 Query : select sestamp valor from se where ref ='324.2066.00.1' and lote = 'r2400051100a'
20241008@170211.2304 nd1c75qrnp93t2ri2rqghkn8p2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@170211.2321 nd1c75qrnp93t2ri2rqghkn8p2 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241008@170211.2332 nd1c75qrnp93t2ri2rqghkn8p2 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut67055344056705578338','aut67055714576705578315' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241008@170211.2337 nd1c75qrnp93t2ri2rqghkn8p2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@170211.2351 nd1c75qrnp93t2ri2rqghkn8p2 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241008@170211.2461 nd1c75qrnp93t2ri2rqghkn8p2 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut67055344056705578338',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',6.000 ,'aut67055714576705578315' ,0,0 ,2,23.00,10000,?,?,?,?,?)
20241008@170211.2782 nd1c75qrnp93t2ri2rqghkn8p2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@170211.2798 nd1c75qrnp93t2ri2rqghkn8p2 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241008@170211.2830 nd1c75qrnp93t2ri2rqghkn8p2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@170211.2850 nd1c75qrnp93t2ri2rqghkn8p2 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241008@170211.2860 nd1c75qrnp93t2ri2rqghkn8p2 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241008@170211.2874 nd1c75qrnp93t2ri2rqghkn8p2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@170211.2890 nd1c75qrnp93t2ri2rqghkn8p2 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241008@170211.2901 nd1c75qrnp93t2ri2rqghkn8p2 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut67055678956705578346','aut67055714576705578315' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241008@170211.2906 nd1c75qrnp93t2ri2rqghkn8p2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@170211.2922 nd1c75qrnp93t2ri2rqghkn8p2 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241008@170211.2960 nd1c75qrnp93t2ri2rqghkn8p2 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut67055678956705578346',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut67055714576705578315' ,0,0 ,2,23.00,20000,?,?,?)
20241008@170211.3184 nd1c75qrnp93t2ri2rqghkn8p2 Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut67055714576705578315','2406537','wait',39,'adm09112754980.682000002')
20241008@170211.3276 nd1c75qrnp93t2ri2rqghkn8p2 Query : use flama_phc
20241008@170211.3280 nd1c75qrnp93t2ri2rqghkn8p2 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20241008@170211.3313 nd1c75qrnp93t2ri2rqghkn8p2 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2493';
20241008@170211.3344 nd1c75qrnp93t2ri2rqghkn8p2 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2493';
20241008@170211.3388 nd1c75qrnp93t2ri2rqghkn8p2 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2493';
20241008@170211.3427 nd1c75qrnp93t2ri2rqghkn8p2 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2493';
20241008@170211.4020 4natjg1vjiq0pa16nhkeo6q8vj Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20241008@170211.4032 4natjg1vjiq0pa16nhkeo6q8vj Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20241008@170211.4091 4natjg1vjiq0pa16nhkeo6q8vj Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2494';
20241008@170211.4148 4natjg1vjiq0pa16nhkeo6q8vj Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2494';
20241008@170211.4210 4natjg1vjiq0pa16nhkeo6q8vj Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2494';
20241008@170211.4237 4natjg1vjiq0pa16nhkeo6q8vj Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2494';
20241008@170211.4290 4natjg1vjiq0pa16nhkeo6q8vj Query : use flama_phc
20241008@170211.4293 4natjg1vjiq0pa16nhkeo6q8vj Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20241008@170211.4359 4natjg1vjiq0pa16nhkeo6q8vj Query : use flama_phc
20241008@170211.4363 4natjg1vjiq0pa16nhkeo6q8vj Query : select no, estab,szadrsdesc from szadrs where u_coddest=416
20241008@170211.4776 4natjg1vjiq0pa16nhkeo6q8vj Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1879.00.1'
20241008@170211.4941 4natjg1vjiq0pa16nhkeo6q8vj Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2065 and bo.obrano = 2406538 and bi.ref ='324.1879.00.1' and bi.lordem =1
20241008@170211.5275 4natjg1vjiq0pa16nhkeo6q8vj Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1879.00.1'
20241008@170211.5298 4natjg1vjiq0pa16nhkeo6q8vj Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2065 and bo.obrano = 2406538 and bi.ref ='324.1879.00.1' and bi.lordem =2
20241008@170211.5667 4natjg1vjiq0pa16nhkeo6q8vj Query : use flama_phc
20241008@170211.5671 4natjg1vjiq0pa16nhkeo6q8vj Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20241008@170211.5705 4natjg1vjiq0pa16nhkeo6q8vj Query : use flama_phc
20241008@170211.5710 4natjg1vjiq0pa16nhkeo6q8vj Query : select top 1 1 valor from td where td.ndoc = 39
20241008@170211.5745 4natjg1vjiq0pa16nhkeo6q8vj Query : use flama_phc
20241008@170211.5748 4natjg1vjiq0pa16nhkeo6q8vj 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')
20241008@170211.5860 4natjg1vjiq0pa16nhkeo6q8vj 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
20241008@170211.5899 4natjg1vjiq0pa16nhkeo6q8vj Query : use flama_phc
20241008@170211.5902 4natjg1vjiq0pa16nhkeo6q8vj Query : select top 1 ~inactivo valor from cl where no = '102079' and estab = 0 order by inactivo desc
20241008@170211.6031 4natjg1vjiq0pa16nhkeo6q8vj Query : use flama_phc
20241008@170211.6035 4natjg1vjiq0pa16nhkeo6q8vj Query : select top 1 tipodoc,regrd from td where ndoc = 39
20241008@170211.6069 4natjg1vjiq0pa16nhkeo6q8vj Query : use flama_phc
20241008@170211.6073 4natjg1vjiq0pa16nhkeo6q8vj Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20241008@170211.6118 4natjg1vjiq0pa16nhkeo6q8vj Query : use flama_phc
20241008@170211.6121 4natjg1vjiq0pa16nhkeo6q8vj Query : select szadrsstamp valor from szadrs where szadrsdesc='bragajav, lda.'
20241008@170211.6172 4natjg1vjiq0pa16nhkeo6q8vj Query : use flama_phc
20241008@170211.6176 4natjg1vjiq0pa16nhkeo6q8vj Query : select 1 valor from td where ndoc = 39
20241008@170211.6190 4natjg1vjiq0pa16nhkeo6q8vj Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20241008@170211.6205 4natjg1vjiq0pa16nhkeo6q8vj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@170211.6223 4natjg1vjiq0pa16nhkeo6q8vj Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20241008@170211.6244 4natjg1vjiq0pa16nhkeo6q8vj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@170211.6262 4natjg1vjiq0pa16nhkeo6q8vj Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20241008@170211.6291 4natjg1vjiq0pa16nhkeo6q8vj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@170211.6335 4natjg1vjiq0pa16nhkeo6q8vj Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20241008@170211.6350 4natjg1vjiq0pa16nhkeo6q8vj Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20241008@170211.6416 4natjg1vjiq0pa16nhkeo6q8vj Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20241008@170211.6431 4natjg1vjiq0pa16nhkeo6q8vj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@170211.6448 4natjg1vjiq0pa16nhkeo6q8vj Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20241008@170211.6468 4natjg1vjiq0pa16nhkeo6q8vj Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut6705541221670557839b' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20241008@170211.6624 4natjg1vjiq0pa16nhkeo6q8vj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@170211.6644 4natjg1vjiq0pa16nhkeo6q8vj Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20241008@170211.6682 4natjg1vjiq0pa16nhkeo6q8vj Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20241008@170211.6696 4natjg1vjiq0pa16nhkeo6q8vj Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20241008@170211.6710 4natjg1vjiq0pa16nhkeo6q8vj Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20241008@170211.6722 4natjg1vjiq0pa16nhkeo6q8vj Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20241008@170211.6734 4natjg1vjiq0pa16nhkeo6q8vj Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20241008@170211.6747 4natjg1vjiq0pa16nhkeo6q8vj Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20241008@170211.6759 4natjg1vjiq0pa16nhkeo6q8vj Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut6705541221670557839b',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20241008@170211.7058 4natjg1vjiq0pa16nhkeo6q8vj Query : select top 1 fno valor from wsftdata order by fno desc
20241008@170211.7269 4natjg1vjiq0pa16nhkeo6q8vj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@170211.7288 4natjg1vjiq0pa16nhkeo6q8vj Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20241008@170211.7314 4natjg1vjiq0pa16nhkeo6q8vj Query : select 'normal' from dummy
20241008@170211.7329 4natjg1vjiq0pa16nhkeo6q8vj Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut6705541221670557839b',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',1142,102079,0,'2024-10-08',39,'euro',0,0,2024 ,?,?)
20241008@170211.7585 4natjg1vjiq0pa16nhkeo6q8vj Query : use flama_phc
20241008@170211.7588 4natjg1vjiq0pa16nhkeo6q8vj Query : select st.usalote valor from st where st.ref = '324.1879.00.1'
20241008@170211.7610 4natjg1vjiq0pa16nhkeo6q8vj Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.1879.00.1'
20241008@170211.7763 4natjg1vjiq0pa16nhkeo6q8vj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@170211.7790 4natjg1vjiq0pa16nhkeo6q8vj Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241008@170211.7818 4natjg1vjiq0pa16nhkeo6q8vj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@170211.7871 4natjg1vjiq0pa16nhkeo6q8vj Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241008@170211.7880 4natjg1vjiq0pa16nhkeo6q8vj Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241008@170211.7892 4natjg1vjiq0pa16nhkeo6q8vj Query : select sestamp valor from se where ref ='324.1879.00.1' and lote = 'r2301097100b'
20241008@170211.7937 4natjg1vjiq0pa16nhkeo6q8vj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@170211.7952 4natjg1vjiq0pa16nhkeo6q8vj Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241008@170211.7964 4natjg1vjiq0pa16nhkeo6q8vj Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut670556688767055783c1','aut6705541221670557839b' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241008@170211.7981 4natjg1vjiq0pa16nhkeo6q8vj Query : use flama_phc
20241008@170211.7984 4natjg1vjiq0pa16nhkeo6q8vj Query : select top 1 errorresult result ,errornumber errornumber ,descriptionpt description ,isnull(descriptionen,'') descriptionen ,isnull(descriptionfr,'') descriptionfr from wserrorcodes where errornumber = -116
20241008@170211.8044 4natjg1vjiq0pa16nhkeo6q8vj Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2494';
20241008@170211.8079 4natjg1vjiq0pa16nhkeo6q8vj Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2494';
20241008@170211.8679 68hap7n17okdss25maheur1h0b Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20241008@170211.8690 68hap7n17okdss25maheur1h0b Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20241008@170211.8747 68hap7n17okdss25maheur1h0b Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2495';
20241008@170211.8808 68hap7n17okdss25maheur1h0b Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2495';
20241008@170211.8923 68hap7n17okdss25maheur1h0b Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2495';
20241008@170211.8961 68hap7n17okdss25maheur1h0b Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2495';
20241008@170211.9028 68hap7n17okdss25maheur1h0b Query : use flama_phc
20241008@170211.9032 68hap7n17okdss25maheur1h0b Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20241008@170211.9095 68hap7n17okdss25maheur1h0b Query : use flama_phc
20241008@170211.9098 68hap7n17okdss25maheur1h0b Query : select no, estab,szadrsdesc from szadrs where u_coddest=7737
20241008@170211.9184 68hap7n17okdss25maheur1h0b Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '304.2185.00.1'
20241008@170211.9352 68hap7n17okdss25maheur1h0b Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2065 and bo.obrano = 2406539 and bi.ref ='304.2185.00.1' and bi.lordem =1
20241008@170211.9689 68hap7n17okdss25maheur1h0b Query : use flama_phc
20241008@170211.9693 68hap7n17okdss25maheur1h0b Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20241008@170211.9729 68hap7n17okdss25maheur1h0b Query : use flama_phc
20241008@170211.9732 68hap7n17okdss25maheur1h0b Query : select top 1 1 valor from td where td.ndoc = 39
20241008@170211.9762 68hap7n17okdss25maheur1h0b Query : use flama_phc
20241008@170211.9765 68hap7n17okdss25maheur1h0b 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')
20241008@170211.9808 68hap7n17okdss25maheur1h0b 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
20241008@170211.9842 68hap7n17okdss25maheur1h0b Query : use flama_phc
20241008@170211.9844 68hap7n17okdss25maheur1h0b Query : select top 1 ~inactivo valor from cl where no = '101621' and estab = 0 order by inactivo desc
20241008@170212.6200 68hap7n17okdss25maheur1h0b Query : use flama_phc
20241008@170212.6500 68hap7n17okdss25maheur1h0b Query : select top 1 tipodoc,regrd from td where ndoc = 39
20241008@170212.9700 68hap7n17okdss25maheur1h0b Query : use flama_phc
20241008@170212.1000 68hap7n17okdss25maheur1h0b Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20241008@170212.1380 68hap7n17okdss25maheur1h0b Query : use flama_phc
20241008@170212.1400 68hap7n17okdss25maheur1h0b Query : select szadrsstamp valor from szadrs where szadrsdesc='j.o.m - loja da ponte'
20241008@170212.1870 68hap7n17okdss25maheur1h0b Query : use flama_phc
20241008@170212.1900 68hap7n17okdss25maheur1h0b Query : select 1 valor from td where ndoc = 39
20241008@170212.2010 68hap7n17okdss25maheur1h0b Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20241008@170212.2140 68hap7n17okdss25maheur1h0b Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@170212.2300 68hap7n17okdss25maheur1h0b Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20241008@170212.2510 68hap7n17okdss25maheur1h0b Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@170212.2650 68hap7n17okdss25maheur1h0b Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20241008@170212.2930 68hap7n17okdss25maheur1h0b Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@170212.3070 68hap7n17okdss25maheur1h0b Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20241008@170212.3190 68hap7n17okdss25maheur1h0b Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20241008@170212.3850 68hap7n17okdss25maheur1h0b Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20241008@170212.3970 68hap7n17okdss25maheur1h0b Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@170212.4120 68hap7n17okdss25maheur1h0b Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20241008@170212.4300 68hap7n17okdss25maheur1h0b Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut67055008886705578407' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20241008@170212.5770 68hap7n17okdss25maheur1h0b Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@170212.5950 68hap7n17okdss25maheur1h0b Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20241008@170212.6270 68hap7n17okdss25maheur1h0b Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20241008@170212.6380 68hap7n17okdss25maheur1h0b Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20241008@170212.6490 68hap7n17okdss25maheur1h0b Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20241008@170212.6610 68hap7n17okdss25maheur1h0b Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20241008@170212.6730 68hap7n17okdss25maheur1h0b Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20241008@170212.7000 68hap7n17okdss25maheur1h0b Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20241008@170212.7120 68hap7n17okdss25maheur1h0b Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut67055008886705578407',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20241008@170212.9420 68hap7n17okdss25maheur1h0b Query : select top 1 fno valor from wsftdata order by fno desc
20241008@170212.9680 68hap7n17okdss25maheur1h0b Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@170212.9840 68hap7n17okdss25maheur1h0b Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20241008@170212.1010 68hap7n17okdss25maheur1h0b Query : select 'normal' from dummy
20241008@170212.1027 68hap7n17okdss25maheur1h0b Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut67055008886705578407',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',1142,101621,0,'2024-10-08',39,'euro',0,0,2024 ,?,?)
20241008@170212.1290 68hap7n17okdss25maheur1h0b Query : use flama_phc
20241008@170212.1293 68hap7n17okdss25maheur1h0b Query : select st.usalote valor from st where st.ref = '304.2185.00.1'
20241008@170212.1316 68hap7n17okdss25maheur1h0b Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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.2185.00.1'
20241008@170212.1479 68hap7n17okdss25maheur1h0b Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@170212.1495 68hap7n17okdss25maheur1h0b Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241008@170212.1520 68hap7n17okdss25maheur1h0b Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@170212.1534 68hap7n17okdss25maheur1h0b Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241008@170212.1543 68hap7n17okdss25maheur1h0b Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241008@170212.1554 68hap7n17okdss25maheur1h0b Query : select sestamp valor from se where ref ='304.2185.00.1' and lote = '211653'
20241008@170212.1589 68hap7n17okdss25maheur1h0b Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@170212.1604 68hap7n17okdss25maheur1h0b Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241008@170212.1617 68hap7n17okdss25maheur1h0b Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut67055561846705578426','aut67055008886705578407' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241008@170212.1621 68hap7n17okdss25maheur1h0b Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@170212.1635 68hap7n17okdss25maheur1h0b Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241008@170212.1662 68hap7n17okdss25maheur1h0b Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut67055561846705578426',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',1.000 ,'aut67055008886705578407' ,0,0 ,2,23.00,10000,?,?,?,?,?)
20241008@170212.1901 68hap7n17okdss25maheur1h0b Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@170212.1917 68hap7n17okdss25maheur1h0b Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241008@170212.1942 68hap7n17okdss25maheur1h0b Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@170212.1956 68hap7n17okdss25maheur1h0b Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241008@170212.1978 68hap7n17okdss25maheur1h0b Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241008@170212.1990 68hap7n17okdss25maheur1h0b Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@170212.2004 68hap7n17okdss25maheur1h0b Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241008@170212.2015 68hap7n17okdss25maheur1h0b Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut67055234316705578430','aut67055008886705578407' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241008@170212.2019 68hap7n17okdss25maheur1h0b Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@170212.2033 68hap7n17okdss25maheur1h0b Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241008@170212.2061 68hap7n17okdss25maheur1h0b Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut67055234316705578430',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut67055008886705578407' ,0,0 ,2,23.00,20000,?,?,?)
20241008@170212.2464 68hap7n17okdss25maheur1h0b Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut67055008886705578407','2406539','wait',39,'adm09112754980.682000002')
20241008@170212.2792 68hap7n17okdss25maheur1h0b Query : use flama_phc
20241008@170212.2795 68hap7n17okdss25maheur1h0b Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20241008@170212.2828 68hap7n17okdss25maheur1h0b Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2495';
20241008@170212.2862 68hap7n17okdss25maheur1h0b Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2495';
20241008@170212.2904 68hap7n17okdss25maheur1h0b Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2495';
20241008@170212.2929 68hap7n17okdss25maheur1h0b Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2495';
20241008@170212.3564 db17amngh2p74dio0v465pg635 Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20241008@170212.3575 db17amngh2p74dio0v465pg635 Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20241008@170212.3633 db17amngh2p74dio0v465pg635 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2496';
20241008@170212.3690 db17amngh2p74dio0v465pg635 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2496';
20241008@170212.3745 db17amngh2p74dio0v465pg635 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2496';
20241008@170212.3771 db17amngh2p74dio0v465pg635 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2496';
20241008@170212.3832 db17amngh2p74dio0v465pg635 Query : use flama_phc
20241008@170212.3835 db17amngh2p74dio0v465pg635 Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20241008@170212.3899 db17amngh2p74dio0v465pg635 Query : use flama_phc
20241008@170212.3901 db17amngh2p74dio0v465pg635 Query : select no, estab,szadrsdesc from szadrs where u_coddest=4740
20241008@170212.3947 db17amngh2p74dio0v465pg635 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1321.00.1'
20241008@170212.4122 db17amngh2p74dio0v465pg635 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2065 and bo.obrano = 2406540 and bi.ref ='324.1321.00.1' and bi.lordem =1
20241008@170212.4469 db17amngh2p74dio0v465pg635 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1321.00.1'
20241008@170212.4489 db17amngh2p74dio0v465pg635 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2065 and bo.obrano = 2406540 and bi.ref ='324.1321.00.1' and bi.lordem =1
20241008@170212.4507 db17amngh2p74dio0v465pg635 Query : use flama_phc
20241008@170212.4510 db17amngh2p74dio0v465pg635 Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20241008@170212.4541 db17amngh2p74dio0v465pg635 Query : use flama_phc
20241008@170212.4544 db17amngh2p74dio0v465pg635 Query : select top 1 1 valor from td where td.ndoc = 39
20241008@170212.4572 db17amngh2p74dio0v465pg635 Query : use flama_phc
20241008@170212.4575 db17amngh2p74dio0v465pg635 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')
20241008@170212.4601 db17amngh2p74dio0v465pg635 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
20241008@170212.4635 db17amngh2p74dio0v465pg635 Query : use flama_phc
20241008@170212.4638 db17amngh2p74dio0v465pg635 Query : select top 1 ~inactivo valor from cl where no = '100810' and estab = 0 order by inactivo desc
20241008@170212.4666 db17amngh2p74dio0v465pg635 Query : use flama_phc
20241008@170212.4669 db17amngh2p74dio0v465pg635 Query : select top 1 tipodoc,regrd from td where ndoc = 39
20241008@170212.4700 db17amngh2p74dio0v465pg635 Query : use flama_phc
20241008@170212.4703 db17amngh2p74dio0v465pg635 Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20241008@170212.4754 db17amngh2p74dio0v465pg635 Query : use flama_phc
20241008@170212.4758 db17amngh2p74dio0v465pg635 Query : select szadrsstamp valor from szadrs where szadrsdesc='100810 - worten-equipamentos para o lar,sa.'
20241008@170212.4802 db17amngh2p74dio0v465pg635 Query : use flama_phc
20241008@170212.4806 db17amngh2p74dio0v465pg635 Query : select 1 valor from td where ndoc = 39
20241008@170212.4818 db17amngh2p74dio0v465pg635 Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20241008@170212.4830 db17amngh2p74dio0v465pg635 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@170212.4846 db17amngh2p74dio0v465pg635 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20241008@170212.4866 db17amngh2p74dio0v465pg635 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@170212.4880 db17amngh2p74dio0v465pg635 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20241008@170212.4907 db17amngh2p74dio0v465pg635 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@170212.4921 db17amngh2p74dio0v465pg635 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20241008@170212.4933 db17amngh2p74dio0v465pg635 Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20241008@170212.4995 db17amngh2p74dio0v465pg635 Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20241008@170212.5007 db17amngh2p74dio0v465pg635 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@170212.5022 db17amngh2p74dio0v465pg635 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20241008@170212.5036 db17amngh2p74dio0v465pg635 Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut67055971016705578478' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20241008@170212.5193 db17amngh2p74dio0v465pg635 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@170212.5210 db17amngh2p74dio0v465pg635 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20241008@170212.5241 db17amngh2p74dio0v465pg635 Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20241008@170212.5253 db17amngh2p74dio0v465pg635 Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20241008@170212.5264 db17amngh2p74dio0v465pg635 Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20241008@170212.5276 db17amngh2p74dio0v465pg635 Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20241008@170212.5287 db17amngh2p74dio0v465pg635 Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20241008@170212.5298 db17amngh2p74dio0v465pg635 Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20241008@170212.5309 db17amngh2p74dio0v465pg635 Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut67055971016705578478',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20241008@170212.5544 db17amngh2p74dio0v465pg635 Query : select top 1 fno valor from wsftdata order by fno desc
20241008@170212.5567 db17amngh2p74dio0v465pg635 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@170212.5582 db17amngh2p74dio0v465pg635 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20241008@170212.5604 db17amngh2p74dio0v465pg635 Query : select 'normal' from dummy
20241008@170212.5619 db17amngh2p74dio0v465pg635 Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut67055971016705578478',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',1143,100810,0,'2024-10-08',39,'euro',0,0,2024 ,?,?)
20241008@170212.5886 db17amngh2p74dio0v465pg635 Query : use flama_phc
20241008@170212.5889 db17amngh2p74dio0v465pg635 Query : select st.usalote valor from st where st.ref = '324.1321.00.1'
20241008@170212.5912 db17amngh2p74dio0v465pg635 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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.1321.00.1'
20241008@170212.6062 db17amngh2p74dio0v465pg635 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@170212.6077 db17amngh2p74dio0v465pg635 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241008@170212.6102 db17amngh2p74dio0v465pg635 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@170212.6117 db17amngh2p74dio0v465pg635 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241008@170212.6125 db17amngh2p74dio0v465pg635 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241008@170212.6139 db17amngh2p74dio0v465pg635 Query : select sestamp valor from se where ref ='324.1321.00.1' and lote = 'r2400495200a'
20241008@170212.6152 db17amngh2p74dio0v465pg635 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@170212.6166 db17amngh2p74dio0v465pg635 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241008@170212.6179 db17amngh2p74dio0v465pg635 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut67055352146705578496','aut67055971016705578478' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241008@170212.6183 db17amngh2p74dio0v465pg635 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@170212.6198 db17amngh2p74dio0v465pg635 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241008@170212.6227 db17amngh2p74dio0v465pg635 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut67055352146705578496',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',8.000 ,'aut67055971016705578478' ,0,0 ,2,23.00,10000,?,?,?,?,?)
20241008@170212.6446 db17amngh2p74dio0v465pg635 Query : use flama_phc
20241008@170212.6450 db17amngh2p74dio0v465pg635 Query : select st.usalote valor from st where st.ref = '324.1321.00.1'
20241008@170212.6482 db17amngh2p74dio0v465pg635 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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.1321.00.1'
20241008@170212.6497 db17amngh2p74dio0v465pg635 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@170212.6515 db17amngh2p74dio0v465pg635 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241008@170212.6540 db17amngh2p74dio0v465pg635 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@170212.6555 db17amngh2p74dio0v465pg635 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241008@170212.6563 db17amngh2p74dio0v465pg635 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241008@170212.6579 db17amngh2p74dio0v465pg635 Query : select sestamp valor from se where ref ='324.1321.00.1' and lote = 'r2400495200a'
20241008@170212.6591 db17amngh2p74dio0v465pg635 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@170212.6605 db17amngh2p74dio0v465pg635 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241008@170212.6617 db17amngh2p74dio0v465pg635 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut670550697067055784a0','aut67055971016705578478' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241008@170212.6621 db17amngh2p74dio0v465pg635 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@170212.6636 db17amngh2p74dio0v465pg635 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241008@170212.6701 db17amngh2p74dio0v465pg635 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut670550697067055784a0',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',27.000 ,'aut67055971016705578478' ,0,0 ,2,23.00,20000,?,?,?,?,?)
20241008@170212.6925 db17amngh2p74dio0v465pg635 Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut67055971016705578478','2406540','wait',39,'adm09112754980.682000002')
20241008@170212.7038 db17amngh2p74dio0v465pg635 Query : use flama_phc
20241008@170212.7042 db17amngh2p74dio0v465pg635 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20241008@170212.7072 db17amngh2p74dio0v465pg635 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2496';
20241008@170212.7103 db17amngh2p74dio0v465pg635 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2496';
20241008@170212.7145 db17amngh2p74dio0v465pg635 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2496';
20241008@170212.7170 db17amngh2p74dio0v465pg635 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2496';
20241008@170212.7726 5uhmbhk8bjkm4kos8aa2os0qm6 Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20241008@170212.7737 5uhmbhk8bjkm4kos8aa2os0qm6 Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20241008@170212.7816 5uhmbhk8bjkm4kos8aa2os0qm6 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2497';
20241008@170212.8028 5uhmbhk8bjkm4kos8aa2os0qm6 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2497';
20241008@170212.8188 5uhmbhk8bjkm4kos8aa2os0qm6 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2497';
20241008@170212.8241 5uhmbhk8bjkm4kos8aa2os0qm6 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2497';
20241008@170212.8625 5uhmbhk8bjkm4kos8aa2os0qm6 Query : use flama_phc
20241008@170212.8629 5uhmbhk8bjkm4kos8aa2os0qm6 Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20241008@170212.8703 5uhmbhk8bjkm4kos8aa2os0qm6 Query : use flama_phc
20241008@170212.8726 5uhmbhk8bjkm4kos8aa2os0qm6 Query : select no, estab,szadrsdesc from szadrs where u_coddest=4740
20241008@170212.9015 5uhmbhk8bjkm4kos8aa2os0qm6 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1321.00.1'
20241008@170212.9222 5uhmbhk8bjkm4kos8aa2os0qm6 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2065 and bo.obrano = 2406541 and bi.ref ='324.1321.00.1' and bi.lordem =1
20241008@170212.9647 5uhmbhk8bjkm4kos8aa2os0qm6 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1321.00.1'
20241008@170212.9927 5uhmbhk8bjkm4kos8aa2os0qm6 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2065 and bo.obrano = 2406541 and bi.ref ='324.1321.00.1' and bi.lordem =1
20241008@170213.1420 5uhmbhk8bjkm4kos8aa2os0qm6 Query : use flama_phc
20241008@170213.1880 5uhmbhk8bjkm4kos8aa2os0qm6 Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20241008@170213.9870 5uhmbhk8bjkm4kos8aa2os0qm6 Query : use flama_phc
20241008@170213.9920 5uhmbhk8bjkm4kos8aa2os0qm6 Query : select top 1 1 valor from td where td.ndoc = 39
20241008@170213.1115 5uhmbhk8bjkm4kos8aa2os0qm6 Query : use flama_phc
20241008@170213.1118 5uhmbhk8bjkm4kos8aa2os0qm6 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')
20241008@170213.1149 5uhmbhk8bjkm4kos8aa2os0qm6 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
20241008@170213.1183 5uhmbhk8bjkm4kos8aa2os0qm6 Query : use flama_phc
20241008@170213.1186 5uhmbhk8bjkm4kos8aa2os0qm6 Query : select top 1 ~inactivo valor from cl where no = '100810' and estab = 0 order by inactivo desc
20241008@170213.1219 5uhmbhk8bjkm4kos8aa2os0qm6 Query : use flama_phc
20241008@170213.1221 5uhmbhk8bjkm4kos8aa2os0qm6 Query : select top 1 tipodoc,regrd from td where ndoc = 39
20241008@170213.1256 5uhmbhk8bjkm4kos8aa2os0qm6 Query : use flama_phc
20241008@170213.1259 5uhmbhk8bjkm4kos8aa2os0qm6 Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20241008@170213.1299 5uhmbhk8bjkm4kos8aa2os0qm6 Query : use flama_phc
20241008@170213.1302 5uhmbhk8bjkm4kos8aa2os0qm6 Query : select szadrsstamp valor from szadrs where szadrsdesc='100810 - worten-equipamentos para o lar,sa.'
20241008@170213.1347 5uhmbhk8bjkm4kos8aa2os0qm6 Query : use flama_phc
20241008@170213.1350 5uhmbhk8bjkm4kos8aa2os0qm6 Query : select 1 valor from td where ndoc = 39
20241008@170213.1362 5uhmbhk8bjkm4kos8aa2os0qm6 Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20241008@170213.1375 5uhmbhk8bjkm4kos8aa2os0qm6 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@170213.1393 5uhmbhk8bjkm4kos8aa2os0qm6 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20241008@170213.1413 5uhmbhk8bjkm4kos8aa2os0qm6 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@170213.1428 5uhmbhk8bjkm4kos8aa2os0qm6 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20241008@170213.1471 5uhmbhk8bjkm4kos8aa2os0qm6 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@170213.1487 5uhmbhk8bjkm4kos8aa2os0qm6 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20241008@170213.1500 5uhmbhk8bjkm4kos8aa2os0qm6 Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20241008@170213.1576 5uhmbhk8bjkm4kos8aa2os0qm6 Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20241008@170213.1591 5uhmbhk8bjkm4kos8aa2os0qm6 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@170213.1609 5uhmbhk8bjkm4kos8aa2os0qm6 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20241008@170213.1626 5uhmbhk8bjkm4kos8aa2os0qm6 Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut67055260726705578524' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20241008@170213.1772 5uhmbhk8bjkm4kos8aa2os0qm6 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@170213.1790 5uhmbhk8bjkm4kos8aa2os0qm6 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20241008@170213.1824 5uhmbhk8bjkm4kos8aa2os0qm6 Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20241008@170213.1837 5uhmbhk8bjkm4kos8aa2os0qm6 Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20241008@170213.1850 5uhmbhk8bjkm4kos8aa2os0qm6 Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20241008@170213.1862 5uhmbhk8bjkm4kos8aa2os0qm6 Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20241008@170213.1874 5uhmbhk8bjkm4kos8aa2os0qm6 Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20241008@170213.1888 5uhmbhk8bjkm4kos8aa2os0qm6 Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20241008@170213.1900 5uhmbhk8bjkm4kos8aa2os0qm6 Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut67055260726705578524',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20241008@170213.2115 5uhmbhk8bjkm4kos8aa2os0qm6 Query : select top 1 fno valor from wsftdata order by fno desc
20241008@170213.2137 5uhmbhk8bjkm4kos8aa2os0qm6 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@170213.2155 5uhmbhk8bjkm4kos8aa2os0qm6 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20241008@170213.2178 5uhmbhk8bjkm4kos8aa2os0qm6 Query : select 'normal' from dummy
20241008@170213.2192 5uhmbhk8bjkm4kos8aa2os0qm6 Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut67055260726705578524',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',1144,100810,0,'2024-10-08',39,'euro',0,0,2024 ,?,?)
20241008@170213.2448 5uhmbhk8bjkm4kos8aa2os0qm6 Query : use flama_phc
20241008@170213.2451 5uhmbhk8bjkm4kos8aa2os0qm6 Query : select st.usalote valor from st where st.ref = '324.1321.00.1'
20241008@170213.2471 5uhmbhk8bjkm4kos8aa2os0qm6 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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.1321.00.1'
20241008@170213.2485 5uhmbhk8bjkm4kos8aa2os0qm6 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@170213.2500 5uhmbhk8bjkm4kos8aa2os0qm6 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241008@170213.2528 5uhmbhk8bjkm4kos8aa2os0qm6 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@170213.2543 5uhmbhk8bjkm4kos8aa2os0qm6 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241008@170213.2551 5uhmbhk8bjkm4kos8aa2os0qm6 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241008@170213.2562 5uhmbhk8bjkm4kos8aa2os0qm6 Query : select sestamp valor from se where ref ='324.1321.00.1' and lote = 'r2400495200a'
20241008@170213.2574 5uhmbhk8bjkm4kos8aa2os0qm6 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@170213.2587 5uhmbhk8bjkm4kos8aa2os0qm6 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241008@170213.2598 5uhmbhk8bjkm4kos8aa2os0qm6 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut6705502613670557853e','aut67055260726705578524' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241008@170213.2602 5uhmbhk8bjkm4kos8aa2os0qm6 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@170213.2616 5uhmbhk8bjkm4kos8aa2os0qm6 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241008@170213.2644 5uhmbhk8bjkm4kos8aa2os0qm6 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut6705502613670557853e',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',8.000 ,'aut67055260726705578524' ,0,0 ,2,23.00,10000,?,?,?,?,?)
20241008@170213.2978 5uhmbhk8bjkm4kos8aa2os0qm6 Query : use flama_phc
20241008@170213.3009 5uhmbhk8bjkm4kos8aa2os0qm6 Query : select st.usalote valor from st where st.ref = '324.1321.00.1'
20241008@170213.3028 5uhmbhk8bjkm4kos8aa2os0qm6 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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.1321.00.1'
20241008@170213.3041 5uhmbhk8bjkm4kos8aa2os0qm6 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@170213.3056 5uhmbhk8bjkm4kos8aa2os0qm6 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241008@170213.3081 5uhmbhk8bjkm4kos8aa2os0qm6 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@170213.3095 5uhmbhk8bjkm4kos8aa2os0qm6 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241008@170213.3103 5uhmbhk8bjkm4kos8aa2os0qm6 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241008@170213.3114 5uhmbhk8bjkm4kos8aa2os0qm6 Query : select sestamp valor from se where ref ='324.1321.00.1' and lote = 'r2400495200a'
20241008@170213.3125 5uhmbhk8bjkm4kos8aa2os0qm6 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@170213.3140 5uhmbhk8bjkm4kos8aa2os0qm6 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241008@170213.3150 5uhmbhk8bjkm4kos8aa2os0qm6 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut6705563726670557854c','aut67055260726705578524' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241008@170213.3154 5uhmbhk8bjkm4kos8aa2os0qm6 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@170213.3168 5uhmbhk8bjkm4kos8aa2os0qm6 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241008@170213.3195 5uhmbhk8bjkm4kos8aa2os0qm6 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut6705563726670557854c',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',27.000 ,'aut67055260726705578524' ,0,0 ,2,23.00,20000,?,?,?,?,?)
20241008@170213.3412 5uhmbhk8bjkm4kos8aa2os0qm6 Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut67055260726705578524','2406541','wait',39,'adm09112754980.682000002')
20241008@170213.3480 5uhmbhk8bjkm4kos8aa2os0qm6 Query : use flama_phc
20241008@170213.3484 5uhmbhk8bjkm4kos8aa2os0qm6 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20241008@170213.3513 5uhmbhk8bjkm4kos8aa2os0qm6 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2497';
20241008@170213.3545 5uhmbhk8bjkm4kos8aa2os0qm6 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2497';
20241008@170213.3586 5uhmbhk8bjkm4kos8aa2os0qm6 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2497';
20241008@170213.3611 5uhmbhk8bjkm4kos8aa2os0qm6 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2497';
20241008@170213.4206 im5a2s4onpusnihsi12okc9b5r Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20241008@170213.4217 im5a2s4onpusnihsi12okc9b5r Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20241008@170213.4274 im5a2s4onpusnihsi12okc9b5r Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2498';
20241008@170213.4332 im5a2s4onpusnihsi12okc9b5r Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2498';
20241008@170213.4387 im5a2s4onpusnihsi12okc9b5r Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2498';
20241008@170213.4414 im5a2s4onpusnihsi12okc9b5r Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2498';
20241008@170213.4462 im5a2s4onpusnihsi12okc9b5r Query : use flama_phc
20241008@170213.4465 im5a2s4onpusnihsi12okc9b5r Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20241008@170213.4525 im5a2s4onpusnihsi12okc9b5r Query : use flama_phc
20241008@170213.4528 im5a2s4onpusnihsi12okc9b5r Query : select no, estab,szadrsdesc from szadrs where u_coddest=4740
20241008@170213.4567 im5a2s4onpusnihsi12okc9b5r Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1332.00.1'
20241008@170213.4731 im5a2s4onpusnihsi12okc9b5r Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2065 and bo.obrano = 2406542 and bi.ref ='324.1332.00.1' and bi.lordem =1
20241008@170213.5067 im5a2s4onpusnihsi12okc9b5r Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1332.00.1'
20241008@170213.5088 im5a2s4onpusnihsi12okc9b5r Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2065 and bo.obrano = 2406542 and bi.ref ='324.1332.00.1' and bi.lordem =1
20241008@170213.5117 im5a2s4onpusnihsi12okc9b5r Query : use flama_phc
20241008@170213.5120 im5a2s4onpusnihsi12okc9b5r Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20241008@170213.5152 im5a2s4onpusnihsi12okc9b5r Query : use flama_phc
20241008@170213.5155 im5a2s4onpusnihsi12okc9b5r Query : select top 1 1 valor from td where td.ndoc = 39
20241008@170213.5183 im5a2s4onpusnihsi12okc9b5r Query : use flama_phc
20241008@170213.5186 im5a2s4onpusnihsi12okc9b5r 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')
20241008@170213.5211 im5a2s4onpusnihsi12okc9b5r 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
20241008@170213.5247 im5a2s4onpusnihsi12okc9b5r Query : use flama_phc
20241008@170213.5250 im5a2s4onpusnihsi12okc9b5r Query : select top 1 ~inactivo valor from cl where no = '100810' and estab = 0 order by inactivo desc
20241008@170213.5280 im5a2s4onpusnihsi12okc9b5r Query : use flama_phc
20241008@170213.5283 im5a2s4onpusnihsi12okc9b5r Query : select top 1 tipodoc,regrd from td where ndoc = 39
20241008@170213.5323 im5a2s4onpusnihsi12okc9b5r Query : use flama_phc
20241008@170213.5326 im5a2s4onpusnihsi12okc9b5r Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20241008@170213.5363 im5a2s4onpusnihsi12okc9b5r Query : use flama_phc
20241008@170213.5366 im5a2s4onpusnihsi12okc9b5r Query : select szadrsstamp valor from szadrs where szadrsdesc='100810 - worten-equipamentos para o lar,sa.'
20241008@170213.5412 im5a2s4onpusnihsi12okc9b5r Query : use flama_phc
20241008@170213.5415 im5a2s4onpusnihsi12okc9b5r Query : select 1 valor from td where ndoc = 39
20241008@170213.5428 im5a2s4onpusnihsi12okc9b5r Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20241008@170213.5443 im5a2s4onpusnihsi12okc9b5r Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@170213.5458 im5a2s4onpusnihsi12okc9b5r Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20241008@170213.5478 im5a2s4onpusnihsi12okc9b5r Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@170213.5491 im5a2s4onpusnihsi12okc9b5r Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20241008@170213.5529 im5a2s4onpusnihsi12okc9b5r Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@170213.5543 im5a2s4onpusnihsi12okc9b5r Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20241008@170213.5555 im5a2s4onpusnihsi12okc9b5r Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20241008@170213.5617 im5a2s4onpusnihsi12okc9b5r Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20241008@170213.5630 im5a2s4onpusnihsi12okc9b5r Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@170213.5645 im5a2s4onpusnihsi12okc9b5r Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20241008@170213.5663 im5a2s4onpusnihsi12okc9b5r Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut67055994666705578587' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20241008@170213.5832 im5a2s4onpusnihsi12okc9b5r Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@170213.5850 im5a2s4onpusnihsi12okc9b5r Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20241008@170213.5882 im5a2s4onpusnihsi12okc9b5r Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20241008@170213.5893 im5a2s4onpusnihsi12okc9b5r Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20241008@170213.5904 im5a2s4onpusnihsi12okc9b5r Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20241008@170213.5917 im5a2s4onpusnihsi12okc9b5r Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20241008@170213.5929 im5a2s4onpusnihsi12okc9b5r Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20241008@170213.5943 im5a2s4onpusnihsi12okc9b5r Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20241008@170213.5956 im5a2s4onpusnihsi12okc9b5r Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut67055994666705578587',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20241008@170213.6345 im5a2s4onpusnihsi12okc9b5r Query : select top 1 fno valor from wsftdata order by fno desc
20241008@170213.6368 im5a2s4onpusnihsi12okc9b5r Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@170213.6384 im5a2s4onpusnihsi12okc9b5r Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20241008@170213.6406 im5a2s4onpusnihsi12okc9b5r Query : select 'normal' from dummy
20241008@170213.6421 im5a2s4onpusnihsi12okc9b5r Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut67055994666705578587',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',1145,100810,0,'2024-10-08',39,'euro',0,0,2024 ,?,?)
20241008@170213.6684 im5a2s4onpusnihsi12okc9b5r Query : use flama_phc
20241008@170213.6687 im5a2s4onpusnihsi12okc9b5r Query : select st.usalote valor from st where st.ref = '324.1332.00.1'
20241008@170213.6708 im5a2s4onpusnihsi12okc9b5r Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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.1332.00.1'
20241008@170213.6862 im5a2s4onpusnihsi12okc9b5r Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@170213.6878 im5a2s4onpusnihsi12okc9b5r Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241008@170213.6903 im5a2s4onpusnihsi12okc9b5r Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@170213.6918 im5a2s4onpusnihsi12okc9b5r Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241008@170213.6926 im5a2s4onpusnihsi12okc9b5r Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241008@170213.6937 im5a2s4onpusnihsi12okc9b5r Query : select sestamp valor from se where ref ='324.1332.00.1' and lote = 'r2400759200a'
20241008@170213.6950 im5a2s4onpusnihsi12okc9b5r Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@170213.6964 im5a2s4onpusnihsi12okc9b5r Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241008@170213.6975 im5a2s4onpusnihsi12okc9b5r Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut670552281067055785a9','aut67055994666705578587' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241008@170213.6979 im5a2s4onpusnihsi12okc9b5r Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@170213.6993 im5a2s4onpusnihsi12okc9b5r Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241008@170213.7020 im5a2s4onpusnihsi12okc9b5r Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut670552281067055785a9',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',24.000 ,'aut67055994666705578587' ,0,0 ,2,23.00,10000,?,?,?,?,?)
20241008@170213.7284 im5a2s4onpusnihsi12okc9b5r Query : use flama_phc
20241008@170213.7287 im5a2s4onpusnihsi12okc9b5r Query : select st.usalote valor from st where st.ref = '324.1332.00.1'
20241008@170213.7306 im5a2s4onpusnihsi12okc9b5r Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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.1332.00.1'
20241008@170213.7320 im5a2s4onpusnihsi12okc9b5r Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@170213.7336 im5a2s4onpusnihsi12okc9b5r Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241008@170213.7360 im5a2s4onpusnihsi12okc9b5r Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@170213.7375 im5a2s4onpusnihsi12okc9b5r Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241008@170213.7382 im5a2s4onpusnihsi12okc9b5r Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241008@170213.7394 im5a2s4onpusnihsi12okc9b5r Query : select sestamp valor from se where ref ='324.1332.00.1' and lote = 'r2400759200a'
20241008@170213.7406 im5a2s4onpusnihsi12okc9b5r Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@170213.7421 im5a2s4onpusnihsi12okc9b5r Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241008@170213.7432 im5a2s4onpusnihsi12okc9b5r Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut670554483567055785b4','aut67055994666705578587' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241008@170213.7436 im5a2s4onpusnihsi12okc9b5r Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@170213.7450 im5a2s4onpusnihsi12okc9b5r Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241008@170213.7476 im5a2s4onpusnihsi12okc9b5r Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut670554483567055785b4',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',1.000 ,'aut67055994666705578587' ,0,0 ,2,23.00,20000,?,?,?,?,?)
20241008@170213.7696 im5a2s4onpusnihsi12okc9b5r Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut67055994666705578587','2406542','wait',39,'adm09112754980.682000002')
20241008@170213.7764 im5a2s4onpusnihsi12okc9b5r Query : use flama_phc
20241008@170213.7767 im5a2s4onpusnihsi12okc9b5r Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20241008@170213.7797 im5a2s4onpusnihsi12okc9b5r Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2498';
20241008@170213.7826 im5a2s4onpusnihsi12okc9b5r Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2498';
20241008@170213.7868 im5a2s4onpusnihsi12okc9b5r Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2498';
20241008@170213.7894 im5a2s4onpusnihsi12okc9b5r Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2498';
20241008@170213.8472 n3k6bpnv41ktgbb31ff2vllkfv Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20241008@170213.8485 n3k6bpnv41ktgbb31ff2vllkfv Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20241008@170213.8551 n3k6bpnv41ktgbb31ff2vllkfv Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2499';
20241008@170213.8610 n3k6bpnv41ktgbb31ff2vllkfv Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2499';
20241008@170213.8665 n3k6bpnv41ktgbb31ff2vllkfv Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2499';
20241008@170213.8691 n3k6bpnv41ktgbb31ff2vllkfv Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2499';
20241008@170213.8739 n3k6bpnv41ktgbb31ff2vllkfv Query : use flama_phc
20241008@170213.8743 n3k6bpnv41ktgbb31ff2vllkfv Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20241008@170213.8810 n3k6bpnv41ktgbb31ff2vllkfv Query : use flama_phc
20241008@170213.8813 n3k6bpnv41ktgbb31ff2vllkfv Query : select no, estab,szadrsdesc from szadrs where u_coddest=4740
20241008@170213.8854 n3k6bpnv41ktgbb31ff2vllkfv Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1332.00.1'
20241008@170213.8875 n3k6bpnv41ktgbb31ff2vllkfv Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2065 and bo.obrano = 2406543 and bi.ref ='324.1332.00.1' and bi.lordem =1
20241008@170213.9222 n3k6bpnv41ktgbb31ff2vllkfv Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1332.00.1'
20241008@170213.9243 n3k6bpnv41ktgbb31ff2vllkfv Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2065 and bo.obrano = 2406543 and bi.ref ='324.1332.00.1' and bi.lordem =1
20241008@170213.9260 n3k6bpnv41ktgbb31ff2vllkfv Query : use flama_phc
20241008@170213.9263 n3k6bpnv41ktgbb31ff2vllkfv Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20241008@170213.9296 n3k6bpnv41ktgbb31ff2vllkfv Query : use flama_phc
20241008@170213.9299 n3k6bpnv41ktgbb31ff2vllkfv Query : select top 1 1 valor from td where td.ndoc = 39
20241008@170213.9341 n3k6bpnv41ktgbb31ff2vllkfv Query : use flama_phc
20241008@170213.9344 n3k6bpnv41ktgbb31ff2vllkfv 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')
20241008@170213.9372 n3k6bpnv41ktgbb31ff2vllkfv 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
20241008@170213.9407 n3k6bpnv41ktgbb31ff2vllkfv Query : use flama_phc
20241008@170213.9410 n3k6bpnv41ktgbb31ff2vllkfv Query : select top 1 ~inactivo valor from cl where no = '100810' and estab = 0 order by inactivo desc
20241008@170213.9441 n3k6bpnv41ktgbb31ff2vllkfv Query : use flama_phc
20241008@170213.9444 n3k6bpnv41ktgbb31ff2vllkfv Query : select top 1 tipodoc,regrd from td where ndoc = 39
20241008@170213.9474 n3k6bpnv41ktgbb31ff2vllkfv Query : use flama_phc
20241008@170213.9477 n3k6bpnv41ktgbb31ff2vllkfv Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20241008@170213.9544 n3k6bpnv41ktgbb31ff2vllkfv Query : use flama_phc
20241008@170213.9547 n3k6bpnv41ktgbb31ff2vllkfv Query : select szadrsstamp valor from szadrs where szadrsdesc='100810 - worten-equipamentos para o lar,sa.'
20241008@170213.9618 n3k6bpnv41ktgbb31ff2vllkfv Query : use flama_phc
20241008@170213.9621 n3k6bpnv41ktgbb31ff2vllkfv Query : select 1 valor from td where ndoc = 39
20241008@170213.9633 n3k6bpnv41ktgbb31ff2vllkfv Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20241008@170213.9649 n3k6bpnv41ktgbb31ff2vllkfv Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@170213.9664 n3k6bpnv41ktgbb31ff2vllkfv Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20241008@170213.9696 n3k6bpnv41ktgbb31ff2vllkfv Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@170213.9713 n3k6bpnv41ktgbb31ff2vllkfv Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20241008@170213.9742 n3k6bpnv41ktgbb31ff2vllkfv Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@170213.9756 n3k6bpnv41ktgbb31ff2vllkfv Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20241008@170213.9768 n3k6bpnv41ktgbb31ff2vllkfv Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20241008@170213.9834 n3k6bpnv41ktgbb31ff2vllkfv Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20241008@170213.9846 n3k6bpnv41ktgbb31ff2vllkfv Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@170213.9878 n3k6bpnv41ktgbb31ff2vllkfv Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20241008@170213.9893 n3k6bpnv41ktgbb31ff2vllkfv Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut670552363567055785ee' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20241008@170214.4700 n3k6bpnv41ktgbb31ff2vllkfv Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@170214.6300 n3k6bpnv41ktgbb31ff2vllkfv Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20241008@170214.9600 n3k6bpnv41ktgbb31ff2vllkfv Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20241008@170214.1070 n3k6bpnv41ktgbb31ff2vllkfv Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20241008@170214.1180 n3k6bpnv41ktgbb31ff2vllkfv Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20241008@170214.1290 n3k6bpnv41ktgbb31ff2vllkfv Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20241008@170214.1400 n3k6bpnv41ktgbb31ff2vllkfv Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20241008@170214.1510 n3k6bpnv41ktgbb31ff2vllkfv Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20241008@170214.1630 n3k6bpnv41ktgbb31ff2vllkfv Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut670552363567055785ee',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20241008@170214.3800 n3k6bpnv41ktgbb31ff2vllkfv Query : select top 1 fno valor from wsftdata order by fno desc
20241008@170214.4220 n3k6bpnv41ktgbb31ff2vllkfv Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@170214.4400 n3k6bpnv41ktgbb31ff2vllkfv Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20241008@170214.4620 n3k6bpnv41ktgbb31ff2vllkfv Query : select 'normal' from dummy
20241008@170214.4770 n3k6bpnv41ktgbb31ff2vllkfv Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut670552363567055785ee',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',1146,100810,0,'2024-10-08',39,'euro',0,0,2024 ,?,?)
20241008@170214.7580 n3k6bpnv41ktgbb31ff2vllkfv Query : use flama_phc
20241008@170214.7610 n3k6bpnv41ktgbb31ff2vllkfv Query : select st.usalote valor from st where st.ref = '324.1332.00.1'
20241008@170214.7820 n3k6bpnv41ktgbb31ff2vllkfv Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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.1332.00.1'
20241008@170214.7970 n3k6bpnv41ktgbb31ff2vllkfv Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@170214.8120 n3k6bpnv41ktgbb31ff2vllkfv Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241008@170214.8370 n3k6bpnv41ktgbb31ff2vllkfv Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@170214.8650 n3k6bpnv41ktgbb31ff2vllkfv Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241008@170214.8730 n3k6bpnv41ktgbb31ff2vllkfv Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241008@170214.8840 n3k6bpnv41ktgbb31ff2vllkfv Query : select sestamp valor from se where ref ='324.1332.00.1' and lote = 'r2400759200a'
20241008@170214.8960 n3k6bpnv41ktgbb31ff2vllkfv Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@170214.9100 n3k6bpnv41ktgbb31ff2vllkfv Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241008@170214.9210 n3k6bpnv41ktgbb31ff2vllkfv Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut67055677796705578615','aut670552363567055785ee' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241008@170214.9250 n3k6bpnv41ktgbb31ff2vllkfv Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@170214.9400 n3k6bpnv41ktgbb31ff2vllkfv Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241008@170214.9690 n3k6bpnv41ktgbb31ff2vllkfv Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut67055677796705578615',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',24.000 ,'aut670552363567055785ee' ,0,0 ,2,23.00,10000,?,?,?,?,?)
20241008@170214.1188 n3k6bpnv41ktgbb31ff2vllkfv Query : use flama_phc
20241008@170214.1192 n3k6bpnv41ktgbb31ff2vllkfv Query : select st.usalote valor from st where st.ref = '324.1332.00.1'
20241008@170214.1213 n3k6bpnv41ktgbb31ff2vllkfv Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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.1332.00.1'
20241008@170214.1227 n3k6bpnv41ktgbb31ff2vllkfv Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@170214.1242 n3k6bpnv41ktgbb31ff2vllkfv Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241008@170214.1265 n3k6bpnv41ktgbb31ff2vllkfv Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@170214.1279 n3k6bpnv41ktgbb31ff2vllkfv Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241008@170214.1287 n3k6bpnv41ktgbb31ff2vllkfv Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241008@170214.1298 n3k6bpnv41ktgbb31ff2vllkfv Query : select sestamp valor from se where ref ='324.1332.00.1' and lote = 'r2400759200a'
20241008@170214.1310 n3k6bpnv41ktgbb31ff2vllkfv Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@170214.1324 n3k6bpnv41ktgbb31ff2vllkfv Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241008@170214.1335 n3k6bpnv41ktgbb31ff2vllkfv Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut6705535416670557861f','aut670552363567055785ee' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241008@170214.1339 n3k6bpnv41ktgbb31ff2vllkfv Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@170214.1353 n3k6bpnv41ktgbb31ff2vllkfv Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241008@170214.1380 n3k6bpnv41ktgbb31ff2vllkfv Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut6705535416670557861f',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',1.000 ,'aut670552363567055785ee' ,0,0 ,2,23.00,20000,?,?,?,?,?)
20241008@170214.1625 n3k6bpnv41ktgbb31ff2vllkfv Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut670552363567055785ee','2406543','wait',39,'adm09112754980.682000002')
20241008@170214.1694 n3k6bpnv41ktgbb31ff2vllkfv Query : use flama_phc
20241008@170214.1717 n3k6bpnv41ktgbb31ff2vllkfv Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20241008@170214.1749 n3k6bpnv41ktgbb31ff2vllkfv Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2499';
20241008@170214.1802 n3k6bpnv41ktgbb31ff2vllkfv Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2499';
20241008@170214.1846 n3k6bpnv41ktgbb31ff2vllkfv Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2499';
20241008@170214.1889 n3k6bpnv41ktgbb31ff2vllkfv Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2499';
20241008@170214.2592 l2k0bnn25ukee8b2kri4mt2n9q Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20241008@170214.2603 l2k0bnn25ukee8b2kri4mt2n9q Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20241008@170214.2672 l2k0bnn25ukee8b2kri4mt2n9q Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2500';
20241008@170214.2734 l2k0bnn25ukee8b2kri4mt2n9q Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2500';
20241008@170214.2799 l2k0bnn25ukee8b2kri4mt2n9q Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2500';
20241008@170214.2842 l2k0bnn25ukee8b2kri4mt2n9q Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2500';
20241008@170214.2892 l2k0bnn25ukee8b2kri4mt2n9q Query : use flama_phc
20241008@170214.2913 l2k0bnn25ukee8b2kri4mt2n9q Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20241008@170214.2996 l2k0bnn25ukee8b2kri4mt2n9q Query : use flama_phc
20241008@170214.2999 l2k0bnn25ukee8b2kri4mt2n9q Query : select no, estab,szadrsdesc from szadrs where u_coddest=4740
20241008@170214.3202 l2k0bnn25ukee8b2kri4mt2n9q 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'
20241008@170214.3412 l2k0bnn25ukee8b2kri4mt2n9q Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2065 and bo.obrano = 2406544 and bi.ref ='326.595.00.01' and bi.lordem =1
20241008@170214.3746 l2k0bnn25ukee8b2kri4mt2n9q Query : use flama_phc
20241008@170214.3749 l2k0bnn25ukee8b2kri4mt2n9q Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20241008@170214.3794 l2k0bnn25ukee8b2kri4mt2n9q Query : use flama_phc
20241008@170214.3800 l2k0bnn25ukee8b2kri4mt2n9q Query : select top 1 1 valor from td where td.ndoc = 39
20241008@170214.3878 l2k0bnn25ukee8b2kri4mt2n9q Query : use flama_phc
20241008@170214.3881 l2k0bnn25ukee8b2kri4mt2n9q 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')
20241008@170214.3912 l2k0bnn25ukee8b2kri4mt2n9q 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
20241008@170214.3982 l2k0bnn25ukee8b2kri4mt2n9q Query : use flama_phc
20241008@170214.3986 l2k0bnn25ukee8b2kri4mt2n9q Query : select top 1 ~inactivo valor from cl where no = '100810' and estab = 0 order by inactivo desc
20241008@170214.4036 l2k0bnn25ukee8b2kri4mt2n9q Query : use flama_phc
20241008@170214.4039 l2k0bnn25ukee8b2kri4mt2n9q Query : select top 1 tipodoc,regrd from td where ndoc = 39
20241008@170214.4072 l2k0bnn25ukee8b2kri4mt2n9q Query : use flama_phc
20241008@170214.4075 l2k0bnn25ukee8b2kri4mt2n9q Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20241008@170214.4131 l2k0bnn25ukee8b2kri4mt2n9q Query : use flama_phc
20241008@170214.4136 l2k0bnn25ukee8b2kri4mt2n9q Query : select szadrsstamp valor from szadrs where szadrsdesc='100810 - worten-equipamentos para o lar,sa.'
20241008@170214.4211 l2k0bnn25ukee8b2kri4mt2n9q Query : use flama_phc
20241008@170214.4214 l2k0bnn25ukee8b2kri4mt2n9q Query : select 1 valor from td where ndoc = 39
20241008@170214.4242 l2k0bnn25ukee8b2kri4mt2n9q Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20241008@170214.4256 l2k0bnn25ukee8b2kri4mt2n9q Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@170214.4271 l2k0bnn25ukee8b2kri4mt2n9q Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20241008@170214.4298 l2k0bnn25ukee8b2kri4mt2n9q Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@170214.4322 l2k0bnn25ukee8b2kri4mt2n9q Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20241008@170214.4355 l2k0bnn25ukee8b2kri4mt2n9q Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@170214.4370 l2k0bnn25ukee8b2kri4mt2n9q Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20241008@170214.4382 l2k0bnn25ukee8b2kri4mt2n9q Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20241008@170214.4453 l2k0bnn25ukee8b2kri4mt2n9q Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20241008@170214.4466 l2k0bnn25ukee8b2kri4mt2n9q Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@170214.4482 l2k0bnn25ukee8b2kri4mt2n9q Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20241008@170214.4499 l2k0bnn25ukee8b2kri4mt2n9q Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut6705579978670557866a' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20241008@170214.4648 l2k0bnn25ukee8b2kri4mt2n9q Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@170214.4726 l2k0bnn25ukee8b2kri4mt2n9q Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20241008@170214.4769 l2k0bnn25ukee8b2kri4mt2n9q Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20241008@170214.4782 l2k0bnn25ukee8b2kri4mt2n9q Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20241008@170214.4793 l2k0bnn25ukee8b2kri4mt2n9q Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20241008@170214.4813 l2k0bnn25ukee8b2kri4mt2n9q Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20241008@170214.4825 l2k0bnn25ukee8b2kri4mt2n9q Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20241008@170214.4846 l2k0bnn25ukee8b2kri4mt2n9q Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20241008@170214.4885 l2k0bnn25ukee8b2kri4mt2n9q Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut6705579978670557866a',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20241008@170214.5093 l2k0bnn25ukee8b2kri4mt2n9q Query : select top 1 fno valor from wsftdata order by fno desc
20241008@170214.5136 l2k0bnn25ukee8b2kri4mt2n9q Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@170214.5157 l2k0bnn25ukee8b2kri4mt2n9q Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20241008@170214.5191 l2k0bnn25ukee8b2kri4mt2n9q Query : select 'normal' from dummy
20241008@170214.5237 l2k0bnn25ukee8b2kri4mt2n9q Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut6705579978670557866a',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',1147,100810,0,'2024-10-08',39,'euro',0,0,2024 ,?,?)
20241008@170214.5554 l2k0bnn25ukee8b2kri4mt2n9q Query : use flama_phc
20241008@170214.5557 l2k0bnn25ukee8b2kri4mt2n9q Query : select st.usalote valor from st where st.ref = '326.595.00.01'
20241008@170214.5586 l2k0bnn25ukee8b2kri4mt2n9q Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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'
20241008@170214.5746 l2k0bnn25ukee8b2kri4mt2n9q Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@170214.5764 l2k0bnn25ukee8b2kri4mt2n9q Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241008@170214.5803 l2k0bnn25ukee8b2kri4mt2n9q Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@170214.5850 l2k0bnn25ukee8b2kri4mt2n9q Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241008@170214.5861 l2k0bnn25ukee8b2kri4mt2n9q Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241008@170214.5873 l2k0bnn25ukee8b2kri4mt2n9q Query : select sestamp valor from se where ref ='326.595.00.01' and lote = 'r2400411200a'
20241008@170214.5927 l2k0bnn25ukee8b2kri4mt2n9q Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@170214.5962 l2k0bnn25ukee8b2kri4mt2n9q Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241008@170214.5973 l2k0bnn25ukee8b2kri4mt2n9q Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut67055194336705578690','aut6705579978670557866a' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241008@170214.5977 l2k0bnn25ukee8b2kri4mt2n9q Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@170214.6053 l2k0bnn25ukee8b2kri4mt2n9q Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241008@170214.6088 l2k0bnn25ukee8b2kri4mt2n9q Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut67055194336705578690',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',6.000 ,'aut6705579978670557866a' ,0,0 ,2,23.00,10000,?,?,?,?,?)
20241008@170214.6367 l2k0bnn25ukee8b2kri4mt2n9q Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut6705579978670557866a','2406544','wait',39,'adm09112754980.682000002')
20241008@170214.6441 l2k0bnn25ukee8b2kri4mt2n9q Query : use flama_phc
20241008@170214.6444 l2k0bnn25ukee8b2kri4mt2n9q Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20241008@170214.6493 l2k0bnn25ukee8b2kri4mt2n9q Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2500';
20241008@170214.6538 l2k0bnn25ukee8b2kri4mt2n9q Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2500';
20241008@170214.6586 l2k0bnn25ukee8b2kri4mt2n9q Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2500';
20241008@170214.6678 l2k0bnn25ukee8b2kri4mt2n9q Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2500';
20241008@170214.8032 oer1gu9mm0vp461gbmu5bsni9a Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20241008@170214.8240 oer1gu9mm0vp461gbmu5bsni9a Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20241008@170214.8887 oer1gu9mm0vp461gbmu5bsni9a Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2501';
20241008@170214.9260 oer1gu9mm0vp461gbmu5bsni9a Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2501';
20241008@170214.9440 oer1gu9mm0vp461gbmu5bsni9a Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2501';
20241008@170214.9469 oer1gu9mm0vp461gbmu5bsni9a Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2501';
20241008@170214.9548 oer1gu9mm0vp461gbmu5bsni9a Query : use flama_phc
20241008@170214.9554 oer1gu9mm0vp461gbmu5bsni9a Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20241008@170214.9644 oer1gu9mm0vp461gbmu5bsni9a Query : use flama_phc
20241008@170214.9647 oer1gu9mm0vp461gbmu5bsni9a Query : select no, estab,szadrsdesc from szadrs where u_coddest=4804
20241008@170214.9750 oer1gu9mm0vp461gbmu5bsni9a Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.4980.00.1'
20241008@170214.9933 oer1gu9mm0vp461gbmu5bsni9a Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2065 and bo.obrano = 2406545 and bi.ref ='324.4980.00.1' and bi.lordem =1
20241008@170215.3600 oer1gu9mm0vp461gbmu5bsni9a Query : use flama_phc
20241008@170215.3650 oer1gu9mm0vp461gbmu5bsni9a Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20241008@170215.4030 oer1gu9mm0vp461gbmu5bsni9a Query : use flama_phc
20241008@170215.4060 oer1gu9mm0vp461gbmu5bsni9a Query : select top 1 1 valor from td where td.ndoc = 39
20241008@170215.4370 oer1gu9mm0vp461gbmu5bsni9a Query : use flama_phc
20241008@170215.4450 oer1gu9mm0vp461gbmu5bsni9a 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')
20241008@170215.4730 oer1gu9mm0vp461gbmu5bsni9a 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
20241008@170215.5180 oer1gu9mm0vp461gbmu5bsni9a Query : use flama_phc
20241008@170215.5210 oer1gu9mm0vp461gbmu5bsni9a Query : select top 1 ~inactivo valor from cl where no = '101900' and estab = 0 order by inactivo desc
20241008@170215.7050 oer1gu9mm0vp461gbmu5bsni9a Query : use flama_phc
20241008@170215.7090 oer1gu9mm0vp461gbmu5bsni9a Query : select top 1 tipodoc,regrd from td where ndoc = 39
20241008@170215.7400 oer1gu9mm0vp461gbmu5bsni9a Query : use flama_phc
20241008@170215.7420 oer1gu9mm0vp461gbmu5bsni9a Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20241008@170215.7840 oer1gu9mm0vp461gbmu5bsni9a Query : use flama_phc
20241008@170215.7910 oer1gu9mm0vp461gbmu5bsni9a Query : select szadrsstamp valor from szadrs where szadrsdesc='101900 - pd - alfena n/p'
20241008@170215.8400 oer1gu9mm0vp461gbmu5bsni9a Query : use flama_phc
20241008@170215.8430 oer1gu9mm0vp461gbmu5bsni9a Query : select 1 valor from td where ndoc = 39
20241008@170215.8590 oer1gu9mm0vp461gbmu5bsni9a Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20241008@170215.8750 oer1gu9mm0vp461gbmu5bsni9a Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@170215.8950 oer1gu9mm0vp461gbmu5bsni9a Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20241008@170215.9350 oer1gu9mm0vp461gbmu5bsni9a Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@170215.9520 oer1gu9mm0vp461gbmu5bsni9a Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20241008@170215.9890 oer1gu9mm0vp461gbmu5bsni9a Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@170215.1004 oer1gu9mm0vp461gbmu5bsni9a Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20241008@170215.1017 oer1gu9mm0vp461gbmu5bsni9a Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20241008@170215.1085 oer1gu9mm0vp461gbmu5bsni9a Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20241008@170215.1120 oer1gu9mm0vp461gbmu5bsni9a Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@170215.1140 oer1gu9mm0vp461gbmu5bsni9a Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20241008@170215.1157 oer1gu9mm0vp461gbmu5bsni9a Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut67055114256705578718' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20241008@170215.1312 oer1gu9mm0vp461gbmu5bsni9a Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@170215.1331 oer1gu9mm0vp461gbmu5bsni9a Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20241008@170215.1365 oer1gu9mm0vp461gbmu5bsni9a Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20241008@170215.1376 oer1gu9mm0vp461gbmu5bsni9a Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20241008@170215.1388 oer1gu9mm0vp461gbmu5bsni9a Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20241008@170215.1401 oer1gu9mm0vp461gbmu5bsni9a Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20241008@170215.1413 oer1gu9mm0vp461gbmu5bsni9a Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20241008@170215.1425 oer1gu9mm0vp461gbmu5bsni9a Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20241008@170215.1436 oer1gu9mm0vp461gbmu5bsni9a Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut67055114256705578718',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20241008@170215.1664 oer1gu9mm0vp461gbmu5bsni9a Query : select top 1 fno valor from wsftdata order by fno desc
20241008@170215.1690 oer1gu9mm0vp461gbmu5bsni9a Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@170215.1709 oer1gu9mm0vp461gbmu5bsni9a Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20241008@170215.1734 oer1gu9mm0vp461gbmu5bsni9a Query : select 'normal' from dummy
20241008@170215.1751 oer1gu9mm0vp461gbmu5bsni9a Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut67055114256705578718',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',1148,101900,0,'2024-10-08',39,'euro',0,0,2024 ,?,?)
20241008@170215.2021 oer1gu9mm0vp461gbmu5bsni9a Query : use flama_phc
20241008@170215.2025 oer1gu9mm0vp461gbmu5bsni9a Query : select st.usalote valor from st where st.ref = '324.4980.00.1'
20241008@170215.2123 oer1gu9mm0vp461gbmu5bsni9a Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.4980.00.1'
20241008@170215.2288 oer1gu9mm0vp461gbmu5bsni9a Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@170215.2308 oer1gu9mm0vp461gbmu5bsni9a Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241008@170215.2339 oer1gu9mm0vp461gbmu5bsni9a Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@170215.2357 oer1gu9mm0vp461gbmu5bsni9a Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241008@170215.2368 oer1gu9mm0vp461gbmu5bsni9a Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241008@170215.2382 oer1gu9mm0vp461gbmu5bsni9a Query : select sestamp valor from se where ref ='324.4980.00.1' and lote = 'r2301092100a'
20241008@170215.2405 oer1gu9mm0vp461gbmu5bsni9a Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@170215.2424 oer1gu9mm0vp461gbmu5bsni9a Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241008@170215.2438 oer1gu9mm0vp461gbmu5bsni9a Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut6705584730670557873a','aut67055114256705578718' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241008@170215.2449 oer1gu9mm0vp461gbmu5bsni9a Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@170215.2467 oer1gu9mm0vp461gbmu5bsni9a Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241008@170215.2499 oer1gu9mm0vp461gbmu5bsni9a Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut6705584730670557873a',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',20.000 ,'aut67055114256705578718' ,0,0 ,2,23.00,10000,?,?,?,?,?)
20241008@170215.2751 oer1gu9mm0vp461gbmu5bsni9a Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut67055114256705578718','2406545','wait',39,'adm09112754980.682000002')
20241008@170215.2825 oer1gu9mm0vp461gbmu5bsni9a Query : use flama_phc
20241008@170215.2828 oer1gu9mm0vp461gbmu5bsni9a Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20241008@170215.2861 oer1gu9mm0vp461gbmu5bsni9a Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2501';
20241008@170215.2898 oer1gu9mm0vp461gbmu5bsni9a Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2501';
20241008@170215.2947 oer1gu9mm0vp461gbmu5bsni9a Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2501';
20241008@170215.2975 oer1gu9mm0vp461gbmu5bsni9a Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2501';
20241008@170215.3592 2h58r27lda9oob3egmv8fena9k Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20241008@170215.3603 2h58r27lda9oob3egmv8fena9k Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20241008@170215.3662 2h58r27lda9oob3egmv8fena9k Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2502';
20241008@170215.3717 2h58r27lda9oob3egmv8fena9k Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2502';
20241008@170215.3770 2h58r27lda9oob3egmv8fena9k Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2502';
20241008@170215.3804 2h58r27lda9oob3egmv8fena9k Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2502';
20241008@170215.3876 2h58r27lda9oob3egmv8fena9k Query : use flama_phc
20241008@170215.3879 2h58r27lda9oob3egmv8fena9k Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20241008@170215.3941 2h58r27lda9oob3egmv8fena9k Query : use flama_phc
20241008@170215.3950 2h58r27lda9oob3egmv8fena9k Query : select no, estab,szadrsdesc from szadrs where u_coddest=227
20241008@170215.4033 2h58r27lda9oob3egmv8fena9k Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1266.00.1'
20241008@170215.4387 2h58r27lda9oob3egmv8fena9k Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2065 and bo.obrano = 2406547 and bi.ref ='324.1266.00.1' and bi.lordem =1
20241008@170215.5025 2h58r27lda9oob3egmv8fena9k Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1834.00.1'
20241008@170215.5180 2h58r27lda9oob3egmv8fena9k Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2065 and bo.obrano = 2406547 and bi.ref ='324.1834.00.1' and bi.lordem =2
20241008@170215.5501 2h58r27lda9oob3egmv8fena9k Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1834.00.1'
20241008@170215.5523 2h58r27lda9oob3egmv8fena9k Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2065 and bo.obrano = 2406547 and bi.ref ='324.1834.00.1' and bi.lordem =2
20241008@170215.5541 2h58r27lda9oob3egmv8fena9k Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1834.00.1'
20241008@170215.5562 2h58r27lda9oob3egmv8fena9k Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2065 and bo.obrano = 2406547 and bi.ref ='324.1834.00.1' and bi.lordem =3
20241008@170215.5892 2h58r27lda9oob3egmv8fena9k Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1834.00.1'
20241008@170215.5914 2h58r27lda9oob3egmv8fena9k Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2065 and bo.obrano = 2406547 and bi.ref ='324.1834.00.1' and bi.lordem =3
20241008@170215.5931 2h58r27lda9oob3egmv8fena9k Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1871.00.1'
20241008@170215.6092 2h58r27lda9oob3egmv8fena9k Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2065 and bo.obrano = 2406547 and bi.ref ='324.1871.00.1' and bi.lordem =4
20241008@170215.6447 2h58r27lda9oob3egmv8fena9k Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1871.00.1'
20241008@170215.6467 2h58r27lda9oob3egmv8fena9k Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2065 and bo.obrano = 2406547 and bi.ref ='324.1871.00.1' and bi.lordem =4
20241008@170215.6485 2h58r27lda9oob3egmv8fena9k Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1871.00.1'
20241008@170215.6505 2h58r27lda9oob3egmv8fena9k Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2065 and bo.obrano = 2406547 and bi.ref ='324.1871.00.1' and bi.lordem =5
20241008@170215.7286 2h58r27lda9oob3egmv8fena9k Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1896.00.1'
20241008@170215.7884 2h58r27lda9oob3egmv8fena9k Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2065 and bo.obrano = 2406547 and bi.ref ='324.1896.00.1' and bi.lordem =6
20241008@170215.8475 2h58r27lda9oob3egmv8fena9k Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1896.00.1'
20241008@170215.8505 2h58r27lda9oob3egmv8fena9k Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2065 and bo.obrano = 2406547 and bi.ref ='324.1896.00.1' and bi.lordem =6
20241008@170215.8523 2h58r27lda9oob3egmv8fena9k Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1896.00.1'
20241008@170215.8548 2h58r27lda9oob3egmv8fena9k Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2065 and bo.obrano = 2406547 and bi.ref ='324.1896.00.1' and bi.lordem =7
20241008@170215.8893 2h58r27lda9oob3egmv8fena9k Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '328.9005.00.1'
20241008@170215.9057 2h58r27lda9oob3egmv8fena9k Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2065 and bo.obrano = 2406547 and bi.ref ='328.9005.00.1' and bi.lordem =8
20241008@170215.9395 2h58r27lda9oob3egmv8fena9k Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '328.9006.00.1'
20241008@170215.9550 2h58r27lda9oob3egmv8fena9k Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2065 and bo.obrano = 2406547 and bi.ref ='328.9006.00.1' and bi.lordem =9
20241008@170215.9886 2h58r27lda9oob3egmv8fena9k Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '328.9316.00.1'
20241008@170216.4800 2h58r27lda9oob3egmv8fena9k Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2065 and bo.obrano = 2406547 and bi.ref ='328.9316.00.1' and bi.lordem =10
20241008@170216.3770 2h58r27lda9oob3egmv8fena9k Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '328.9316.00.1'
20241008@170216.3980 2h58r27lda9oob3egmv8fena9k Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2065 and bo.obrano = 2406547 and bi.ref ='328.9316.00.1' and bi.lordem =10
20241008@170216.4140 2h58r27lda9oob3egmv8fena9k Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '328.9316.00.1'
20241008@170216.4350 2h58r27lda9oob3egmv8fena9k Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2065 and bo.obrano = 2406547 and bi.ref ='328.9316.00.1' and bi.lordem =10
20241008@170216.4540 2h58r27lda9oob3egmv8fena9k Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '328.9306.00.1'
20241008@170216.6200 2h58r27lda9oob3egmv8fena9k Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2065 and bo.obrano = 2406547 and bi.ref ='328.9306.00.1' and bi.lordem =11
20241008@170216.9620 2h58r27lda9oob3egmv8fena9k Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '328.9306.00.1'
20241008@170216.9830 2h58r27lda9oob3egmv8fena9k Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2065 and bo.obrano = 2406547 and bi.ref ='328.9306.00.1' and bi.lordem =11
20241008@170216.1000 2h58r27lda9oob3egmv8fena9k Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '325.7002.00.1'
20241008@170216.1157 2h58r27lda9oob3egmv8fena9k Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2065 and bo.obrano = 2406547 and bi.ref ='325.7002.00.1' and bi.lordem =12
20241008@170216.1495 2h58r27lda9oob3egmv8fena9k 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'
20241008@170216.1647 2h58r27lda9oob3egmv8fena9k Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2065 and bo.obrano = 2406547 and bi.ref ='324.736.00.01' and bi.lordem =13
20241008@170216.1999 2h58r27lda9oob3egmv8fena9k 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'
20241008@170216.2159 2h58r27lda9oob3egmv8fena9k Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2065 and bo.obrano = 2406547 and bi.ref ='324.2232.00.1' and bi.lordem =15
20241008@170216.2507 2h58r27lda9oob3egmv8fena9k Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1221.00.1'
20241008@170216.2661 2h58r27lda9oob3egmv8fena9k Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2065 and bo.obrano = 2406547 and bi.ref ='324.1221.00.1' and bi.lordem =16
20241008@170216.3006 2h58r27lda9oob3egmv8fena9k Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1266.00.1'
20241008@170216.3029 2h58r27lda9oob3egmv8fena9k Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2065 and bo.obrano = 2406547 and bi.ref ='324.1266.00.1' and bi.lordem =18
20241008@170216.3352 2h58r27lda9oob3egmv8fena9k Query : use flama_phc
20241008@170216.3355 2h58r27lda9oob3egmv8fena9k Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20241008@170216.3534 2h58r27lda9oob3egmv8fena9k Query : use flama_phc
20241008@170216.3538 2h58r27lda9oob3egmv8fena9k Query : select top 1 1 valor from td where td.ndoc = 39
20241008@170216.3567 2h58r27lda9oob3egmv8fena9k Query : use flama_phc
20241008@170216.3570 2h58r27lda9oob3egmv8fena9k 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')
20241008@170216.3597 2h58r27lda9oob3egmv8fena9k 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
20241008@170216.3631 2h58r27lda9oob3egmv8fena9k Query : use flama_phc
20241008@170216.3634 2h58r27lda9oob3egmv8fena9k Query : select top 1 ~inactivo valor from cl where no = '100041' and estab = 0 order by inactivo desc
20241008@170216.3763 2h58r27lda9oob3egmv8fena9k Query : use flama_phc
20241008@170216.3767 2h58r27lda9oob3egmv8fena9k Query : select top 1 tipodoc,regrd from td where ndoc = 39
20241008@170216.3796 2h58r27lda9oob3egmv8fena9k Query : use flama_phc
20241008@170216.3799 2h58r27lda9oob3egmv8fena9k Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20241008@170216.3838 2h58r27lda9oob3egmv8fena9k Query : use flama_phc
20241008@170216.3841 2h58r27lda9oob3egmv8fena9k Query : select szadrsstamp valor from szadrs where szadrsdesc='radiobela som, lda'
20241008@170216.3951 2h58r27lda9oob3egmv8fena9k Query : use flama_phc
20241008@170216.3954 2h58r27lda9oob3egmv8fena9k Query : select 1 valor from td where ndoc = 39
20241008@170216.3968 2h58r27lda9oob3egmv8fena9k Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20241008@170216.3984 2h58r27lda9oob3egmv8fena9k Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@170216.4001 2h58r27lda9oob3egmv8fena9k Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20241008@170216.4021 2h58r27lda9oob3egmv8fena9k Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@170216.4035 2h58r27lda9oob3egmv8fena9k Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20241008@170216.4063 2h58r27lda9oob3egmv8fena9k Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@170216.4077 2h58r27lda9oob3egmv8fena9k Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20241008@170216.4090 2h58r27lda9oob3egmv8fena9k Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20241008@170216.4157 2h58r27lda9oob3egmv8fena9k Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20241008@170216.4170 2h58r27lda9oob3egmv8fena9k Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@170216.4187 2h58r27lda9oob3egmv8fena9k Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20241008@170216.4202 2h58r27lda9oob3egmv8fena9k Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut67055230786705578863' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20241008@170216.4350 2h58r27lda9oob3egmv8fena9k Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@170216.4368 2h58r27lda9oob3egmv8fena9k Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20241008@170216.4417 2h58r27lda9oob3egmv8fena9k Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20241008@170216.4429 2h58r27lda9oob3egmv8fena9k Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20241008@170216.4441 2h58r27lda9oob3egmv8fena9k Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20241008@170216.4453 2h58r27lda9oob3egmv8fena9k Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20241008@170216.4464 2h58r27lda9oob3egmv8fena9k Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20241008@170216.4477 2h58r27lda9oob3egmv8fena9k Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20241008@170216.4489 2h58r27lda9oob3egmv8fena9k Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut67055230786705578863',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20241008@170216.4717 2h58r27lda9oob3egmv8fena9k Query : select top 1 fno valor from wsftdata order by fno desc
20241008@170216.4741 2h58r27lda9oob3egmv8fena9k Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@170216.4759 2h58r27lda9oob3egmv8fena9k Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20241008@170216.4782 2h58r27lda9oob3egmv8fena9k Query : select 'normal' from dummy
20241008@170216.4813 2h58r27lda9oob3egmv8fena9k Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut67055230786705578863',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',1149,100041,0,'2024-10-08',39,'euro',0,0,2024 ,?,?)
20241008@170216.5076 2h58r27lda9oob3egmv8fena9k Query : use flama_phc
20241008@170216.5079 2h58r27lda9oob3egmv8fena9k Query : select st.usalote valor from st where st.ref = '324.1266.00.1'
20241008@170216.5100 2h58r27lda9oob3egmv8fena9k Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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.1266.00.1'
20241008@170216.5255 2h58r27lda9oob3egmv8fena9k Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@170216.5272 2h58r27lda9oob3egmv8fena9k Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241008@170216.5296 2h58r27lda9oob3egmv8fena9k Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@170216.5310 2h58r27lda9oob3egmv8fena9k Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241008@170216.5319 2h58r27lda9oob3egmv8fena9k Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241008@170216.5331 2h58r27lda9oob3egmv8fena9k Query : select sestamp valor from se where ref ='324.1266.00.1' and lote = 'r2100597100a'
20241008@170216.5345 2h58r27lda9oob3egmv8fena9k Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@170216.5359 2h58r27lda9oob3egmv8fena9k Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241008@170216.5369 2h58r27lda9oob3egmv8fena9k Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut67055448406705578882','aut67055230786705578863' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241008@170216.5373 2h58r27lda9oob3egmv8fena9k Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@170216.5387 2h58r27lda9oob3egmv8fena9k Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241008@170216.5415 2h58r27lda9oob3egmv8fena9k Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut67055448406705578882',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',1.000 ,'aut67055230786705578863' ,0,0 ,2,23.00,10000,?,?,?,?,?)
20241008@170216.5645 2h58r27lda9oob3egmv8fena9k Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@170216.5662 2h58r27lda9oob3egmv8fena9k Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241008@170216.5685 2h58r27lda9oob3egmv8fena9k Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@170216.5699 2h58r27lda9oob3egmv8fena9k Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241008@170216.5707 2h58r27lda9oob3egmv8fena9k Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241008@170216.5719 2h58r27lda9oob3egmv8fena9k Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@170216.5733 2h58r27lda9oob3egmv8fena9k Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241008@170216.5745 2h58r27lda9oob3egmv8fena9k Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut6705508070670557888b','aut67055230786705578863' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241008@170216.5749 2h58r27lda9oob3egmv8fena9k Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@170216.5763 2h58r27lda9oob3egmv8fena9k Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241008@170216.5805 2h58r27lda9oob3egmv8fena9k Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut6705508070670557888b',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut67055230786705578863' ,0,0 ,2,23.00,20000,?,?,?)
20241008@170216.6028 2h58r27lda9oob3egmv8fena9k Query : use flama_phc
20241008@170216.6031 2h58r27lda9oob3egmv8fena9k Query : select st.usalote valor from st where st.ref = '324.1834.00.1'
20241008@170216.6051 2h58r27lda9oob3egmv8fena9k Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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.1834.00.1'
20241008@170216.6212 2h58r27lda9oob3egmv8fena9k Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@170216.6229 2h58r27lda9oob3egmv8fena9k Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241008@170216.6254 2h58r27lda9oob3egmv8fena9k Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@170216.6269 2h58r27lda9oob3egmv8fena9k Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241008@170216.6277 2h58r27lda9oob3egmv8fena9k Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241008@170216.6289 2h58r27lda9oob3egmv8fena9k Query : select sestamp valor from se where ref ='324.1834.00.1' and lote = 'r2400214200a'
20241008@170216.6302 2h58r27lda9oob3egmv8fena9k Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@170216.6317 2h58r27lda9oob3egmv8fena9k Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241008@170216.6328 2h58r27lda9oob3egmv8fena9k Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut67055833686705578899','aut67055230786705578863' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241008@170216.6332 2h58r27lda9oob3egmv8fena9k Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@170216.6347 2h58r27lda9oob3egmv8fena9k Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241008@170216.6376 2h58r27lda9oob3egmv8fena9k Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut67055833686705578899',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',13.000 ,'aut67055230786705578863' ,0,0 ,2,23.00,40000,?,?,?,?,?)
20241008@170216.6633 2h58r27lda9oob3egmv8fena9k Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@170216.6649 2h58r27lda9oob3egmv8fena9k Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241008@170216.6675 2h58r27lda9oob3egmv8fena9k Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@170216.6689 2h58r27lda9oob3egmv8fena9k Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241008@170216.6698 2h58r27lda9oob3egmv8fena9k Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241008@170216.6709 2h58r27lda9oob3egmv8fena9k Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@170216.6726 2h58r27lda9oob3egmv8fena9k Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241008@170216.6739 2h58r27lda9oob3egmv8fena9k Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut670555501167055788a3','aut67055230786705578863' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241008@170216.6750 2h58r27lda9oob3egmv8fena9k Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@170216.6766 2h58r27lda9oob3egmv8fena9k Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241008@170216.6801 2h58r27lda9oob3egmv8fena9k Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut670555501167055788a3',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut67055230786705578863' ,0,0 ,2,23.00,50000,?,?,?)
20241008@170216.7042 2h58r27lda9oob3egmv8fena9k Query : use flama_phc
20241008@170216.7045 2h58r27lda9oob3egmv8fena9k Query : select st.usalote valor from st where st.ref = '324.1834.00.1'
20241008@170216.7064 2h58r27lda9oob3egmv8fena9k Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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.1834.00.1'
20241008@170216.7093 2h58r27lda9oob3egmv8fena9k Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@170216.7110 2h58r27lda9oob3egmv8fena9k Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241008@170216.7138 2h58r27lda9oob3egmv8fena9k Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@170216.7164 2h58r27lda9oob3egmv8fena9k Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241008@170216.7174 2h58r27lda9oob3egmv8fena9k Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241008@170216.7190 2h58r27lda9oob3egmv8fena9k Query : select sestamp valor from se where ref ='324.1834.00.1' and lote = 'r2400214200a'
20241008@170216.7205 2h58r27lda9oob3egmv8fena9k Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@170216.7268 2h58r27lda9oob3egmv8fena9k Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241008@170216.7280 2h58r27lda9oob3egmv8fena9k Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut670558686467055788af','aut67055230786705578863' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241008@170216.7285 2h58r27lda9oob3egmv8fena9k Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@170216.7301 2h58r27lda9oob3egmv8fena9k Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241008@170216.7334 2h58r27lda9oob3egmv8fena9k Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut670558686467055788af',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',20.000 ,'aut67055230786705578863' ,0,0 ,2,23.00,70000,?,?,?,?,?)
20241008@170216.7563 2h58r27lda9oob3egmv8fena9k Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@170216.7579 2h58r27lda9oob3egmv8fena9k Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241008@170216.7620 2h58r27lda9oob3egmv8fena9k Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@170216.7635 2h58r27lda9oob3egmv8fena9k Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241008@170216.7644 2h58r27lda9oob3egmv8fena9k Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241008@170216.7656 2h58r27lda9oob3egmv8fena9k Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@170216.7672 2h58r27lda9oob3egmv8fena9k Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241008@170216.7684 2h58r27lda9oob3egmv8fena9k Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut670556487367055788ba','aut67055230786705578863' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241008@170216.7688 2h58r27lda9oob3egmv8fena9k Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@170216.7707 2h58r27lda9oob3egmv8fena9k Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241008@170216.7736 2h58r27lda9oob3egmv8fena9k Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut670556487367055788ba',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut67055230786705578863' ,0,0 ,2,23.00,80000,?,?,?)
20241008@170216.7989 2h58r27lda9oob3egmv8fena9k Query : use flama_phc
20241008@170216.7992 2h58r27lda9oob3egmv8fena9k Query : select st.usalote valor from st where st.ref = '324.1834.00.1'
20241008@170216.8014 2h58r27lda9oob3egmv8fena9k Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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.1834.00.1'
20241008@170216.8028 2h58r27lda9oob3egmv8fena9k Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@170216.8046 2h58r27lda9oob3egmv8fena9k Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241008@170216.8074 2h58r27lda9oob3egmv8fena9k Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@170216.8090 2h58r27lda9oob3egmv8fena9k Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241008@170216.8099 2h58r27lda9oob3egmv8fena9k Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241008@170216.8111 2h58r27lda9oob3egmv8fena9k Query : select sestamp valor from se where ref ='324.1834.00.1' and lote = 'r2400214200a'
20241008@170216.8123 2h58r27lda9oob3egmv8fena9k Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@170216.8138 2h58r27lda9oob3egmv8fena9k Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241008@170216.8149 2h58r27lda9oob3egmv8fena9k Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut670554597367055788c6','aut67055230786705578863' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241008@170216.8154 2h58r27lda9oob3egmv8fena9k Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@170216.8171 2h58r27lda9oob3egmv8fena9k Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241008@170216.8199 2h58r27lda9oob3egmv8fena9k Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut670554597367055788c6',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',2.000 ,'aut67055230786705578863' ,0,0 ,2,23.00,100000,?,?,?,?,?)
20241008@170216.8432 2h58r27lda9oob3egmv8fena9k Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@170216.8451 2h58r27lda9oob3egmv8fena9k Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241008@170216.8485 2h58r27lda9oob3egmv8fena9k Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@170216.8500 2h58r27lda9oob3egmv8fena9k Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241008@170216.8508 2h58r27lda9oob3egmv8fena9k Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241008@170216.8524 2h58r27lda9oob3egmv8fena9k Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@170216.8539 2h58r27lda9oob3egmv8fena9k Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241008@170216.8551 2h58r27lda9oob3egmv8fena9k Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut670551336267055788d0','aut67055230786705578863' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241008@170216.8555 2h58r27lda9oob3egmv8fena9k Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@170216.8571 2h58r27lda9oob3egmv8fena9k Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241008@170216.8598 2h58r27lda9oob3egmv8fena9k Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut670551336267055788d0',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut67055230786705578863' ,0,0 ,2,23.00,110000,?,?,?)
20241008@170216.8834 2h58r27lda9oob3egmv8fena9k Query : use flama_phc
20241008@170216.8838 2h58r27lda9oob3egmv8fena9k Query : select st.usalote valor from st where st.ref = '324.1834.00.1'
20241008@170216.8857 2h58r27lda9oob3egmv8fena9k Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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.1834.00.1'
20241008@170216.8872 2h58r27lda9oob3egmv8fena9k Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@170216.8887 2h58r27lda9oob3egmv8fena9k Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241008@170216.8913 2h58r27lda9oob3egmv8fena9k Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@170216.8928 2h58r27lda9oob3egmv8fena9k Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241008@170216.8938 2h58r27lda9oob3egmv8fena9k Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241008@170216.8950 2h58r27lda9oob3egmv8fena9k Query : select sestamp valor from se where ref ='324.1834.00.1' and lote = 'r2400214200a'
20241008@170216.8964 2h58r27lda9oob3egmv8fena9k Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@170216.8980 2h58r27lda9oob3egmv8fena9k Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241008@170216.8991 2h58r27lda9oob3egmv8fena9k Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut670556786467055788da','aut67055230786705578863' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241008@170216.8995 2h58r27lda9oob3egmv8fena9k Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@170216.9009 2h58r27lda9oob3egmv8fena9k Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241008@170216.9037 2h58r27lda9oob3egmv8fena9k Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut670556786467055788da',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',2.000 ,'aut67055230786705578863' ,0,0 ,2,23.00,130000,?,?,?,?,?)
20241008@170216.9261 2h58r27lda9oob3egmv8fena9k Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@170216.9277 2h58r27lda9oob3egmv8fena9k Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241008@170216.9316 2h58r27lda9oob3egmv8fena9k Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@170216.9331 2h58r27lda9oob3egmv8fena9k Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241008@170216.9340 2h58r27lda9oob3egmv8fena9k Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241008@170216.9353 2h58r27lda9oob3egmv8fena9k Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@170216.9367 2h58r27lda9oob3egmv8fena9k Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241008@170216.9378 2h58r27lda9oob3egmv8fena9k Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut670556412667055788e4','aut67055230786705578863' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241008@170216.9382 2h58r27lda9oob3egmv8fena9k Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@170216.9397 2h58r27lda9oob3egmv8fena9k Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241008@170216.9428 2h58r27lda9oob3egmv8fena9k Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut670556412667055788e4',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut67055230786705578863' ,0,0 ,2,23.00,140000,?,?,?)
20241008@170216.9650 2h58r27lda9oob3egmv8fena9k Query : use flama_phc
20241008@170216.9654 2h58r27lda9oob3egmv8fena9k Query : select st.usalote valor from st where st.ref = '324.1871.00.1'
20241008@170216.9674 2h58r27lda9oob3egmv8fena9k Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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.1871.00.1'
20241008@170216.9832 2h58r27lda9oob3egmv8fena9k Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@170216.9848 2h58r27lda9oob3egmv8fena9k Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241008@170216.9872 2h58r27lda9oob3egmv8fena9k Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@170216.9886 2h58r27lda9oob3egmv8fena9k Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241008@170216.9895 2h58r27lda9oob3egmv8fena9k Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241008@170216.9906 2h58r27lda9oob3egmv8fena9k Query : select sestamp valor from se where ref ='324.1871.00.1' and lote = 'r2400437200a'
20241008@170216.9925 2h58r27lda9oob3egmv8fena9k Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@170216.9940 2h58r27lda9oob3egmv8fena9k Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241008@170216.9951 2h58r27lda9oob3egmv8fena9k Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut670552341667055788f2','aut67055230786705578863' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241008@170216.9961 2h58r27lda9oob3egmv8fena9k Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@170216.9976 2h58r27lda9oob3egmv8fena9k Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241008@170217.4000 2h58r27lda9oob3egmv8fena9k Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut670552341667055788f2',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',14.000 ,'aut67055230786705578863' ,0,0 ,2,23.00,160000,?,?,?,?,?)
20241008@170217.2210 2h58r27lda9oob3egmv8fena9k Query : use flama_phc
20241008@170217.2240 2h58r27lda9oob3egmv8fena9k Query : select st.usalote valor from st where st.ref = '324.1871.00.1'
20241008@170217.2430 2h58r27lda9oob3egmv8fena9k Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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.1871.00.1'
20241008@170217.2560 2h58r27lda9oob3egmv8fena9k Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@170217.2710 2h58r27lda9oob3egmv8fena9k Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241008@170217.2960 2h58r27lda9oob3egmv8fena9k Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@170217.3100 2h58r27lda9oob3egmv8fena9k Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241008@170217.3190 2h58r27lda9oob3egmv8fena9k Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241008@170217.3320 2h58r27lda9oob3egmv8fena9k Query : select sestamp valor from se where ref ='324.1871.00.1' and lote = 'r2400437200a'
20241008@170217.3450 2h58r27lda9oob3egmv8fena9k Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@170217.3590 2h58r27lda9oob3egmv8fena9k Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241008@170217.3710 2h58r27lda9oob3egmv8fena9k Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut67055043956705578908','aut67055230786705578863' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241008@170217.3750 2h58r27lda9oob3egmv8fena9k Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@170217.3890 2h58r27lda9oob3egmv8fena9k Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241008@170217.4180 2h58r27lda9oob3egmv8fena9k Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut67055043956705578908',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',8.000 ,'aut67055230786705578863' ,0,0 ,2,23.00,170000,?,?,?,?,?)
20241008@170217.6430 2h58r27lda9oob3egmv8fena9k Query : use flama_phc
20241008@170217.6460 2h58r27lda9oob3egmv8fena9k Query : select st.usalote valor from st where st.ref = '324.1871.00.1'
20241008@170217.6670 2h58r27lda9oob3egmv8fena9k Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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.1871.00.1'
20241008@170217.6800 2h58r27lda9oob3egmv8fena9k Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@170217.6960 2h58r27lda9oob3egmv8fena9k Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241008@170217.7210 2h58r27lda9oob3egmv8fena9k Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@170217.7350 2h58r27lda9oob3egmv8fena9k Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241008@170217.7440 2h58r27lda9oob3egmv8fena9k Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241008@170217.7560 2h58r27lda9oob3egmv8fena9k Query : select sestamp valor from se where ref ='324.1871.00.1' and lote = 'r2400437200a'
20241008@170217.7690 2h58r27lda9oob3egmv8fena9k Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@170217.7840 2h58r27lda9oob3egmv8fena9k Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241008@170217.7960 2h58r27lda9oob3egmv8fena9k Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut67055504266705578912','aut67055230786705578863' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241008@170217.8000 2h58r27lda9oob3egmv8fena9k Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@170217.8170 2h58r27lda9oob3egmv8fena9k Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241008@170217.8450 2h58r27lda9oob3egmv8fena9k Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut67055504266705578912',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',2.000 ,'aut67055230786705578863' ,0,0 ,2,23.00,180000,?,?,?,?,?)
20241008@170217.1082 2h58r27lda9oob3egmv8fena9k Query : use flama_phc
20241008@170217.1085 2h58r27lda9oob3egmv8fena9k Query : select st.usalote valor from st where st.ref = '324.1896.00.1'
20241008@170217.1109 2h58r27lda9oob3egmv8fena9k Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.1896.00.1'
20241008@170217.1261 2h58r27lda9oob3egmv8fena9k Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@170217.1278 2h58r27lda9oob3egmv8fena9k Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241008@170217.1304 2h58r27lda9oob3egmv8fena9k Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@170217.1324 2h58r27lda9oob3egmv8fena9k Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241008@170217.1333 2h58r27lda9oob3egmv8fena9k Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241008@170217.1344 2h58r27lda9oob3egmv8fena9k Query : select sestamp valor from se where ref ='324.1896.00.1' and lote = 'r2101190100a'
20241008@170217.1379 2h58r27lda9oob3egmv8fena9k Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@170217.1395 2h58r27lda9oob3egmv8fena9k Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241008@170217.1406 2h58r27lda9oob3egmv8fena9k Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut67055505396705578921','aut67055230786705578863' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241008@170217.1410 2h58r27lda9oob3egmv8fena9k Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@170217.1424 2h58r27lda9oob3egmv8fena9k Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241008@170217.1452 2h58r27lda9oob3egmv8fena9k Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut67055505396705578921',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',8.000 ,'aut67055230786705578863' ,0,0 ,2,23.00,190000,?,?,?,?,?)
20241008@170217.1676 2h58r27lda9oob3egmv8fena9k Query : use flama_phc
20241008@170217.1679 2h58r27lda9oob3egmv8fena9k Query : select st.usalote valor from st where st.ref = '324.1896.00.1'
20241008@170217.1711 2h58r27lda9oob3egmv8fena9k Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.1896.00.1'
20241008@170217.1757 2h58r27lda9oob3egmv8fena9k Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@170217.1773 2h58r27lda9oob3egmv8fena9k Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241008@170217.1812 2h58r27lda9oob3egmv8fena9k Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@170217.1827 2h58r27lda9oob3egmv8fena9k Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241008@170217.1836 2h58r27lda9oob3egmv8fena9k Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241008@170217.1848 2h58r27lda9oob3egmv8fena9k Query : select sestamp valor from se where ref ='324.1896.00.1' and lote = 'r2101190100a'
20241008@170217.1860 2h58r27lda9oob3egmv8fena9k Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@170217.1879 2h58r27lda9oob3egmv8fena9k Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241008@170217.1890 2h58r27lda9oob3egmv8fena9k Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut6705500943670557892d','aut67055230786705578863' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241008@170217.1894 2h58r27lda9oob3egmv8fena9k Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@170217.1971 2h58r27lda9oob3egmv8fena9k Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241008@170217.2005 2h58r27lda9oob3egmv8fena9k Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut6705500943670557892d',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',14.000 ,'aut67055230786705578863' ,0,0 ,2,23.00,200000,?,?,?,?,?)
20241008@170217.2237 2h58r27lda9oob3egmv8fena9k Query : use flama_phc
20241008@170217.2242 2h58r27lda9oob3egmv8fena9k Query : select st.usalote valor from st where st.ref = '324.1896.00.1'
20241008@170217.2274 2h58r27lda9oob3egmv8fena9k Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.1896.00.1'
20241008@170217.2305 2h58r27lda9oob3egmv8fena9k Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@170217.2322 2h58r27lda9oob3egmv8fena9k Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241008@170217.2348 2h58r27lda9oob3egmv8fena9k Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@170217.2370 2h58r27lda9oob3egmv8fena9k Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241008@170217.2380 2h58r27lda9oob3egmv8fena9k Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241008@170217.2395 2h58r27lda9oob3egmv8fena9k Query : select sestamp valor from se where ref ='324.1896.00.1' and lote = 'r2101190100a'
20241008@170217.2450 2h58r27lda9oob3egmv8fena9k Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@170217.2476 2h58r27lda9oob3egmv8fena9k Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241008@170217.2499 2h58r27lda9oob3egmv8fena9k Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut6705580895670557893b','aut67055230786705578863' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241008@170217.2504 2h58r27lda9oob3egmv8fena9k Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@170217.2525 2h58r27lda9oob3egmv8fena9k Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241008@170217.2578 2h58r27lda9oob3egmv8fena9k Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut6705580895670557893b',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',2.000 ,'aut67055230786705578863' ,0,0 ,2,23.00,210000,?,?,?,?,?)
20241008@170217.3310 2h58r27lda9oob3egmv8fena9k Query : use flama_phc
20241008@170217.3392 2h58r27lda9oob3egmv8fena9k Query : select st.usalote valor from st where st.ref = '328.9005.00.1'
20241008@170217.3892 2h58r27lda9oob3egmv8fena9k Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '328.9005.00.1'
20241008@170217.4268 2h58r27lda9oob3egmv8fena9k Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@170217.4459 2h58r27lda9oob3egmv8fena9k Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241008@170217.4485 2h58r27lda9oob3egmv8fena9k Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@170217.4500 2h58r27lda9oob3egmv8fena9k Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241008@170217.4508 2h58r27lda9oob3egmv8fena9k Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241008@170217.4520 2h58r27lda9oob3egmv8fena9k Query : select sestamp valor from se where ref ='328.9005.00.1' and lote = 'r2400092600a'
20241008@170217.4541 2h58r27lda9oob3egmv8fena9k Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@170217.4554 2h58r27lda9oob3egmv8fena9k Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241008@170217.4577 2h58r27lda9oob3egmv8fena9k Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut6705556667670557896e','aut67055230786705578863' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241008@170217.4581 2h58r27lda9oob3egmv8fena9k Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@170217.4595 2h58r27lda9oob3egmv8fena9k Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241008@170217.4632 2h58r27lda9oob3egmv8fena9k Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut6705556667670557896e',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',20.000 ,'aut67055230786705578863' ,0,0 ,2,23.00,220000,?,?,?,?,?)
20241008@170217.4862 2h58r27lda9oob3egmv8fena9k Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@170217.4900 2h58r27lda9oob3egmv8fena9k Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241008@170217.4979 2h58r27lda9oob3egmv8fena9k Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@170217.4995 2h58r27lda9oob3egmv8fena9k Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241008@170217.5042 2h58r27lda9oob3egmv8fena9k Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241008@170217.5061 2h58r27lda9oob3egmv8fena9k Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@170217.5086 2h58r27lda9oob3egmv8fena9k Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241008@170217.5098 2h58r27lda9oob3egmv8fena9k Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut6705563715670557897b','aut67055230786705578863' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241008@170217.5103 2h58r27lda9oob3egmv8fena9k Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@170217.5126 2h58r27lda9oob3egmv8fena9k Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241008@170217.5156 2h58r27lda9oob3egmv8fena9k Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut6705563715670557897b',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut67055230786705578863' ,0,0 ,2,23.00,230000,?,?,?)
20241008@170217.5397 2h58r27lda9oob3egmv8fena9k Query : use flama_phc
20241008@170217.5400 2h58r27lda9oob3egmv8fena9k Query : select st.usalote valor from st where st.ref = '328.9006.00.1'
20241008@170217.5420 2h58r27lda9oob3egmv8fena9k Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '328.9006.00.1'
20241008@170217.5581 2h58r27lda9oob3egmv8fena9k Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@170217.5601 2h58r27lda9oob3egmv8fena9k Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241008@170217.5643 2h58r27lda9oob3egmv8fena9k Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@170217.5659 2h58r27lda9oob3egmv8fena9k Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241008@170217.5673 2h58r27lda9oob3egmv8fena9k Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241008@170217.5706 2h58r27lda9oob3egmv8fena9k Query : select sestamp valor from se where ref ='328.9006.00.1' and lote = 'r2300691200a'
20241008@170217.5720 2h58r27lda9oob3egmv8fena9k Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@170217.5736 2h58r27lda9oob3egmv8fena9k Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241008@170217.5785 2h58r27lda9oob3egmv8fena9k Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut6705524485670557898b','aut67055230786705578863' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241008@170217.5795 2h58r27lda9oob3egmv8fena9k Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@170217.5813 2h58r27lda9oob3egmv8fena9k Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241008@170217.5873 2h58r27lda9oob3egmv8fena9k Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut6705524485670557898b',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',20.000 ,'aut67055230786705578863' ,0,0 ,2,23.00,250000,?,?,?,?,?)
20241008@170217.6107 2h58r27lda9oob3egmv8fena9k Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@170217.6133 2h58r27lda9oob3egmv8fena9k Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241008@170217.6160 2h58r27lda9oob3egmv8fena9k Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@170217.6175 2h58r27lda9oob3egmv8fena9k Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241008@170217.6184 2h58r27lda9oob3egmv8fena9k Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241008@170217.6203 2h58r27lda9oob3egmv8fena9k Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@170217.6232 2h58r27lda9oob3egmv8fena9k Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241008@170217.6244 2h58r27lda9oob3egmv8fena9k Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut67055476726705578997','aut67055230786705578863' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241008@170217.6252 2h58r27lda9oob3egmv8fena9k Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@170217.6271 2h58r27lda9oob3egmv8fena9k Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241008@170217.6328 2h58r27lda9oob3egmv8fena9k Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut67055476726705578997',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut67055230786705578863' ,0,0 ,2,23.00,260000,?,?,?)
20241008@170217.6552 2h58r27lda9oob3egmv8fena9k Query : use flama_phc
20241008@170217.6555 2h58r27lda9oob3egmv8fena9k Query : select st.usalote valor from st where st.ref = '328.9316.00.1'
20241008@170217.6586 2h58r27lda9oob3egmv8fena9k Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '328.9316.00.1'
20241008@170217.6797 2h58r27lda9oob3egmv8fena9k Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@170217.6816 2h58r27lda9oob3egmv8fena9k Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241008@170217.6848 2h58r27lda9oob3egmv8fena9k Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@170217.6866 2h58r27lda9oob3egmv8fena9k Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241008@170217.6889 2h58r27lda9oob3egmv8fena9k Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241008@170217.6903 2h58r27lda9oob3egmv8fena9k Query : select sestamp valor from se where ref ='328.9316.00.1' and lote = 'r2400092110a'
20241008@170217.6918 2h58r27lda9oob3egmv8fena9k Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@170217.6933 2h58r27lda9oob3egmv8fena9k Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241008@170217.6946 2h58r27lda9oob3egmv8fena9k Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut670556921267055789a8','aut67055230786705578863' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241008@170217.6950 2h58r27lda9oob3egmv8fena9k Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@170217.6966 2h58r27lda9oob3egmv8fena9k Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241008@170217.7020 2h58r27lda9oob3egmv8fena9k Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut670556921267055789a8',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',1.000 ,'aut67055230786705578863' ,0,0 ,2,23.00,280000,?,?,?,?,?)
20241008@170217.7273 2h58r27lda9oob3egmv8fena9k Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@170217.7296 2h58r27lda9oob3egmv8fena9k Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241008@170217.7351 2h58r27lda9oob3egmv8fena9k Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@170217.7392 2h58r27lda9oob3egmv8fena9k Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241008@170217.7403 2h58r27lda9oob3egmv8fena9k Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241008@170217.7418 2h58r27lda9oob3egmv8fena9k Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@170217.7438 2h58r27lda9oob3egmv8fena9k Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241008@170217.7460 2h58r27lda9oob3egmv8fena9k Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut670559343567055789b5','aut67055230786705578863' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241008@170217.7465 2h58r27lda9oob3egmv8fena9k Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@170217.7516 2h58r27lda9oob3egmv8fena9k Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241008@170217.7557 2h58r27lda9oob3egmv8fena9k Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut670559343567055789b5',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut67055230786705578863' ,0,0 ,2,23.00,290000,?,?,?)
20241008@170217.7803 2h58r27lda9oob3egmv8fena9k Query : use flama_phc
20241008@170217.7806 2h58r27lda9oob3egmv8fena9k Query : select st.usalote valor from st where st.ref = '328.9316.00.1'
20241008@170217.7834 2h58r27lda9oob3egmv8fena9k Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '328.9316.00.1'
20241008@170217.7848 2h58r27lda9oob3egmv8fena9k Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@170217.7894 2h58r27lda9oob3egmv8fena9k Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241008@170217.7947 2h58r27lda9oob3egmv8fena9k Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@170217.7973 2h58r27lda9oob3egmv8fena9k Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241008@170217.7981 2h58r27lda9oob3egmv8fena9k Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241008@170217.8000 2h58r27lda9oob3egmv8fena9k Query : select sestamp valor from se where ref ='328.9316.00.1' and lote = 'r2400092110a'
20241008@170217.8012 2h58r27lda9oob3egmv8fena9k Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@170217.8027 2h58r27lda9oob3egmv8fena9k Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241008@170217.8039 2h58r27lda9oob3egmv8fena9k Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut670551135567055789c3','aut67055230786705578863' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241008@170217.8043 2h58r27lda9oob3egmv8fena9k Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@170217.8058 2h58r27lda9oob3egmv8fena9k Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241008@170217.8113 2h58r27lda9oob3egmv8fena9k Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut670551135567055789c3',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',1.000 ,'aut67055230786705578863' ,0,0 ,2,23.00,310000,?,?,?,?,?)
20241008@170217.8343 2h58r27lda9oob3egmv8fena9k Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@170217.8377 2h58r27lda9oob3egmv8fena9k Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241008@170217.8412 2h58r27lda9oob3egmv8fena9k Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@170217.8429 2h58r27lda9oob3egmv8fena9k Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241008@170217.8456 2h58r27lda9oob3egmv8fena9k Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241008@170217.8542 2h58r27lda9oob3egmv8fena9k Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@170217.8565 2h58r27lda9oob3egmv8fena9k Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241008@170217.8577 2h58r27lda9oob3egmv8fena9k Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut670554542267055789d0','aut67055230786705578863' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241008@170217.8582 2h58r27lda9oob3egmv8fena9k Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@170217.8601 2h58r27lda9oob3egmv8fena9k Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241008@170217.8661 2h58r27lda9oob3egmv8fena9k Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut670554542267055789d0',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut67055230786705578863' ,0,0 ,2,23.00,320000,?,?,?)
20241008@170217.8925 2h58r27lda9oob3egmv8fena9k Query : use flama_phc
20241008@170217.8935 2h58r27lda9oob3egmv8fena9k Query : select st.usalote valor from st where st.ref = '328.9316.00.1'
20241008@170217.8962 2h58r27lda9oob3egmv8fena9k Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '328.9316.00.1'
20241008@170217.8980 2h58r27lda9oob3egmv8fena9k Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@170217.9018 2h58r27lda9oob3egmv8fena9k Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241008@170217.9072 2h58r27lda9oob3egmv8fena9k Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@170217.9119 2h58r27lda9oob3egmv8fena9k Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241008@170217.9126 2h58r27lda9oob3egmv8fena9k Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241008@170217.9155 2h58r27lda9oob3egmv8fena9k Query : select sestamp valor from se where ref ='328.9316.00.1' and lote = 'r2400092110a'
20241008@170217.9167 2h58r27lda9oob3egmv8fena9k Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@170217.9181 2h58r27lda9oob3egmv8fena9k Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241008@170217.9192 2h58r27lda9oob3egmv8fena9k Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut670557997667055789df','aut67055230786705578863' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241008@170217.9196 2h58r27lda9oob3egmv8fena9k Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@170217.9210 2h58r27lda9oob3egmv8fena9k Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241008@170217.9246 2h58r27lda9oob3egmv8fena9k Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut670557997667055789df',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',18.000 ,'aut67055230786705578863' ,0,0 ,2,23.00,340000,?,?,?,?,?)
20241008@170217.9470 2h58r27lda9oob3egmv8fena9k Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@170217.9489 2h58r27lda9oob3egmv8fena9k Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241008@170217.9534 2h58r27lda9oob3egmv8fena9k Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@170217.9559 2h58r27lda9oob3egmv8fena9k Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241008@170217.9576 2h58r27lda9oob3egmv8fena9k Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241008@170217.9588 2h58r27lda9oob3egmv8fena9k Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@170217.9602 2h58r27lda9oob3egmv8fena9k Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241008@170217.9626 2h58r27lda9oob3egmv8fena9k Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut670559513567055789ea','aut67055230786705578863' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241008@170217.9631 2h58r27lda9oob3egmv8fena9k Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@170217.9648 2h58r27lda9oob3egmv8fena9k Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241008@170217.9682 2h58r27lda9oob3egmv8fena9k Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut670559513567055789ea',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut67055230786705578863' ,0,0 ,2,23.00,350000,?,?,?)
20241008@170217.9915 2h58r27lda9oob3egmv8fena9k Query : use flama_phc
20241008@170217.9935 2h58r27lda9oob3egmv8fena9k Query : select st.usalote valor from st where st.ref = '328.9306.00.1'
20241008@170217.9956 2h58r27lda9oob3egmv8fena9k Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '328.9306.00.1'
20241008@170218.1070 2h58r27lda9oob3egmv8fena9k Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@170218.1420 2h58r27lda9oob3egmv8fena9k Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241008@170218.1820 2h58r27lda9oob3egmv8fena9k Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@170218.2020 2h58r27lda9oob3egmv8fena9k Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241008@170218.2100 2h58r27lda9oob3egmv8fena9k Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241008@170218.2240 2h58r27lda9oob3egmv8fena9k Query : select sestamp valor from se where ref ='328.9306.00.1' and lote = 'r2400276100a'
20241008@170218.2390 2h58r27lda9oob3egmv8fena9k Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@170218.2530 2h58r27lda9oob3egmv8fena9k Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241008@170218.2670 2h58r27lda9oob3egmv8fena9k Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut67055407576705578a05','aut67055230786705578863' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241008@170218.2710 2h58r27lda9oob3egmv8fena9k Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@170218.3000 2h58r27lda9oob3egmv8fena9k Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241008@170218.3350 2h58r27lda9oob3egmv8fena9k Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut67055407576705578a05',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',1.000 ,'aut67055230786705578863' ,0,0 ,2,23.00,370000,?,?,?,?,?)
20241008@170218.5550 2h58r27lda9oob3egmv8fena9k Query : use flama_phc
20241008@170218.5580 2h58r27lda9oob3egmv8fena9k Query : select st.usalote valor from st where st.ref = '328.9306.00.1'
20241008@170218.5790 2h58r27lda9oob3egmv8fena9k Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '328.9306.00.1'
20241008@170218.5950 2h58r27lda9oob3egmv8fena9k Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@170218.6120 2h58r27lda9oob3egmv8fena9k Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241008@170218.6480 2h58r27lda9oob3egmv8fena9k Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@170218.6620 2h58r27lda9oob3egmv8fena9k Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241008@170218.6720 2h58r27lda9oob3egmv8fena9k Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241008@170218.6840 2h58r27lda9oob3egmv8fena9k Query : select sestamp valor from se where ref ='328.9306.00.1' and lote = 'r2400276100a'
20241008@170218.7080 2h58r27lda9oob3egmv8fena9k Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@170218.7240 2h58r27lda9oob3egmv8fena9k Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241008@170218.7410 2h58r27lda9oob3egmv8fena9k Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut67055465386705578a11','aut67055230786705578863' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241008@170218.7460 2h58r27lda9oob3egmv8fena9k Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@170218.7690 2h58r27lda9oob3egmv8fena9k Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241008@170218.8130 2h58r27lda9oob3egmv8fena9k Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut67055465386705578a11',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',19.000 ,'aut67055230786705578863' ,0,0 ,2,23.00,380000,?,?,?,?,?)
20241008@170218.1042 2h58r27lda9oob3egmv8fena9k Query : use flama_phc
20241008@170218.1045 2h58r27lda9oob3egmv8fena9k Query : select st.usalote valor from st where st.ref = '325.7002.00.1'
20241008@170218.1093 2h58r27lda9oob3egmv8fena9k Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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.7002.00.1'
20241008@170218.1243 2h58r27lda9oob3egmv8fena9k Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@170218.1272 2h58r27lda9oob3egmv8fena9k Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241008@170218.1307 2h58r27lda9oob3egmv8fena9k Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@170218.1331 2h58r27lda9oob3egmv8fena9k Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241008@170218.1356 2h58r27lda9oob3egmv8fena9k Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241008@170218.1373 2h58r27lda9oob3egmv8fena9k Query : select sestamp valor from se where ref ='325.7002.00.1' and lote = '25/11'
20241008@170218.1391 2h58r27lda9oob3egmv8fena9k Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@170218.1406 2h58r27lda9oob3egmv8fena9k Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241008@170218.1419 2h58r27lda9oob3egmv8fena9k Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut67055198826705578a21','aut67055230786705578863' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241008@170218.1423 2h58r27lda9oob3egmv8fena9k Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@170218.1440 2h58r27lda9oob3egmv8fena9k Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241008@170218.1475 2h58r27lda9oob3egmv8fena9k Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut67055198826705578a21',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',40.000 ,'aut67055230786705578863' ,0,0 ,2,23.00,390000,?,?,?,?,?)
20241008@170218.1738 2h58r27lda9oob3egmv8fena9k Query : use flama_phc
20241008@170218.1743 2h58r27lda9oob3egmv8fena9k Query : select st.usalote valor from st where st.ref = '324.736.00.01'
20241008@170218.1764 2h58r27lda9oob3egmv8fena9k Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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'
20241008@170218.1937 2h58r27lda9oob3egmv8fena9k Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@170218.1962 2h58r27lda9oob3egmv8fena9k Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241008@170218.1999 2h58r27lda9oob3egmv8fena9k Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@170218.2025 2h58r27lda9oob3egmv8fena9k Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241008@170218.2049 2h58r27lda9oob3egmv8fena9k Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241008@170218.2061 2h58r27lda9oob3egmv8fena9k Query : select sestamp valor from se where ref ='324.736.00.01' and lote = 'r2400239300a'
20241008@170218.2098 2h58r27lda9oob3egmv8fena9k Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@170218.2120 2h58r27lda9oob3egmv8fena9k Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241008@170218.2131 2h58r27lda9oob3egmv8fena9k Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut67055182816705578a33','aut67055230786705578863' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241008@170218.2135 2h58r27lda9oob3egmv8fena9k Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@170218.2149 2h58r27lda9oob3egmv8fena9k Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241008@170218.2216 2h58r27lda9oob3egmv8fena9k Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut67055182816705578a33',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',36.000 ,'aut67055230786705578863' ,0,0 ,2,23.00,400000,?,?,?,?,?)
20241008@170218.2442 2h58r27lda9oob3egmv8fena9k Query : use flama_phc
20241008@170218.2450 2h58r27lda9oob3egmv8fena9k Query : select st.usalote valor from st where st.ref = '324.2232.00.1'
20241008@170218.2483 2h58r27lda9oob3egmv8fena9k Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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'
20241008@170218.2646 2h58r27lda9oob3egmv8fena9k Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@170218.2663 2h58r27lda9oob3egmv8fena9k Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241008@170218.2691 2h58r27lda9oob3egmv8fena9k Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@170218.2723 2h58r27lda9oob3egmv8fena9k Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241008@170218.2733 2h58r27lda9oob3egmv8fena9k Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241008@170218.2750 2h58r27lda9oob3egmv8fena9k Query : select sestamp valor from se where ref ='324.2232.00.1' and lote = 'r2400241100a'
20241008@170218.2773 2h58r27lda9oob3egmv8fena9k Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@170218.2790 2h58r27lda9oob3egmv8fena9k Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241008@170218.2803 2h58r27lda9oob3egmv8fena9k Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut67055720626705578a43','aut67055230786705578863' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241008@170218.2808 2h58r27lda9oob3egmv8fena9k Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@170218.2823 2h58r27lda9oob3egmv8fena9k Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241008@170218.2865 2h58r27lda9oob3egmv8fena9k Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut67055720626705578a43',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',36.000 ,'aut67055230786705578863' ,0,0 ,2,23.00,410000,?,?,?,?,?)
20241008@170218.3136 2h58r27lda9oob3egmv8fena9k Query : use flama_phc
20241008@170218.3139 2h58r27lda9oob3egmv8fena9k Query : select st.usalote valor from st where st.ref = '324.1221.00.1'
20241008@170218.3201 2h58r27lda9oob3egmv8fena9k Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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.1221.00.1'
20241008@170218.3362 2h58r27lda9oob3egmv8fena9k Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@170218.3388 2h58r27lda9oob3egmv8fena9k Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241008@170218.3428 2h58r27lda9oob3egmv8fena9k Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@170218.3443 2h58r27lda9oob3egmv8fena9k Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241008@170218.3463 2h58r27lda9oob3egmv8fena9k Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241008@170218.3487 2h58r27lda9oob3egmv8fena9k Query : select sestamp valor from se where ref ='324.1221.00.1' and lote = 'r2101229200a'
20241008@170218.3533 2h58r27lda9oob3egmv8fena9k Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@170218.3548 2h58r27lda9oob3egmv8fena9k Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241008@170218.3564 2h58r27lda9oob3egmv8fena9k Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut67055649796705578a56','aut67055230786705578863' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241008@170218.3568 2h58r27lda9oob3egmv8fena9k Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@170218.3587 2h58r27lda9oob3egmv8fena9k Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241008@170218.3651 2h58r27lda9oob3egmv8fena9k Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut67055649796705578a56',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',12.000 ,'aut67055230786705578863' ,0,0 ,2,23.00,420000,?,?,?,?,?)
20241008@170218.3983 2h58r27lda9oob3egmv8fena9k Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@170218.4030 2h58r27lda9oob3egmv8fena9k Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241008@170218.4072 2h58r27lda9oob3egmv8fena9k Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@170218.4103 2h58r27lda9oob3egmv8fena9k Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241008@170218.4124 2h58r27lda9oob3egmv8fena9k Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241008@170218.4136 2h58r27lda9oob3egmv8fena9k Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@170218.4177 2h58r27lda9oob3egmv8fena9k Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241008@170218.4207 2h58r27lda9oob3egmv8fena9k Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut67055635056705578a64','aut67055230786705578863' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241008@170218.4234 2h58r27lda9oob3egmv8fena9k Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@170218.4274 2h58r27lda9oob3egmv8fena9k Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241008@170218.4342 2h58r27lda9oob3egmv8fena9k Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut67055635056705578a64',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut67055230786705578863' ,0,0 ,2,23.00,430000,?,?,?)
20241008@170218.4579 2h58r27lda9oob3egmv8fena9k Query : use flama_phc
20241008@170218.4582 2h58r27lda9oob3egmv8fena9k Query : select st.usalote valor from st where st.ref = '324.1266.00.1'
20241008@170218.4607 2h58r27lda9oob3egmv8fena9k Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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.1266.00.1'
20241008@170218.4621 2h58r27lda9oob3egmv8fena9k Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@170218.4670 2h58r27lda9oob3egmv8fena9k Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241008@170218.4715 2h58r27lda9oob3egmv8fena9k Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@170218.4730 2h58r27lda9oob3egmv8fena9k Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241008@170218.4742 2h58r27lda9oob3egmv8fena9k Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241008@170218.4760 2h58r27lda9oob3egmv8fena9k Query : select sestamp valor from se where ref ='324.1266.00.1' and lote = 'r2100597100a'
20241008@170218.4773 2h58r27lda9oob3egmv8fena9k Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@170218.4794 2h58r27lda9oob3egmv8fena9k Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241008@170218.4806 2h58r27lda9oob3egmv8fena9k Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut67055891076705578a74','aut67055230786705578863' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241008@170218.4810 2h58r27lda9oob3egmv8fena9k Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@170218.4824 2h58r27lda9oob3egmv8fena9k Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241008@170218.4872 2h58r27lda9oob3egmv8fena9k Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut67055891076705578a74',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',11.000 ,'aut67055230786705578863' ,0,0 ,2,23.00,450000,?,?,?,?,?)
20241008@170218.5115 2h58r27lda9oob3egmv8fena9k Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@170218.5131 2h58r27lda9oob3egmv8fena9k Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241008@170218.5239 2h58r27lda9oob3egmv8fena9k Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@170218.5279 2h58r27lda9oob3egmv8fena9k Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241008@170218.5287 2h58r27lda9oob3egmv8fena9k Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241008@170218.5336 2h58r27lda9oob3egmv8fena9k Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@170218.5401 2h58r27lda9oob3egmv8fena9k Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241008@170218.5414 2h58r27lda9oob3egmv8fena9k Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut67055601146705578a82','aut67055230786705578863' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241008@170218.5418 2h58r27lda9oob3egmv8fena9k Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241008@170218.5433 2h58r27lda9oob3egmv8fena9k Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241008@170218.5477 2h58r27lda9oob3egmv8fena9k Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut67055601146705578a82',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut67055230786705578863' ,0,0 ,2,23.00,460000,?,?,?)
20241008@170218.5694 2h58r27lda9oob3egmv8fena9k Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut67055230786705578863','2406547','wait',39,'adm09112754980.682000002')
20241008@170218.5788 2h58r27lda9oob3egmv8fena9k Query : use flama_phc
20241008@170218.5792 2h58r27lda9oob3egmv8fena9k Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20241008@170218.5823 2h58r27lda9oob3egmv8fena9k Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2502';
20241008@170218.5855 2h58r27lda9oob3egmv8fena9k Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2502';
20241008@170218.5897 2h58r27lda9oob3egmv8fena9k Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2502';
20241008@170218.5923 2h58r27lda9oob3egmv8fena9k Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2502';
20241008@170218.7158 849hi369i9as52anrajl89nd9e Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20241008@170218.7171 849hi369i9as52anrajl89nd9e Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20241008@170218.7244 849hi369i9as52anrajl89nd9e Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2503';
20241008@170218.7302 849hi369i9as52anrajl89nd9e Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2503';
20241008@170218.7360 849hi369i9as52anrajl89nd9e Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2503';
20241008@170218.7389 849hi369i9as52anrajl89nd9e Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2503';
20241008@170218.7460 849hi369i9as52anrajl89nd9e Query : use flama_phc
20241008@170218.7463 849hi369i9as52anrajl89nd9e Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20241008@170218.7541 849hi369i9as52anrajl89nd9e Query : use flama_phc
20241008@170218.7544 849hi369i9as52anrajl89nd9e Query : select no, estab,szadrsdesc from szadrs where u_coddest=4804
20241008@170218.7599 849hi369i9as52anrajl89nd9e Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.4521.00.1'
20241008@170218.7759 849hi369i9as52anrajl89nd9e Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2065 and bo.obrano = 2406550 and bi.ref ='324.4521.00.1' and bi.lordem =1
20241008@170218.8144 849hi369i9as52anrajl89nd9e 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'
20241008@170218.8898 849hi369i9as52anrajl89nd9e Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2065 and bo.obrano = 2406550 and bi.ref ='324.4960.00.1' and bi.lordem =2
20241008@170218.9607 849hi369i9as52anrajl89nd9e 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'
20241008@170218.9766 849hi369i9as52anrajl89nd9e Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2065 and bo.obrano = 2406550 and bi.ref ='304.421.00.04' and bi.lordem =3
20241008@170219.8500 849hi369i9as52anrajl89nd9e Query : use flama_phc
20241008@170219.8800 849hi369i9as52anrajl89nd9e Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20241008@170219.1200 849hi369i9as52anrajl89nd9e Query : use flama_phc
20241008@170219.1230 849hi369i9as52anrajl89nd9e Query : select top 1 1 valor from td where td.ndoc = 39
20241008@170219.1600 849hi369i9as52anrajl89nd9e Query : use flama_phc
20241008@170219.1630 849hi369i9as52anrajl89nd9e 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')
20241008@170219.2190 849hi369i9as52anrajl89nd9e 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
20241008@170219.2780 849hi369i9as52anrajl89nd9e Query : use flama_phc
20241008@170219.2810 849hi369i9as52anrajl89nd9e Query : select top 1 ~inactivo valor from cl where no = '101900' and estab = 0 order by inactivo desc
20241008@170219.3120 849hi369i9as52anrajl89nd9e Query : use flama_phc
20241008@170219.3160 849hi369i9as52anrajl89nd9e Query : select top 1 tipodoc,regrd from td where ndoc = 39
