20241227@143954.7402 dn9famiukjc3fqqta3ks0uu28h Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241227@143954.7414 dn9famiukjc3fqqta3ks0uu28h Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut676eb09861676ebc3ab4','aut676eb78980676ebc3a7a' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241227@143954.7418 dn9famiukjc3fqqta3ks0uu28h Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@143954.7432 dn9famiukjc3fqqta3ks0uu28h Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241227@143954.7459 dn9famiukjc3fqqta3ks0uu28h Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut676eb09861676ebc3ab4',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut676eb78980676ebc3a7a' ,0,0 ,2,23.00,30000,?,?,?)
20241227@143954.8255 dn9famiukjc3fqqta3ks0uu28h Query : use flama_phc
20241227@143954.8259 dn9famiukjc3fqqta3ks0uu28h Query : select st.usalote valor from st where st.ref = '324.4960.00.1'
20241227@143954.8281 dn9famiukjc3fqqta3ks0uu28h Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.4960.00.1'
20241227@143954.8416 dn9famiukjc3fqqta3ks0uu28h Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@143954.8432 dn9famiukjc3fqqta3ks0uu28h Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241227@143954.8458 dn9famiukjc3fqqta3ks0uu28h Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@143954.8473 dn9famiukjc3fqqta3ks0uu28h Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241227@143954.8481 dn9famiukjc3fqqta3ks0uu28h Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241227@143954.8493 dn9famiukjc3fqqta3ks0uu28h Query : select sestamp valor from se where ref ='324.4960.00.1' and lote = 'r2100754100a'
20241227@143954.8506 dn9famiukjc3fqqta3ks0uu28h Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@143954.8520 dn9famiukjc3fqqta3ks0uu28h Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241227@143954.8532 dn9famiukjc3fqqta3ks0uu28h Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut676eb95386676ebc3acf','aut676eb78980676ebc3a7a' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241227@143954.8536 dn9famiukjc3fqqta3ks0uu28h Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@143954.8550 dn9famiukjc3fqqta3ks0uu28h Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241227@143954.8577 dn9famiukjc3fqqta3ks0uu28h Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem) values ('aut676eb95386676ebc3acf',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',18.000 ,'aut676eb78980676ebc3a7a' ,0,0 ,2,23.00,50000,?,?,?,?)
20241227@143954.8809 dn9famiukjc3fqqta3ks0uu28h Query : use flama_phc
20241227@143954.8813 dn9famiukjc3fqqta3ks0uu28h Query : select st.usalote valor from st where st.ref = '324.2031.00.1'
20241227@143954.8833 dn9famiukjc3fqqta3ks0uu28h Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.2031.00.1'
20241227@143954.8965 dn9famiukjc3fqqta3ks0uu28h Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@143954.8981 dn9famiukjc3fqqta3ks0uu28h Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241227@143954.9006 dn9famiukjc3fqqta3ks0uu28h Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@143954.9021 dn9famiukjc3fqqta3ks0uu28h Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241227@143954.9029 dn9famiukjc3fqqta3ks0uu28h Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241227@143954.9041 dn9famiukjc3fqqta3ks0uu28h Query : select sestamp valor from se where ref ='324.2031.00.1' and lote = 'r2100232100a'
20241227@143954.9055 dn9famiukjc3fqqta3ks0uu28h Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@143954.9069 dn9famiukjc3fqqta3ks0uu28h Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241227@143954.9081 dn9famiukjc3fqqta3ks0uu28h Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut676eb11454676ebc3add','aut676eb78980676ebc3a7a' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241227@143954.9085 dn9famiukjc3fqqta3ks0uu28h Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@143954.9100 dn9famiukjc3fqqta3ks0uu28h Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241227@143954.9130 dn9famiukjc3fqqta3ks0uu28h Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem) values ('aut676eb11454676ebc3add',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',6.000 ,'aut676eb78980676ebc3a7a' ,0,0 ,2,23.00,60000,?,?,?,?)
20241227@143954.9531 dn9famiukjc3fqqta3ks0uu28h Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@143954.9600 dn9famiukjc3fqqta3ks0uu28h Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241227@143954.9629 dn9famiukjc3fqqta3ks0uu28h Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@143954.9643 dn9famiukjc3fqqta3ks0uu28h Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241227@143954.9653 dn9famiukjc3fqqta3ks0uu28h Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241227@143954.9668 dn9famiukjc3fqqta3ks0uu28h Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@143954.9682 dn9famiukjc3fqqta3ks0uu28h Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241227@143954.9694 dn9famiukjc3fqqta3ks0uu28h Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut676eb26350676ebc3aec','aut676eb78980676ebc3a7a' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241227@143954.9699 dn9famiukjc3fqqta3ks0uu28h Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@143954.9714 dn9famiukjc3fqqta3ks0uu28h Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241227@143954.9743 dn9famiukjc3fqqta3ks0uu28h Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut676eb26350676ebc3aec',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut676eb78980676ebc3a7a' ,0,0 ,2,23.00,70000,?,?,?)
20241227@143954.9985 dn9famiukjc3fqqta3ks0uu28h Query : use flama_phc
20241227@143954.9989 dn9famiukjc3fqqta3ks0uu28h Query : select st.usalote valor from st where st.ref = '324.2232.00.1'
20241227@143955.9000 dn9famiukjc3fqqta3ks0uu28h Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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'
20241227@143955.1650 dn9famiukjc3fqqta3ks0uu28h Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@143955.1810 dn9famiukjc3fqqta3ks0uu28h Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241227@143955.2070 dn9famiukjc3fqqta3ks0uu28h Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@143955.2220 dn9famiukjc3fqqta3ks0uu28h Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241227@143955.2310 dn9famiukjc3fqqta3ks0uu28h Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241227@143955.2430 dn9famiukjc3fqqta3ks0uu28h Query : select sestamp valor from se where ref ='324.2232.00.1' and lote = 'r2400241100a'
20241227@143955.2570 dn9famiukjc3fqqta3ks0uu28h Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@143955.2710 dn9famiukjc3fqqta3ks0uu28h Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241227@143955.2830 dn9famiukjc3fqqta3ks0uu28h Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut676eb94698676ebc3b06','aut676eb78980676ebc3a7a' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241227@143955.2870 dn9famiukjc3fqqta3ks0uu28h Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@143955.3020 dn9famiukjc3fqqta3ks0uu28h Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241227@143955.1553 dn9famiukjc3fqqta3ks0uu28h Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem) values ('aut676eb94698676ebc3b06',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',2.000 ,'aut676eb78980676ebc3a7a' ,0,0 ,2,23.00,90000,?,?,?,?)
20241227@143955.1795 dn9famiukjc3fqqta3ks0uu28h Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut676eb78980676ebc3a7a','2408848','wait',39,'adm09112754980.682000002')
20241227@143955.1870 dn9famiukjc3fqqta3ks0uu28h Query : use flama_phc
20241227@143955.1873 dn9famiukjc3fqqta3ks0uu28h Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20241227@143955.1903 dn9famiukjc3fqqta3ks0uu28h Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4179';
20241227@143955.1945 dn9famiukjc3fqqta3ks0uu28h Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4179';
20241227@143955.1995 dn9famiukjc3fqqta3ks0uu28h Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4179';
20241227@143955.2026 dn9famiukjc3fqqta3ks0uu28h Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4179';
20241227@143955.2574 gt9ju8foqdan22juo6pm7d8mt2 Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20241227@143955.2585 gt9ju8foqdan22juo6pm7d8mt2 Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20241227@143955.2673 gt9ju8foqdan22juo6pm7d8mt2 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4180';
20241227@143955.2753 gt9ju8foqdan22juo6pm7d8mt2 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4180';
20241227@143955.2870 gt9ju8foqdan22juo6pm7d8mt2 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4180';
20241227@143955.2919 gt9ju8foqdan22juo6pm7d8mt2 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4180';
20241227@143955.2990 gt9ju8foqdan22juo6pm7d8mt2 Query : use flama_phc
20241227@143955.2993 gt9ju8foqdan22juo6pm7d8mt2 Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20241227@143955.3061 gt9ju8foqdan22juo6pm7d8mt2 Query : use flama_phc
20241227@143955.3064 gt9ju8foqdan22juo6pm7d8mt2 Query : select no, estab,szadrsdesc from szadrs where u_coddest=4740
20241227@143955.3179 gt9ju8foqdan22juo6pm7d8mt2 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.2335.00.1'
20241227@143955.3353 gt9ju8foqdan22juo6pm7d8mt2 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.2335.00.1'
20241227@143955.3373 gt9ju8foqdan22juo6pm7d8mt2 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.2335.00.1'
20241227@143955.3392 gt9ju8foqdan22juo6pm7d8mt2 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.2335.00.1'
20241227@143955.3410 gt9ju8foqdan22juo6pm7d8mt2 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.2335.00.1'
20241227@143955.3430 gt9ju8foqdan22juo6pm7d8mt2 Query : use flama_phc
20241227@143955.3433 gt9ju8foqdan22juo6pm7d8mt2 Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20241227@143955.3466 gt9ju8foqdan22juo6pm7d8mt2 Query : use flama_phc
20241227@143955.3470 gt9ju8foqdan22juo6pm7d8mt2 Query : select top 1 1 valor from td where td.ndoc = 39
20241227@143955.3501 gt9ju8foqdan22juo6pm7d8mt2 Query : use flama_phc
20241227@143955.3505 gt9ju8foqdan22juo6pm7d8mt2 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')
20241227@143955.3536 gt9ju8foqdan22juo6pm7d8mt2 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
20241227@143955.3573 gt9ju8foqdan22juo6pm7d8mt2 Query : use flama_phc
20241227@143955.3576 gt9ju8foqdan22juo6pm7d8mt2 Query : select top 1 ~inactivo valor from cl where no = '100810' and estab = 0 order by inactivo desc
20241227@143955.3713 gt9ju8foqdan22juo6pm7d8mt2 Query : use flama_phc
20241227@143955.3717 gt9ju8foqdan22juo6pm7d8mt2 Query : select top 1 tipodoc,regrd from td where ndoc = 39
20241227@143955.3748 gt9ju8foqdan22juo6pm7d8mt2 Query : use flama_phc
20241227@143955.3751 gt9ju8foqdan22juo6pm7d8mt2 Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20241227@143955.3792 gt9ju8foqdan22juo6pm7d8mt2 Query : use flama_phc
20241227@143955.3796 gt9ju8foqdan22juo6pm7d8mt2 Query : select szadrsstamp valor from szadrs where szadrsdesc='100810 - worten-equipamentos para o lar,sa.'
20241227@143955.3841 gt9ju8foqdan22juo6pm7d8mt2 Query : use flama_phc
20241227@143955.3843 gt9ju8foqdan22juo6pm7d8mt2 Query : select 1 valor from td where ndoc = 39
20241227@143955.3855 gt9ju8foqdan22juo6pm7d8mt2 Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20241227@143955.3869 gt9ju8foqdan22juo6pm7d8mt2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@143955.3885 gt9ju8foqdan22juo6pm7d8mt2 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20241227@143955.3904 gt9ju8foqdan22juo6pm7d8mt2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@143955.3918 gt9ju8foqdan22juo6pm7d8mt2 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20241227@143955.3945 gt9ju8foqdan22juo6pm7d8mt2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@143955.3959 gt9ju8foqdan22juo6pm7d8mt2 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20241227@143955.3971 gt9ju8foqdan22juo6pm7d8mt2 Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20241227@143955.4025 gt9ju8foqdan22juo6pm7d8mt2 Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20241227@143955.4038 gt9ju8foqdan22juo6pm7d8mt2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@143955.4055 gt9ju8foqdan22juo6pm7d8mt2 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20241227@143955.4070 gt9ju8foqdan22juo6pm7d8mt2 Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut676eb87062676ebc3b60' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20241227@143955.4229 gt9ju8foqdan22juo6pm7d8mt2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@143955.4245 gt9ju8foqdan22juo6pm7d8mt2 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20241227@143955.4295 gt9ju8foqdan22juo6pm7d8mt2 Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20241227@143955.4307 gt9ju8foqdan22juo6pm7d8mt2 Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20241227@143955.4319 gt9ju8foqdan22juo6pm7d8mt2 Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20241227@143955.4330 gt9ju8foqdan22juo6pm7d8mt2 Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20241227@143955.4343 gt9ju8foqdan22juo6pm7d8mt2 Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20241227@143955.4354 gt9ju8foqdan22juo6pm7d8mt2 Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20241227@143955.4366 gt9ju8foqdan22juo6pm7d8mt2 Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut676eb87062676ebc3b60',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20241227@143955.4587 gt9ju8foqdan22juo6pm7d8mt2 Query : select top 1 fno valor from wsftdata order by fno desc
20241227@143955.4664 gt9ju8foqdan22juo6pm7d8mt2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@143955.4684 gt9ju8foqdan22juo6pm7d8mt2 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20241227@143955.4708 gt9ju8foqdan22juo6pm7d8mt2 Query : select 'normal' from dummy
20241227@143955.4722 gt9ju8foqdan22juo6pm7d8mt2 Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut676eb87062676ebc3b60',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',2627,100810,0,'2024-12-27',39,'euro',0,0,2024 ,?,?)
20241227@143955.5003 gt9ju8foqdan22juo6pm7d8mt2 Query : use flama_phc
20241227@143955.5006 gt9ju8foqdan22juo6pm7d8mt2 Query : select st.usalote valor from st where st.ref = '324.2335.00.1'
20241227@143955.5027 gt9ju8foqdan22juo6pm7d8mt2 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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.2335.00.1'
20241227@143955.5594 gt9ju8foqdan22juo6pm7d8mt2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@143955.5802 gt9ju8foqdan22juo6pm7d8mt2 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241227@143955.5829 gt9ju8foqdan22juo6pm7d8mt2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@143955.5845 gt9ju8foqdan22juo6pm7d8mt2 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241227@143955.5854 gt9ju8foqdan22juo6pm7d8mt2 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241227@143955.5866 gt9ju8foqdan22juo6pm7d8mt2 Query : select sestamp valor from se where ref ='324.2335.00.1' and lote = 'r2400468300a'
20241227@143955.5879 gt9ju8foqdan22juo6pm7d8mt2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@143955.5894 gt9ju8foqdan22juo6pm7d8mt2 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241227@143955.5908 gt9ju8foqdan22juo6pm7d8mt2 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut676eb22378676ebc3b8f','aut676eb87062676ebc3b60' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241227@143955.5913 gt9ju8foqdan22juo6pm7d8mt2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@143955.5927 gt9ju8foqdan22juo6pm7d8mt2 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241227@143955.5957 gt9ju8foqdan22juo6pm7d8mt2 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem) values ('aut676eb22378676ebc3b8f',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',20.000 ,'aut676eb87062676ebc3b60' ,0,0 ,2,23.00,10000,?,?,?,?)
20241227@143955.6209 gt9ju8foqdan22juo6pm7d8mt2 Query : use flama_phc
20241227@143955.6212 gt9ju8foqdan22juo6pm7d8mt2 Query : select st.usalote valor from st where st.ref = '324.2335.00.1'
20241227@143955.6230 gt9ju8foqdan22juo6pm7d8mt2 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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.2335.00.1'
20241227@143955.6243 gt9ju8foqdan22juo6pm7d8mt2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@143955.6259 gt9ju8foqdan22juo6pm7d8mt2 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241227@143955.6282 gt9ju8foqdan22juo6pm7d8mt2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@143955.6296 gt9ju8foqdan22juo6pm7d8mt2 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241227@143955.6305 gt9ju8foqdan22juo6pm7d8mt2 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241227@143955.6317 gt9ju8foqdan22juo6pm7d8mt2 Query : select sestamp valor from se where ref ='324.2335.00.1' and lote = 'r2400468300a'
20241227@143955.6329 gt9ju8foqdan22juo6pm7d8mt2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@143955.6343 gt9ju8foqdan22juo6pm7d8mt2 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241227@143955.6354 gt9ju8foqdan22juo6pm7d8mt2 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut676eb66985676ebc3b9a','aut676eb87062676ebc3b60' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241227@143955.6359 gt9ju8foqdan22juo6pm7d8mt2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@143955.6394 gt9ju8foqdan22juo6pm7d8mt2 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241227@143955.6422 gt9ju8foqdan22juo6pm7d8mt2 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem) values ('aut676eb66985676ebc3b9a',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',20.000 ,'aut676eb87062676ebc3b60' ,0,0 ,2,23.00,20000,?,?,?,?)
20241227@143955.6712 gt9ju8foqdan22juo6pm7d8mt2 Query : use flama_phc
20241227@143955.6721 gt9ju8foqdan22juo6pm7d8mt2 Query : select st.usalote valor from st where st.ref = '324.2335.00.1'
20241227@143955.6741 gt9ju8foqdan22juo6pm7d8mt2 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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.2335.00.1'
20241227@143955.6755 gt9ju8foqdan22juo6pm7d8mt2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@143955.6771 gt9ju8foqdan22juo6pm7d8mt2 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241227@143955.6795 gt9ju8foqdan22juo6pm7d8mt2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@143955.6811 gt9ju8foqdan22juo6pm7d8mt2 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241227@143955.6819 gt9ju8foqdan22juo6pm7d8mt2 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241227@143955.6831 gt9ju8foqdan22juo6pm7d8mt2 Query : select sestamp valor from se where ref ='324.2335.00.1' and lote = 'r2400468300a'
20241227@143955.6843 gt9ju8foqdan22juo6pm7d8mt2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@143955.6858 gt9ju8foqdan22juo6pm7d8mt2 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241227@143955.6869 gt9ju8foqdan22juo6pm7d8mt2 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut676eb68908676ebc3ba7','aut676eb87062676ebc3b60' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241227@143955.6874 gt9ju8foqdan22juo6pm7d8mt2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@143955.6889 gt9ju8foqdan22juo6pm7d8mt2 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241227@143955.6916 gt9ju8foqdan22juo6pm7d8mt2 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem) values ('aut676eb68908676ebc3ba7',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',20.000 ,'aut676eb87062676ebc3b60' ,0,0 ,2,23.00,30000,?,?,?,?)
20241227@143955.7161 gt9ju8foqdan22juo6pm7d8mt2 Query : use flama_phc
20241227@143955.7164 gt9ju8foqdan22juo6pm7d8mt2 Query : select st.usalote valor from st where st.ref = '324.2335.00.1'
20241227@143955.7184 gt9ju8foqdan22juo6pm7d8mt2 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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.2335.00.1'
20241227@143955.7197 gt9ju8foqdan22juo6pm7d8mt2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@143955.7215 gt9ju8foqdan22juo6pm7d8mt2 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241227@143955.7241 gt9ju8foqdan22juo6pm7d8mt2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@143955.7256 gt9ju8foqdan22juo6pm7d8mt2 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241227@143955.7265 gt9ju8foqdan22juo6pm7d8mt2 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241227@143955.7276 gt9ju8foqdan22juo6pm7d8mt2 Query : select sestamp valor from se where ref ='324.2335.00.1' and lote = 'r2400468300a'
20241227@143955.7289 gt9ju8foqdan22juo6pm7d8mt2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@143955.7304 gt9ju8foqdan22juo6pm7d8mt2 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241227@143955.7315 gt9ju8foqdan22juo6pm7d8mt2 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut676eb31298676ebc3bb1','aut676eb87062676ebc3b60' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241227@143955.7319 gt9ju8foqdan22juo6pm7d8mt2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@143955.7334 gt9ju8foqdan22juo6pm7d8mt2 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241227@143955.7362 gt9ju8foqdan22juo6pm7d8mt2 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem) values ('aut676eb31298676ebc3bb1',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',20.000 ,'aut676eb87062676ebc3b60' ,0,0 ,2,23.00,40000,?,?,?,?)
20241227@143955.7726 gt9ju8foqdan22juo6pm7d8mt2 Query : use flama_phc
20241227@143955.7729 gt9ju8foqdan22juo6pm7d8mt2 Query : select st.usalote valor from st where st.ref = '324.2335.00.1'
20241227@143955.7750 gt9ju8foqdan22juo6pm7d8mt2 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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.2335.00.1'
20241227@143955.7763 gt9ju8foqdan22juo6pm7d8mt2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@143955.7779 gt9ju8foqdan22juo6pm7d8mt2 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241227@143955.7804 gt9ju8foqdan22juo6pm7d8mt2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@143955.7819 gt9ju8foqdan22juo6pm7d8mt2 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241227@143955.7829 gt9ju8foqdan22juo6pm7d8mt2 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241227@143955.7841 gt9ju8foqdan22juo6pm7d8mt2 Query : select sestamp valor from se where ref ='324.2335.00.1' and lote = 'r2400468300a'
20241227@143955.7854 gt9ju8foqdan22juo6pm7d8mt2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@143955.7868 gt9ju8foqdan22juo6pm7d8mt2 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241227@143955.7880 gt9ju8foqdan22juo6pm7d8mt2 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut676eb54456676ebc3bbf','aut676eb87062676ebc3b60' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241227@143955.7884 gt9ju8foqdan22juo6pm7d8mt2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@143955.7899 gt9ju8foqdan22juo6pm7d8mt2 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241227@143955.7928 gt9ju8foqdan22juo6pm7d8mt2 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem) values ('aut676eb54456676ebc3bbf',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',20.000 ,'aut676eb87062676ebc3b60' ,0,0 ,2,23.00,50000,?,?,?,?)
20241227@143955.8182 gt9ju8foqdan22juo6pm7d8mt2 Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut676eb87062676ebc3b60','2408846','wait',39,'adm09112754980.682000002')
20241227@143955.8254 gt9ju8foqdan22juo6pm7d8mt2 Query : use flama_phc
20241227@143955.8257 gt9ju8foqdan22juo6pm7d8mt2 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20241227@143955.8290 gt9ju8foqdan22juo6pm7d8mt2 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4180';
20241227@143955.8330 gt9ju8foqdan22juo6pm7d8mt2 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4180';
20241227@143955.8398 gt9ju8foqdan22juo6pm7d8mt2 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4180';
20241227@143955.8433 gt9ju8foqdan22juo6pm7d8mt2 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4180';
20241227@143955.8909 jim57j6dchcj2aukb9bt3s0rqa Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20241227@143955.8920 jim57j6dchcj2aukb9bt3s0rqa Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20241227@143955.9025 jim57j6dchcj2aukb9bt3s0rqa Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4181';
20241227@143955.9091 jim57j6dchcj2aukb9bt3s0rqa Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4181';
20241227@143955.9153 jim57j6dchcj2aukb9bt3s0rqa Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4181';
20241227@143955.9187 jim57j6dchcj2aukb9bt3s0rqa Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4181';
20241227@143955.9259 jim57j6dchcj2aukb9bt3s0rqa Query : use flama_phc
20241227@143955.9263 jim57j6dchcj2aukb9bt3s0rqa Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20241227@143955.9323 jim57j6dchcj2aukb9bt3s0rqa Query : use flama_phc
20241227@143955.9326 jim57j6dchcj2aukb9bt3s0rqa Query : select no, estab,szadrsdesc from szadrs where u_coddest=4740
20241227@143955.9377 jim57j6dchcj2aukb9bt3s0rqa Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.2330.00.1'
20241227@143955.9522 jim57j6dchcj2aukb9bt3s0rqa Query : use flama_phc
20241227@143955.9525 jim57j6dchcj2aukb9bt3s0rqa Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20241227@143955.9558 jim57j6dchcj2aukb9bt3s0rqa Query : use flama_phc
20241227@143955.9561 jim57j6dchcj2aukb9bt3s0rqa Query : select top 1 1 valor from td where td.ndoc = 39
20241227@143955.9591 jim57j6dchcj2aukb9bt3s0rqa Query : use flama_phc
20241227@143955.9594 jim57j6dchcj2aukb9bt3s0rqa 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')
20241227@143955.9623 jim57j6dchcj2aukb9bt3s0rqa 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
20241227@143955.9658 jim57j6dchcj2aukb9bt3s0rqa Query : use flama_phc
20241227@143955.9661 jim57j6dchcj2aukb9bt3s0rqa Query : select top 1 ~inactivo valor from cl where no = '100810' and estab = 0 order by inactivo desc
20241227@143955.9689 jim57j6dchcj2aukb9bt3s0rqa Query : use flama_phc
20241227@143955.9692 jim57j6dchcj2aukb9bt3s0rqa Query : select top 1 tipodoc,regrd from td where ndoc = 39
20241227@143955.9721 jim57j6dchcj2aukb9bt3s0rqa Query : use flama_phc
20241227@143955.9724 jim57j6dchcj2aukb9bt3s0rqa Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20241227@143955.9763 jim57j6dchcj2aukb9bt3s0rqa Query : use flama_phc
20241227@143955.9766 jim57j6dchcj2aukb9bt3s0rqa Query : select szadrsstamp valor from szadrs where szadrsdesc='100810 - worten-equipamentos para o lar,sa.'
20241227@143955.9810 jim57j6dchcj2aukb9bt3s0rqa Query : use flama_phc
20241227@143955.9813 jim57j6dchcj2aukb9bt3s0rqa Query : select 1 valor from td where ndoc = 39
20241227@143955.9825 jim57j6dchcj2aukb9bt3s0rqa Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20241227@143955.9840 jim57j6dchcj2aukb9bt3s0rqa Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@143955.9857 jim57j6dchcj2aukb9bt3s0rqa Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20241227@143955.9879 jim57j6dchcj2aukb9bt3s0rqa Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@143955.9899 jim57j6dchcj2aukb9bt3s0rqa Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20241227@143955.9926 jim57j6dchcj2aukb9bt3s0rqa Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@143955.9941 jim57j6dchcj2aukb9bt3s0rqa Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20241227@143955.9954 jim57j6dchcj2aukb9bt3s0rqa Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20241227@143956.8000 jim57j6dchcj2aukb9bt3s0rqa Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20241227@143956.2100 jim57j6dchcj2aukb9bt3s0rqa Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@143956.3800 jim57j6dchcj2aukb9bt3s0rqa Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20241227@143956.5300 jim57j6dchcj2aukb9bt3s0rqa Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut676eb08578676ebc3bf3' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20241227@143956.4650 jim57j6dchcj2aukb9bt3s0rqa Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@143956.1335 jim57j6dchcj2aukb9bt3s0rqa Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20241227@143956.1368 jim57j6dchcj2aukb9bt3s0rqa Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20241227@143956.1497 jim57j6dchcj2aukb9bt3s0rqa Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20241227@143956.1588 jim57j6dchcj2aukb9bt3s0rqa Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20241227@143956.1601 jim57j6dchcj2aukb9bt3s0rqa Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20241227@143956.1612 jim57j6dchcj2aukb9bt3s0rqa Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20241227@143956.1625 jim57j6dchcj2aukb9bt3s0rqa Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20241227@143956.1638 jim57j6dchcj2aukb9bt3s0rqa Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut676eb08578676ebc3bf3',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20241227@143956.1864 jim57j6dchcj2aukb9bt3s0rqa Query : select top 1 fno valor from wsftdata order by fno desc
20241227@143956.1894 jim57j6dchcj2aukb9bt3s0rqa Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@143956.1913 jim57j6dchcj2aukb9bt3s0rqa Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20241227@143956.1935 jim57j6dchcj2aukb9bt3s0rqa Query : select 'normal' from dummy
20241227@143956.1951 jim57j6dchcj2aukb9bt3s0rqa Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut676eb08578676ebc3bf3',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',2628,100810,0,'2024-12-27',39,'euro',0,0,2024 ,?,?)
20241227@143956.2230 jim57j6dchcj2aukb9bt3s0rqa Query : use flama_phc
20241227@143956.2233 jim57j6dchcj2aukb9bt3s0rqa Query : select st.usalote valor from st where st.ref = '324.2330.00.1'
20241227@143956.2255 jim57j6dchcj2aukb9bt3s0rqa Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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.2330.00.1'
20241227@143956.2386 jim57j6dchcj2aukb9bt3s0rqa Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@143956.2404 jim57j6dchcj2aukb9bt3s0rqa Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241227@143956.2430 jim57j6dchcj2aukb9bt3s0rqa Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@143956.2445 jim57j6dchcj2aukb9bt3s0rqa Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241227@143956.2454 jim57j6dchcj2aukb9bt3s0rqa Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241227@143956.2465 jim57j6dchcj2aukb9bt3s0rqa Query : select sestamp valor from se where ref ='324.2330.00.1' and lote = 'r2400469200a'
20241227@143956.2477 jim57j6dchcj2aukb9bt3s0rqa Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@143956.2492 jim57j6dchcj2aukb9bt3s0rqa Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241227@143956.2507 jim57j6dchcj2aukb9bt3s0rqa Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut676eb64352676ebc3c3c','aut676eb08578676ebc3bf3' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241227@143956.2512 jim57j6dchcj2aukb9bt3s0rqa Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@143956.2526 jim57j6dchcj2aukb9bt3s0rqa Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241227@143956.2554 jim57j6dchcj2aukb9bt3s0rqa Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem) values ('aut676eb64352676ebc3c3c',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',10.000 ,'aut676eb08578676ebc3bf3' ,0,0 ,2,23.00,10000,?,?,?,?)
20241227@143956.2801 jim57j6dchcj2aukb9bt3s0rqa Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut676eb08578676ebc3bf3','2408844','wait',39,'adm09112754980.682000002')
20241227@143956.2874 jim57j6dchcj2aukb9bt3s0rqa Query : use flama_phc
20241227@143956.2877 jim57j6dchcj2aukb9bt3s0rqa Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20241227@143956.2909 jim57j6dchcj2aukb9bt3s0rqa Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4181';
20241227@143956.2952 jim57j6dchcj2aukb9bt3s0rqa Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4181';
20241227@143956.3008 jim57j6dchcj2aukb9bt3s0rqa Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4181';
20241227@143956.3038 jim57j6dchcj2aukb9bt3s0rqa Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4181';
20241227@143956.3552 a61gt8ap72ip4iq5dve773qq96 Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20241227@143956.3564 a61gt8ap72ip4iq5dve773qq96 Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20241227@143956.3629 a61gt8ap72ip4iq5dve773qq96 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4182';
20241227@143956.3698 a61gt8ap72ip4iq5dve773qq96 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4182';
20241227@143956.3759 a61gt8ap72ip4iq5dve773qq96 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4182';
20241227@143956.3791 a61gt8ap72ip4iq5dve773qq96 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4182';
20241227@143956.3849 a61gt8ap72ip4iq5dve773qq96 Query : use flama_phc
20241227@143956.3852 a61gt8ap72ip4iq5dve773qq96 Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20241227@143956.3915 a61gt8ap72ip4iq5dve773qq96 Query : use flama_phc
20241227@143956.3918 a61gt8ap72ip4iq5dve773qq96 Query : select no, estab,szadrsdesc from szadrs where u_coddest=4740
20241227@143956.3967 a61gt8ap72ip4iq5dve773qq96 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.2330.00.1'
20241227@143956.3988 a61gt8ap72ip4iq5dve773qq96 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.2330.00.1'
20241227@143956.4009 a61gt8ap72ip4iq5dve773qq96 Query : use flama_phc
20241227@143956.4013 a61gt8ap72ip4iq5dve773qq96 Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20241227@143956.4047 a61gt8ap72ip4iq5dve773qq96 Query : use flama_phc
20241227@143956.4050 a61gt8ap72ip4iq5dve773qq96 Query : select top 1 1 valor from td where td.ndoc = 39
20241227@143956.4083 a61gt8ap72ip4iq5dve773qq96 Query : use flama_phc
20241227@143956.4087 a61gt8ap72ip4iq5dve773qq96 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')
20241227@143956.4119 a61gt8ap72ip4iq5dve773qq96 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
20241227@143956.4155 a61gt8ap72ip4iq5dve773qq96 Query : use flama_phc
20241227@143956.4159 a61gt8ap72ip4iq5dve773qq96 Query : select top 1 ~inactivo valor from cl where no = '100810' and estab = 0 order by inactivo desc
20241227@143956.4191 a61gt8ap72ip4iq5dve773qq96 Query : use flama_phc
20241227@143956.4195 a61gt8ap72ip4iq5dve773qq96 Query : select top 1 tipodoc,regrd from td where ndoc = 39
20241227@143956.4227 a61gt8ap72ip4iq5dve773qq96 Query : use flama_phc
20241227@143956.4230 a61gt8ap72ip4iq5dve773qq96 Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20241227@143956.4268 a61gt8ap72ip4iq5dve773qq96 Query : use flama_phc
20241227@143956.4271 a61gt8ap72ip4iq5dve773qq96 Query : select szadrsstamp valor from szadrs where szadrsdesc='100810 - worten-equipamentos para o lar,sa.'
20241227@143956.4317 a61gt8ap72ip4iq5dve773qq96 Query : use flama_phc
20241227@143956.4320 a61gt8ap72ip4iq5dve773qq96 Query : select 1 valor from td where ndoc = 39
20241227@143956.4332 a61gt8ap72ip4iq5dve773qq96 Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20241227@143956.4346 a61gt8ap72ip4iq5dve773qq96 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@143956.4363 a61gt8ap72ip4iq5dve773qq96 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20241227@143956.4381 a61gt8ap72ip4iq5dve773qq96 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@143956.4396 a61gt8ap72ip4iq5dve773qq96 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20241227@143956.4431 a61gt8ap72ip4iq5dve773qq96 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@143956.4450 a61gt8ap72ip4iq5dve773qq96 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20241227@143956.4465 a61gt8ap72ip4iq5dve773qq96 Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20241227@143956.4518 a61gt8ap72ip4iq5dve773qq96 Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20241227@143956.4532 a61gt8ap72ip4iq5dve773qq96 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@143956.4547 a61gt8ap72ip4iq5dve773qq96 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20241227@143956.4562 a61gt8ap72ip4iq5dve773qq96 Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut676eb43810676ebc3c6d' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20241227@143956.4726 a61gt8ap72ip4iq5dve773qq96 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@143956.4744 a61gt8ap72ip4iq5dve773qq96 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20241227@143956.4779 a61gt8ap72ip4iq5dve773qq96 Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20241227@143956.4790 a61gt8ap72ip4iq5dve773qq96 Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20241227@143956.4803 a61gt8ap72ip4iq5dve773qq96 Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20241227@143956.4814 a61gt8ap72ip4iq5dve773qq96 Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20241227@143956.4826 a61gt8ap72ip4iq5dve773qq96 Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20241227@143956.4838 a61gt8ap72ip4iq5dve773qq96 Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20241227@143956.4850 a61gt8ap72ip4iq5dve773qq96 Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut676eb43810676ebc3c6d',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20241227@143956.5076 a61gt8ap72ip4iq5dve773qq96 Query : select top 1 fno valor from wsftdata order by fno desc
20241227@143956.5106 a61gt8ap72ip4iq5dve773qq96 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@143956.5121 a61gt8ap72ip4iq5dve773qq96 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20241227@143956.5144 a61gt8ap72ip4iq5dve773qq96 Query : select 'normal' from dummy
20241227@143956.5159 a61gt8ap72ip4iq5dve773qq96 Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut676eb43810676ebc3c6d',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',2629,100810,0,'2024-12-27',39,'euro',0,0,2024 ,?,?)
20241227@143956.5435 a61gt8ap72ip4iq5dve773qq96 Query : use flama_phc
20241227@143956.5438 a61gt8ap72ip4iq5dve773qq96 Query : select st.usalote valor from st where st.ref = '324.2330.00.1'
20241227@143956.5460 a61gt8ap72ip4iq5dve773qq96 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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.2330.00.1'
20241227@143956.5476 a61gt8ap72ip4iq5dve773qq96 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@143956.5491 a61gt8ap72ip4iq5dve773qq96 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241227@143956.5516 a61gt8ap72ip4iq5dve773qq96 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@143956.5530 a61gt8ap72ip4iq5dve773qq96 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241227@143956.5538 a61gt8ap72ip4iq5dve773qq96 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241227@143956.5549 a61gt8ap72ip4iq5dve773qq96 Query : select sestamp valor from se where ref ='324.2330.00.1' and lote = 'r2400469200a'
20241227@143956.5561 a61gt8ap72ip4iq5dve773qq96 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@143956.5575 a61gt8ap72ip4iq5dve773qq96 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241227@143956.5585 a61gt8ap72ip4iq5dve773qq96 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut676eb59098676ebc3c87','aut676eb43810676ebc3c6d' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241227@143956.5590 a61gt8ap72ip4iq5dve773qq96 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@143956.5604 a61gt8ap72ip4iq5dve773qq96 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241227@143956.5630 a61gt8ap72ip4iq5dve773qq96 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem) values ('aut676eb59098676ebc3c87',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',14.000 ,'aut676eb43810676ebc3c6d' ,0,0 ,2,23.00,10000,?,?,?,?)
20241227@143956.5870 a61gt8ap72ip4iq5dve773qq96 Query : use flama_phc
20241227@143956.5874 a61gt8ap72ip4iq5dve773qq96 Query : select st.usalote valor from st where st.ref = '324.2330.00.1'
20241227@143956.5893 a61gt8ap72ip4iq5dve773qq96 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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.2330.00.1'
20241227@143956.5907 a61gt8ap72ip4iq5dve773qq96 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@143956.5922 a61gt8ap72ip4iq5dve773qq96 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241227@143956.5947 a61gt8ap72ip4iq5dve773qq96 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@143956.5961 a61gt8ap72ip4iq5dve773qq96 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241227@143956.5969 a61gt8ap72ip4iq5dve773qq96 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241227@143956.5981 a61gt8ap72ip4iq5dve773qq96 Query : select sestamp valor from se where ref ='324.2330.00.1' and lote = 'r2400469200a'
20241227@143956.5993 a61gt8ap72ip4iq5dve773qq96 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@143956.6009 a61gt8ap72ip4iq5dve773qq96 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241227@143956.6020 a61gt8ap72ip4iq5dve773qq96 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut676eb85374676ebc3c92','aut676eb43810676ebc3c6d' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241227@143956.6026 a61gt8ap72ip4iq5dve773qq96 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@143956.6043 a61gt8ap72ip4iq5dve773qq96 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241227@143956.6070 a61gt8ap72ip4iq5dve773qq96 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem) values ('aut676eb85374676ebc3c92',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',1.000 ,'aut676eb43810676ebc3c6d' ,0,0 ,2,23.00,20000,?,?,?,?)
20241227@143956.6307 a61gt8ap72ip4iq5dve773qq96 Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut676eb43810676ebc3c6d','2408845','wait',39,'adm09112754980.682000002')
20241227@143956.7568 a61gt8ap72ip4iq5dve773qq96 Query : use flama_phc
20241227@143956.7571 a61gt8ap72ip4iq5dve773qq96 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20241227@143956.7600 a61gt8ap72ip4iq5dve773qq96 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4182';
20241227@143956.7644 a61gt8ap72ip4iq5dve773qq96 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4182';
20241227@143956.7698 a61gt8ap72ip4iq5dve773qq96 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4182';
20241227@143956.7730 a61gt8ap72ip4iq5dve773qq96 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4182';
20241227@151909.3349 bnk9sooaau4bb9gi9tdtvhhuau Query : use flama_phc
20241227@151909.3353 bnk9sooaau4bb9gi9tdtvhhuau Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20241227@151909.3446 bnk9sooaau4bb9gi9tdtvhhuau Query : use flama_phc
20241227@151909.3449 bnk9sooaau4bb9gi9tdtvhhuau Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20241227@153609.4422 58stl2v1i86pnfi246ifvigg5i Query : use flama_phc
20241227@153609.4426 58stl2v1i86pnfi246ifvigg5i Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20241227@153609.4569 58stl2v1i86pnfi246ifvigg5i Query : use flama_phc
20241227@153609.4573 58stl2v1i86pnfi246ifvigg5i Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20241227@161909.7985 batr6bb5tc5dsl7l0lo6fnv1uv Query : use flama_phc
20241227@161909.8031 batr6bb5tc5dsl7l0lo6fnv1uv Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20241227@161909.8131 batr6bb5tc5dsl7l0lo6fnv1uv Query : use flama_phc
20241227@161909.8136 batr6bb5tc5dsl7l0lo6fnv1uv Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20241227@162540.1687 4ukdjropmo2tapv5e9gvhd55ji Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20241227@162540.1701 4ukdjropmo2tapv5e9gvhd55ji Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20241227@162540.1775 4ukdjropmo2tapv5e9gvhd55ji Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4183';
20241227@162540.1847 4ukdjropmo2tapv5e9gvhd55ji Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4183';
20241227@162540.1920 4ukdjropmo2tapv5e9gvhd55ji Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4183';
20241227@162540.1961 4ukdjropmo2tapv5e9gvhd55ji Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4183';
20241227@162540.3854 t7413ukftvjpfeuanqs9prh0aj Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20241227@162540.3865 t7413ukftvjpfeuanqs9prh0aj Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20241227@162540.3972 t7413ukftvjpfeuanqs9prh0aj Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4184';
20241227@162540.4069 t7413ukftvjpfeuanqs9prh0aj Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4184';
20241227@162540.4137 t7413ukftvjpfeuanqs9prh0aj Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4184';
20241227@162540.4188 t7413ukftvjpfeuanqs9prh0aj Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4184';
20241227@162540.4250 t7413ukftvjpfeuanqs9prh0aj Query : use flama_phc
20241227@162540.4254 t7413ukftvjpfeuanqs9prh0aj Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20241227@162540.4323 t7413ukftvjpfeuanqs9prh0aj Query : select no, estab,szadrsdesc from szadrs where u_coddest=2
20241227@162540.4431 t7413ukftvjpfeuanqs9prh0aj Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.1816.00.1'
20241227@162540.4559 t7413ukftvjpfeuanqs9prh0aj Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =001 and bo.boano =2024 and bo.obrano = 0003154 and bi.ref ='324.1816.00.1' and bi.lordem =10000
20241227@162540.4930 t7413ukftvjpfeuanqs9prh0aj 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 = 'az24122757740,058000001 ' 
20241227@162540.5264 t7413ukftvjpfeuanqs9prh0aj Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.1824.00.1'
20241227@162540.5381 t7413ukftvjpfeuanqs9prh0aj Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =001 and bo.boano =2024 and bo.obrano = 0003154 and bi.ref ='324.1824.00.1' and bi.lordem =20000
20241227@162540.5711 t7413ukftvjpfeuanqs9prh0aj 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 = 'az24122757759,309000002 ' 
20241227@162540.6042 t7413ukftvjpfeuanqs9prh0aj Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.2357.00.1'
20241227@162540.6162 t7413ukftvjpfeuanqs9prh0aj Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =001 and bo.boano =2024 and bo.obrano = 0003154 and bi.ref ='324.2357.00.1' and bi.lordem =30000
20241227@162540.6527 t7413ukftvjpfeuanqs9prh0aj 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 = 'az24122757768,059000003 ' 
20241227@162540.6862 t7413ukftvjpfeuanqs9prh0aj Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.2366.00.1'
20241227@162540.6976 t7413ukftvjpfeuanqs9prh0aj Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =001 and bo.boano =2024 and bo.obrano = 0003154 and bi.ref ='324.2366.00.1' and bi.lordem =40000
20241227@162540.7361 t7413ukftvjpfeuanqs9prh0aj 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 = 'az24122757778,380000004 ' 
20241227@162540.7787 t7413ukftvjpfeuanqs9prh0aj Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.2366.00.1'
20241227@162540.8507 t7413ukftvjpfeuanqs9prh0aj Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =001 and bo.boano =2024 and bo.obrano = 0003154 and bi.ref ='324.2366.00.1' and bi.lordem =40000
20241227@162540.8536 t7413ukftvjpfeuanqs9prh0aj 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 = 'az24122757778,380000004 ' 
20241227@162540.8562 t7413ukftvjpfeuanqs9prh0aj Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.1643.00.1'
20241227@162540.8684 t7413ukftvjpfeuanqs9prh0aj Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =001 and bo.boano =2024 and bo.obrano = 0003154 and bi.ref ='324.1643.00.1' and bi.lordem =50000
20241227@162540.9042 t7413ukftvjpfeuanqs9prh0aj 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 = 'az24122757801,037000005 ' 
20241227@162540.9404 t7413ukftvjpfeuanqs9prh0aj Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.1685.00.1'
20241227@162541.1195 t7413ukftvjpfeuanqs9prh0aj Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =001 and bo.boano =2024 and bo.obrano = 0003154 and bi.ref ='324.1685.00.1' and bi.lordem =60000
20241227@162541.1576 t7413ukftvjpfeuanqs9prh0aj 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 = 'az24122757860,009000006 ' 
20241227@162541.1942 t7413ukftvjpfeuanqs9prh0aj Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.1685.00.1'
20241227@162541.2352 t7413ukftvjpfeuanqs9prh0aj Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =001 and bo.boano =2024 and bo.obrano = 0003154 and bi.ref ='324.1685.00.1' and bi.lordem =60000
20241227@162541.2405 t7413ukftvjpfeuanqs9prh0aj 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 = 'az24122757860,009000006 ' 
20241227@162541.2877 t7413ukftvjpfeuanqs9prh0aj Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.1608.00.1'
20241227@162541.2998 t7413ukftvjpfeuanqs9prh0aj Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =001 and bo.boano =2024 and bo.obrano = 0003154 and bi.ref ='324.1608.00.1' and bi.lordem =70000
20241227@162541.3333 t7413ukftvjpfeuanqs9prh0aj 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 = 'az24122757872,645000007 ' 
20241227@162541.3675 t7413ukftvjpfeuanqs9prh0aj Query : use flama_phc
20241227@162541.3680 t7413ukftvjpfeuanqs9prh0aj Query : select top 1 1 valor from ts where ts.ndos = 5
20241227@162541.3768 t7413ukftvjpfeuanqs9prh0aj Query : use flama_phc
20241227@162541.3772 t7413ukftvjpfeuanqs9prh0aj 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')
20241227@162541.3812 t7413ukftvjpfeuanqs9prh0aj 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 =5
20241227@162541.3961 t7413ukftvjpfeuanqs9prh0aj Query : use flama_phc
20241227@162541.3965 t7413ukftvjpfeuanqs9prh0aj Query : select top 1 ~inactivo valor from fl where no = '100500' and estab = 0 order by inactivo desc
20241227@162541.4083 t7413ukftvjpfeuanqs9prh0aj Query : use flama_phc
20241227@162541.4087 t7413ukftvjpfeuanqs9prh0aj Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20241227@162541.4133 t7413ukftvjpfeuanqs9prh0aj Query : use flama_phc
20241227@162541.4136 t7413ukftvjpfeuanqs9prh0aj Query : select szadrsstamp valor from szadrs where szadrsdesc='n/instalaÇÕes sede'
20241227@162541.4207 t7413ukftvjpfeuanqs9prh0aj Query : use flama_phc
20241227@162541.4210 t7413ukftvjpfeuanqs9prh0aj Query : select 1 valor from ts where ndos = 5
20241227@162541.4279 t7413ukftvjpfeuanqs9prh0aj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@162541.4302 t7413ukftvjpfeuanqs9prh0aj Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bo' and documentnumber = 5
20241227@162541.4321 t7413ukftvjpfeuanqs9prh0aj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@162541.4339 t7413ukftvjpfeuanqs9prh0aj Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bo2' and documentnumber = 5
20241227@162541.4350 t7413ukftvjpfeuanqs9prh0aj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@162541.4366 t7413ukftvjpfeuanqs9prh0aj Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bo3' and documentnumber = 5
20241227@162541.4376 t7413ukftvjpfeuanqs9prh0aj 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 = 5
20241227@162541.4880 t7413ukftvjpfeuanqs9prh0aj Query : select top 1 bo.obrano valor from bo bo where bo.ndos = 5 and boano=2024 order by obrano desc
20241227@162541.5353 t7413ukftvjpfeuanqs9prh0aj Query : select top 1 bo.obrano valor from wsbodata bo where bo.ndos = 5 and boano=2024 order by obrano desc
20241227@162541.6363 t7413ukftvjpfeuanqs9prh0aj Query : use flama_phc
20241227@162541.6370 t7413ukftvjpfeuanqs9prh0aj Query : select top 1 no,estab,nome, morada, local,codpost,ncont,pncont,pais,inactivo,motiseimp,codmotiseimp from fl where no='100500' and estab=0
20241227@162541.6485 t7413ukftvjpfeuanqs9prh0aj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@162541.6508 t7413ukftvjpfeuanqs9prh0aj Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bo3' and documentnumber = 5
20241227@162541.6523 t7413ukftvjpfeuanqs9prh0aj Query : insert into wsbo3data (bo3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut676ed17382676ed5059b',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut')
20241227@162541.6674 t7413ukftvjpfeuanqs9prh0aj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@162541.6697 t7413ukftvjpfeuanqs9prh0aj Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bo2' and documentnumber = 5
20241227@162541.6713 t7413ukftvjpfeuanqs9prh0aj Query : insert into wsbo2data (bo2stamp, tiposaft, idserie,cambio,cambiofixo,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,xpddata,xpdhora,carga,descar) values ('aut676ed17382676ed5059b','ga','bo',0 ,0,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut','20241227','16:55',?,?)
20241227@162541.8367 t7413ukftvjpfeuanqs9prh0aj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@162541.8388 t7413ukftvjpfeuanqs9prh0aj Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bo' and documentnumber = 5
20241227@162541.8502 t7413ukftvjpfeuanqs9prh0aj Query : insert into wsbodata (bostamp, nmdos, dataobra, ndos, obrano, no, estab, nome, ncont, morada, local, codpost, moeda, boano, memissao,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,maquina ) values ('aut676ed17382676ed5059b','trf entre armazéns a','2024-12-27',5,617,?,?,?,?,?,?,?,?,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',?)
20241227@162541.9633 t7413ukftvjpfeuanqs9prh0aj Query : use flama_phc
20241227@162541.9637 t7413ukftvjpfeuanqs9prh0aj Query : select st.usalote valor from st where st.ref = '324.1816.00.1'
20241227@162541.9654 t7413ukftvjpfeuanqs9prh0aj Query : use flama_phc
20241227@162541.9658 t7413ukftvjpfeuanqs9prh0aj Query : select st.stns valor from st where st.ref = '324.1816.00.1'
20241227@162541.9760 t7413ukftvjpfeuanqs9prh0aj Query : use flama_phc
20241227@162541.9763 t7413ukftvjpfeuanqs9prh0aj Query : select isnull(sum(stock) ,0)stock ,isnull(sum(qttrec),0) qttrec ,0 qttcat ,isnull(sum(rescli),0) rescli ,isnull(sum(resfor),0) resfor from sa where sa.ref = '324.1816.00.1' and sa.armazem = 133 
20241227@162541.9836 t7413ukftvjpfeuanqs9prh0aj Query : use flama_phc
20241227@162541.9840 t7413ukftvjpfeuanqs9prh0aj Query : select st.stns valor from st where st.ref = '324.1816.00.1'
20241227@162541.9865 t7413ukftvjpfeuanqs9prh0aj Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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.1816.00.1'
20241227@162542.0000 t7413ukftvjpfeuanqs9prh0aj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@162542.1700 t7413ukftvjpfeuanqs9prh0aj Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 5
20241227@162542.3200 t7413ukftvjpfeuanqs9prh0aj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@162542.4700 t7413ukftvjpfeuanqs9prh0aj Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 5
20241227@162542.5800 t7413ukftvjpfeuanqs9prh0aj Query : select sestamp valor from se where ref ='324.1816.00.1' and lote = 'r2400284200a'
20241227@162542.7400 t7413ukftvjpfeuanqs9prh0aj Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241227@162542.8600 t7413ukftvjpfeuanqs9prh0aj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@162542.1020 t7413ukftvjpfeuanqs9prh0aj Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 5
20241227@162542.1150 t7413ukftvjpfeuanqs9prh0aj Query : insert into wsbi2data (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut676ed91415676ed50602','aut676ed17382676ed5059b',bo.morada, bo.local,bo.codpost ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut' from wsbodata bo where bo.bostamp = 'aut676ed17382676ed5059b'
20241227@162542.5400 t7413ukftvjpfeuanqs9prh0aj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@162542.5630 t7413ukftvjpfeuanqs9prh0aj Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 5
20241227@162542.5830 t7413ukftvjpfeuanqs9prh0aj Query : insert into wsbidata (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,ar2mazem,obistamp ,stipo) select 'aut676ed91415676ed50602',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut',bo.obrano, 20.000, 20.000*.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 ,52.5,52.5*200.48,52.5,52.5*200.48 ,0,0,'un ','' ,bo.marcada,1 ,52.5*20.000,52.5*20.000*200.48 ,26.293000,26.293000*200.48 ,26.293000,26.293000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,52.5,52.5*200.48,52.5*20.000,52.5*20.000*200.48,'az24122757740,058000001 ',52.5,52.5*20.000,52.5,52.5*20.000,?,?,?,?,4 from wsbodata bo where bo.bostamp = 'aut676ed17382676ed5059b'
20241227@162542.1969 t7413ukftvjpfeuanqs9prh0aj Query : use flama_phc
20241227@162542.1974 t7413ukftvjpfeuanqs9prh0aj Query : select st.usalote valor from st where st.ref = '324.1824.00.1'
20241227@162542.1992 t7413ukftvjpfeuanqs9prh0aj Query : use flama_phc
20241227@162542.1995 t7413ukftvjpfeuanqs9prh0aj Query : select st.stns valor from st where st.ref = '324.1824.00.1'
20241227@162542.2016 t7413ukftvjpfeuanqs9prh0aj Query : use flama_phc
20241227@162542.2019 t7413ukftvjpfeuanqs9prh0aj Query : select isnull(sum(stock) ,0)stock ,isnull(sum(qttrec),0) qttrec ,0 qttcat ,isnull(sum(rescli),0) rescli ,isnull(sum(resfor),0) resfor from sa where sa.ref = '324.1824.00.1' and sa.armazem = 133 
20241227@162542.2093 t7413ukftvjpfeuanqs9prh0aj Query : use flama_phc
20241227@162542.2097 t7413ukftvjpfeuanqs9prh0aj Query : select st.stns valor from st where st.ref = '324.1824.00.1'
20241227@162542.2128 t7413ukftvjpfeuanqs9prh0aj Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.1824.00.1'
20241227@162542.2297 t7413ukftvjpfeuanqs9prh0aj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@162542.2323 t7413ukftvjpfeuanqs9prh0aj Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 5
20241227@162542.2339 t7413ukftvjpfeuanqs9prh0aj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@162542.2357 t7413ukftvjpfeuanqs9prh0aj Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 5
20241227@162542.2368 t7413ukftvjpfeuanqs9prh0aj Query : select sestamp valor from se where ref ='324.1824.00.1' and lote = 'r2400217200a'
20241227@162542.2385 t7413ukftvjpfeuanqs9prh0aj Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241227@162542.2401 t7413ukftvjpfeuanqs9prh0aj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@162542.2421 t7413ukftvjpfeuanqs9prh0aj Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 5
20241227@162542.2437 t7413ukftvjpfeuanqs9prh0aj Query : insert into wsbi2data (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut676ed60431676ed5063a','aut676ed17382676ed5059b',bo.morada, bo.local,bo.codpost ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut' from wsbodata bo where bo.bostamp = 'aut676ed17382676ed5059b'
20241227@162542.2600 t7413ukftvjpfeuanqs9prh0aj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@162542.2624 t7413ukftvjpfeuanqs9prh0aj Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 5
20241227@162542.2643 t7413ukftvjpfeuanqs9prh0aj Query : insert into wsbidata (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,ar2mazem,obistamp ,stipo) select 'aut676ed60431676ed5063a',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut',bo.obrano, 20.000, 20.000*.0000000 ,bo.no, bo.estab,bo.nmdos ,bo.ndos, bo.obranome,bo.fechada, bo.dataobra ,bo.dataobra ,bo.dataopen,bo.datafecho,bo.local, bo.morada ,bo.codpost, bo.nome,bo.bostamp,20000 ,54.8,54.8*200.48,54.8,54.8*200.48 ,0,0,'un',' ' ,bo.marcada,1 ,54.8*20.000,54.8*20.000*200.48 ,27.295000,27.295000*200.48 ,27.295000,27.295000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,54.8,54.8*200.48,54.8*20.000,54.8*20.000*200.48,'az24122757759,309000002 ',54.8,54.8*20.000,54.8,54.8*20.000,?,?,?,?,4 from wsbodata bo where bo.bostamp = 'aut676ed17382676ed5059b'
20241227@162542.2989 t7413ukftvjpfeuanqs9prh0aj Query : use flama_phc
20241227@162542.2994 t7413ukftvjpfeuanqs9prh0aj Query : select st.usalote valor from st where st.ref = '324.2357.00.1'
20241227@162542.3013 t7413ukftvjpfeuanqs9prh0aj Query : use flama_phc
20241227@162542.3017 t7413ukftvjpfeuanqs9prh0aj Query : select st.stns valor from st where st.ref = '324.2357.00.1'
20241227@162542.3039 t7413ukftvjpfeuanqs9prh0aj Query : use flama_phc
20241227@162542.3043 t7413ukftvjpfeuanqs9prh0aj Query : select isnull(sum(stock) ,0)stock ,isnull(sum(qttrec),0) qttrec ,0 qttcat ,isnull(sum(rescli),0) rescli ,isnull(sum(resfor),0) resfor from sa where sa.ref = '324.2357.00.1' and sa.armazem = 133 
20241227@162542.3129 t7413ukftvjpfeuanqs9prh0aj Query : use flama_phc
20241227@162542.3133 t7413ukftvjpfeuanqs9prh0aj Query : select st.stns valor from st where st.ref = '324.2357.00.1'
20241227@162542.3159 t7413ukftvjpfeuanqs9prh0aj Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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.2357.00.1'
20241227@162542.3318 t7413ukftvjpfeuanqs9prh0aj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@162542.3339 t7413ukftvjpfeuanqs9prh0aj Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 5
20241227@162542.3355 t7413ukftvjpfeuanqs9prh0aj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@162542.3374 t7413ukftvjpfeuanqs9prh0aj Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 5
20241227@162542.3384 t7413ukftvjpfeuanqs9prh0aj Query : select sestamp valor from se where ref ='324.2357.00.1' and lote = 'r2300547200a'
20241227@162542.3400 t7413ukftvjpfeuanqs9prh0aj Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241227@162542.3417 t7413ukftvjpfeuanqs9prh0aj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@162542.3439 t7413ukftvjpfeuanqs9prh0aj Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 5
20241227@162542.3458 t7413ukftvjpfeuanqs9prh0aj Query : insert into wsbi2data (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut676ed45779676ed50653','aut676ed17382676ed5059b',bo.morada, bo.local,bo.codpost ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut' from wsbodata bo where bo.bostamp = 'aut676ed17382676ed5059b'
20241227@162542.3665 t7413ukftvjpfeuanqs9prh0aj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@162542.4382 t7413ukftvjpfeuanqs9prh0aj Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 5
20241227@162542.4404 t7413ukftvjpfeuanqs9prh0aj Query : insert into wsbidata (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,ar2mazem,obistamp ,stipo) select 'aut676ed45779676ed50653',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut',bo.obrano, 10.000, 10.000*.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,30000 ,55.7,55.7*200.48,55.7,55.7*200.48 ,0,0,'un',' ' ,bo.marcada,1 ,55.7*10.000,55.7*10.000*200.48 ,19.179000,19.179000*200.48 ,19.179000,19.179000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,55.7,55.7*200.48,55.7*10.000,55.7*10.000*200.48,'az24122757768,059000003 ',55.7,55.7*10.000,55.7,55.7*10.000,?,?,?,?,4 from wsbodata bo where bo.bostamp = 'aut676ed17382676ed5059b'
20241227@162542.5243 t7413ukftvjpfeuanqs9prh0aj Query : use flama_phc
20241227@162542.5898 t7413ukftvjpfeuanqs9prh0aj Query : select st.usalote valor from st where st.ref = '324.2366.00.1'
20241227@162542.5919 t7413ukftvjpfeuanqs9prh0aj Query : use flama_phc
20241227@162542.5922 t7413ukftvjpfeuanqs9prh0aj Query : select st.stns valor from st where st.ref = '324.2366.00.1'
20241227@162542.5939 t7413ukftvjpfeuanqs9prh0aj Query : use flama_phc
20241227@162542.5942 t7413ukftvjpfeuanqs9prh0aj Query : select isnull(sum(stock) ,0)stock ,isnull(sum(qttrec),0) qttrec ,0 qttcat ,isnull(sum(rescli),0) rescli ,isnull(sum(resfor),0) resfor from sa where sa.ref = '324.2366.00.1' and sa.armazem = 133 
20241227@162542.6017 t7413ukftvjpfeuanqs9prh0aj Query : use flama_phc
20241227@162542.6020 t7413ukftvjpfeuanqs9prh0aj Query : select st.stns valor from st where st.ref = '324.2366.00.1'
20241227@162542.6042 t7413ukftvjpfeuanqs9prh0aj Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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.2366.00.1'
20241227@162542.6182 t7413ukftvjpfeuanqs9prh0aj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@162542.6200 t7413ukftvjpfeuanqs9prh0aj Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 5
20241227@162542.6213 t7413ukftvjpfeuanqs9prh0aj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@162542.6230 t7413ukftvjpfeuanqs9prh0aj Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 5
20241227@162542.6241 t7413ukftvjpfeuanqs9prh0aj Query : select sestamp valor from se where ref ='324.2366.00.1' and lote = 'r2400498100a'
20241227@162542.6257 t7413ukftvjpfeuanqs9prh0aj Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241227@162542.6271 t7413ukftvjpfeuanqs9prh0aj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@162542.6287 t7413ukftvjpfeuanqs9prh0aj Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 5
20241227@162542.6301 t7413ukftvjpfeuanqs9prh0aj Query : insert into wsbi2data (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut676ed52853676ed50699','aut676ed17382676ed5059b',bo.morada, bo.local,bo.codpost ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut' from wsbodata bo where bo.bostamp = 'aut676ed17382676ed5059b'
20241227@162542.6474 t7413ukftvjpfeuanqs9prh0aj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@162542.6493 t7413ukftvjpfeuanqs9prh0aj Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 5
20241227@162542.6514 t7413ukftvjpfeuanqs9prh0aj Query : insert into wsbidata (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,ar2mazem,obistamp ,stipo) select 'aut676ed52853676ed50699',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut',bo.obrano, 8.000, 8.000*.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,40000 ,70.4,70.4*200.48,70.4,70.4*200.48 ,0,0,'un',' ' ,bo.marcada,1 ,70.4*8.000,70.4*8.000*200.48 ,29.441000,29.441000*200.48 ,29.441000,29.441000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,70.4,70.4*200.48,70.4*8.000,70.4*8.000*200.48,'az24122757778,380000004 ',70.4,70.4*8.000,70.4,70.4*8.000,?,?,?,?,4 from wsbodata bo where bo.bostamp = 'aut676ed17382676ed5059b'
20241227@162542.6808 t7413ukftvjpfeuanqs9prh0aj Query : use flama_phc
20241227@162542.6814 t7413ukftvjpfeuanqs9prh0aj Query : select st.usalote valor from st where st.ref = '324.2366.00.1'
20241227@162542.6829 t7413ukftvjpfeuanqs9prh0aj Query : use flama_phc
20241227@162542.6832 t7413ukftvjpfeuanqs9prh0aj Query : select st.stns valor from st where st.ref = '324.2366.00.1'
20241227@162542.6848 t7413ukftvjpfeuanqs9prh0aj Query : use flama_phc
20241227@162542.6851 t7413ukftvjpfeuanqs9prh0aj Query : select isnull(sum(stock) ,0)stock ,isnull(sum(qttrec),0) qttrec ,0 qttcat ,isnull(sum(rescli),0) rescli ,isnull(sum(resfor),0) resfor from sa where sa.ref = '324.2366.00.1' and sa.armazem = 133 
20241227@162542.6875 t7413ukftvjpfeuanqs9prh0aj Query : use flama_phc
20241227@162542.6878 t7413ukftvjpfeuanqs9prh0aj Query : select st.stns valor from st where st.ref = '324.2366.00.1'
20241227@162542.6906 t7413ukftvjpfeuanqs9prh0aj Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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.2366.00.1'
20241227@162542.6923 t7413ukftvjpfeuanqs9prh0aj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@162542.6945 t7413ukftvjpfeuanqs9prh0aj Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 5
20241227@162542.6960 t7413ukftvjpfeuanqs9prh0aj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@162542.6980 t7413ukftvjpfeuanqs9prh0aj Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 5
20241227@162542.6994 t7413ukftvjpfeuanqs9prh0aj Query : select sestamp valor from se where ref ='324.2366.00.1' and lote = 'r2400498100a'
20241227@162542.7007 t7413ukftvjpfeuanqs9prh0aj Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241227@162542.7020 t7413ukftvjpfeuanqs9prh0aj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@162542.7035 t7413ukftvjpfeuanqs9prh0aj Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 5
20241227@162542.7048 t7413ukftvjpfeuanqs9prh0aj Query : insert into wsbi2data (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut676ed00661676ed506ab','aut676ed17382676ed5059b',bo.morada, bo.local,bo.codpost ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut' from wsbodata bo where bo.bostamp = 'aut676ed17382676ed5059b'
20241227@162542.7200 t7413ukftvjpfeuanqs9prh0aj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@162542.7949 t7413ukftvjpfeuanqs9prh0aj Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 5
20241227@162542.7976 t7413ukftvjpfeuanqs9prh0aj Query : insert into wsbidata (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,ar2mazem,obistamp ,stipo) select 'aut676ed00661676ed506ab',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut',bo.obrano, 2.000, 2.000*.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,50000 ,70.4,70.4*200.48,70.4,70.4*200.48 ,0,0,'un',' ' ,bo.marcada,1 ,70.4*2.000,70.4*2.000*200.48 ,29.441000,29.441000*200.48 ,29.441000,29.441000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,70.4,70.4*200.48,70.4*2.000,70.4*2.000*200.48,'az24122757778,380000004 ',70.4,70.4*2.000,70.4,70.4*2.000,?,?,?,?,4 from wsbodata bo where bo.bostamp = 'aut676ed17382676ed5059b'
20241227@162542.8286 t7413ukftvjpfeuanqs9prh0aj Query : use flama_phc
20241227@162542.8292 t7413ukftvjpfeuanqs9prh0aj Query : select st.usalote valor from st where st.ref = '324.1643.00.1'
20241227@162542.8313 t7413ukftvjpfeuanqs9prh0aj Query : use flama_phc
20241227@162542.8316 t7413ukftvjpfeuanqs9prh0aj Query : select st.stns valor from st where st.ref = '324.1643.00.1'
20241227@162542.8333 t7413ukftvjpfeuanqs9prh0aj Query : use flama_phc
20241227@162542.8336 t7413ukftvjpfeuanqs9prh0aj Query : select isnull(sum(stock) ,0)stock ,isnull(sum(qttrec),0) qttrec ,0 qttcat ,isnull(sum(rescli),0) rescli ,isnull(sum(resfor),0) resfor from sa where sa.ref = '324.1643.00.1' and sa.armazem = 133 
20241227@162542.8424 t7413ukftvjpfeuanqs9prh0aj Query : use flama_phc
20241227@162542.8427 t7413ukftvjpfeuanqs9prh0aj Query : select st.stns valor from st where st.ref = '324.1643.00.1'
20241227@162542.8449 t7413ukftvjpfeuanqs9prh0aj Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.1643.00.1'
20241227@162542.8584 t7413ukftvjpfeuanqs9prh0aj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@162542.8602 t7413ukftvjpfeuanqs9prh0aj Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 5
20241227@162542.8616 t7413ukftvjpfeuanqs9prh0aj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@162542.8632 t7413ukftvjpfeuanqs9prh0aj Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 5
20241227@162542.8641 t7413ukftvjpfeuanqs9prh0aj Query : select sestamp valor from se where ref ='324.1643.00.1' and lote = 'r2101218200a'
20241227@162542.8656 t7413ukftvjpfeuanqs9prh0aj Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241227@162542.8670 t7413ukftvjpfeuanqs9prh0aj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@162542.8687 t7413ukftvjpfeuanqs9prh0aj Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 5
20241227@162542.8703 t7413ukftvjpfeuanqs9prh0aj Query : insert into wsbi2data (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut676ed63521676ed506d3','aut676ed17382676ed5059b',bo.morada, bo.local,bo.codpost ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut' from wsbodata bo where bo.bostamp = 'aut676ed17382676ed5059b'
20241227@162542.8867 t7413ukftvjpfeuanqs9prh0aj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@162542.8890 t7413ukftvjpfeuanqs9prh0aj Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 5
20241227@162542.8910 t7413ukftvjpfeuanqs9prh0aj Query : insert into wsbidata (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,ar2mazem,obistamp ,stipo) select 'aut676ed63521676ed506d3',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut',bo.obrano, 30.000, 30.000*.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,60000 ,96,96*200.48,96,96*200.48 ,0,0,'un ','' ,bo.marcada,1 ,96*30.000,96*30.000*200.48 ,40.138000,40.138000*200.48 ,40.138000,40.138000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,96,96*200.48,96*30.000,96*30.000*200.48,'az24122757801,037000005 ',96,96*30.000,96,96*30.000,?,?,?,?,4 from wsbodata bo where bo.bostamp = 'aut676ed17382676ed5059b'
20241227@162542.9225 t7413ukftvjpfeuanqs9prh0aj Query : use flama_phc
20241227@162542.9229 t7413ukftvjpfeuanqs9prh0aj Query : select st.usalote valor from st where st.ref = '324.1685.00.1'
20241227@162542.9248 t7413ukftvjpfeuanqs9prh0aj Query : use flama_phc
20241227@162542.9252 t7413ukftvjpfeuanqs9prh0aj Query : select st.stns valor from st where st.ref = '324.1685.00.1'
20241227@162542.9271 t7413ukftvjpfeuanqs9prh0aj Query : use flama_phc
20241227@162542.9273 t7413ukftvjpfeuanqs9prh0aj Query : select isnull(sum(stock) ,0)stock ,isnull(sum(qttrec),0) qttrec ,0 qttcat ,isnull(sum(rescli),0) rescli ,isnull(sum(resfor),0) resfor from sa where sa.ref = '324.1685.00.1' and sa.armazem = 133 
20241227@162542.9342 t7413ukftvjpfeuanqs9prh0aj Query : use flama_phc
20241227@162542.9345 t7413ukftvjpfeuanqs9prh0aj Query : select st.stns valor from st where st.ref = '324.1685.00.1'
20241227@162542.9371 t7413ukftvjpfeuanqs9prh0aj Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.1685.00.1'
20241227@162542.9506 t7413ukftvjpfeuanqs9prh0aj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@162542.9524 t7413ukftvjpfeuanqs9prh0aj Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 5
20241227@162542.9539 t7413ukftvjpfeuanqs9prh0aj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@162542.9555 t7413ukftvjpfeuanqs9prh0aj Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 5
20241227@162542.9565 t7413ukftvjpfeuanqs9prh0aj Query : select sestamp valor from se where ref ='324.1685.00.1' and lote = 'r2400173100a'
20241227@162542.9580 t7413ukftvjpfeuanqs9prh0aj Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241227@162542.9594 t7413ukftvjpfeuanqs9prh0aj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@162542.9612 t7413ukftvjpfeuanqs9prh0aj Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 5
20241227@162542.9639 t7413ukftvjpfeuanqs9prh0aj Query : insert into wsbi2data (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut676ed60861676ed506ea','aut676ed17382676ed5059b',bo.morada, bo.local,bo.codpost ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut' from wsbodata bo where bo.bostamp = 'aut676ed17382676ed5059b'
20241227@162542.9800 t7413ukftvjpfeuanqs9prh0aj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@162542.9824 t7413ukftvjpfeuanqs9prh0aj Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 5
20241227@162542.9850 t7413ukftvjpfeuanqs9prh0aj Query : insert into wsbidata (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,ar2mazem,obistamp ,stipo) select 'aut676ed60861676ed506ea',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut',bo.obrano, 5.000, 5.000*.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,70000 ,62.1,62.1*200.48,62.1,62.1*200.48 ,0,0,'un',' ' ,bo.marcada,1 ,62.1*5.000,62.1*5.000*200.48 ,25.406000,25.406000*200.48 ,25.406000,25.406000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,62.1,62.1*200.48,62.1*5.000,62.1*5.000*200.48,'az24122757860,009000006 ',62.1,62.1*5.000,62.1,62.1*5.000,?,?,?,?,4 from wsbodata bo where bo.bostamp = 'aut676ed17382676ed5059b'
20241227@162543.3800 t7413ukftvjpfeuanqs9prh0aj Query : use flama_phc
20241227@162543.4270 t7413ukftvjpfeuanqs9prh0aj Query : select st.usalote valor from st where st.ref = '324.1685.00.1'
20241227@162543.9310 t7413ukftvjpfeuanqs9prh0aj Query : use flama_phc
20241227@162543.9360 t7413ukftvjpfeuanqs9prh0aj Query : select st.stns valor from st where st.ref = '324.1685.00.1'
20241227@162543.9560 t7413ukftvjpfeuanqs9prh0aj Query : use flama_phc
20241227@162543.9590 t7413ukftvjpfeuanqs9prh0aj Query : select isnull(sum(stock) ,0)stock ,isnull(sum(qttrec),0) qttrec ,0 qttcat ,isnull(sum(rescli),0) rescli ,isnull(sum(resfor),0) resfor from sa where sa.ref = '324.1685.00.1' and sa.armazem = 133 
20241227@162543.9910 t7413ukftvjpfeuanqs9prh0aj Query : use flama_phc
20241227@162543.9940 t7413ukftvjpfeuanqs9prh0aj Query : select st.stns valor from st where st.ref = '324.1685.00.1'
20241227@162543.1016 t7413ukftvjpfeuanqs9prh0aj Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.1685.00.1'
20241227@162543.1033 t7413ukftvjpfeuanqs9prh0aj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@162543.1052 t7413ukftvjpfeuanqs9prh0aj Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 5
20241227@162543.1068 t7413ukftvjpfeuanqs9prh0aj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@162543.1085 t7413ukftvjpfeuanqs9prh0aj Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 5
20241227@162543.2339 t7413ukftvjpfeuanqs9prh0aj Query : select sestamp valor from se where ref ='324.1685.00.1' and lote = 'r2400173100a'
20241227@162543.2436 t7413ukftvjpfeuanqs9prh0aj Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241227@162543.2448 t7413ukftvjpfeuanqs9prh0aj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@162543.2465 t7413ukftvjpfeuanqs9prh0aj Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 5
20241227@162543.2476 t7413ukftvjpfeuanqs9prh0aj Query : insert into wsbi2data (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut676ed45196676ed5073b','aut676ed17382676ed5059b',bo.morada, bo.local,bo.codpost ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut' from wsbodata bo where bo.bostamp = 'aut676ed17382676ed5059b'
20241227@162543.2627 t7413ukftvjpfeuanqs9prh0aj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@162543.2649 t7413ukftvjpfeuanqs9prh0aj Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 5
20241227@162543.2667 t7413ukftvjpfeuanqs9prh0aj Query : insert into wsbidata (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,ar2mazem,obistamp ,stipo) select 'aut676ed45196676ed5073b',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut',bo.obrano, 25.000, 25.000*.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,80000 ,62.1,62.1*200.48,62.1,62.1*200.48 ,0,0,'un',' ' ,bo.marcada,1 ,62.1*25.000,62.1*25.000*200.48 ,25.406000,25.406000*200.48 ,25.406000,25.406000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,62.1,62.1*200.48,62.1*25.000,62.1*25.000*200.48,'az24122757860,009000006 ',62.1,62.1*25.000,62.1,62.1*25.000,?,?,?,?,4 from wsbodata bo where bo.bostamp = 'aut676ed17382676ed5059b'
20241227@162543.2944 t7413ukftvjpfeuanqs9prh0aj Query : use flama_phc
20241227@162543.2949 t7413ukftvjpfeuanqs9prh0aj Query : select st.usalote valor from st where st.ref = '324.1608.00.1'
20241227@162543.2964 t7413ukftvjpfeuanqs9prh0aj Query : use flama_phc
20241227@162543.2967 t7413ukftvjpfeuanqs9prh0aj Query : select st.stns valor from st where st.ref = '324.1608.00.1'
20241227@162543.2985 t7413ukftvjpfeuanqs9prh0aj Query : use flama_phc
20241227@162543.2988 t7413ukftvjpfeuanqs9prh0aj Query : select isnull(sum(stock) ,0)stock ,isnull(sum(qttrec),0) qttrec ,0 qttcat ,isnull(sum(rescli),0) rescli ,isnull(sum(resfor),0) resfor from sa where sa.ref = '324.1608.00.1' and sa.armazem = 133 
20241227@162543.3105 t7413ukftvjpfeuanqs9prh0aj Query : use flama_phc
20241227@162543.3108 t7413ukftvjpfeuanqs9prh0aj Query : select st.stns valor from st where st.ref = '324.1608.00.1'
20241227@162543.3130 t7413ukftvjpfeuanqs9prh0aj Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.1608.00.1'
20241227@162543.3261 t7413ukftvjpfeuanqs9prh0aj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@162543.3281 t7413ukftvjpfeuanqs9prh0aj Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 5
20241227@162543.3297 t7413ukftvjpfeuanqs9prh0aj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@162543.3315 t7413ukftvjpfeuanqs9prh0aj Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 5
20241227@162543.3325 t7413ukftvjpfeuanqs9prh0aj Query : select sestamp valor from se where ref ='324.1608.00.1' and lote = 'r2400237100a'
20241227@162543.3341 t7413ukftvjpfeuanqs9prh0aj Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241227@162543.3357 t7413ukftvjpfeuanqs9prh0aj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@162543.3375 t7413ukftvjpfeuanqs9prh0aj Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 5
20241227@162543.3388 t7413ukftvjpfeuanqs9prh0aj Query : insert into wsbi2data (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut676ed22493676ed50751','aut676ed17382676ed5059b',bo.morada, bo.local,bo.codpost ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut' from wsbodata bo where bo.bostamp = 'aut676ed17382676ed5059b'
20241227@162543.3542 t7413ukftvjpfeuanqs9prh0aj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@162543.3566 t7413ukftvjpfeuanqs9prh0aj Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 5
20241227@162543.3585 t7413ukftvjpfeuanqs9prh0aj Query : insert into wsbidata (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,ar2mazem,obistamp ,stipo) select 'aut676ed22493676ed50751',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut',bo.obrano, 30.000, 30.000*.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,90000 ,28.8,28.8*200.48,28.8,28.8*200.48 ,0,0,'un',' ' ,bo.marcada,1 ,28.8*30.000,28.8*30.000*200.48 ,12.567000,12.567000*200.48 ,12.567000,12.567000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,28.8,28.8*200.48,28.8*30.000,28.8*30.000*200.48,'az24122757872,645000007 ',28.8,28.8*30.000,28.8,28.8*30.000,?,?,?,?,4 from wsbodata bo where bo.bostamp = 'aut676ed17382676ed5059b'
20241227@162543.3996 t7413ukftvjpfeuanqs9prh0aj Query : insert into wsbocreationlog (initialstamp,externalid,creationstatus,documenttypeid,idustamp,transactionid) values ('aut676ed17382676ed5059b','','wait',5,'adm12071144683,938000003','')
20241227@162543.4698 t7413ukftvjpfeuanqs9prh0aj Query : use flama_phc
20241227@162543.4702 t7413ukftvjpfeuanqs9prh0aj Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20241227@162543.4760 t7413ukftvjpfeuanqs9prh0aj Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4184';
20241227@162543.4806 t7413ukftvjpfeuanqs9prh0aj Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4184';
20241227@163609.3464 059lvb7ttvja0gblftej57rfo2 Query : use flama_phc
20241227@163609.3468 059lvb7ttvja0gblftej57rfo2 Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20241227@163609.3558 059lvb7ttvja0gblftej57rfo2 Query : use flama_phc
20241227@163609.3561 059lvb7ttvja0gblftej57rfo2 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20241227@171135.9773 u39vg92smqd7n57gqlr5vc2nav Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20241227@171135.9786 u39vg92smqd7n57gqlr5vc2nav Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20241227@171135.9889 u39vg92smqd7n57gqlr5vc2nav Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4185';
20241227@171135.9958 u39vg92smqd7n57gqlr5vc2nav Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4185';
20241227@171136.2500 u39vg92smqd7n57gqlr5vc2nav Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4185';
20241227@171136.6300 u39vg92smqd7n57gqlr5vc2nav Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4185';
20241227@171136.1160 u39vg92smqd7n57gqlr5vc2nav Query : use flama_phc
20241227@171136.1200 u39vg92smqd7n57gqlr5vc2nav Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20241227@171136.2210 u39vg92smqd7n57gqlr5vc2nav Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.2231.00.2'
20241227@171136.3350 u39vg92smqd7n57gqlr5vc2nav 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 = 2401062 and bi.ref ='324.2231.00.2' and bi.lordem =40000
20241227@171136.7260 u39vg92smqd7n57gqlr5vc2nav 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 = 'cps24090939771,588000004 ' 
20241227@171136.1077 u39vg92smqd7n57gqlr5vc2nav Query : use flama_phc
20241227@171136.1080 u39vg92smqd7n57gqlr5vc2nav Query : select top 1 1 valor from ts where ts.ndos = 61
20241227@171136.1204 u39vg92smqd7n57gqlr5vc2nav Query : use flama_phc
20241227@171136.1207 u39vg92smqd7n57gqlr5vc2nav 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')
20241227@171136.1238 u39vg92smqd7n57gqlr5vc2nav 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
20241227@171136.1371 u39vg92smqd7n57gqlr5vc2nav Query : use flama_phc
20241227@171136.1374 u39vg92smqd7n57gqlr5vc2nav Query : select top 1 ~inactivo valor from fl where no = '202525' and estab = 00 order by inactivo desc
20241227@171136.1525 u39vg92smqd7n57gqlr5vc2nav Query : use flama_phc
20241227@171136.1528 u39vg92smqd7n57gqlr5vc2nav Query : select 1 valor from ts where ndos = 61
20241227@171136.1543 u39vg92smqd7n57gqlr5vc2nav Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@171136.1561 u39vg92smqd7n57gqlr5vc2nav Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bo' and documentnumber = 61
20241227@171136.1573 u39vg92smqd7n57gqlr5vc2nav Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@171136.1589 u39vg92smqd7n57gqlr5vc2nav Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bo2' and documentnumber = 61
20241227@171136.1601 u39vg92smqd7n57gqlr5vc2nav Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@171136.1618 u39vg92smqd7n57gqlr5vc2nav Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bo3' and documentnumber = 61
20241227@171136.1628 u39vg92smqd7n57gqlr5vc2nav 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
20241227@171136.1786 u39vg92smqd7n57gqlr5vc2nav Query : select top 1 bo.obrano valor from bo bo where bo.ndos = 61 and boano=2024 order by obrano desc
20241227@171136.1876 u39vg92smqd7n57gqlr5vc2nav Query : select top 1 bo.obrano valor from bo bo where bo.ndos = 61 and boano=2024 order by obrano desc
20241227@171136.1896 u39vg92smqd7n57gqlr5vc2nav Query : use flama_phc
20241227@171136.1903 u39vg92smqd7n57gqlr5vc2nav Query : select top 1 no,estab,nome, morada, local,codpost,ncont,pncont,pais,inactivo,motiseimp,codmotiseimp from fl where no='202525' and estab=00
20241227@171136.2164 u39vg92smqd7n57gqlr5vc2nav Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@171136.2228 u39vg92smqd7n57gqlr5vc2nav Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bo3' and documentnumber = 61
20241227@171136.2245 u39vg92smqd7n57gqlr5vc2nav Query : insert into bo3 (bo3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut676ed73502676edfc82e',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut')
20241227@171136.2322 u39vg92smqd7n57gqlr5vc2nav Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@171136.2339 u39vg92smqd7n57gqlr5vc2nav Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bo2' and documentnumber = 61
20241227@171136.2355 u39vg92smqd7n57gqlr5vc2nav Query : insert into bo2 (bo2stamp, tiposaft, idserie,cambio,cambiofixo,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut676ed73502676edfc82e','--','bo',1.0862944162436548223 ,1,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut')
20241227@171136.2592 u39vg92smqd7n57gqlr5vc2nav Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@171136.2612 u39vg92smqd7n57gqlr5vc2nav Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bo' and documentnumber = 61
20241227@171136.2626 u39vg92smqd7n57gqlr5vc2nav 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 ('aut676ed73502676edfc82e','guia r. fornecedor','2024-12-27',61,2403949,?,?,?,?,?,?,?,?,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')
20241227@171138.9791 u39vg92smqd7n57gqlr5vc2nav Query : use flama_phc
20241227@171138.9795 u39vg92smqd7n57gqlr5vc2nav Query : select st.usalote valor from st where st.ref = '324.2231.00.2'
20241227@171138.9824 u39vg92smqd7n57gqlr5vc2nav Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.2231.00.2'
20241227@171138.9954 u39vg92smqd7n57gqlr5vc2nav Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@171138.9979 u39vg92smqd7n57gqlr5vc2nav Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 61
20241227@171138.9995 u39vg92smqd7n57gqlr5vc2nav Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@171139.9000 u39vg92smqd7n57gqlr5vc2nav Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 61
20241227@171139.1800 u39vg92smqd7n57gqlr5vc2nav Query : select sestamp valor from se where ref ='324.2231.00.2' and lote = 'r2401062400a'
20241227@171139.7200 u39vg92smqd7n57gqlr5vc2nav Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@171139.9200 u39vg92smqd7n57gqlr5vc2nav Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'se' and documentnumber = 0
20241227@171139.1020 u39vg92smqd7n57gqlr5vc2nav Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@171139.1160 u39vg92smqd7n57gqlr5vc2nav Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'se' and documentnumber = 0
20241227@171139.1380 u39vg92smqd7n57gqlr5vc2nav Query : insert into se (sestamp,ref, lote, data,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut676ed16464676edfcb02',?,?,'20241227',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut;','aut;')
20241227@171139.7490 u39vg92smqd7n57gqlr5vc2nav Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241227@171139.7660 u39vg92smqd7n57gqlr5vc2nav Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@171139.7830 u39vg92smqd7n57gqlr5vc2nav Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 61
20241227@171139.7990 u39vg92smqd7n57gqlr5vc2nav Query : insert into bi2 (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut676ed76005676edfcb12','aut676ed73502676edfc82e',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 = 'aut676ed73502676edfc82e'
20241227@171139.9880 u39vg92smqd7n57gqlr5vc2nav Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@171139.1008 u39vg92smqd7n57gqlr5vc2nav Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 61
20241227@171139.1066 u39vg92smqd7n57gqlr5vc2nav 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 'aut676ed76005676edfcb12',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut',bo.obrano, 3162, 3162*.0000000 ,bo.no, bo.estab,bo.nmdos ,bo.ndos, bo.obranome,bo.fechada, bo.dataobra ,bo.dataobra ,bo.dataopen,bo.datafecho,bo.local, bo.morada ,bo.codpost, bo.nome,bo.bostamp,10000 ,9.85,9.85*200.48,9.85,9.85*200.48 ,0,0,'un ',' ' ,bo.marcada,1 ,9.85*3162,9.85*3162*200.48 ,11.192000,11.192000*200.48 ,11.192000,11.192000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,9.85,9.85*200.48,9.85*3162,9.85*3162*200.48,'cps24090939771,588000004 ',10.7,10.7*3162,10.7,10.7*3162,?,?,?,4 from bo bo where bo.bostamp = 'aut676ed73502676edfc82e'
20241227@171153.1877 u39vg92smqd7n57gqlr5vc2nav Query : use flama_phc
20241227@171153.1882 u39vg92smqd7n57gqlr5vc2nav Query : declare @bostamp varchar(25) = 'aut676ed73502676edfc82e' ,@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 
20241227@171205.8918 u39vg92smqd7n57gqlr5vc2nav Query : use flama_phc
20241227@171205.8922 u39vg92smqd7n57gqlr5vc2nav Query : select 1 valor from bo where bo.bostamp = 'aut676ed73502676edfc82e'
20241227@171205.9428 u39vg92smqd7n57gqlr5vc2nav 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) = 'aut676ed73502676edfc82e' 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 
20241227@171208.2670 u39vg92smqd7n57gqlr5vc2nav Query : use flama_phc
20241227@171208.2700 u39vg92smqd7n57gqlr5vc2nav Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20241227@171208.3810 u39vg92smqd7n57gqlr5vc2nav Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4185';
20241227@171208.4350 u39vg92smqd7n57gqlr5vc2nav Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4185';
20241227@171909.2164 q5p36qk844nt87hu86f099pakk Query : use flama_phc
20241227@171909.2169 q5p36qk844nt87hu86f099pakk Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20241227@171909.2294 q5p36qk844nt87hu86f099pakk Query : use flama_phc
20241227@171909.2297 q5p36qk844nt87hu86f099pakk Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20241227@173608.8815 usi2iu1u6lsqlptotusthhba0o Query : use flama_phc
20241227@173608.8820 usi2iu1u6lsqlptotusthhba0o Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20241227@173608.8948 usi2iu1u6lsqlptotusthhba0o Query : use flama_phc
20241227@173608.8951 usi2iu1u6lsqlptotusthhba0o Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20241227@181908.2114 bvfldcm68sg5aob99u7pkol6de Query : use flama_phc
20241227@181908.2119 bvfldcm68sg5aob99u7pkol6de Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20241227@181908.2220 bvfldcm68sg5aob99u7pkol6de Query : use flama_phc
20241227@181908.2223 bvfldcm68sg5aob99u7pkol6de Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20241227@183608.3532 56uaise1inp2r1s01pos0m03vl Query : use flama_phc
20241227@183608.3536 56uaise1inp2r1s01pos0m03vl Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20241227@183608.3632 56uaise1inp2r1s01pos0m03vl Query : use flama_phc
20241227@183608.3636 56uaise1inp2r1s01pos0m03vl Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20241227@191326.5740 i6l2ldl8btt7co1gtcrvqc1051 Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20241227@191326.5870 i6l2ldl8btt7co1gtcrvqc1051 Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20241227@191326.6950 i6l2ldl8btt7co1gtcrvqc1051 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4186';
20241227@191326.7580 i6l2ldl8btt7co1gtcrvqc1051 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4186';
20241227@191326.8220 i6l2ldl8btt7co1gtcrvqc1051 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4186';
20241227@191326.8540 i6l2ldl8btt7co1gtcrvqc1051 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4186';
20241227@191326.9120 i6l2ldl8btt7co1gtcrvqc1051 Query : use flama_phc
20241227@191326.9150 i6l2ldl8btt7co1gtcrvqc1051 Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20241227@191326.1008 i6l2ldl8btt7co1gtcrvqc1051 Query : use flama_phc
20241227@191326.1011 i6l2ldl8btt7co1gtcrvqc1051 Query : select no, estab,szadrsdesc from szadrs where u_coddest=9437
20241227@191326.1098 i6l2ldl8btt7co1gtcrvqc1051 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1824.00.1'
20241227@191326.1223 i6l2ldl8btt7co1gtcrvqc1051 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1824.00.1'
20241227@191326.1244 i6l2ldl8btt7co1gtcrvqc1051 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1824.00.1'
20241227@191326.1264 i6l2ldl8btt7co1gtcrvqc1051 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1884.00.1'
20241227@191326.1507 i6l2ldl8btt7co1gtcrvqc1051 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1578.00.1'
20241227@191326.1679 i6l2ldl8btt7co1gtcrvqc1051 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1578.00.1'
20241227@191326.1698 i6l2ldl8btt7co1gtcrvqc1051 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1832.00.2'
20241227@191326.1836 i6l2ldl8btt7co1gtcrvqc1051 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1833.00.2'
20241227@191326.1990 i6l2ldl8btt7co1gtcrvqc1051 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1816.00.1'
20241227@191326.2112 i6l2ldl8btt7co1gtcrvqc1051 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1803.00.1'
20241227@191326.2230 i6l2ldl8btt7co1gtcrvqc1051 Query : use flama_phc
20241227@191326.2233 i6l2ldl8btt7co1gtcrvqc1051 Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20241227@191326.2275 i6l2ldl8btt7co1gtcrvqc1051 Query : use flama_phc
20241227@191326.2279 i6l2ldl8btt7co1gtcrvqc1051 Query : select top 1 1 valor from td where td.ndoc = 39
20241227@191326.2348 i6l2ldl8btt7co1gtcrvqc1051 Query : use flama_phc
20241227@191326.2352 i6l2ldl8btt7co1gtcrvqc1051 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')
20241227@191326.2386 i6l2ldl8btt7co1gtcrvqc1051 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
20241227@191326.2437 i6l2ldl8btt7co1gtcrvqc1051 Query : use flama_phc
20241227@191326.2441 i6l2ldl8btt7co1gtcrvqc1051 Query : select top 1 ~inactivo valor from cl where no = '200500' and estab = 0 order by inactivo desc
20241227@191326.2733 i6l2ldl8btt7co1gtcrvqc1051 Query : use flama_phc
20241227@191326.2744 i6l2ldl8btt7co1gtcrvqc1051 Query : select top 1 tipodoc,regrd from td where ndoc = 39
20241227@191326.2789 i6l2ldl8btt7co1gtcrvqc1051 Query : use flama_phc
20241227@191326.2821 i6l2ldl8btt7co1gtcrvqc1051 Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20241227@191326.2861 i6l2ldl8btt7co1gtcrvqc1051 Query : use flama_phc
20241227@191326.2864 i6l2ldl8btt7co1gtcrvqc1051 Query : select szadrsstamp valor from szadrs where szadrsdesc='mirandadis, s.l. - e. leclerc'
20241227@191326.2912 i6l2ldl8btt7co1gtcrvqc1051 Query : use flama_phc
20241227@191326.2915 i6l2ldl8btt7co1gtcrvqc1051 Query : select 1 valor from td where ndoc = 39
20241227@191326.2937 i6l2ldl8btt7co1gtcrvqc1051 Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20241227@191326.2959 i6l2ldl8btt7co1gtcrvqc1051 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@191326.2978 i6l2ldl8btt7co1gtcrvqc1051 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20241227@191326.3024 i6l2ldl8btt7co1gtcrvqc1051 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@191326.3043 i6l2ldl8btt7co1gtcrvqc1051 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20241227@191326.3076 i6l2ldl8btt7co1gtcrvqc1051 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@191326.3094 i6l2ldl8btt7co1gtcrvqc1051 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20241227@191326.3108 i6l2ldl8btt7co1gtcrvqc1051 Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20241227@191326.3225 i6l2ldl8btt7co1gtcrvqc1051 Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20241227@191326.3257 i6l2ldl8btt7co1gtcrvqc1051 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@191326.3276 i6l2ldl8btt7co1gtcrvqc1051 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20241227@191326.3292 i6l2ldl8btt7co1gtcrvqc1051 Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut676ef49956676efc564b' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20241227@191326.3563 i6l2ldl8btt7co1gtcrvqc1051 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@191326.3580 i6l2ldl8btt7co1gtcrvqc1051 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20241227@191326.3617 i6l2ldl8btt7co1gtcrvqc1051 Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20241227@191326.3630 i6l2ldl8btt7co1gtcrvqc1051 Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20241227@191326.3643 i6l2ldl8btt7co1gtcrvqc1051 Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20241227@191326.3658 i6l2ldl8btt7co1gtcrvqc1051 Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20241227@191326.3671 i6l2ldl8btt7co1gtcrvqc1051 Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20241227@191326.3683 i6l2ldl8btt7co1gtcrvqc1051 Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20241227@191326.3695 i6l2ldl8btt7co1gtcrvqc1051 Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut676ef49956676efc564b',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20241227@191326.4242 i6l2ldl8btt7co1gtcrvqc1051 Query : select top 1 fno valor from wsftdata order by fno desc
20241227@191326.4289 i6l2ldl8btt7co1gtcrvqc1051 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@191326.4312 i6l2ldl8btt7co1gtcrvqc1051 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20241227@191326.4342 i6l2ldl8btt7co1gtcrvqc1051 Query : select 'normal' from dummy
20241227@191326.4417 i6l2ldl8btt7co1gtcrvqc1051 Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut676ef49956676efc564b',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',2630,200500,0,'2024-12-27',39,'euro',0,0,2024 ,?,?)
20241227@191326.4911 i6l2ldl8btt7co1gtcrvqc1051 Query : use flama_phc
20241227@191326.4914 i6l2ldl8btt7co1gtcrvqc1051 Query : select st.usalote valor from st where st.ref = '324.1824.00.1'
20241227@191326.4935 i6l2ldl8btt7co1gtcrvqc1051 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.1824.00.1'
20241227@191326.4949 i6l2ldl8btt7co1gtcrvqc1051 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@191326.4965 i6l2ldl8btt7co1gtcrvqc1051 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241227@191326.4993 i6l2ldl8btt7co1gtcrvqc1051 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@191326.5008 i6l2ldl8btt7co1gtcrvqc1051 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241227@191326.5017 i6l2ldl8btt7co1gtcrvqc1051 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241227@191326.5029 i6l2ldl8btt7co1gtcrvqc1051 Query : select sestamp valor from se where ref ='324.1824.00.1' and lote = 'r2400217200a'
20241227@191326.5070 i6l2ldl8btt7co1gtcrvqc1051 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@191326.5085 i6l2ldl8btt7co1gtcrvqc1051 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241227@191326.5097 i6l2ldl8btt7co1gtcrvqc1051 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut676ef13327676efc567b','aut676ef49956676efc564b' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241227@191326.5120 i6l2ldl8btt7co1gtcrvqc1051 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@191326.5135 i6l2ldl8btt7co1gtcrvqc1051 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241227@191326.5164 i6l2ldl8btt7co1gtcrvqc1051 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem) values ('aut676ef13327676efc567b',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',3.000 ,'aut676ef49956676efc564b' ,0,0 ,2,23.00,10000,?,?,?,?)
20241227@191326.5547 i6l2ldl8btt7co1gtcrvqc1051 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@191326.5563 i6l2ldl8btt7co1gtcrvqc1051 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241227@191326.5588 i6l2ldl8btt7co1gtcrvqc1051 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@191326.5603 i6l2ldl8btt7co1gtcrvqc1051 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241227@191326.5612 i6l2ldl8btt7co1gtcrvqc1051 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241227@191326.5625 i6l2ldl8btt7co1gtcrvqc1051 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@191326.5641 i6l2ldl8btt7co1gtcrvqc1051 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241227@191326.5653 i6l2ldl8btt7co1gtcrvqc1051 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut676ef67763676efc5689','aut676ef49956676efc564b' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241227@191326.5658 i6l2ldl8btt7co1gtcrvqc1051 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@191326.5673 i6l2ldl8btt7co1gtcrvqc1051 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241227@191326.5703 i6l2ldl8btt7co1gtcrvqc1051 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut676ef67763676efc5689',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut676ef49956676efc564b' ,0,0 ,2,23.00,20000,?,?,?)
20241227@191326.5956 i6l2ldl8btt7co1gtcrvqc1051 Query : use flama_phc
20241227@191326.5959 i6l2ldl8btt7co1gtcrvqc1051 Query : select st.usalote valor from st where st.ref = '324.1824.00.1'
20241227@191326.5978 i6l2ldl8btt7co1gtcrvqc1051 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.1824.00.1'
20241227@191326.5993 i6l2ldl8btt7co1gtcrvqc1051 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@191326.6009 i6l2ldl8btt7co1gtcrvqc1051 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241227@191326.6036 i6l2ldl8btt7co1gtcrvqc1051 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@191326.6053 i6l2ldl8btt7co1gtcrvqc1051 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241227@191326.6064 i6l2ldl8btt7co1gtcrvqc1051 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241227@191326.6076 i6l2ldl8btt7co1gtcrvqc1051 Query : select sestamp valor from se where ref ='324.1824.00.1' and lote = 'r2400217200a'
20241227@191326.6089 i6l2ldl8btt7co1gtcrvqc1051 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@191326.6104 i6l2ldl8btt7co1gtcrvqc1051 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241227@191326.6116 i6l2ldl8btt7co1gtcrvqc1051 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut676ef93703676efc5694','aut676ef49956676efc564b' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241227@191326.6120 i6l2ldl8btt7co1gtcrvqc1051 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@191326.6136 i6l2ldl8btt7co1gtcrvqc1051 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241227@191326.6222 i6l2ldl8btt7co1gtcrvqc1051 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem) values ('aut676ef93703676efc5694',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',1.000 ,'aut676ef49956676efc564b' ,0,0 ,2,23.00,40000,?,?,?,?)
20241227@191326.6450 i6l2ldl8btt7co1gtcrvqc1051 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@191326.6466 i6l2ldl8btt7co1gtcrvqc1051 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241227@191326.6496 i6l2ldl8btt7co1gtcrvqc1051 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@191326.6511 i6l2ldl8btt7co1gtcrvqc1051 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241227@191326.6520 i6l2ldl8btt7co1gtcrvqc1051 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241227@191326.6533 i6l2ldl8btt7co1gtcrvqc1051 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@191326.6549 i6l2ldl8btt7co1gtcrvqc1051 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241227@191326.6561 i6l2ldl8btt7co1gtcrvqc1051 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut676ef19497676efc569f','aut676ef49956676efc564b' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241227@191326.6565 i6l2ldl8btt7co1gtcrvqc1051 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@191326.6580 i6l2ldl8btt7co1gtcrvqc1051 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241227@191326.6608 i6l2ldl8btt7co1gtcrvqc1051 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut676ef19497676efc569f',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut676ef49956676efc564b' ,0,0 ,2,23.00,50000,?,?,?)
20241227@191326.6878 i6l2ldl8btt7co1gtcrvqc1051 Query : use flama_phc
20241227@191326.6882 i6l2ldl8btt7co1gtcrvqc1051 Query : select st.usalote valor from st where st.ref = '324.1824.00.1'
20241227@191326.6902 i6l2ldl8btt7co1gtcrvqc1051 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.1824.00.1'
20241227@191326.6917 i6l2ldl8btt7co1gtcrvqc1051 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@191326.6938 i6l2ldl8btt7co1gtcrvqc1051 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241227@191326.6967 i6l2ldl8btt7co1gtcrvqc1051 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@191326.6981 i6l2ldl8btt7co1gtcrvqc1051 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241227@191326.6990 i6l2ldl8btt7co1gtcrvqc1051 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241227@191326.7002 i6l2ldl8btt7co1gtcrvqc1051 Query : select sestamp valor from se where ref ='324.1824.00.1' and lote = 'r2400217200a'
20241227@191326.7017 i6l2ldl8btt7co1gtcrvqc1051 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@191326.7031 i6l2ldl8btt7co1gtcrvqc1051 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241227@191326.7044 i6l2ldl8btt7co1gtcrvqc1051 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut676ef74387676efc56ab','aut676ef49956676efc564b' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241227@191326.7048 i6l2ldl8btt7co1gtcrvqc1051 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@191326.7065 i6l2ldl8btt7co1gtcrvqc1051 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241227@191326.7123 i6l2ldl8btt7co1gtcrvqc1051 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem) values ('aut676ef74387676efc56ab',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',20.000 ,'aut676ef49956676efc564b' ,0,0 ,2,23.00,70000,?,?,?,?)
20241227@191326.7358 i6l2ldl8btt7co1gtcrvqc1051 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@191326.7378 i6l2ldl8btt7co1gtcrvqc1051 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241227@191326.7460 i6l2ldl8btt7co1gtcrvqc1051 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@191326.7485 i6l2ldl8btt7co1gtcrvqc1051 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241227@191326.7495 i6l2ldl8btt7co1gtcrvqc1051 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241227@191326.7507 i6l2ldl8btt7co1gtcrvqc1051 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@191326.7556 i6l2ldl8btt7co1gtcrvqc1051 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241227@191326.7570 i6l2ldl8btt7co1gtcrvqc1051 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut676ef30843676efc56b7','aut676ef49956676efc564b' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241227@191326.7576 i6l2ldl8btt7co1gtcrvqc1051 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@191326.7593 i6l2ldl8btt7co1gtcrvqc1051 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241227@191326.7625 i6l2ldl8btt7co1gtcrvqc1051 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut676ef30843676efc56b7',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut676ef49956676efc564b' ,0,0 ,2,23.00,80000,?,?,?)
20241227@191326.7862 i6l2ldl8btt7co1gtcrvqc1051 Query : use flama_phc
20241227@191326.7866 i6l2ldl8btt7co1gtcrvqc1051 Query : select st.usalote valor from st where st.ref = '324.1884.00.1'
20241227@191326.7888 i6l2ldl8btt7co1gtcrvqc1051 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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.1884.00.1'
20241227@191326.8078 i6l2ldl8btt7co1gtcrvqc1051 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@191326.8095 i6l2ldl8btt7co1gtcrvqc1051 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241227@191326.8154 i6l2ldl8btt7co1gtcrvqc1051 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@191326.8171 i6l2ldl8btt7co1gtcrvqc1051 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241227@191326.8181 i6l2ldl8btt7co1gtcrvqc1051 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241227@191326.8209 i6l2ldl8btt7co1gtcrvqc1051 Query : select sestamp valor from se where ref ='324.1884.00.1' and lote = 'r2400213100a'
20241227@191326.8224 i6l2ldl8btt7co1gtcrvqc1051 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@191326.8240 i6l2ldl8btt7co1gtcrvqc1051 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241227@191326.8254 i6l2ldl8btt7co1gtcrvqc1051 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut676ef28860676efc56c8','aut676ef49956676efc564b' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241227@191326.8259 i6l2ldl8btt7co1gtcrvqc1051 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@191326.8274 i6l2ldl8btt7co1gtcrvqc1051 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241227@191326.8311 i6l2ldl8btt7co1gtcrvqc1051 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem) values ('aut676ef28860676efc56c8',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',15.000 ,'aut676ef49956676efc564b' ,0,0 ,2,23.00,100000,?,?,?,?)
20241227@191326.8561 i6l2ldl8btt7co1gtcrvqc1051 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@191326.8579 i6l2ldl8btt7co1gtcrvqc1051 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241227@191326.8615 i6l2ldl8btt7co1gtcrvqc1051 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@191326.8632 i6l2ldl8btt7co1gtcrvqc1051 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241227@191326.8656 i6l2ldl8btt7co1gtcrvqc1051 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241227@191326.8669 i6l2ldl8btt7co1gtcrvqc1051 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@191326.8686 i6l2ldl8btt7co1gtcrvqc1051 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241227@191326.8727 i6l2ldl8btt7co1gtcrvqc1051 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut676ef32759676efc56d3','aut676ef49956676efc564b' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241227@191326.8732 i6l2ldl8btt7co1gtcrvqc1051 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@191326.8750 i6l2ldl8btt7co1gtcrvqc1051 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241227@191326.8793 i6l2ldl8btt7co1gtcrvqc1051 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut676ef32759676efc56d3',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut676ef49956676efc564b' ,0,0 ,2,23.00,110000,?,?,?)
20241227@191326.9047 i6l2ldl8btt7co1gtcrvqc1051 Query : use flama_phc
20241227@191326.9051 i6l2ldl8btt7co1gtcrvqc1051 Query : select st.usalote valor from st where st.ref = '324.1578.00.1'
20241227@191326.9071 i6l2ldl8btt7co1gtcrvqc1051 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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.1578.00.1'
20241227@191326.9217 i6l2ldl8btt7co1gtcrvqc1051 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@191326.9234 i6l2ldl8btt7co1gtcrvqc1051 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241227@191326.9341 i6l2ldl8btt7co1gtcrvqc1051 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@191326.9436 i6l2ldl8btt7co1gtcrvqc1051 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241227@191326.9446 i6l2ldl8btt7co1gtcrvqc1051 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241227@191326.9459 i6l2ldl8btt7co1gtcrvqc1051 Query : select sestamp valor from se where ref ='324.1578.00.1' and lote = 'r2101115200a'
20241227@191326.9472 i6l2ldl8btt7co1gtcrvqc1051 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@191326.9487 i6l2ldl8btt7co1gtcrvqc1051 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241227@191326.9498 i6l2ldl8btt7co1gtcrvqc1051 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut676ef34501676efc56e7','aut676ef49956676efc564b' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241227@191326.9502 i6l2ldl8btt7co1gtcrvqc1051 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@191326.9517 i6l2ldl8btt7co1gtcrvqc1051 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241227@191326.9545 i6l2ldl8btt7co1gtcrvqc1051 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem) values ('aut676ef34501676efc56e7',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',1.000 ,'aut676ef49956676efc564b' ,0,0 ,2,23.00,130000,?,?,?,?)
20241227@191326.9787 i6l2ldl8btt7co1gtcrvqc1051 Query : use flama_phc
20241227@191326.9791 i6l2ldl8btt7co1gtcrvqc1051 Query : select st.usalote valor from st where st.ref = '324.1578.00.1'
20241227@191326.9809 i6l2ldl8btt7co1gtcrvqc1051 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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.1578.00.1'
20241227@191326.9822 i6l2ldl8btt7co1gtcrvqc1051 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@191326.9861 i6l2ldl8btt7co1gtcrvqc1051 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241227@191326.9885 i6l2ldl8btt7co1gtcrvqc1051 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@191326.9899 i6l2ldl8btt7co1gtcrvqc1051 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241227@191326.9907 i6l2ldl8btt7co1gtcrvqc1051 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241227@191326.9923 i6l2ldl8btt7co1gtcrvqc1051 Query : select sestamp valor from se where ref ='324.1578.00.1' and lote = 'r2101115200a'
20241227@191326.9935 i6l2ldl8btt7co1gtcrvqc1051 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@191326.9949 i6l2ldl8btt7co1gtcrvqc1051 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241227@191326.9961 i6l2ldl8btt7co1gtcrvqc1051 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut676ef40286676efc56f2','aut676ef49956676efc564b' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241227@191326.9965 i6l2ldl8btt7co1gtcrvqc1051 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@191326.9979 i6l2ldl8btt7co1gtcrvqc1051 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241227@191327.6000 i6l2ldl8btt7co1gtcrvqc1051 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem) values ('aut676ef40286676efc56f2',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',1.000 ,'aut676ef49956676efc564b' ,0,0 ,2,23.00,140000,?,?,?,?)
20241227@191327.3400 i6l2ldl8btt7co1gtcrvqc1051 Query : use flama_phc
20241227@191327.3820 i6l2ldl8btt7co1gtcrvqc1051 Query : select st.usalote valor from st where st.ref = '324.1832.00.2'
20241227@191327.4300 i6l2ldl8btt7co1gtcrvqc1051 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.1832.00.2'
20241227@191327.5560 i6l2ldl8btt7co1gtcrvqc1051 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@191327.5720 i6l2ldl8btt7co1gtcrvqc1051 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241227@191327.5970 i6l2ldl8btt7co1gtcrvqc1051 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@191327.6110 i6l2ldl8btt7co1gtcrvqc1051 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241227@191327.6190 i6l2ldl8btt7co1gtcrvqc1051 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241227@191327.6300 i6l2ldl8btt7co1gtcrvqc1051 Query : select sestamp valor from se where ref ='324.1832.00.2' and lote = 'r2400401150a'
20241227@191327.6440 i6l2ldl8btt7co1gtcrvqc1051 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@191327.6590 i6l2ldl8btt7co1gtcrvqc1051 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241227@191327.6710 i6l2ldl8btt7co1gtcrvqc1051 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut676ef55014676efc570f','aut676ef49956676efc564b' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241227@191327.6750 i6l2ldl8btt7co1gtcrvqc1051 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@191327.6900 i6l2ldl8btt7co1gtcrvqc1051 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241227@191327.7450 i6l2ldl8btt7co1gtcrvqc1051 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem) values ('aut676ef55014676efc570f',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',4.000 ,'aut676ef49956676efc564b' ,0,0 ,2,23.00,150000,?,?,?,?)
20241227@191327.9840 i6l2ldl8btt7co1gtcrvqc1051 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@191327.1000 i6l2ldl8btt7co1gtcrvqc1051 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241227@191327.1026 i6l2ldl8btt7co1gtcrvqc1051 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@191327.1045 i6l2ldl8btt7co1gtcrvqc1051 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241227@191327.1053 i6l2ldl8btt7co1gtcrvqc1051 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241227@191327.1066 i6l2ldl8btt7co1gtcrvqc1051 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@191327.1081 i6l2ldl8btt7co1gtcrvqc1051 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241227@191327.1093 i6l2ldl8btt7co1gtcrvqc1051 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut676ef80564676efc571a','aut676ef49956676efc564b' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241227@191327.1097 i6l2ldl8btt7co1gtcrvqc1051 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@191327.1112 i6l2ldl8btt7co1gtcrvqc1051 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241227@191327.1139 i6l2ldl8btt7co1gtcrvqc1051 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut676ef80564676efc571a',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut676ef49956676efc564b' ,0,0 ,2,23.00,160000,?,?,?)
20241227@191327.1413 i6l2ldl8btt7co1gtcrvqc1051 Query : use flama_phc
20241227@191327.1417 i6l2ldl8btt7co1gtcrvqc1051 Query : select st.usalote valor from st where st.ref = '324.1833.00.2'
20241227@191327.1436 i6l2ldl8btt7co1gtcrvqc1051 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.1833.00.2'
20241227@191327.1561 i6l2ldl8btt7co1gtcrvqc1051 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@191327.1577 i6l2ldl8btt7co1gtcrvqc1051 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241227@191327.1602 i6l2ldl8btt7co1gtcrvqc1051 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@191327.1616 i6l2ldl8btt7co1gtcrvqc1051 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241227@191327.1625 i6l2ldl8btt7co1gtcrvqc1051 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241227@191327.1637 i6l2ldl8btt7co1gtcrvqc1051 Query : select sestamp valor from se where ref ='324.1833.00.2' and lote = 'r2400401200a'
20241227@191327.1651 i6l2ldl8btt7co1gtcrvqc1051 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@191327.1667 i6l2ldl8btt7co1gtcrvqc1051 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241227@191327.1679 i6l2ldl8btt7co1gtcrvqc1051 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut676ef63507676efc5728','aut676ef49956676efc564b' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241227@191327.1683 i6l2ldl8btt7co1gtcrvqc1051 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@191327.1698 i6l2ldl8btt7co1gtcrvqc1051 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241227@191327.1729 i6l2ldl8btt7co1gtcrvqc1051 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem) values ('aut676ef63507676efc5728',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',4.000 ,'aut676ef49956676efc564b' ,0,0 ,2,23.00,180000,?,?,?,?)
20241227@191327.2000 i6l2ldl8btt7co1gtcrvqc1051 Query : use flama_phc
20241227@191327.2003 i6l2ldl8btt7co1gtcrvqc1051 Query : select st.usalote valor from st where st.ref = '324.1816.00.1'
20241227@191327.2021 i6l2ldl8btt7co1gtcrvqc1051 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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.1816.00.1'
20241227@191327.2034 i6l2ldl8btt7co1gtcrvqc1051 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@191327.2049 i6l2ldl8btt7co1gtcrvqc1051 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241227@191327.2074 i6l2ldl8btt7co1gtcrvqc1051 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@191327.2089 i6l2ldl8btt7co1gtcrvqc1051 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241227@191327.2097 i6l2ldl8btt7co1gtcrvqc1051 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241227@191327.2109 i6l2ldl8btt7co1gtcrvqc1051 Query : select sestamp valor from se where ref ='324.1816.00.1' and lote = 'r2400284200a'
20241227@191327.2124 i6l2ldl8btt7co1gtcrvqc1051 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@191327.2138 i6l2ldl8btt7co1gtcrvqc1051 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241227@191327.2149 i6l2ldl8btt7co1gtcrvqc1051 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut676ef38699676efc5733','aut676ef49956676efc564b' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241227@191327.2153 i6l2ldl8btt7co1gtcrvqc1051 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@191327.2168 i6l2ldl8btt7co1gtcrvqc1051 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241227@191327.2984 i6l2ldl8btt7co1gtcrvqc1051 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem) values ('aut676ef38699676efc5733',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',15.000 ,'aut676ef49956676efc564b' ,0,0 ,2,23.00,190000,?,?,?,?)
20241227@191327.3539 i6l2ldl8btt7co1gtcrvqc1051 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@191327.3556 i6l2ldl8btt7co1gtcrvqc1051 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241227@191327.3584 i6l2ldl8btt7co1gtcrvqc1051 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@191327.3598 i6l2ldl8btt7co1gtcrvqc1051 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241227@191327.3607 i6l2ldl8btt7co1gtcrvqc1051 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241227@191327.3621 i6l2ldl8btt7co1gtcrvqc1051 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@191327.3636 i6l2ldl8btt7co1gtcrvqc1051 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241227@191327.3651 i6l2ldl8btt7co1gtcrvqc1051 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut676ef68393676efc5758','aut676ef49956676efc564b' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241227@191327.3655 i6l2ldl8btt7co1gtcrvqc1051 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@191327.3674 i6l2ldl8btt7co1gtcrvqc1051 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241227@191327.3731 i6l2ldl8btt7co1gtcrvqc1051 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut676ef68393676efc5758',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut676ef49956676efc564b' ,0,0 ,2,23.00,200000,?,?,?)
20241227@191327.3966 i6l2ldl8btt7co1gtcrvqc1051 Query : use flama_phc
20241227@191327.3969 i6l2ldl8btt7co1gtcrvqc1051 Query : select st.usalote valor from st where st.ref = '324.1803.00.1'
20241227@191327.3991 i6l2ldl8btt7co1gtcrvqc1051 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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.1803.00.1'
20241227@191327.4156 i6l2ldl8btt7co1gtcrvqc1051 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@191327.4173 i6l2ldl8btt7co1gtcrvqc1051 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241227@191327.4199 i6l2ldl8btt7co1gtcrvqc1051 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@191327.4215 i6l2ldl8btt7co1gtcrvqc1051 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241227@191327.4225 i6l2ldl8btt7co1gtcrvqc1051 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241227@191327.4238 i6l2ldl8btt7co1gtcrvqc1051 Query : select sestamp valor from se where ref ='324.1803.00.1' and lote = 'r2400705200a'
20241227@191327.4254 i6l2ldl8btt7co1gtcrvqc1051 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@191327.4271 i6l2ldl8btt7co1gtcrvqc1051 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241227@191327.4283 i6l2ldl8btt7co1gtcrvqc1051 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut676ef07446676efc5767','aut676ef49956676efc564b' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241227@191327.4287 i6l2ldl8btt7co1gtcrvqc1051 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@191327.4304 i6l2ldl8btt7co1gtcrvqc1051 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241227@191327.4358 i6l2ldl8btt7co1gtcrvqc1051 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem) values ('aut676ef07446676efc5767',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',6.000 ,'aut676ef49956676efc564b' ,0,0 ,2,23.00,220000,?,?,?,?)
20241227@191327.4598 i6l2ldl8btt7co1gtcrvqc1051 Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut676ef49956676efc564b','2408899','wait',39,'adm09112754980.682000002')
20241227@191327.4703 i6l2ldl8btt7co1gtcrvqc1051 Query : use flama_phc
20241227@191327.4706 i6l2ldl8btt7co1gtcrvqc1051 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20241227@191327.4761 i6l2ldl8btt7co1gtcrvqc1051 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4186';
20241227@191327.4805 i6l2ldl8btt7co1gtcrvqc1051 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4186';
20241227@191327.4858 i6l2ldl8btt7co1gtcrvqc1051 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4186';
20241227@191327.4893 i6l2ldl8btt7co1gtcrvqc1051 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4186';
20241227@191327.5598 n88j23vmsao6ni615jsond53d1 Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20241227@191327.5609 n88j23vmsao6ni615jsond53d1 Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20241227@191327.5681 n88j23vmsao6ni615jsond53d1 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4187';
20241227@191327.5743 n88j23vmsao6ni615jsond53d1 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4187';
20241227@191327.5839 n88j23vmsao6ni615jsond53d1 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4187';
20241227@191327.5873 n88j23vmsao6ni615jsond53d1 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4187';
20241227@191327.5931 n88j23vmsao6ni615jsond53d1 Query : use flama_phc
20241227@191327.5934 n88j23vmsao6ni615jsond53d1 Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20241227@191327.6504 n88j23vmsao6ni615jsond53d1 Query : use flama_phc
20241227@191327.6586 n88j23vmsao6ni615jsond53d1 Query : select no, estab,szadrsdesc from szadrs where u_coddest=9437
20241227@191327.7322 n88j23vmsao6ni615jsond53d1 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.2031.00.1'
20241227@191327.7351 n88j23vmsao6ni615jsond53d1 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.2223.00.1'
20241227@191327.7484 n88j23vmsao6ni615jsond53d1 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.2224.00.1'
20241227@191327.7636 n88j23vmsao6ni615jsond53d1 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.5500.00.1'
20241227@191327.7805 n88j23vmsao6ni615jsond53d1 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1685.00.1'
20241227@191327.7930 n88j23vmsao6ni615jsond53d1 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.2308.00.1'
20241227@191327.8048 n88j23vmsao6ni615jsond53d1 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.2308.00.1'
20241227@191327.8069 n88j23vmsao6ni615jsond53d1 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1329.00.1'
20241227@191327.8185 n88j23vmsao6ni615jsond53d1 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.727.00.01'
20241227@191327.8324 n88j23vmsao6ni615jsond53d1 Query : use flama_phc
20241227@191327.8327 n88j23vmsao6ni615jsond53d1 Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20241227@191327.8359 n88j23vmsao6ni615jsond53d1 Query : use flama_phc
20241227@191327.8362 n88j23vmsao6ni615jsond53d1 Query : select top 1 1 valor from td where td.ndoc = 39
20241227@191327.8390 n88j23vmsao6ni615jsond53d1 Query : use flama_phc
20241227@191327.8393 n88j23vmsao6ni615jsond53d1 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')
20241227@191327.8419 n88j23vmsao6ni615jsond53d1 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
20241227@191327.8454 n88j23vmsao6ni615jsond53d1 Query : use flama_phc
20241227@191327.8456 n88j23vmsao6ni615jsond53d1 Query : select top 1 ~inactivo valor from cl where no = '200500' and estab = 0 order by inactivo desc
20241227@191327.8487 n88j23vmsao6ni615jsond53d1 Query : use flama_phc
20241227@191327.8490 n88j23vmsao6ni615jsond53d1 Query : select top 1 tipodoc,regrd from td where ndoc = 39
20241227@191327.8521 n88j23vmsao6ni615jsond53d1 Query : use flama_phc
20241227@191327.8523 n88j23vmsao6ni615jsond53d1 Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20241227@191327.8565 n88j23vmsao6ni615jsond53d1 Query : use flama_phc
20241227@191327.8568 n88j23vmsao6ni615jsond53d1 Query : select szadrsstamp valor from szadrs where szadrsdesc='mirandadis, s.l. - e. leclerc'
20241227@191327.8613 n88j23vmsao6ni615jsond53d1 Query : use flama_phc
20241227@191327.8615 n88j23vmsao6ni615jsond53d1 Query : select 1 valor from td where ndoc = 39
20241227@191327.8627 n88j23vmsao6ni615jsond53d1 Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20241227@191327.8641 n88j23vmsao6ni615jsond53d1 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@191327.8683 n88j23vmsao6ni615jsond53d1 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20241227@191327.8702 n88j23vmsao6ni615jsond53d1 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@191327.8720 n88j23vmsao6ni615jsond53d1 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20241227@191327.8781 n88j23vmsao6ni615jsond53d1 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@191327.8796 n88j23vmsao6ni615jsond53d1 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20241227@191327.8809 n88j23vmsao6ni615jsond53d1 Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20241227@191327.8862 n88j23vmsao6ni615jsond53d1 Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20241227@191327.8875 n88j23vmsao6ni615jsond53d1 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@191327.8889 n88j23vmsao6ni615jsond53d1 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20241227@191327.8906 n88j23vmsao6ni615jsond53d1 Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut676ef81294676efc57d7' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20241227@191327.9063 n88j23vmsao6ni615jsond53d1 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@191327.9111 n88j23vmsao6ni615jsond53d1 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20241227@191327.9146 n88j23vmsao6ni615jsond53d1 Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20241227@191327.9157 n88j23vmsao6ni615jsond53d1 Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20241227@191327.9169 n88j23vmsao6ni615jsond53d1 Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20241227@191327.9182 n88j23vmsao6ni615jsond53d1 Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20241227@191327.9194 n88j23vmsao6ni615jsond53d1 Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20241227@191327.9207 n88j23vmsao6ni615jsond53d1 Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20241227@191327.9219 n88j23vmsao6ni615jsond53d1 Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut676ef81294676efc57d7',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20241227@191327.9462 n88j23vmsao6ni615jsond53d1 Query : select top 1 fno valor from wsftdata order by fno desc
20241227@191327.9493 n88j23vmsao6ni615jsond53d1 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@191327.9509 n88j23vmsao6ni615jsond53d1 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20241227@191327.9532 n88j23vmsao6ni615jsond53d1 Query : select 'normal' from dummy
20241227@191327.9548 n88j23vmsao6ni615jsond53d1 Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut676ef81294676efc57d7',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',2631,200500,0,'2024-12-27',39,'euro',0,0,2024 ,?,?)
20241227@191327.9893 n88j23vmsao6ni615jsond53d1 Query : use flama_phc
20241227@191327.9896 n88j23vmsao6ni615jsond53d1 Query : select st.usalote valor from st where st.ref = '324.2031.00.1'
20241227@191327.9919 n88j23vmsao6ni615jsond53d1 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.2031.00.1'
20241227@191327.9942 n88j23vmsao6ni615jsond53d1 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@191327.9961 n88j23vmsao6ni615jsond53d1 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241227@191328.1700 n88j23vmsao6ni615jsond53d1 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@191328.3200 n88j23vmsao6ni615jsond53d1 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241227@191328.4000 n88j23vmsao6ni615jsond53d1 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241227@191328.5300 n88j23vmsao6ni615jsond53d1 Query : select sestamp valor from se where ref ='324.2031.00.1' and lote = 'r2100232100a'
20241227@191328.6700 n88j23vmsao6ni615jsond53d1 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@191328.8100 n88j23vmsao6ni615jsond53d1 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241227@191328.9400 n88j23vmsao6ni615jsond53d1 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut676ef68820676efc5801','aut676ef81294676efc57d7' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241227@191328.9800 n88j23vmsao6ni615jsond53d1 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@191328.1140 n88j23vmsao6ni615jsond53d1 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241227@191328.2060 n88j23vmsao6ni615jsond53d1 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem) values ('aut676ef68820676efc5801',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',6.000 ,'aut676ef81294676efc57d7' ,0,0 ,2,23.00,10000,?,?,?,?)
20241227@191328.5840 n88j23vmsao6ni615jsond53d1 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@191328.6400 n88j23vmsao6ni615jsond53d1 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241227@191328.6680 n88j23vmsao6ni615jsond53d1 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@191328.6830 n88j23vmsao6ni615jsond53d1 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241227@191328.7030 n88j23vmsao6ni615jsond53d1 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241227@191328.7160 n88j23vmsao6ni615jsond53d1 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@191328.7330 n88j23vmsao6ni615jsond53d1 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241227@191328.7450 n88j23vmsao6ni615jsond53d1 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut676ef17935676efc5811','aut676ef81294676efc57d7' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241227@191328.7500 n88j23vmsao6ni615jsond53d1 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@191328.7660 n88j23vmsao6ni615jsond53d1 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241227@191328.7950 n88j23vmsao6ni615jsond53d1 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut676ef17935676efc5811',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut676ef81294676efc57d7' ,0,0 ,2,23.00,20000,?,?,?)
20241227@191328.1106 n88j23vmsao6ni615jsond53d1 Query : use flama_phc
20241227@191328.1111 n88j23vmsao6ni615jsond53d1 Query : select st.usalote valor from st where st.ref = '324.2223.00.1'
20241227@191328.1133 n88j23vmsao6ni615jsond53d1 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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.2223.00.1'
20241227@191328.1263 n88j23vmsao6ni615jsond53d1 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@191328.1281 n88j23vmsao6ni615jsond53d1 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241227@191328.1305 n88j23vmsao6ni615jsond53d1 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@191328.1321 n88j23vmsao6ni615jsond53d1 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241227@191328.1330 n88j23vmsao6ni615jsond53d1 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241227@191328.1343 n88j23vmsao6ni615jsond53d1 Query : select sestamp valor from se where ref ='324.2223.00.1' and lote = 'r2301280100a'
20241227@191328.1356 n88j23vmsao6ni615jsond53d1 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@191328.1371 n88j23vmsao6ni615jsond53d1 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241227@191328.1383 n88j23vmsao6ni615jsond53d1 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut676ef40675676efc5821','aut676ef81294676efc57d7' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241227@191328.1387 n88j23vmsao6ni615jsond53d1 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@191328.1404 n88j23vmsao6ni615jsond53d1 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241227@191328.1434 n88j23vmsao6ni615jsond53d1 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem) values ('aut676ef40675676efc5821',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',4.000 ,'aut676ef81294676efc57d7' ,0,0 ,2,23.00,40000,?,?,?,?)
20241227@191328.1744 n88j23vmsao6ni615jsond53d1 Query : use flama_phc
20241227@191328.1747 n88j23vmsao6ni615jsond53d1 Query : select st.usalote valor from st where st.ref = '324.2224.00.1'
20241227@191328.1769 n88j23vmsao6ni615jsond53d1 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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.2224.00.1'
20241227@191328.1938 n88j23vmsao6ni615jsond53d1 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@191328.1954 n88j23vmsao6ni615jsond53d1 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241227@191328.1982 n88j23vmsao6ni615jsond53d1 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@191328.1996 n88j23vmsao6ni615jsond53d1 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241227@191328.2005 n88j23vmsao6ni615jsond53d1 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241227@191328.2018 n88j23vmsao6ni615jsond53d1 Query : select sestamp valor from se where ref ='324.2224.00.1' and lote = 'r2301280100a'
20241227@191328.2066 n88j23vmsao6ni615jsond53d1 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@191328.2081 n88j23vmsao6ni615jsond53d1 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241227@191328.2093 n88j23vmsao6ni615jsond53d1 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut676ef31349676efc5832','aut676ef81294676efc57d7' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241227@191328.2097 n88j23vmsao6ni615jsond53d1 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@191328.2113 n88j23vmsao6ni615jsond53d1 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241227@191328.2140 n88j23vmsao6ni615jsond53d1 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem) values ('aut676ef31349676efc5832',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',4.000 ,'aut676ef81294676efc57d7' ,0,0 ,2,23.00,50000,?,?,?,?)
20241227@191328.2383 n88j23vmsao6ni615jsond53d1 Query : use flama_phc
20241227@191328.2387 n88j23vmsao6ni615jsond53d1 Query : select st.usalote valor from st where st.ref = '324.5500.00.1'
20241227@191328.2407 n88j23vmsao6ni615jsond53d1 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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.5500.00.1'
20241227@191328.2990 n88j23vmsao6ni615jsond53d1 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@191328.3693 n88j23vmsao6ni615jsond53d1 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241227@191328.4892 n88j23vmsao6ni615jsond53d1 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@191328.5191 n88j23vmsao6ni615jsond53d1 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241227@191328.5200 n88j23vmsao6ni615jsond53d1 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241227@191328.5214 n88j23vmsao6ni615jsond53d1 Query : select sestamp valor from se where ref ='324.5500.00.1' and lote = 'r2400095600a'
20241227@191328.5229 n88j23vmsao6ni615jsond53d1 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@191328.5248 n88j23vmsao6ni615jsond53d1 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241227@191328.5260 n88j23vmsao6ni615jsond53d1 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut676ef48538676efc587f','aut676ef81294676efc57d7' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241227@191328.5265 n88j23vmsao6ni615jsond53d1 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@191328.5280 n88j23vmsao6ni615jsond53d1 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241227@191328.5310 n88j23vmsao6ni615jsond53d1 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem) values ('aut676ef48538676efc587f',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',2.000 ,'aut676ef81294676efc57d7' ,0,0 ,2,23.00,60000,?,?,?,?)
20241227@191328.5569 n88j23vmsao6ni615jsond53d1 Query : use flama_phc
20241227@191328.5573 n88j23vmsao6ni615jsond53d1 Query : select st.usalote valor from st where st.ref = '324.1685.00.1'
20241227@191328.5591 n88j23vmsao6ni615jsond53d1 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.1685.00.1'
20241227@191328.5605 n88j23vmsao6ni615jsond53d1 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@191328.5621 n88j23vmsao6ni615jsond53d1 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241227@191328.5655 n88j23vmsao6ni615jsond53d1 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@191328.5672 n88j23vmsao6ni615jsond53d1 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241227@191328.5706 n88j23vmsao6ni615jsond53d1 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241227@191328.5718 n88j23vmsao6ni615jsond53d1 Query : select sestamp valor from se where ref ='324.1685.00.1' and lote = 'r2400173100a'
20241227@191328.5731 n88j23vmsao6ni615jsond53d1 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@191328.5750 n88j23vmsao6ni615jsond53d1 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241227@191328.5762 n88j23vmsao6ni615jsond53d1 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut676ef68445676efc588b','aut676ef81294676efc57d7' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241227@191328.5767 n88j23vmsao6ni615jsond53d1 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@191328.5815 n88j23vmsao6ni615jsond53d1 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241227@191328.5848 n88j23vmsao6ni615jsond53d1 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem) values ('aut676ef68445676efc588b',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',4.000 ,'aut676ef81294676efc57d7' ,0,0 ,2,23.00,70000,?,?,?,?)
20241227@191328.6116 n88j23vmsao6ni615jsond53d1 Query : use flama_phc
20241227@191328.6120 n88j23vmsao6ni615jsond53d1 Query : select st.usalote valor from st where st.ref = '324.2308.00.1'
20241227@191328.6141 n88j23vmsao6ni615jsond53d1 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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.2308.00.1'
20241227@191328.6302 n88j23vmsao6ni615jsond53d1 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@191328.6318 n88j23vmsao6ni615jsond53d1 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241227@191328.6343 n88j23vmsao6ni615jsond53d1 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@191328.6358 n88j23vmsao6ni615jsond53d1 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241227@191328.6367 n88j23vmsao6ni615jsond53d1 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241227@191328.6379 n88j23vmsao6ni615jsond53d1 Query : select sestamp valor from se where ref ='324.2308.00.1' and lote = 'r2400475700a'
20241227@191328.6392 n88j23vmsao6ni615jsond53d1 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@191328.6407 n88j23vmsao6ni615jsond53d1 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241227@191328.6421 n88j23vmsao6ni615jsond53d1 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut676ef77226676efc589c','aut676ef81294676efc57d7' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241227@191328.6425 n88j23vmsao6ni615jsond53d1 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@191328.6438 n88j23vmsao6ni615jsond53d1 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241227@191328.6467 n88j23vmsao6ni615jsond53d1 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem) values ('aut676ef77226676efc589c',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',24.000 ,'aut676ef81294676efc57d7' ,0,0 ,2,23.00,80000,?,?,?,?)
20241227@191328.6722 n88j23vmsao6ni615jsond53d1 Query : use flama_phc
20241227@191328.6725 n88j23vmsao6ni615jsond53d1 Query : select st.usalote valor from st where st.ref = '324.2308.00.1'
20241227@191328.6744 n88j23vmsao6ni615jsond53d1 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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.2308.00.1'
20241227@191328.6757 n88j23vmsao6ni615jsond53d1 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@191328.6773 n88j23vmsao6ni615jsond53d1 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241227@191328.6801 n88j23vmsao6ni615jsond53d1 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@191328.6816 n88j23vmsao6ni615jsond53d1 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241227@191328.6825 n88j23vmsao6ni615jsond53d1 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241227@191328.6837 n88j23vmsao6ni615jsond53d1 Query : select sestamp valor from se where ref ='324.2308.00.1' and lote = 'r2400475700a'
20241227@191328.6849 n88j23vmsao6ni615jsond53d1 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@191328.6863 n88j23vmsao6ni615jsond53d1 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241227@191328.6874 n88j23vmsao6ni615jsond53d1 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut676ef83130676efc58a7','aut676ef81294676efc57d7' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241227@191328.6879 n88j23vmsao6ni615jsond53d1 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@191328.6893 n88j23vmsao6ni615jsond53d1 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241227@191328.6920 n88j23vmsao6ni615jsond53d1 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem) values ('aut676ef83130676efc58a7',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',6.000 ,'aut676ef81294676efc57d7' ,0,0 ,2,23.00,90000,?,?,?,?)
20241227@191328.7134 n88j23vmsao6ni615jsond53d1 Query : use flama_phc
20241227@191328.7137 n88j23vmsao6ni615jsond53d1 Query : select st.usalote valor from st where st.ref = '324.1329.00.1'
20241227@191328.7156 n88j23vmsao6ni615jsond53d1 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.1329.00.1'
20241227@191328.7278 n88j23vmsao6ni615jsond53d1 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@191328.7296 n88j23vmsao6ni615jsond53d1 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241227@191328.7321 n88j23vmsao6ni615jsond53d1 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@191328.7335 n88j23vmsao6ni615jsond53d1 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241227@191328.7343 n88j23vmsao6ni615jsond53d1 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241227@191328.7355 n88j23vmsao6ni615jsond53d1 Query : select sestamp valor from se where ref ='324.1329.00.1' and lote = 'r2400496300a'
20241227@191328.7369 n88j23vmsao6ni615jsond53d1 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@191328.7383 n88j23vmsao6ni615jsond53d1 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241227@191328.7395 n88j23vmsao6ni615jsond53d1 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut676ef15707676efc58b3','aut676ef81294676efc57d7' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241227@191328.7399 n88j23vmsao6ni615jsond53d1 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@191328.7413 n88j23vmsao6ni615jsond53d1 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241227@191328.7439 n88j23vmsao6ni615jsond53d1 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem) values ('aut676ef15707676efc58b3',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',3.000 ,'aut676ef81294676efc57d7' ,0,0 ,2,23.00,100000,?,?,?,?)
20241227@191328.7655 n88j23vmsao6ni615jsond53d1 Query : use flama_phc
20241227@191328.7658 n88j23vmsao6ni615jsond53d1 Query : select st.usalote valor from st where st.ref = '324.727.00.01'
20241227@191328.7683 n88j23vmsao6ni615jsond53d1 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.727.00.01'
20241227@191328.7804 n88j23vmsao6ni615jsond53d1 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@191328.7827 n88j23vmsao6ni615jsond53d1 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241227@191328.7851 n88j23vmsao6ni615jsond53d1 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@191328.7866 n88j23vmsao6ni615jsond53d1 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241227@191328.7875 n88j23vmsao6ni615jsond53d1 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241227@191328.7886 n88j23vmsao6ni615jsond53d1 Query : select sestamp valor from se where ref ='324.727.00.01' and lote = 'r2400239200a'
20241227@191328.7899 n88j23vmsao6ni615jsond53d1 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@191328.7913 n88j23vmsao6ni615jsond53d1 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241227@191328.7924 n88j23vmsao6ni615jsond53d1 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut676ef34175676efc58c0','aut676ef81294676efc57d7' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241227@191328.7928 n88j23vmsao6ni615jsond53d1 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@191328.7942 n88j23vmsao6ni615jsond53d1 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241227@191328.7969 n88j23vmsao6ni615jsond53d1 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem) values ('aut676ef34175676efc58c0',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',4.000 ,'aut676ef81294676efc57d7' ,0,0 ,2,23.00,110000,?,?,?,?)
20241227@191328.8193 n88j23vmsao6ni615jsond53d1 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@191328.8210 n88j23vmsao6ni615jsond53d1 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241227@191328.8235 n88j23vmsao6ni615jsond53d1 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@191328.8249 n88j23vmsao6ni615jsond53d1 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241227@191328.8257 n88j23vmsao6ni615jsond53d1 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241227@191328.8269 n88j23vmsao6ni615jsond53d1 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@191328.8283 n88j23vmsao6ni615jsond53d1 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241227@191328.8294 n88j23vmsao6ni615jsond53d1 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut676ef85147676efc58c9','aut676ef81294676efc57d7' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241227@191328.8298 n88j23vmsao6ni615jsond53d1 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@191328.8312 n88j23vmsao6ni615jsond53d1 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241227@191328.8340 n88j23vmsao6ni615jsond53d1 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut676ef85147676efc58c9',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut676ef81294676efc57d7' ,0,0 ,2,23.00,120000,?,?,?)
20241227@191328.8554 n88j23vmsao6ni615jsond53d1 Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut676ef81294676efc57d7','2408900','wait',39,'adm09112754980.682000002')
20241227@191328.8626 n88j23vmsao6ni615jsond53d1 Query : use flama_phc
20241227@191328.8629 n88j23vmsao6ni615jsond53d1 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20241227@191328.8660 n88j23vmsao6ni615jsond53d1 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4187';
20241227@191328.8742 n88j23vmsao6ni615jsond53d1 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4187';
20241227@191328.8795 n88j23vmsao6ni615jsond53d1 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4187';
20241227@191328.8830 n88j23vmsao6ni615jsond53d1 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4187';
20241227@192825.3926 d37pmn5agedcb7kahmcpiih06q Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20241227@192825.3946 d37pmn5agedcb7kahmcpiih06q Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20241227@192825.5172 d37pmn5agedcb7kahmcpiih06q Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4188';
20241227@192825.5241 d37pmn5agedcb7kahmcpiih06q Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4188';
20241227@192825.5301 d37pmn5agedcb7kahmcpiih06q Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4188';
20241227@192825.5334 d37pmn5agedcb7kahmcpiih06q Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4188';
20241227@192825.5390 d37pmn5agedcb7kahmcpiih06q Query : use flama_phc
20241227@192825.5394 d37pmn5agedcb7kahmcpiih06q Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20241227@192825.5463 d37pmn5agedcb7kahmcpiih06q Query : use flama_phc
20241227@192825.5466 d37pmn5agedcb7kahmcpiih06q Query : select no, estab,szadrsdesc from szadrs where u_coddest=4790
20241227@192825.5550 d37pmn5agedcb7kahmcpiih06q Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1685.00.1'
20241227@192825.5684 d37pmn5agedcb7kahmcpiih06q Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2088 and bo.obrano = 2408851 and bi.ref ='324.1685.00.1' and bi.lordem =1
20241227@192825.5991 d37pmn5agedcb7kahmcpiih06q Query : use flama_phc
20241227@192825.5994 d37pmn5agedcb7kahmcpiih06q Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20241227@192825.6032 d37pmn5agedcb7kahmcpiih06q Query : use flama_phc
20241227@192825.6035 d37pmn5agedcb7kahmcpiih06q Query : select top 1 1 valor from td where td.ndoc = 39
20241227@192825.6065 d37pmn5agedcb7kahmcpiih06q Query : use flama_phc
20241227@192825.6068 d37pmn5agedcb7kahmcpiih06q 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')
20241227@192825.6101 d37pmn5agedcb7kahmcpiih06q 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
20241227@192825.6137 d37pmn5agedcb7kahmcpiih06q Query : use flama_phc
20241227@192825.6140 d37pmn5agedcb7kahmcpiih06q Query : select top 1 ~inactivo valor from cl where no = '199510' and estab = 0 order by inactivo desc
20241227@192825.6244 d37pmn5agedcb7kahmcpiih06q Query : use flama_phc
20241227@192825.6247 d37pmn5agedcb7kahmcpiih06q Query : select top 1 tipodoc,regrd from td where ndoc = 39
20241227@192825.6279 d37pmn5agedcb7kahmcpiih06q Query : use flama_phc
20241227@192825.6283 d37pmn5agedcb7kahmcpiih06q Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20241227@192825.6324 d37pmn5agedcb7kahmcpiih06q Query : use flama_phc
20241227@192825.6327 d37pmn5agedcb7kahmcpiih06q Query : select szadrsstamp valor from szadrs where szadrsdesc='199510 - cdnogueira regedoura'
20241227@192825.6377 d37pmn5agedcb7kahmcpiih06q Query : use flama_phc
20241227@192825.6380 d37pmn5agedcb7kahmcpiih06q Query : select 1 valor from td where ndoc = 39
20241227@192825.6406 d37pmn5agedcb7kahmcpiih06q Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20241227@192825.6421 d37pmn5agedcb7kahmcpiih06q Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@192825.6439 d37pmn5agedcb7kahmcpiih06q Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20241227@192825.6458 d37pmn5agedcb7kahmcpiih06q Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@192825.6473 d37pmn5agedcb7kahmcpiih06q Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20241227@192825.6503 d37pmn5agedcb7kahmcpiih06q Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@192825.6519 d37pmn5agedcb7kahmcpiih06q Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20241227@192825.6533 d37pmn5agedcb7kahmcpiih06q Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20241227@192825.6601 d37pmn5agedcb7kahmcpiih06q Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20241227@192825.6615 d37pmn5agedcb7kahmcpiih06q Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@192825.6631 d37pmn5agedcb7kahmcpiih06q Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20241227@192825.6661 d37pmn5agedcb7kahmcpiih06q Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut676ef23116676effd99f' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20241227@192825.6838 d37pmn5agedcb7kahmcpiih06q Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@192825.6858 d37pmn5agedcb7kahmcpiih06q Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20241227@192825.6894 d37pmn5agedcb7kahmcpiih06q Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20241227@192825.6907 d37pmn5agedcb7kahmcpiih06q Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20241227@192825.6929 d37pmn5agedcb7kahmcpiih06q Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20241227@192825.6941 d37pmn5agedcb7kahmcpiih06q Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20241227@192825.6953 d37pmn5agedcb7kahmcpiih06q Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20241227@192825.6965 d37pmn5agedcb7kahmcpiih06q Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20241227@192825.6977 d37pmn5agedcb7kahmcpiih06q Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut676ef23116676effd99f',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20241227@192825.7212 d37pmn5agedcb7kahmcpiih06q Query : select top 1 fno valor from wsftdata order by fno desc
20241227@192825.7245 d37pmn5agedcb7kahmcpiih06q Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@192825.7261 d37pmn5agedcb7kahmcpiih06q Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20241227@192825.7284 d37pmn5agedcb7kahmcpiih06q Query : select 'normal' from dummy
20241227@192825.7300 d37pmn5agedcb7kahmcpiih06q Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut676ef23116676effd99f',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',2632,199510,0,'2024-12-27',39,'euro',0,0,2024 ,?,?)
20241227@192825.7577 d37pmn5agedcb7kahmcpiih06q Query : use flama_phc
20241227@192825.7581 d37pmn5agedcb7kahmcpiih06q Query : select st.usalote valor from st where st.ref = '324.1685.00.1'
20241227@192825.7605 d37pmn5agedcb7kahmcpiih06q Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.1685.00.1'
20241227@192825.7619 d37pmn5agedcb7kahmcpiih06q Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@192825.7635 d37pmn5agedcb7kahmcpiih06q Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241227@192825.7665 d37pmn5agedcb7kahmcpiih06q Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@192825.7679 d37pmn5agedcb7kahmcpiih06q Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241227@192825.7688 d37pmn5agedcb7kahmcpiih06q Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241227@192825.7701 d37pmn5agedcb7kahmcpiih06q Query : select sestamp valor from se where ref ='324.1685.00.1' and lote = 'r2400173100a'
20241227@192825.7714 d37pmn5agedcb7kahmcpiih06q Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@192825.7730 d37pmn5agedcb7kahmcpiih06q Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241227@192825.7743 d37pmn5agedcb7kahmcpiih06q Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut676ef92497676effd9bc','aut676ef23116676effd99f' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241227@192825.7752 d37pmn5agedcb7kahmcpiih06q Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@192825.7767 d37pmn5agedcb7kahmcpiih06q Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241227@192825.7811 d37pmn5agedcb7kahmcpiih06q Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut676ef92497676effd9bc',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',1.000 ,'aut676ef23116676effd99f' ,0,0 ,2,23.00,10000,?,?,?,?,?)
20241227@192825.8067 d37pmn5agedcb7kahmcpiih06q Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut676ef23116676effd99f','2408851','wait',39,'adm09112754980.682000002')
20241227@192825.8148 d37pmn5agedcb7kahmcpiih06q Query : use flama_phc
20241227@192825.8152 d37pmn5agedcb7kahmcpiih06q Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20241227@192825.8194 d37pmn5agedcb7kahmcpiih06q Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4188';
20241227@192825.8298 d37pmn5agedcb7kahmcpiih06q Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4188';
20241227@192825.8352 d37pmn5agedcb7kahmcpiih06q Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4188';
20241227@192825.8385 d37pmn5agedcb7kahmcpiih06q Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4188';
20241227@192825.9328 rg5n7ndgid2bb0t6aljv3sol33 Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20241227@192825.9356 rg5n7ndgid2bb0t6aljv3sol33 Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20241227@192825.9425 rg5n7ndgid2bb0t6aljv3sol33 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4189';
20241227@192825.9486 rg5n7ndgid2bb0t6aljv3sol33 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4189';
20241227@192825.9550 rg5n7ndgid2bb0t6aljv3sol33 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4189';
20241227@192825.9583 rg5n7ndgid2bb0t6aljv3sol33 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4189';
20241227@192825.9637 rg5n7ndgid2bb0t6aljv3sol33 Query : use flama_phc
20241227@192825.9640 rg5n7ndgid2bb0t6aljv3sol33 Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20241227@192825.9706 rg5n7ndgid2bb0t6aljv3sol33 Query : use flama_phc
20241227@192825.9709 rg5n7ndgid2bb0t6aljv3sol33 Query : select no, estab,szadrsdesc from szadrs where u_coddest=4790
20241227@192825.9754 rg5n7ndgid2bb0t6aljv3sol33 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1685.00.1'
20241227@192825.9776 rg5n7ndgid2bb0t6aljv3sol33 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2088 and bo.obrano = 2408852 and bi.ref ='324.1685.00.1' and bi.lordem =1
20241227@192826.8400 rg5n7ndgid2bb0t6aljv3sol33 Query : use flama_phc
20241227@192826.8700 rg5n7ndgid2bb0t6aljv3sol33 Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20241227@192826.1190 rg5n7ndgid2bb0t6aljv3sol33 Query : use flama_phc
20241227@192826.1220 rg5n7ndgid2bb0t6aljv3sol33 Query : select top 1 1 valor from td where td.ndoc = 39
20241227@192826.1510 rg5n7ndgid2bb0t6aljv3sol33 Query : use flama_phc
20241227@192826.1540 rg5n7ndgid2bb0t6aljv3sol33 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')
20241227@192826.1810 rg5n7ndgid2bb0t6aljv3sol33 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
20241227@192826.2150 rg5n7ndgid2bb0t6aljv3sol33 Query : use flama_phc
20241227@192826.2180 rg5n7ndgid2bb0t6aljv3sol33 Query : select top 1 ~inactivo valor from cl where no = '199510' and estab = 0 order by inactivo desc
20241227@192826.2470 rg5n7ndgid2bb0t6aljv3sol33 Query : use flama_phc
20241227@192826.2500 rg5n7ndgid2bb0t6aljv3sol33 Query : select top 1 tipodoc,regrd from td where ndoc = 39
20241227@192826.2810 rg5n7ndgid2bb0t6aljv3sol33 Query : use flama_phc
20241227@192826.2840 rg5n7ndgid2bb0t6aljv3sol33 Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20241227@192826.3230 rg5n7ndgid2bb0t6aljv3sol33 Query : use flama_phc
20241227@192826.3260 rg5n7ndgid2bb0t6aljv3sol33 Query : select szadrsstamp valor from szadrs where szadrsdesc='199510 - cdnogueira regedoura'
20241227@192826.3720 rg5n7ndgid2bb0t6aljv3sol33 Query : use flama_phc
20241227@192826.3750 rg5n7ndgid2bb0t6aljv3sol33 Query : select 1 valor from td where ndoc = 39
20241227@192826.3870 rg5n7ndgid2bb0t6aljv3sol33 Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20241227@192826.4010 rg5n7ndgid2bb0t6aljv3sol33 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@192826.4170 rg5n7ndgid2bb0t6aljv3sol33 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20241227@192826.4360 rg5n7ndgid2bb0t6aljv3sol33 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@192826.4500 rg5n7ndgid2bb0t6aljv3sol33 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20241227@192826.4800 rg5n7ndgid2bb0t6aljv3sol33 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@192826.4950 rg5n7ndgid2bb0t6aljv3sol33 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20241227@192826.5090 rg5n7ndgid2bb0t6aljv3sol33 Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20241227@192826.5640 rg5n7ndgid2bb0t6aljv3sol33 Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20241227@192826.5820 rg5n7ndgid2bb0t6aljv3sol33 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@192826.5990 rg5n7ndgid2bb0t6aljv3sol33 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20241227@192826.6150 rg5n7ndgid2bb0t6aljv3sol33 Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut676ef24023676effda0c' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20241227@192826.7900 rg5n7ndgid2bb0t6aljv3sol33 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@192826.8070 rg5n7ndgid2bb0t6aljv3sol33 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20241227@192826.8400 rg5n7ndgid2bb0t6aljv3sol33 Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20241227@192826.8520 rg5n7ndgid2bb0t6aljv3sol33 Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20241227@192826.8640 rg5n7ndgid2bb0t6aljv3sol33 Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20241227@192826.8770 rg5n7ndgid2bb0t6aljv3sol33 Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20241227@192826.8890 rg5n7ndgid2bb0t6aljv3sol33 Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20241227@192826.9010 rg5n7ndgid2bb0t6aljv3sol33 Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20241227@192826.9130 rg5n7ndgid2bb0t6aljv3sol33 Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut676ef24023676effda0c',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20241227@192826.1138 rg5n7ndgid2bb0t6aljv3sol33 Query : select top 1 fno valor from wsftdata order by fno desc
20241227@192826.1312 rg5n7ndgid2bb0t6aljv3sol33 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@192826.1454 rg5n7ndgid2bb0t6aljv3sol33 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20241227@192826.1503 rg5n7ndgid2bb0t6aljv3sol33 Query : select 'normal' from dummy
20241227@192826.1519 rg5n7ndgid2bb0t6aljv3sol33 Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut676ef24023676effda0c',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',2633,199510,0,'2024-12-27',39,'euro',0,0,2024 ,?,?)
20241227@192826.1781 rg5n7ndgid2bb0t6aljv3sol33 Query : use flama_phc
20241227@192826.1784 rg5n7ndgid2bb0t6aljv3sol33 Query : select st.usalote valor from st where st.ref = '324.1685.00.1'
20241227@192826.1809 rg5n7ndgid2bb0t6aljv3sol33 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.1685.00.1'
20241227@192826.1823 rg5n7ndgid2bb0t6aljv3sol33 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@192826.1839 rg5n7ndgid2bb0t6aljv3sol33 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241227@192826.1864 rg5n7ndgid2bb0t6aljv3sol33 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@192826.1881 rg5n7ndgid2bb0t6aljv3sol33 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241227@192826.1890 rg5n7ndgid2bb0t6aljv3sol33 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241227@192826.1903 rg5n7ndgid2bb0t6aljv3sol33 Query : select sestamp valor from se where ref ='324.1685.00.1' and lote = 'r2400173100a'
20241227@192826.1915 rg5n7ndgid2bb0t6aljv3sol33 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@192826.1930 rg5n7ndgid2bb0t6aljv3sol33 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241227@192826.1943 rg5n7ndgid2bb0t6aljv3sol33 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut676ef79865676effda2e','aut676ef24023676effda0c' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241227@192826.1947 rg5n7ndgid2bb0t6aljv3sol33 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@192826.1962 rg5n7ndgid2bb0t6aljv3sol33 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241227@192826.1997 rg5n7ndgid2bb0t6aljv3sol33 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut676ef79865676effda2e',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',1.000 ,'aut676ef24023676effda0c' ,0,0 ,2,23.00,10000,?,?,?,?,?)
20241227@192826.2223 rg5n7ndgid2bb0t6aljv3sol33 Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut676ef24023676effda0c','2408852','wait',39,'adm09112754980.682000002')
20241227@192826.2329 rg5n7ndgid2bb0t6aljv3sol33 Query : use flama_phc
20241227@192826.2332 rg5n7ndgid2bb0t6aljv3sol33 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20241227@192826.2368 rg5n7ndgid2bb0t6aljv3sol33 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4189';
20241227@192826.2410 rg5n7ndgid2bb0t6aljv3sol33 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4189';
20241227@192826.2471 rg5n7ndgid2bb0t6aljv3sol33 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4189';
20241227@192826.2507 rg5n7ndgid2bb0t6aljv3sol33 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4189';
20241227@192826.4023 dadscghgkr222dit0p4ap9ifqi Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20241227@192826.4034 dadscghgkr222dit0p4ap9ifqi Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20241227@192826.4119 dadscghgkr222dit0p4ap9ifqi Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4190';
20241227@192826.4181 dadscghgkr222dit0p4ap9ifqi Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4190';
20241227@192826.4242 dadscghgkr222dit0p4ap9ifqi Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4190';
20241227@192826.4276 dadscghgkr222dit0p4ap9ifqi Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4190';
20241227@192826.4380 dadscghgkr222dit0p4ap9ifqi Query : use flama_phc
20241227@192826.4383 dadscghgkr222dit0p4ap9ifqi Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20241227@192826.4447 dadscghgkr222dit0p4ap9ifqi Query : use flama_phc
20241227@192826.4450 dadscghgkr222dit0p4ap9ifqi Query : select no, estab,szadrsdesc from szadrs where u_coddest=4790
20241227@192826.4497 dadscghgkr222dit0p4ap9ifqi Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1685.00.1'
20241227@192826.4520 dadscghgkr222dit0p4ap9ifqi Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2088 and bo.obrano = 2408853 and bi.ref ='324.1685.00.1' and bi.lordem =1
20241227@192826.4824 dadscghgkr222dit0p4ap9ifqi Query : use flama_phc
20241227@192826.4828 dadscghgkr222dit0p4ap9ifqi Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20241227@192826.4870 dadscghgkr222dit0p4ap9ifqi Query : use flama_phc
20241227@192826.4873 dadscghgkr222dit0p4ap9ifqi Query : select top 1 1 valor from td where td.ndoc = 39
20241227@192826.4904 dadscghgkr222dit0p4ap9ifqi Query : use flama_phc
20241227@192826.4908 dadscghgkr222dit0p4ap9ifqi 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')
20241227@192826.4937 dadscghgkr222dit0p4ap9ifqi 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
20241227@192826.4974 dadscghgkr222dit0p4ap9ifqi Query : use flama_phc
20241227@192826.4977 dadscghgkr222dit0p4ap9ifqi Query : select top 1 ~inactivo valor from cl where no = '199510' and estab = 0 order by inactivo desc
20241227@192826.5008 dadscghgkr222dit0p4ap9ifqi Query : use flama_phc
20241227@192826.5011 dadscghgkr222dit0p4ap9ifqi Query : select top 1 tipodoc,regrd from td where ndoc = 39
20241227@192826.5041 dadscghgkr222dit0p4ap9ifqi Query : use flama_phc
20241227@192826.5044 dadscghgkr222dit0p4ap9ifqi Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20241227@192826.5084 dadscghgkr222dit0p4ap9ifqi Query : use flama_phc
20241227@192826.5087 dadscghgkr222dit0p4ap9ifqi Query : select szadrsstamp valor from szadrs where szadrsdesc='199510 - cdnogueira regedoura'
20241227@192826.5141 dadscghgkr222dit0p4ap9ifqi Query : use flama_phc
20241227@192826.5144 dadscghgkr222dit0p4ap9ifqi Query : select 1 valor from td where ndoc = 39
20241227@192826.5157 dadscghgkr222dit0p4ap9ifqi Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20241227@192826.5171 dadscghgkr222dit0p4ap9ifqi Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@192826.5188 dadscghgkr222dit0p4ap9ifqi Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20241227@192826.5209 dadscghgkr222dit0p4ap9ifqi Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@192826.5225 dadscghgkr222dit0p4ap9ifqi Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20241227@192826.5269 dadscghgkr222dit0p4ap9ifqi Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@192826.5285 dadscghgkr222dit0p4ap9ifqi Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20241227@192826.5299 dadscghgkr222dit0p4ap9ifqi Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20241227@192826.5352 dadscghgkr222dit0p4ap9ifqi Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20241227@192826.5366 dadscghgkr222dit0p4ap9ifqi Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@192826.5381 dadscghgkr222dit0p4ap9ifqi Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20241227@192826.5401 dadscghgkr222dit0p4ap9ifqi Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut676ef53273676effda81' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20241227@192826.5562 dadscghgkr222dit0p4ap9ifqi Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@192826.5579 dadscghgkr222dit0p4ap9ifqi Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20241227@192826.5616 dadscghgkr222dit0p4ap9ifqi Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20241227@192826.5629 dadscghgkr222dit0p4ap9ifqi Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20241227@192826.5641 dadscghgkr222dit0p4ap9ifqi Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20241227@192826.5653 dadscghgkr222dit0p4ap9ifqi Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20241227@192826.5665 dadscghgkr222dit0p4ap9ifqi Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20241227@192826.5677 dadscghgkr222dit0p4ap9ifqi Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20241227@192826.5689 dadscghgkr222dit0p4ap9ifqi Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut676ef53273676effda81',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20241227@192826.5919 dadscghgkr222dit0p4ap9ifqi Query : select top 1 fno valor from wsftdata order by fno desc
20241227@192826.5948 dadscghgkr222dit0p4ap9ifqi Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@192826.5964 dadscghgkr222dit0p4ap9ifqi Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20241227@192826.5988 dadscghgkr222dit0p4ap9ifqi Query : select 'normal' from dummy
20241227@192826.6003 dadscghgkr222dit0p4ap9ifqi Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut676ef53273676effda81',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',2634,199510,0,'2024-12-27',39,'euro',0,0,2024 ,?,?)
20241227@192826.6329 dadscghgkr222dit0p4ap9ifqi Query : use flama_phc
20241227@192826.6333 dadscghgkr222dit0p4ap9ifqi Query : select st.usalote valor from st where st.ref = '324.1685.00.1'
20241227@192826.6355 dadscghgkr222dit0p4ap9ifqi Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.1685.00.1'
20241227@192826.6372 dadscghgkr222dit0p4ap9ifqi Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@192826.6389 dadscghgkr222dit0p4ap9ifqi Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241227@192826.6414 dadscghgkr222dit0p4ap9ifqi Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@192826.6431 dadscghgkr222dit0p4ap9ifqi Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241227@192826.6440 dadscghgkr222dit0p4ap9ifqi Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241227@192826.6451 dadscghgkr222dit0p4ap9ifqi Query : select sestamp valor from se where ref ='324.1685.00.1' and lote = 'r2400173100a'
20241227@192826.6464 dadscghgkr222dit0p4ap9ifqi Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@192826.6479 dadscghgkr222dit0p4ap9ifqi Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241227@192826.6505 dadscghgkr222dit0p4ap9ifqi Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut676ef90337676effda9d','aut676ef53273676effda81' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241227@192826.6509 dadscghgkr222dit0p4ap9ifqi Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@192826.6524 dadscghgkr222dit0p4ap9ifqi Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241227@192826.6553 dadscghgkr222dit0p4ap9ifqi Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut676ef90337676effda9d',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',1.000 ,'aut676ef53273676effda81' ,0,0 ,2,23.00,10000,?,?,?,?,?)
20241227@192826.6783 dadscghgkr222dit0p4ap9ifqi Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut676ef53273676effda81','2408853','wait',39,'adm09112754980.682000002')
20241227@192826.6856 dadscghgkr222dit0p4ap9ifqi Query : use flama_phc
20241227@192826.6859 dadscghgkr222dit0p4ap9ifqi Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20241227@192826.6888 dadscghgkr222dit0p4ap9ifqi Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4190';
20241227@192826.6929 dadscghgkr222dit0p4ap9ifqi Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4190';
20241227@192826.6981 dadscghgkr222dit0p4ap9ifqi Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4190';
20241227@192826.7011 dadscghgkr222dit0p4ap9ifqi Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4190';
20241227@192826.7509 u3osgb7cdqrirm4cjksevsl983 Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20241227@192826.7520 u3osgb7cdqrirm4cjksevsl983 Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20241227@192826.7585 u3osgb7cdqrirm4cjksevsl983 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4191';
20241227@192826.7654 u3osgb7cdqrirm4cjksevsl983 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4191';
20241227@192826.7714 u3osgb7cdqrirm4cjksevsl983 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4191';
20241227@192826.7751 u3osgb7cdqrirm4cjksevsl983 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4191';
20241227@192826.7810 u3osgb7cdqrirm4cjksevsl983 Query : use flama_phc
20241227@192826.7813 u3osgb7cdqrirm4cjksevsl983 Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20241227@192826.7876 u3osgb7cdqrirm4cjksevsl983 Query : use flama_phc
20241227@192826.7879 u3osgb7cdqrirm4cjksevsl983 Query : select no, estab,szadrsdesc from szadrs where u_coddest=6802
20241227@192826.7971 u3osgb7cdqrirm4cjksevsl983 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1462.00.1'
20241227@192826.7998 u3osgb7cdqrirm4cjksevsl983 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2088 and bo.obrano = 2408855 and bi.ref ='324.1462.00.1' and bi.lordem =1
20241227@192826.8321 u3osgb7cdqrirm4cjksevsl983 Query : use flama_phc
20241227@192826.8324 u3osgb7cdqrirm4cjksevsl983 Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20241227@192826.8356 u3osgb7cdqrirm4cjksevsl983 Query : use flama_phc
20241227@192826.8360 u3osgb7cdqrirm4cjksevsl983 Query : select top 1 1 valor from td where td.ndoc = 39
20241227@192826.8393 u3osgb7cdqrirm4cjksevsl983 Query : use flama_phc
20241227@192826.8396 u3osgb7cdqrirm4cjksevsl983 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')
20241227@192826.8427 u3osgb7cdqrirm4cjksevsl983 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
20241227@192826.8463 u3osgb7cdqrirm4cjksevsl983 Query : use flama_phc
20241227@192826.8466 u3osgb7cdqrirm4cjksevsl983 Query : select top 1 ~inactivo valor from cl where no = '101621' and estab = 0 order by inactivo desc
20241227@192826.8562 u3osgb7cdqrirm4cjksevsl983 Query : use flama_phc
20241227@192826.8565 u3osgb7cdqrirm4cjksevsl983 Query : select top 1 tipodoc,regrd from td where ndoc = 39
20241227@192826.8595 u3osgb7cdqrirm4cjksevsl983 Query : use flama_phc
20241227@192826.8598 u3osgb7cdqrirm4cjksevsl983 Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20241227@192826.8636 u3osgb7cdqrirm4cjksevsl983 Query : use flama_phc
20241227@192826.8639 u3osgb7cdqrirm4cjksevsl983 Query : select szadrsstamp valor from szadrs where szadrsdesc='j.o.m., lda - sintra'
20241227@192826.8683 u3osgb7cdqrirm4cjksevsl983 Query : use flama_phc
20241227@192826.8687 u3osgb7cdqrirm4cjksevsl983 Query : select 1 valor from td where ndoc = 39
20241227@192826.8700 u3osgb7cdqrirm4cjksevsl983 Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20241227@192826.8717 u3osgb7cdqrirm4cjksevsl983 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@192826.8733 u3osgb7cdqrirm4cjksevsl983 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20241227@192826.8752 u3osgb7cdqrirm4cjksevsl983 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@192826.8768 u3osgb7cdqrirm4cjksevsl983 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20241227@192826.8798 u3osgb7cdqrirm4cjksevsl983 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@192826.8814 u3osgb7cdqrirm4cjksevsl983 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20241227@192826.8829 u3osgb7cdqrirm4cjksevsl983 Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20241227@192826.8882 u3osgb7cdqrirm4cjksevsl983 Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20241227@192826.8895 u3osgb7cdqrirm4cjksevsl983 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@192826.8910 u3osgb7cdqrirm4cjksevsl983 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20241227@192826.8925 u3osgb7cdqrirm4cjksevsl983 Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut676ef71685676effdad7' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20241227@192826.9135 u3osgb7cdqrirm4cjksevsl983 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@192826.9881 u3osgb7cdqrirm4cjksevsl983 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20241227@192827.1920 u3osgb7cdqrirm4cjksevsl983 Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20241227@192827.2040 u3osgb7cdqrirm4cjksevsl983 Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20241227@192827.2150 u3osgb7cdqrirm4cjksevsl983 Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20241227@192827.2280 u3osgb7cdqrirm4cjksevsl983 Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20241227@192827.2430 u3osgb7cdqrirm4cjksevsl983 Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20241227@192827.2550 u3osgb7cdqrirm4cjksevsl983 Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20241227@192827.2660 u3osgb7cdqrirm4cjksevsl983 Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut676ef71685676effdad7',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20241227@192827.4920 u3osgb7cdqrirm4cjksevsl983 Query : select top 1 fno valor from wsftdata order by fno desc
20241227@192827.5220 u3osgb7cdqrirm4cjksevsl983 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@192827.5380 u3osgb7cdqrirm4cjksevsl983 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20241227@192827.5600 u3osgb7cdqrirm4cjksevsl983 Query : select 'normal' from dummy
20241227@192827.5770 u3osgb7cdqrirm4cjksevsl983 Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut676ef71685676effdad7',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',2635,101621,0,'2024-12-27',39,'euro',0,0,2024 ,?,?)
20241227@192827.8730 u3osgb7cdqrirm4cjksevsl983 Query : use flama_phc
20241227@192827.8760 u3osgb7cdqrirm4cjksevsl983 Query : select st.usalote valor from st where st.ref = '324.1462.00.1'
20241227@192827.8970 u3osgb7cdqrirm4cjksevsl983 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.1462.00.1'
20241227@192827.9200 u3osgb7cdqrirm4cjksevsl983 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@192827.9370 u3osgb7cdqrirm4cjksevsl983 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241227@192827.9630 u3osgb7cdqrirm4cjksevsl983 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@192827.9780 u3osgb7cdqrirm4cjksevsl983 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241227@192827.9870 u3osgb7cdqrirm4cjksevsl983 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241227@192827.9990 u3osgb7cdqrirm4cjksevsl983 Query : select sestamp valor from se where ref ='324.1462.00.1' and lote = 'r2100463100a'
20241227@192827.1012 u3osgb7cdqrirm4cjksevsl983 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@192827.1029 u3osgb7cdqrirm4cjksevsl983 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241227@192827.1041 u3osgb7cdqrirm4cjksevsl983 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut676ef97296676effdb18','aut676ef71685676effdad7' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241227@192827.1045 u3osgb7cdqrirm4cjksevsl983 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@192827.1059 u3osgb7cdqrirm4cjksevsl983 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241227@192827.1087 u3osgb7cdqrirm4cjksevsl983 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut676ef97296676effdb18',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',4.000 ,'aut676ef71685676effdad7' ,0,0 ,2,23.00,10000,?,?,?,?,?)
20241227@192827.1326 u3osgb7cdqrirm4cjksevsl983 Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut676ef71685676effdad7','2408855','wait',39,'adm09112754980.682000002')
20241227@192827.1400 u3osgb7cdqrirm4cjksevsl983 Query : use flama_phc
20241227@192827.1403 u3osgb7cdqrirm4cjksevsl983 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20241227@192827.1437 u3osgb7cdqrirm4cjksevsl983 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4191';
20241227@192827.1476 u3osgb7cdqrirm4cjksevsl983 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4191';
20241227@192827.1525 u3osgb7cdqrirm4cjksevsl983 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4191';
20241227@192827.1565 u3osgb7cdqrirm4cjksevsl983 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4191';
20241227@192827.2121 j5eokbdhm25flc7k5uva90iabf Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20241227@192827.2133 j5eokbdhm25flc7k5uva90iabf Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20241227@192827.2196 j5eokbdhm25flc7k5uva90iabf Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4192';
20241227@192827.2260 j5eokbdhm25flc7k5uva90iabf Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4192';
20241227@192827.2367 j5eokbdhm25flc7k5uva90iabf Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4192';
20241227@192827.2416 j5eokbdhm25flc7k5uva90iabf Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4192';
20241227@192827.2480 j5eokbdhm25flc7k5uva90iabf Query : use flama_phc
20241227@192827.2486 j5eokbdhm25flc7k5uva90iabf Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20241227@192827.2552 j5eokbdhm25flc7k5uva90iabf Query : use flama_phc
20241227@192827.2555 j5eokbdhm25flc7k5uva90iabf Query : select no, estab,szadrsdesc from szadrs where u_coddest=1498
20241227@192827.2638 j5eokbdhm25flc7k5uva90iabf Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.2362.00.1'
20241227@192827.2772 j5eokbdhm25flc7k5uva90iabf Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2088 and bo.obrano = 2408856 and bi.ref ='324.2362.00.1' and bi.lordem =1
20241227@192827.3082 j5eokbdhm25flc7k5uva90iabf Query : use flama_phc
20241227@192827.3086 j5eokbdhm25flc7k5uva90iabf Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20241227@192827.3119 j5eokbdhm25flc7k5uva90iabf Query : use flama_phc
20241227@192827.3122 j5eokbdhm25flc7k5uva90iabf Query : select top 1 1 valor from td where td.ndoc = 39
20241227@192827.3152 j5eokbdhm25flc7k5uva90iabf Query : use flama_phc
20241227@192827.3155 j5eokbdhm25flc7k5uva90iabf 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')
20241227@192827.3183 j5eokbdhm25flc7k5uva90iabf 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
20241227@192827.3291 j5eokbdhm25flc7k5uva90iabf Query : use flama_phc
20241227@192827.3333 j5eokbdhm25flc7k5uva90iabf Query : select top 1 ~inactivo valor from cl where no = '101621' and estab = 0 order by inactivo desc
20241227@192827.3393 j5eokbdhm25flc7k5uva90iabf Query : use flama_phc
20241227@192827.3396 j5eokbdhm25flc7k5uva90iabf Query : select top 1 tipodoc,regrd from td where ndoc = 39
20241227@192827.3427 j5eokbdhm25flc7k5uva90iabf Query : use flama_phc
20241227@192827.3430 j5eokbdhm25flc7k5uva90iabf Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20241227@192827.3471 j5eokbdhm25flc7k5uva90iabf Query : use flama_phc
20241227@192827.3474 j5eokbdhm25flc7k5uva90iabf Query : select szadrsstamp valor from szadrs where szadrsdesc='j.o.m - viseu'
20241227@192827.3526 j5eokbdhm25flc7k5uva90iabf Query : use flama_phc
20241227@192827.3529 j5eokbdhm25flc7k5uva90iabf Query : select 1 valor from td where ndoc = 39
20241227@192827.3542 j5eokbdhm25flc7k5uva90iabf Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20241227@192827.3556 j5eokbdhm25flc7k5uva90iabf Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@192827.3573 j5eokbdhm25flc7k5uva90iabf Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20241227@192827.3592 j5eokbdhm25flc7k5uva90iabf Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@192827.3609 j5eokbdhm25flc7k5uva90iabf Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20241227@192827.3638 j5eokbdhm25flc7k5uva90iabf Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@192827.3653 j5eokbdhm25flc7k5uva90iabf Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20241227@192827.3665 j5eokbdhm25flc7k5uva90iabf Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20241227@192827.3771 j5eokbdhm25flc7k5uva90iabf Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20241227@192827.3785 j5eokbdhm25flc7k5uva90iabf Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@192827.3801 j5eokbdhm25flc7k5uva90iabf Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20241227@192827.3818 j5eokbdhm25flc7k5uva90iabf Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut676ef04933676effdb59' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20241227@192827.3977 j5eokbdhm25flc7k5uva90iabf Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@192827.3994 j5eokbdhm25flc7k5uva90iabf Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20241227@192827.4032 j5eokbdhm25flc7k5uva90iabf Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20241227@192827.4050 j5eokbdhm25flc7k5uva90iabf Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20241227@192827.4082 j5eokbdhm25flc7k5uva90iabf Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20241227@192827.4100 j5eokbdhm25flc7k5uva90iabf Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20241227@192827.4116 j5eokbdhm25flc7k5uva90iabf Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20241227@192827.4128 j5eokbdhm25flc7k5uva90iabf Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20241227@192827.4141 j5eokbdhm25flc7k5uva90iabf Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut676ef04933676effdb59',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20241227@192827.4358 j5eokbdhm25flc7k5uva90iabf Query : select top 1 fno valor from wsftdata order by fno desc
20241227@192827.4391 j5eokbdhm25flc7k5uva90iabf Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@192827.4408 j5eokbdhm25flc7k5uva90iabf Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20241227@192827.4432 j5eokbdhm25flc7k5uva90iabf Query : select 'normal' from dummy
20241227@192827.4448 j5eokbdhm25flc7k5uva90iabf Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut676ef04933676effdb59',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',2636,101621,0,'2024-12-27',39,'euro',0,0,2024 ,?,?)
20241227@192827.4716 j5eokbdhm25flc7k5uva90iabf Query : use flama_phc
20241227@192827.4719 j5eokbdhm25flc7k5uva90iabf Query : select st.usalote valor from st where st.ref = '324.2362.00.1'
20241227@192827.4741 j5eokbdhm25flc7k5uva90iabf Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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.2362.00.1'
20241227@192827.4888 j5eokbdhm25flc7k5uva90iabf Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@192827.4905 j5eokbdhm25flc7k5uva90iabf Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241227@192827.4947 j5eokbdhm25flc7k5uva90iabf Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@192827.4971 j5eokbdhm25flc7k5uva90iabf Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241227@192827.4982 j5eokbdhm25flc7k5uva90iabf Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241227@192827.4994 j5eokbdhm25flc7k5uva90iabf Query : select sestamp valor from se where ref ='324.2362.00.1' and lote = 'r2400498400a'
20241227@192827.5011 j5eokbdhm25flc7k5uva90iabf Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@192827.5027 j5eokbdhm25flc7k5uva90iabf Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241227@192827.5039 j5eokbdhm25flc7k5uva90iabf Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut676ef99999676effdb7a','aut676ef04933676effdb59' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241227@192827.5043 j5eokbdhm25flc7k5uva90iabf Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@192827.5059 j5eokbdhm25flc7k5uva90iabf Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241227@192827.5088 j5eokbdhm25flc7k5uva90iabf Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut676ef99999676effdb7a',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',3.000 ,'aut676ef04933676effdb59' ,0,0 ,2,23.00,10000,?,?,?,?,?)
20241227@192827.5314 j5eokbdhm25flc7k5uva90iabf Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut676ef04933676effdb59','2408856','wait',39,'adm09112754980.682000002')
20241227@192827.5430 j5eokbdhm25flc7k5uva90iabf Query : use flama_phc
20241227@192827.5433 j5eokbdhm25flc7k5uva90iabf Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20241227@192827.5492 j5eokbdhm25flc7k5uva90iabf Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4192';
20241227@192827.5570 j5eokbdhm25flc7k5uva90iabf Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4192';
20241227@192827.6793 j5eokbdhm25flc7k5uva90iabf Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4192';
20241227@192827.6837 j5eokbdhm25flc7k5uva90iabf Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4192';
20241227@192827.7346 1v7ffh4ccidhg1j08km7iefp4o Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20241227@192827.7357 1v7ffh4ccidhg1j08km7iefp4o Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20241227@192827.7460 1v7ffh4ccidhg1j08km7iefp4o Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4193';
20241227@192827.7538 1v7ffh4ccidhg1j08km7iefp4o Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4193';
20241227@192827.7602 1v7ffh4ccidhg1j08km7iefp4o Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4193';
20241227@192827.7633 1v7ffh4ccidhg1j08km7iefp4o Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4193';
20241227@192827.7690 1v7ffh4ccidhg1j08km7iefp4o Query : use flama_phc
20241227@192827.7693 1v7ffh4ccidhg1j08km7iefp4o Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20241227@192827.7759 1v7ffh4ccidhg1j08km7iefp4o Query : use flama_phc
20241227@192827.7762 1v7ffh4ccidhg1j08km7iefp4o Query : select no, estab,szadrsdesc from szadrs where u_coddest=8301
20241227@192827.7842 1v7ffh4ccidhg1j08km7iefp4o Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1833.00.2'
20241227@192827.7965 1v7ffh4ccidhg1j08km7iefp4o Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2088 and bo.obrano = 2408857 and bi.ref ='324.1833.00.2' and bi.lordem =1
20241227@192827.8267 1v7ffh4ccidhg1j08km7iefp4o Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1833.00.2'
20241227@192827.8287 1v7ffh4ccidhg1j08km7iefp4o Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2088 and bo.obrano = 2408857 and bi.ref ='324.1833.00.2' and bi.lordem =2
20241227@192827.8603 1v7ffh4ccidhg1j08km7iefp4o Query : use flama_phc
20241227@192827.8606 1v7ffh4ccidhg1j08km7iefp4o Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20241227@192827.8638 1v7ffh4ccidhg1j08km7iefp4o Query : use flama_phc
20241227@192827.8641 1v7ffh4ccidhg1j08km7iefp4o Query : select top 1 1 valor from td where td.ndoc = 39
20241227@192827.8696 1v7ffh4ccidhg1j08km7iefp4o Query : use flama_phc
20241227@192827.8699 1v7ffh4ccidhg1j08km7iefp4o 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')
20241227@192827.8730 1v7ffh4ccidhg1j08km7iefp4o 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
20241227@192827.8766 1v7ffh4ccidhg1j08km7iefp4o Query : use flama_phc
20241227@192827.8772 1v7ffh4ccidhg1j08km7iefp4o Query : select top 1 ~inactivo valor from cl where no = '101621' and estab = 0 order by inactivo desc
20241227@192827.8804 1v7ffh4ccidhg1j08km7iefp4o Query : use flama_phc
20241227@192827.8807 1v7ffh4ccidhg1j08km7iefp4o Query : select top 1 tipodoc,regrd from td where ndoc = 39
20241227@192827.8836 1v7ffh4ccidhg1j08km7iefp4o Query : use flama_phc
20241227@192827.8839 1v7ffh4ccidhg1j08km7iefp4o Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20241227@192827.8884 1v7ffh4ccidhg1j08km7iefp4o Query : use flama_phc
20241227@192827.8887 1v7ffh4ccidhg1j08km7iefp4o Query : select szadrsstamp valor from szadrs where szadrsdesc='j.o.m.,lda - alverca'
20241227@192827.8940 1v7ffh4ccidhg1j08km7iefp4o Query : use flama_phc
20241227@192827.8943 1v7ffh4ccidhg1j08km7iefp4o Query : select 1 valor from td where ndoc = 39
20241227@192827.8958 1v7ffh4ccidhg1j08km7iefp4o Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20241227@192827.8973 1v7ffh4ccidhg1j08km7iefp4o Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@192827.8990 1v7ffh4ccidhg1j08km7iefp4o Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20241227@192827.9010 1v7ffh4ccidhg1j08km7iefp4o Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@192827.9025 1v7ffh4ccidhg1j08km7iefp4o Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20241227@192827.9054 1v7ffh4ccidhg1j08km7iefp4o Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@192827.9070 1v7ffh4ccidhg1j08km7iefp4o Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20241227@192827.9083 1v7ffh4ccidhg1j08km7iefp4o Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20241227@192827.9141 1v7ffh4ccidhg1j08km7iefp4o Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20241227@192827.9153 1v7ffh4ccidhg1j08km7iefp4o Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@192827.9169 1v7ffh4ccidhg1j08km7iefp4o Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20241227@192827.9185 1v7ffh4ccidhg1j08km7iefp4o Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut676ef55416676effdbdd' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20241227@192827.9347 1v7ffh4ccidhg1j08km7iefp4o Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@192827.9365 1v7ffh4ccidhg1j08km7iefp4o Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20241227@192827.9400 1v7ffh4ccidhg1j08km7iefp4o Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20241227@192827.9412 1v7ffh4ccidhg1j08km7iefp4o Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20241227@192827.9425 1v7ffh4ccidhg1j08km7iefp4o Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20241227@192827.9439 1v7ffh4ccidhg1j08km7iefp4o Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20241227@192827.9451 1v7ffh4ccidhg1j08km7iefp4o Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20241227@192827.9463 1v7ffh4ccidhg1j08km7iefp4o Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20241227@192827.9475 1v7ffh4ccidhg1j08km7iefp4o Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut676ef55416676effdbdd',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20241227@192827.9714 1v7ffh4ccidhg1j08km7iefp4o Query : select top 1 fno valor from wsftdata order by fno desc
20241227@192827.9744 1v7ffh4ccidhg1j08km7iefp4o Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@192827.9761 1v7ffh4ccidhg1j08km7iefp4o Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20241227@192827.9784 1v7ffh4ccidhg1j08km7iefp4o Query : select 'normal' from dummy
20241227@192827.9800 1v7ffh4ccidhg1j08km7iefp4o Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut676ef55416676effdbdd',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',2637,101621,0,'2024-12-27',39,'euro',0,0,2024 ,?,?)
20241227@192828.6700 1v7ffh4ccidhg1j08km7iefp4o Query : use flama_phc
20241227@192828.7000 1v7ffh4ccidhg1j08km7iefp4o Query : select st.usalote valor from st where st.ref = '324.1833.00.2'
20241227@192828.9200 1v7ffh4ccidhg1j08km7iefp4o Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.1833.00.2'
20241227@192828.2160 1v7ffh4ccidhg1j08km7iefp4o Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@192828.2330 1v7ffh4ccidhg1j08km7iefp4o Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241227@192828.2580 1v7ffh4ccidhg1j08km7iefp4o Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@192828.2730 1v7ffh4ccidhg1j08km7iefp4o Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241227@192828.2840 1v7ffh4ccidhg1j08km7iefp4o Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241227@192828.2990 1v7ffh4ccidhg1j08km7iefp4o Query : select sestamp valor from se where ref ='324.1833.00.2' and lote = 'r2400401200a'
20241227@192828.3130 1v7ffh4ccidhg1j08km7iefp4o Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@192828.3280 1v7ffh4ccidhg1j08km7iefp4o Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241227@192828.3400 1v7ffh4ccidhg1j08km7iefp4o Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut676ef54705676effdc07','aut676ef55416676effdbdd' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241227@192828.3440 1v7ffh4ccidhg1j08km7iefp4o Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@192828.3580 1v7ffh4ccidhg1j08km7iefp4o Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241227@192828.3880 1v7ffh4ccidhg1j08km7iefp4o Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut676ef54705676effdc07',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',3.000 ,'aut676ef55416676effdbdd' ,0,0 ,2,23.00,10000,?,?,?,?,?)
20241227@192828.1608 1v7ffh4ccidhg1j08km7iefp4o Query : use flama_phc
20241227@192828.1612 1v7ffh4ccidhg1j08km7iefp4o Query : select st.usalote valor from st where st.ref = '324.1833.00.2'
20241227@192828.1633 1v7ffh4ccidhg1j08km7iefp4o Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.1833.00.2'
20241227@192828.1647 1v7ffh4ccidhg1j08km7iefp4o Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@192828.1662 1v7ffh4ccidhg1j08km7iefp4o Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241227@192828.1687 1v7ffh4ccidhg1j08km7iefp4o Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@192828.1703 1v7ffh4ccidhg1j08km7iefp4o Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241227@192828.1712 1v7ffh4ccidhg1j08km7iefp4o Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241227@192828.1724 1v7ffh4ccidhg1j08km7iefp4o Query : select sestamp valor from se where ref ='324.1833.00.2' and lote = 'r2400401200a'
20241227@192828.1737 1v7ffh4ccidhg1j08km7iefp4o Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@192828.1752 1v7ffh4ccidhg1j08km7iefp4o Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241227@192828.1763 1v7ffh4ccidhg1j08km7iefp4o Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut676ef65692676effdc2a','aut676ef55416676effdbdd' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241227@192828.1768 1v7ffh4ccidhg1j08km7iefp4o Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@192828.1783 1v7ffh4ccidhg1j08km7iefp4o Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241227@192828.1814 1v7ffh4ccidhg1j08km7iefp4o Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut676ef65692676effdc2a',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',1.000 ,'aut676ef55416676effdbdd' ,0,0 ,2,23.00,20000,?,?,?,?,?)
20241227@192828.2044 1v7ffh4ccidhg1j08km7iefp4o Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut676ef55416676effdbdd','2408857','wait',39,'adm09112754980.682000002')
20241227@192828.2126 1v7ffh4ccidhg1j08km7iefp4o Query : use flama_phc
20241227@192828.2129 1v7ffh4ccidhg1j08km7iefp4o Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20241227@192828.2160 1v7ffh4ccidhg1j08km7iefp4o Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4193';
20241227@192828.2198 1v7ffh4ccidhg1j08km7iefp4o Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4193';
20241227@192828.2251 1v7ffh4ccidhg1j08km7iefp4o Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4193';
20241227@192828.2286 1v7ffh4ccidhg1j08km7iefp4o Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4193';
20241227@192828.2815 gkoslpohh1ih4o72lpoushu5jq Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20241227@192828.2825 gkoslpohh1ih4o72lpoushu5jq Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20241227@192828.2890 gkoslpohh1ih4o72lpoushu5jq Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4194';
20241227@192828.2956 gkoslpohh1ih4o72lpoushu5jq Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4194';
20241227@192828.3019 gkoslpohh1ih4o72lpoushu5jq Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4194';
20241227@192828.3050 gkoslpohh1ih4o72lpoushu5jq Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4194';
20241227@192828.3104 gkoslpohh1ih4o72lpoushu5jq Query : use flama_phc
20241227@192828.3106 gkoslpohh1ih4o72lpoushu5jq Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20241227@192828.3167 gkoslpohh1ih4o72lpoushu5jq Query : use flama_phc
20241227@192828.3171 gkoslpohh1ih4o72lpoushu5jq Query : select no, estab,szadrsdesc from szadrs where u_coddest=416
20241227@192828.3254 gkoslpohh1ih4o72lpoushu5jq Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.5500.00.1'
20241227@192828.3564 gkoslpohh1ih4o72lpoushu5jq Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2088 and bo.obrano = 2408858 and bi.ref ='324.5500.00.1' and bi.lordem =1
20241227@192828.3920 gkoslpohh1ih4o72lpoushu5jq Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.5500.00.1'
20241227@192828.3939 gkoslpohh1ih4o72lpoushu5jq Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2088 and bo.obrano = 2408858 and bi.ref ='324.5500.00.1' and bi.lordem =2
20241227@192828.4240 gkoslpohh1ih4o72lpoushu5jq Query : use flama_phc
20241227@192828.4242 gkoslpohh1ih4o72lpoushu5jq Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20241227@192828.4276 gkoslpohh1ih4o72lpoushu5jq Query : use flama_phc
20241227@192828.4279 gkoslpohh1ih4o72lpoushu5jq Query : select top 1 1 valor from td where td.ndoc = 39
20241227@192828.4308 gkoslpohh1ih4o72lpoushu5jq Query : use flama_phc
20241227@192828.4311 gkoslpohh1ih4o72lpoushu5jq 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')
20241227@192828.4338 gkoslpohh1ih4o72lpoushu5jq 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
20241227@192828.4374 gkoslpohh1ih4o72lpoushu5jq Query : use flama_phc
20241227@192828.4377 gkoslpohh1ih4o72lpoushu5jq Query : select top 1 ~inactivo valor from cl where no = '102079' and estab = 0 order by inactivo desc
20241227@192828.4481 gkoslpohh1ih4o72lpoushu5jq Query : use flama_phc
20241227@192828.4484 gkoslpohh1ih4o72lpoushu5jq Query : select top 1 tipodoc,regrd from td where ndoc = 39
20241227@192828.4514 gkoslpohh1ih4o72lpoushu5jq Query : use flama_phc
20241227@192828.4516 gkoslpohh1ih4o72lpoushu5jq Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20241227@192828.4564 gkoslpohh1ih4o72lpoushu5jq Query : use flama_phc
20241227@192828.4567 gkoslpohh1ih4o72lpoushu5jq Query : select szadrsstamp valor from szadrs where szadrsdesc='bragajav, lda.'
20241227@192828.4614 gkoslpohh1ih4o72lpoushu5jq Query : use flama_phc
20241227@192828.4617 gkoslpohh1ih4o72lpoushu5jq Query : select 1 valor from td where ndoc = 39
20241227@192828.4630 gkoslpohh1ih4o72lpoushu5jq Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20241227@192828.4644 gkoslpohh1ih4o72lpoushu5jq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@192828.4660 gkoslpohh1ih4o72lpoushu5jq Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20241227@192828.4680 gkoslpohh1ih4o72lpoushu5jq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@192828.4695 gkoslpohh1ih4o72lpoushu5jq Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20241227@192828.4726 gkoslpohh1ih4o72lpoushu5jq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@192828.4740 gkoslpohh1ih4o72lpoushu5jq Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20241227@192828.4753 gkoslpohh1ih4o72lpoushu5jq Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20241227@192828.4806 gkoslpohh1ih4o72lpoushu5jq Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20241227@192828.4819 gkoslpohh1ih4o72lpoushu5jq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@192828.4833 gkoslpohh1ih4o72lpoushu5jq Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20241227@192828.4849 gkoslpohh1ih4o72lpoushu5jq Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut676ef25492676effdc74' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20241227@192828.5011 gkoslpohh1ih4o72lpoushu5jq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@192828.5026 gkoslpohh1ih4o72lpoushu5jq Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20241227@192828.5060 gkoslpohh1ih4o72lpoushu5jq Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20241227@192828.5072 gkoslpohh1ih4o72lpoushu5jq Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20241227@192828.5083 gkoslpohh1ih4o72lpoushu5jq Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20241227@192828.5095 gkoslpohh1ih4o72lpoushu5jq Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20241227@192828.5107 gkoslpohh1ih4o72lpoushu5jq Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20241227@192828.5127 gkoslpohh1ih4o72lpoushu5jq Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20241227@192828.5139 gkoslpohh1ih4o72lpoushu5jq Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut676ef25492676effdc74',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20241227@192828.5355 gkoslpohh1ih4o72lpoushu5jq Query : select top 1 fno valor from wsftdata order by fno desc
20241227@192828.5386 gkoslpohh1ih4o72lpoushu5jq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@192828.5403 gkoslpohh1ih4o72lpoushu5jq Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20241227@192828.5424 gkoslpohh1ih4o72lpoushu5jq Query : select 'normal' from dummy
20241227@192828.5439 gkoslpohh1ih4o72lpoushu5jq Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut676ef25492676effdc74',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',2638,102079,0,'2024-12-27',39,'euro',0,0,2024 ,?,?)
20241227@192828.5712 gkoslpohh1ih4o72lpoushu5jq Query : use flama_phc
20241227@192828.5715 gkoslpohh1ih4o72lpoushu5jq Query : select st.usalote valor from st where st.ref = '324.5500.00.1'
20241227@192828.5737 gkoslpohh1ih4o72lpoushu5jq Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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.5500.00.1'
20241227@192828.5752 gkoslpohh1ih4o72lpoushu5jq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@192828.5768 gkoslpohh1ih4o72lpoushu5jq Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241227@192828.5805 gkoslpohh1ih4o72lpoushu5jq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@192828.5821 gkoslpohh1ih4o72lpoushu5jq Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241227@192828.5829 gkoslpohh1ih4o72lpoushu5jq Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241227@192828.5844 gkoslpohh1ih4o72lpoushu5jq Query : select sestamp valor from se where ref ='324.5500.00.1' and lote = 'r2400095600a'
20241227@192828.5858 gkoslpohh1ih4o72lpoushu5jq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@192828.5873 gkoslpohh1ih4o72lpoushu5jq Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241227@192828.5885 gkoslpohh1ih4o72lpoushu5jq Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut676ef50336676effdc8f','aut676ef25492676effdc74' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241227@192828.5889 gkoslpohh1ih4o72lpoushu5jq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@192828.5905 gkoslpohh1ih4o72lpoushu5jq Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241227@192828.5934 gkoslpohh1ih4o72lpoushu5jq Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut676ef50336676effdc8f',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',9.000 ,'aut676ef25492676effdc74' ,0,0 ,2,23.00,10000,?,?,?,?,?)
20241227@192828.6168 gkoslpohh1ih4o72lpoushu5jq Query : use flama_phc
20241227@192828.6171 gkoslpohh1ih4o72lpoushu5jq Query : select st.usalote valor from st where st.ref = '324.5500.00.1'
20241227@192828.6192 gkoslpohh1ih4o72lpoushu5jq Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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.5500.00.1'
20241227@192828.6208 gkoslpohh1ih4o72lpoushu5jq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@192828.6225 gkoslpohh1ih4o72lpoushu5jq Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241227@192828.6251 gkoslpohh1ih4o72lpoushu5jq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@192828.6266 gkoslpohh1ih4o72lpoushu5jq Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241227@192828.6275 gkoslpohh1ih4o72lpoushu5jq Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241227@192828.6288 gkoslpohh1ih4o72lpoushu5jq Query : select sestamp valor from se where ref ='324.5500.00.1' and lote = 'r2400095600a'
20241227@192828.6302 gkoslpohh1ih4o72lpoushu5jq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@192828.6316 gkoslpohh1ih4o72lpoushu5jq Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241227@192828.6328 gkoslpohh1ih4o72lpoushu5jq Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut676ef14935676effdc99','aut676ef25492676effdc74' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241227@192828.6332 gkoslpohh1ih4o72lpoushu5jq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@192828.6347 gkoslpohh1ih4o72lpoushu5jq Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241227@192828.6375 gkoslpohh1ih4o72lpoushu5jq Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut676ef14935676effdc99',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',1.000 ,'aut676ef25492676effdc74' ,0,0 ,2,23.00,20000,?,?,?,?,?)
20241227@192828.6646 gkoslpohh1ih4o72lpoushu5jq Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut676ef25492676effdc74','2408858','wait',39,'adm09112754980.682000002')
20241227@192828.7840 gkoslpohh1ih4o72lpoushu5jq Query : use flama_phc
20241227@192828.7843 gkoslpohh1ih4o72lpoushu5jq Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20241227@192828.7876 gkoslpohh1ih4o72lpoushu5jq Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4194';
20241227@192828.7917 gkoslpohh1ih4o72lpoushu5jq Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4194';
20241227@192828.7972 gkoslpohh1ih4o72lpoushu5jq Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4194';
20241227@192828.8003 gkoslpohh1ih4o72lpoushu5jq Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4194';
20241227@192828.9180 3u8simvbhhk848dj2igecjrqb5 Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20241227@192828.9203 3u8simvbhhk848dj2igecjrqb5 Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20241227@192828.9302 3u8simvbhhk848dj2igecjrqb5 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4195';
20241227@192828.9374 3u8simvbhhk848dj2igecjrqb5 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4195';
20241227@192828.9476 3u8simvbhhk848dj2igecjrqb5 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4195';
20241227@192828.9526 3u8simvbhhk848dj2igecjrqb5 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4195';
20241227@192828.9612 3u8simvbhhk848dj2igecjrqb5 Query : use flama_phc
20241227@192828.9615 3u8simvbhhk848dj2igecjrqb5 Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20241227@192828.9736 3u8simvbhhk848dj2igecjrqb5 Query : use flama_phc
20241227@192828.9739 3u8simvbhhk848dj2igecjrqb5 Query : select no, estab,szadrsdesc from szadrs where u_coddest=2155
20241227@192828.9829 3u8simvbhhk848dj2igecjrqb5 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.2366.00.1'
20241227@192828.9967 3u8simvbhhk848dj2igecjrqb5 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2088 and bo.obrano = 2408859 and bi.ref ='324.2366.00.1' and bi.lordem =1
20241227@192829.2780 3u8simvbhhk848dj2igecjrqb5 Query : use flama_phc
20241227@192829.2810 3u8simvbhhk848dj2igecjrqb5 Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20241227@192829.3330 3u8simvbhhk848dj2igecjrqb5 Query : use flama_phc
20241227@192829.3380 3u8simvbhhk848dj2igecjrqb5 Query : select top 1 1 valor from td where td.ndoc = 39
20241227@192829.3980 3u8simvbhhk848dj2igecjrqb5 Query : use flama_phc
20241227@192829.4010 3u8simvbhhk848dj2igecjrqb5 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')
20241227@192829.4440 3u8simvbhhk848dj2igecjrqb5 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
20241227@192829.5000 3u8simvbhhk848dj2igecjrqb5 Query : use flama_phc
20241227@192829.5030 3u8simvbhhk848dj2igecjrqb5 Query : select top 1 ~inactivo valor from cl where no = '102137' and estab = 0 order by inactivo desc
20241227@192829.6240 3u8simvbhhk848dj2igecjrqb5 Query : use flama_phc
20241227@192829.6270 3u8simvbhhk848dj2igecjrqb5 Query : select top 1 tipodoc,regrd from td where ndoc = 39
20241227@192829.6820 3u8simvbhhk848dj2igecjrqb5 Query : use flama_phc
20241227@192829.6850 3u8simvbhhk848dj2igecjrqb5 Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20241227@192829.7390 3u8simvbhhk848dj2igecjrqb5 Query : use flama_phc
20241227@192829.7420 3u8simvbhhk848dj2igecjrqb5 Query : select szadrsstamp valor from szadrs where szadrsdesc='mafricentro electrodomÉsticos,lda.'
20241227@192829.8080 3u8simvbhhk848dj2igecjrqb5 Query : use flama_phc
20241227@192829.8110 3u8simvbhhk848dj2igecjrqb5 Query : select 1 valor from td where ndoc = 39
20241227@192829.8240 3u8simvbhhk848dj2igecjrqb5 Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20241227@192829.8380 3u8simvbhhk848dj2igecjrqb5 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@192829.8580 3u8simvbhhk848dj2igecjrqb5 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20241227@192829.8770 3u8simvbhhk848dj2igecjrqb5 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@192829.8950 3u8simvbhhk848dj2igecjrqb5 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20241227@192829.9240 3u8simvbhhk848dj2igecjrqb5 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@192829.9390 3u8simvbhhk848dj2igecjrqb5 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20241227@192829.9510 3u8simvbhhk848dj2igecjrqb5 Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20241227@192829.1006 3u8simvbhhk848dj2igecjrqb5 Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20241227@192829.1019 3u8simvbhhk848dj2igecjrqb5 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@192829.1034 3u8simvbhhk848dj2igecjrqb5 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20241227@192829.1054 3u8simvbhhk848dj2igecjrqb5 Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut676ef46073676effdd17' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20241227@192829.1356 3u8simvbhhk848dj2igecjrqb5 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@192829.1836 3u8simvbhhk848dj2igecjrqb5 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20241227@192829.1870 3u8simvbhhk848dj2igecjrqb5 Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20241227@192829.1882 3u8simvbhhk848dj2igecjrqb5 Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20241227@192829.1893 3u8simvbhhk848dj2igecjrqb5 Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20241227@192829.1904 3u8simvbhhk848dj2igecjrqb5 Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20241227@192829.1917 3u8simvbhhk848dj2igecjrqb5 Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20241227@192829.1930 3u8simvbhhk848dj2igecjrqb5 Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20241227@192829.1942 3u8simvbhhk848dj2igecjrqb5 Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut676ef46073676effdd17',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20241227@192829.2193 3u8simvbhhk848dj2igecjrqb5 Query : select top 1 fno valor from wsftdata order by fno desc
20241227@192829.2221 3u8simvbhhk848dj2igecjrqb5 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@192829.2237 3u8simvbhhk848dj2igecjrqb5 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20241227@192829.2268 3u8simvbhhk848dj2igecjrqb5 Query : select 'normal' from dummy
20241227@192829.2283 3u8simvbhhk848dj2igecjrqb5 Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut676ef46073676effdd17',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',2639,102137,0,'2024-12-27',39,'euro',0,0,2024 ,?,?)
20241227@192829.2578 3u8simvbhhk848dj2igecjrqb5 Query : use flama_phc
20241227@192829.2581 3u8simvbhhk848dj2igecjrqb5 Query : select st.usalote valor from st where st.ref = '324.2366.00.1'
20241227@192829.2603 3u8simvbhhk848dj2igecjrqb5 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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.2366.00.1'
20241227@192829.2617 3u8simvbhhk848dj2igecjrqb5 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@192829.2633 3u8simvbhhk848dj2igecjrqb5 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241227@192829.2658 3u8simvbhhk848dj2igecjrqb5 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@192829.2673 3u8simvbhhk848dj2igecjrqb5 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241227@192829.2684 3u8simvbhhk848dj2igecjrqb5 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241227@192829.2697 3u8simvbhhk848dj2igecjrqb5 Query : select sestamp valor from se where ref ='324.2366.00.1' and lote = 'r2400498100a'
20241227@192829.2710 3u8simvbhhk848dj2igecjrqb5 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@192829.2726 3u8simvbhhk848dj2igecjrqb5 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241227@192829.2738 3u8simvbhhk848dj2igecjrqb5 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut676ef03838676effdd42','aut676ef46073676effdd17' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241227@192829.2742 3u8simvbhhk848dj2igecjrqb5 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@192829.2756 3u8simvbhhk848dj2igecjrqb5 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241227@192829.2785 3u8simvbhhk848dj2igecjrqb5 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut676ef03838676effdd42',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',10.000 ,'aut676ef46073676effdd17' ,0,0 ,2,23.00,10000,?,?,?,?,?)
20241227@192829.3014 3u8simvbhhk848dj2igecjrqb5 Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut676ef46073676effdd17','2408859','wait',39,'adm09112754980.682000002')
20241227@192829.3095 3u8simvbhhk848dj2igecjrqb5 Query : use flama_phc
20241227@192829.3098 3u8simvbhhk848dj2igecjrqb5 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20241227@192829.3132 3u8simvbhhk848dj2igecjrqb5 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4195';
20241227@192829.3171 3u8simvbhhk848dj2igecjrqb5 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4195';
20241227@192829.3226 3u8simvbhhk848dj2igecjrqb5 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4195';
20241227@192829.3259 3u8simvbhhk848dj2igecjrqb5 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4195';
20241227@192829.3814 5s5i8n7sm46vq9ep6f38lulpnr Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20241227@192829.3829 5s5i8n7sm46vq9ep6f38lulpnr Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20241227@192829.3895 5s5i8n7sm46vq9ep6f38lulpnr Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4196';
20241227@192829.4609 5s5i8n7sm46vq9ep6f38lulpnr Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4196';
20241227@192829.4673 5s5i8n7sm46vq9ep6f38lulpnr Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4196';
20241227@192829.4713 5s5i8n7sm46vq9ep6f38lulpnr Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4196';
20241227@192829.4773 5s5i8n7sm46vq9ep6f38lulpnr Query : use flama_phc
20241227@192829.4776 5s5i8n7sm46vq9ep6f38lulpnr Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20241227@192829.4839 5s5i8n7sm46vq9ep6f38lulpnr Query : use flama_phc
20241227@192829.4842 5s5i8n7sm46vq9ep6f38lulpnr Query : select no, estab,szadrsdesc from szadrs where u_coddest=4740
20241227@192829.4893 5s5i8n7sm46vq9ep6f38lulpnr Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '323.367.09.00'
20241227@192829.5028 5s5i8n7sm46vq9ep6f38lulpnr Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2088 and bo.obrano = 2408861 and bi.ref ='323.367.09.00' and bi.lordem =1
20241227@192829.5324 5s5i8n7sm46vq9ep6f38lulpnr Query : use flama_phc
20241227@192829.5327 5s5i8n7sm46vq9ep6f38lulpnr Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20241227@192829.5359 5s5i8n7sm46vq9ep6f38lulpnr Query : use flama_phc
20241227@192829.5362 5s5i8n7sm46vq9ep6f38lulpnr Query : select top 1 1 valor from td where td.ndoc = 39
20241227@192829.5392 5s5i8n7sm46vq9ep6f38lulpnr Query : use flama_phc
20241227@192829.5395 5s5i8n7sm46vq9ep6f38lulpnr 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')
20241227@192829.5424 5s5i8n7sm46vq9ep6f38lulpnr 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
20241227@192829.5457 5s5i8n7sm46vq9ep6f38lulpnr Query : use flama_phc
20241227@192829.5460 5s5i8n7sm46vq9ep6f38lulpnr Query : select top 1 ~inactivo valor from cl where no = '100810' and estab = 0 order by inactivo desc
20241227@192829.5496 5s5i8n7sm46vq9ep6f38lulpnr Query : use flama_phc
20241227@192829.5499 5s5i8n7sm46vq9ep6f38lulpnr Query : select top 1 tipodoc,regrd from td where ndoc = 39
20241227@192829.5529 5s5i8n7sm46vq9ep6f38lulpnr Query : use flama_phc
20241227@192829.5542 5s5i8n7sm46vq9ep6f38lulpnr Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20241227@192829.5581 5s5i8n7sm46vq9ep6f38lulpnr Query : use flama_phc
20241227@192829.5584 5s5i8n7sm46vq9ep6f38lulpnr Query : select szadrsstamp valor from szadrs where szadrsdesc='100810 - worten-equipamentos para o lar,sa.'
20241227@192829.5629 5s5i8n7sm46vq9ep6f38lulpnr Query : use flama_phc
20241227@192829.5632 5s5i8n7sm46vq9ep6f38lulpnr Query : select 1 valor from td where ndoc = 39
20241227@192829.5648 5s5i8n7sm46vq9ep6f38lulpnr Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20241227@192829.5662 5s5i8n7sm46vq9ep6f38lulpnr Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@192829.5678 5s5i8n7sm46vq9ep6f38lulpnr Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20241227@192829.5698 5s5i8n7sm46vq9ep6f38lulpnr Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@192829.5712 5s5i8n7sm46vq9ep6f38lulpnr Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20241227@192829.5740 5s5i8n7sm46vq9ep6f38lulpnr Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@192829.5754 5s5i8n7sm46vq9ep6f38lulpnr Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20241227@192829.5766 5s5i8n7sm46vq9ep6f38lulpnr Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20241227@192829.5820 5s5i8n7sm46vq9ep6f38lulpnr Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20241227@192829.5832 5s5i8n7sm46vq9ep6f38lulpnr Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@192829.5847 5s5i8n7sm46vq9ep6f38lulpnr Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20241227@192829.5863 5s5i8n7sm46vq9ep6f38lulpnr Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut676ef95176676effdd8c' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20241227@192829.6022 5s5i8n7sm46vq9ep6f38lulpnr Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@192829.6039 5s5i8n7sm46vq9ep6f38lulpnr Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20241227@192829.6073 5s5i8n7sm46vq9ep6f38lulpnr Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20241227@192829.6085 5s5i8n7sm46vq9ep6f38lulpnr Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20241227@192829.6097 5s5i8n7sm46vq9ep6f38lulpnr Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20241227@192829.6121 5s5i8n7sm46vq9ep6f38lulpnr Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20241227@192829.6133 5s5i8n7sm46vq9ep6f38lulpnr Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20241227@192829.6145 5s5i8n7sm46vq9ep6f38lulpnr Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20241227@192829.6156 5s5i8n7sm46vq9ep6f38lulpnr Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut676ef95176676effdd8c',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20241227@192829.6374 5s5i8n7sm46vq9ep6f38lulpnr Query : select top 1 fno valor from wsftdata order by fno desc
20241227@192829.6403 5s5i8n7sm46vq9ep6f38lulpnr Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@192829.6420 5s5i8n7sm46vq9ep6f38lulpnr Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20241227@192829.6442 5s5i8n7sm46vq9ep6f38lulpnr Query : select 'normal' from dummy
20241227@192829.6456 5s5i8n7sm46vq9ep6f38lulpnr Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut676ef95176676effdd8c',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',2640,100810,0,'2024-12-27',39,'euro',0,0,2024 ,?,?)
20241227@192829.6721 5s5i8n7sm46vq9ep6f38lulpnr Query : use flama_phc
20241227@192829.6747 5s5i8n7sm46vq9ep6f38lulpnr Query : select st.usalote valor from st where st.ref = '323.367.09.00'
20241227@192829.7568 5s5i8n7sm46vq9ep6f38lulpnr Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '323.367.09.00'
20241227@192829.8024 5s5i8n7sm46vq9ep6f38lulpnr Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@192829.8040 5s5i8n7sm46vq9ep6f38lulpnr Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241227@192829.8066 5s5i8n7sm46vq9ep6f38lulpnr Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@192829.8081 5s5i8n7sm46vq9ep6f38lulpnr Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241227@192829.8089 5s5i8n7sm46vq9ep6f38lulpnr Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241227@192829.8101 5s5i8n7sm46vq9ep6f38lulpnr Query : select sestamp valor from se where ref ='323.367.09.00' and lote = 'r2400053200a'
20241227@192829.8115 5s5i8n7sm46vq9ep6f38lulpnr Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@192829.8129 5s5i8n7sm46vq9ep6f38lulpnr Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241227@192829.8141 5s5i8n7sm46vq9ep6f38lulpnr Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut676ef01675676effddc6','aut676ef95176676effdd8c' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241227@192829.8145 5s5i8n7sm46vq9ep6f38lulpnr Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@192829.8160 5s5i8n7sm46vq9ep6f38lulpnr Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241227@192829.8188 5s5i8n7sm46vq9ep6f38lulpnr Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut676ef01675676effddc6',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',1.000 ,'aut676ef95176676effdd8c' ,0,0 ,2,23.00,10000,?,?,?,?,?)
20241227@192829.8414 5s5i8n7sm46vq9ep6f38lulpnr Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut676ef95176676effdd8c','2408861','wait',39,'adm09112754980.682000002')
20241227@192829.8482 5s5i8n7sm46vq9ep6f38lulpnr Query : use flama_phc
20241227@192829.8486 5s5i8n7sm46vq9ep6f38lulpnr Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20241227@192829.8517 5s5i8n7sm46vq9ep6f38lulpnr Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4196';
20241227@192829.8556 5s5i8n7sm46vq9ep6f38lulpnr Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4196';
20241227@192829.8610 5s5i8n7sm46vq9ep6f38lulpnr Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4196';
20241227@192829.8644 5s5i8n7sm46vq9ep6f38lulpnr Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4196';
20241227@192829.9673 phoj3r2tbq53s9b5j4r401k0fu Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20241227@192829.9685 phoj3r2tbq53s9b5j4r401k0fu Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20241227@192829.9751 phoj3r2tbq53s9b5j4r401k0fu Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4197';
20241227@192829.9811 phoj3r2tbq53s9b5j4r401k0fu Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4197';
20241227@192829.9872 phoj3r2tbq53s9b5j4r401k0fu Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4197';
20241227@192829.9901 phoj3r2tbq53s9b5j4r401k0fu Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4197';
20241227@192829.9958 phoj3r2tbq53s9b5j4r401k0fu Query : use flama_phc
20241227@192829.9961 phoj3r2tbq53s9b5j4r401k0fu Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20241227@192830.2400 phoj3r2tbq53s9b5j4r401k0fu Query : use flama_phc
20241227@192830.2700 phoj3r2tbq53s9b5j4r401k0fu Query : select no, estab,szadrsdesc from szadrs where u_coddest=4740
20241227@192830.7000 phoj3r2tbq53s9b5j4r401k0fu 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'
20241227@192830.1940 phoj3r2tbq53s9b5j4r401k0fu Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2088 and bo.obrano = 2408862 and bi.ref ='324.1667.00.1' and bi.lordem =1
20241227@192830.4900 phoj3r2tbq53s9b5j4r401k0fu Query : use flama_phc
20241227@192830.4930 phoj3r2tbq53s9b5j4r401k0fu Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20241227@192830.5240 phoj3r2tbq53s9b5j4r401k0fu Query : use flama_phc
20241227@192830.5270 phoj3r2tbq53s9b5j4r401k0fu Query : select top 1 1 valor from td where td.ndoc = 39
20241227@192830.5570 phoj3r2tbq53s9b5j4r401k0fu Query : use flama_phc
20241227@192830.5600 phoj3r2tbq53s9b5j4r401k0fu 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')
20241227@192830.5900 phoj3r2tbq53s9b5j4r401k0fu 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
20241227@192830.6310 phoj3r2tbq53s9b5j4r401k0fu Query : use flama_phc
20241227@192830.6350 phoj3r2tbq53s9b5j4r401k0fu Query : select top 1 ~inactivo valor from cl where no = '100810' and estab = 0 order by inactivo desc
20241227@192830.6650 phoj3r2tbq53s9b5j4r401k0fu Query : use flama_phc
20241227@192830.6680 phoj3r2tbq53s9b5j4r401k0fu Query : select top 1 tipodoc,regrd from td where ndoc = 39
20241227@192830.6980 phoj3r2tbq53s9b5j4r401k0fu Query : use flama_phc
20241227@192830.7010 phoj3r2tbq53s9b5j4r401k0fu Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20241227@192830.7420 phoj3r2tbq53s9b5j4r401k0fu Query : use flama_phc
20241227@192830.7460 phoj3r2tbq53s9b5j4r401k0fu Query : select szadrsstamp valor from szadrs where szadrsdesc='100810 - worten-equipamentos para o lar,sa.'
20241227@192830.8000 phoj3r2tbq53s9b5j4r401k0fu Query : use flama_phc
20241227@192830.8030 phoj3r2tbq53s9b5j4r401k0fu Query : select 1 valor from td where ndoc = 39
20241227@192830.8150 phoj3r2tbq53s9b5j4r401k0fu Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20241227@192830.8290 phoj3r2tbq53s9b5j4r401k0fu Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@192830.8440 phoj3r2tbq53s9b5j4r401k0fu Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20241227@192830.8650 phoj3r2tbq53s9b5j4r401k0fu Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@192830.8820 phoj3r2tbq53s9b5j4r401k0fu Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20241227@192830.9100 phoj3r2tbq53s9b5j4r401k0fu Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@192830.9240 phoj3r2tbq53s9b5j4r401k0fu Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20241227@192830.9370 phoj3r2tbq53s9b5j4r401k0fu Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20241227@192830.9930 phoj3r2tbq53s9b5j4r401k0fu Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20241227@192830.1006 phoj3r2tbq53s9b5j4r401k0fu Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@192830.1024 phoj3r2tbq53s9b5j4r401k0fu Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20241227@192830.1039 phoj3r2tbq53s9b5j4r401k0fu Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut676ef97674676effde16' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20241227@192830.1197 phoj3r2tbq53s9b5j4r401k0fu Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@192830.1215 phoj3r2tbq53s9b5j4r401k0fu Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20241227@192830.1253 phoj3r2tbq53s9b5j4r401k0fu Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20241227@192830.1278 phoj3r2tbq53s9b5j4r401k0fu Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20241227@192830.1290 phoj3r2tbq53s9b5j4r401k0fu Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20241227@192830.1305 phoj3r2tbq53s9b5j4r401k0fu Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20241227@192830.1322 phoj3r2tbq53s9b5j4r401k0fu Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20241227@192830.1334 phoj3r2tbq53s9b5j4r401k0fu Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20241227@192830.1345 phoj3r2tbq53s9b5j4r401k0fu Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut676ef97674676effde16',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20241227@192830.1559 phoj3r2tbq53s9b5j4r401k0fu Query : select top 1 fno valor from wsftdata order by fno desc
20241227@192830.1590 phoj3r2tbq53s9b5j4r401k0fu Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@192830.1607 phoj3r2tbq53s9b5j4r401k0fu Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20241227@192830.1641 phoj3r2tbq53s9b5j4r401k0fu Query : select 'normal' from dummy
20241227@192830.1657 phoj3r2tbq53s9b5j4r401k0fu Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut676ef97674676effde16',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',2641,100810,0,'2024-12-27',39,'euro',0,0,2024 ,?,?)
20241227@192830.1919 phoj3r2tbq53s9b5j4r401k0fu Query : use flama_phc
20241227@192830.1922 phoj3r2tbq53s9b5j4r401k0fu Query : select st.usalote valor from st where st.ref = '324.1667.00.1'
20241227@192830.1945 phoj3r2tbq53s9b5j4r401k0fu Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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'
20241227@192830.2273 phoj3r2tbq53s9b5j4r401k0fu Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@192830.2290 phoj3r2tbq53s9b5j4r401k0fu Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241227@192830.2317 phoj3r2tbq53s9b5j4r401k0fu Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@192830.2331 phoj3r2tbq53s9b5j4r401k0fu Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241227@192830.2340 phoj3r2tbq53s9b5j4r401k0fu Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241227@192830.2352 phoj3r2tbq53s9b5j4r401k0fu Query : select sestamp valor from se where ref ='324.1667.00.1' and lote = 'r2400923100a'
20241227@192830.2365 phoj3r2tbq53s9b5j4r401k0fu Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@192830.2383 phoj3r2tbq53s9b5j4r401k0fu Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241227@192830.2394 phoj3r2tbq53s9b5j4r401k0fu Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut676ef90009676effde39','aut676ef97674676effde16' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241227@192830.2398 phoj3r2tbq53s9b5j4r401k0fu Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@192830.2413 phoj3r2tbq53s9b5j4r401k0fu Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241227@192830.2441 phoj3r2tbq53s9b5j4r401k0fu Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut676ef90009676effde39',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',3.000 ,'aut676ef97674676effde16' ,0,0 ,2,23.00,10000,?,?,?,?,?)
20241227@192830.2687 phoj3r2tbq53s9b5j4r401k0fu Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@192830.2703 phoj3r2tbq53s9b5j4r401k0fu Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241227@192830.2727 phoj3r2tbq53s9b5j4r401k0fu Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@192830.2741 phoj3r2tbq53s9b5j4r401k0fu Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241227@192830.2749 phoj3r2tbq53s9b5j4r401k0fu Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241227@192830.2761 phoj3r2tbq53s9b5j4r401k0fu Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@192830.2776 phoj3r2tbq53s9b5j4r401k0fu Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241227@192830.2787 phoj3r2tbq53s9b5j4r401k0fu Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut676ef47303676effde43','aut676ef97674676effde16' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241227@192830.2792 phoj3r2tbq53s9b5j4r401k0fu Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@192830.2806 phoj3r2tbq53s9b5j4r401k0fu Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241227@192830.2835 phoj3r2tbq53s9b5j4r401k0fu Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut676ef47303676effde43',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut676ef97674676effde16' ,0,0 ,2,23.00,20000,?,?,?)
20241227@192830.3075 phoj3r2tbq53s9b5j4r401k0fu Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut676ef97674676effde16','2408862','wait',39,'adm09112754980.682000002')
20241227@192830.3197 phoj3r2tbq53s9b5j4r401k0fu Query : use flama_phc
20241227@192830.3200 phoj3r2tbq53s9b5j4r401k0fu Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20241227@192830.3262 phoj3r2tbq53s9b5j4r401k0fu Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4197';
20241227@192830.3313 phoj3r2tbq53s9b5j4r401k0fu Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4197';
20241227@192830.3397 phoj3r2tbq53s9b5j4r401k0fu Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4197';
20241227@192830.3441 phoj3r2tbq53s9b5j4r401k0fu Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4197';
20241227@192830.4008 knkucikre29f1gr2rtkceh7jgf Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20241227@192830.4030 knkucikre29f1gr2rtkceh7jgf Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20241227@192830.4123 knkucikre29f1gr2rtkceh7jgf Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4198';
20241227@192830.4192 knkucikre29f1gr2rtkceh7jgf Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4198';
20241227@192830.4305 knkucikre29f1gr2rtkceh7jgf Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4198';
20241227@192830.4938 knkucikre29f1gr2rtkceh7jgf Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4198';
20241227@192830.5007 knkucikre29f1gr2rtkceh7jgf Query : use flama_phc
20241227@192830.5011 knkucikre29f1gr2rtkceh7jgf Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20241227@192830.5077 knkucikre29f1gr2rtkceh7jgf Query : use flama_phc
20241227@192830.5080 knkucikre29f1gr2rtkceh7jgf Query : select no, estab,szadrsdesc from szadrs where u_coddest=6737
20241227@192830.5165 knkucikre29f1gr2rtkceh7jgf Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '328.9902.00.1'
20241227@192830.5490 knkucikre29f1gr2rtkceh7jgf Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2088 and bo.obrano = 2408864 and bi.ref ='328.9902.00.1' and bi.lordem =1
20241227@192830.5804 knkucikre29f1gr2rtkceh7jgf Query : use flama_phc
20241227@192830.5809 knkucikre29f1gr2rtkceh7jgf Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20241227@192830.5842 knkucikre29f1gr2rtkceh7jgf Query : use flama_phc
20241227@192830.5846 knkucikre29f1gr2rtkceh7jgf Query : select top 1 1 valor from td where td.ndoc = 39
20241227@192830.5876 knkucikre29f1gr2rtkceh7jgf Query : use flama_phc
20241227@192830.5879 knkucikre29f1gr2rtkceh7jgf 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')
20241227@192830.5909 knkucikre29f1gr2rtkceh7jgf 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
20241227@192830.5946 knkucikre29f1gr2rtkceh7jgf Query : use flama_phc
20241227@192830.5948 knkucikre29f1gr2rtkceh7jgf Query : select top 1 ~inactivo valor from cl where no = '100810' and estab = 0 order by inactivo desc
20241227@192830.5978 knkucikre29f1gr2rtkceh7jgf Query : use flama_phc
20241227@192830.5981 knkucikre29f1gr2rtkceh7jgf Query : select top 1 tipodoc,regrd from td where ndoc = 39
20241227@192830.6011 knkucikre29f1gr2rtkceh7jgf Query : use flama_phc
20241227@192830.6015 knkucikre29f1gr2rtkceh7jgf Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20241227@192830.6055 knkucikre29f1gr2rtkceh7jgf Query : use flama_phc
20241227@192830.6057 knkucikre29f1gr2rtkceh7jgf Query : select szadrsstamp valor from szadrs where szadrsdesc='100810 - worten-plaza large formats rainha'
20241227@192830.6105 knkucikre29f1gr2rtkceh7jgf Query : use flama_phc
20241227@192830.6107 knkucikre29f1gr2rtkceh7jgf Query : select 1 valor from td where ndoc = 39
20241227@192830.6120 knkucikre29f1gr2rtkceh7jgf Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20241227@192830.6134 knkucikre29f1gr2rtkceh7jgf Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@192830.6151 knkucikre29f1gr2rtkceh7jgf Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20241227@192830.6170 knkucikre29f1gr2rtkceh7jgf Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@192830.6184 knkucikre29f1gr2rtkceh7jgf Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20241227@192830.6215 knkucikre29f1gr2rtkceh7jgf Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@192830.6230 knkucikre29f1gr2rtkceh7jgf Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20241227@192830.6242 knkucikre29f1gr2rtkceh7jgf Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20241227@192830.6299 knkucikre29f1gr2rtkceh7jgf Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20241227@192830.6312 knkucikre29f1gr2rtkceh7jgf Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@192830.6327 knkucikre29f1gr2rtkceh7jgf Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20241227@192830.6342 knkucikre29f1gr2rtkceh7jgf Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut676ef04042676effde98' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20241227@192830.6512 knkucikre29f1gr2rtkceh7jgf Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@192830.6528 knkucikre29f1gr2rtkceh7jgf Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20241227@192830.6560 knkucikre29f1gr2rtkceh7jgf Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20241227@192830.6572 knkucikre29f1gr2rtkceh7jgf Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20241227@192830.6583 knkucikre29f1gr2rtkceh7jgf Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20241227@192830.6595 knkucikre29f1gr2rtkceh7jgf Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20241227@192830.6608 knkucikre29f1gr2rtkceh7jgf Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20241227@192830.6620 knkucikre29f1gr2rtkceh7jgf Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20241227@192830.6631 knkucikre29f1gr2rtkceh7jgf Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut676ef04042676effde98',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20241227@192830.6842 knkucikre29f1gr2rtkceh7jgf Query : select top 1 fno valor from wsftdata order by fno desc
20241227@192830.6870 knkucikre29f1gr2rtkceh7jgf Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@192830.6887 knkucikre29f1gr2rtkceh7jgf Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20241227@192830.6910 knkucikre29f1gr2rtkceh7jgf Query : select 'normal' from dummy
20241227@192830.6925 knkucikre29f1gr2rtkceh7jgf Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut676ef04042676effde98',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',2642,100810,0,'2024-12-27',39,'euro',0,0,2024 ,?,?)
20241227@192830.7491 knkucikre29f1gr2rtkceh7jgf Query : use flama_phc
20241227@192830.7533 knkucikre29f1gr2rtkceh7jgf Query : select st.usalote valor from st where st.ref = '328.9902.00.1'
20241227@192830.8287 knkucikre29f1gr2rtkceh7jgf Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '328.9902.00.1'
20241227@192830.8414 knkucikre29f1gr2rtkceh7jgf Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@192830.8430 knkucikre29f1gr2rtkceh7jgf Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241227@192830.8455 knkucikre29f1gr2rtkceh7jgf Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@192830.8471 knkucikre29f1gr2rtkceh7jgf Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241227@192830.8479 knkucikre29f1gr2rtkceh7jgf Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241227@192830.8491 knkucikre29f1gr2rtkceh7jgf Query : select sestamp valor from se where ref ='328.9902.00.1' and lote = 'r2300777100a'
20241227@192830.8504 knkucikre29f1gr2rtkceh7jgf Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@192830.8531 knkucikre29f1gr2rtkceh7jgf Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241227@192830.8542 knkucikre29f1gr2rtkceh7jgf Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut676ef42440676effdecf','aut676ef04042676effde98' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241227@192830.8546 knkucikre29f1gr2rtkceh7jgf Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@192830.8560 knkucikre29f1gr2rtkceh7jgf Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241227@192830.8596 knkucikre29f1gr2rtkceh7jgf Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut676ef42440676effdecf',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',3.000 ,'aut676ef04042676effde98' ,0,0 ,2,23.00,10000,?,?,?,?,?)
20241227@192830.8835 knkucikre29f1gr2rtkceh7jgf Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@192830.8851 knkucikre29f1gr2rtkceh7jgf Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241227@192830.8876 knkucikre29f1gr2rtkceh7jgf Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@192830.8904 knkucikre29f1gr2rtkceh7jgf Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241227@192830.8912 knkucikre29f1gr2rtkceh7jgf Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241227@192830.8924 knkucikre29f1gr2rtkceh7jgf Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@192830.8938 knkucikre29f1gr2rtkceh7jgf Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241227@192830.8949 knkucikre29f1gr2rtkceh7jgf Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut676ef65557676effded9','aut676ef04042676effde98' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241227@192830.8953 knkucikre29f1gr2rtkceh7jgf Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@192830.8968 knkucikre29f1gr2rtkceh7jgf Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241227@192830.8996 knkucikre29f1gr2rtkceh7jgf Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut676ef65557676effded9',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut676ef04042676effde98' ,0,0 ,2,23.00,20000,?,?,?)
20241227@192830.9213 knkucikre29f1gr2rtkceh7jgf Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut676ef04042676effde98','2408864','wait',39,'adm09112754980.682000002')
20241227@192830.9279 knkucikre29f1gr2rtkceh7jgf Query : use flama_phc
20241227@192830.9282 knkucikre29f1gr2rtkceh7jgf Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20241227@192830.9421 knkucikre29f1gr2rtkceh7jgf Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4198';
20241227@192830.9533 knkucikre29f1gr2rtkceh7jgf Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4198';
20241227@192830.9583 knkucikre29f1gr2rtkceh7jgf Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4198';
20241227@192830.9613 knkucikre29f1gr2rtkceh7jgf Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4198';
20241227@192831.1680 8lf3r3fjes7c9dvjrfn495jlhd Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20241227@192831.1780 8lf3r3fjes7c9dvjrfn495jlhd Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20241227@192831.2420 8lf3r3fjes7c9dvjrfn495jlhd Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4199';
20241227@192831.3060 8lf3r3fjes7c9dvjrfn495jlhd Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4199';
20241227@192831.3690 8lf3r3fjes7c9dvjrfn495jlhd Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4199';
20241227@192831.4130 8lf3r3fjes7c9dvjrfn495jlhd Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4199';
20241227@192831.4690 8lf3r3fjes7c9dvjrfn495jlhd Query : use flama_phc
20241227@192831.4720 8lf3r3fjes7c9dvjrfn495jlhd Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20241227@192831.5360 8lf3r3fjes7c9dvjrfn495jlhd Query : use flama_phc
20241227@192831.5390 8lf3r3fjes7c9dvjrfn495jlhd Query : select no, estab,szadrsdesc from szadrs where u_coddest=6737
20241227@192831.5850 8lf3r3fjes7c9dvjrfn495jlhd 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'
20241227@192831.7230 8lf3r3fjes7c9dvjrfn495jlhd Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2088 and bo.obrano = 2408865 and bi.ref ='328.9005.00.1' and bi.lordem =1
20241227@192831.1034 8lf3r3fjes7c9dvjrfn495jlhd Query : use flama_phc
20241227@192831.1037 8lf3r3fjes7c9dvjrfn495jlhd Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20241227@192831.1070 8lf3r3fjes7c9dvjrfn495jlhd Query : use flama_phc
20241227@192831.1073 8lf3r3fjes7c9dvjrfn495jlhd Query : select top 1 1 valor from td where td.ndoc = 39
20241227@192831.1103 8lf3r3fjes7c9dvjrfn495jlhd Query : use flama_phc
20241227@192831.1106 8lf3r3fjes7c9dvjrfn495jlhd 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')
20241227@192831.1134 8lf3r3fjes7c9dvjrfn495jlhd 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
20241227@192831.1170 8lf3r3fjes7c9dvjrfn495jlhd Query : use flama_phc
20241227@192831.1174 8lf3r3fjes7c9dvjrfn495jlhd Query : select top 1 ~inactivo valor from cl where no = '100810' and estab = 0 order by inactivo desc
20241227@192831.1204 8lf3r3fjes7c9dvjrfn495jlhd Query : use flama_phc
20241227@192831.1209 8lf3r3fjes7c9dvjrfn495jlhd Query : select top 1 tipodoc,regrd from td where ndoc = 39
20241227@192831.1239 8lf3r3fjes7c9dvjrfn495jlhd Query : use flama_phc
20241227@192831.1242 8lf3r3fjes7c9dvjrfn495jlhd Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20241227@192831.1280 8lf3r3fjes7c9dvjrfn495jlhd Query : use flama_phc
20241227@192831.1283 8lf3r3fjes7c9dvjrfn495jlhd Query : select szadrsstamp valor from szadrs where szadrsdesc='100810 - worten-plaza large formats rainha'
20241227@192831.1425 8lf3r3fjes7c9dvjrfn495jlhd Query : use flama_phc
20241227@192831.1589 8lf3r3fjes7c9dvjrfn495jlhd Query : select 1 valor from td where ndoc = 39
20241227@192831.1961 8lf3r3fjes7c9dvjrfn495jlhd Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20241227@192831.1979 8lf3r3fjes7c9dvjrfn495jlhd Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@192831.1995 8lf3r3fjes7c9dvjrfn495jlhd Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20241227@192831.2013 8lf3r3fjes7c9dvjrfn495jlhd Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@192831.2027 8lf3r3fjes7c9dvjrfn495jlhd Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20241227@192831.2055 8lf3r3fjes7c9dvjrfn495jlhd Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@192831.2070 8lf3r3fjes7c9dvjrfn495jlhd Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20241227@192831.2082 8lf3r3fjes7c9dvjrfn495jlhd Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20241227@192831.2335 8lf3r3fjes7c9dvjrfn495jlhd Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20241227@192831.2349 8lf3r3fjes7c9dvjrfn495jlhd Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@192831.2365 8lf3r3fjes7c9dvjrfn495jlhd Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20241227@192831.2381 8lf3r3fjes7c9dvjrfn495jlhd Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut676ef26411676effdf32' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20241227@192831.2542 8lf3r3fjes7c9dvjrfn495jlhd Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@192831.2557 8lf3r3fjes7c9dvjrfn495jlhd Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20241227@192831.2589 8lf3r3fjes7c9dvjrfn495jlhd Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20241227@192831.2601 8lf3r3fjes7c9dvjrfn495jlhd Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20241227@192831.2612 8lf3r3fjes7c9dvjrfn495jlhd Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20241227@192831.2624 8lf3r3fjes7c9dvjrfn495jlhd Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20241227@192831.2636 8lf3r3fjes7c9dvjrfn495jlhd Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20241227@192831.2648 8lf3r3fjes7c9dvjrfn495jlhd Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20241227@192831.2660 8lf3r3fjes7c9dvjrfn495jlhd Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut676ef26411676effdf32',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20241227@192831.2869 8lf3r3fjes7c9dvjrfn495jlhd Query : select top 1 fno valor from wsftdata order by fno desc
20241227@192831.2898 8lf3r3fjes7c9dvjrfn495jlhd Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@192831.2913 8lf3r3fjes7c9dvjrfn495jlhd Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20241227@192831.2935 8lf3r3fjes7c9dvjrfn495jlhd Query : select 'normal' from dummy
20241227@192831.2950 8lf3r3fjes7c9dvjrfn495jlhd Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut676ef26411676effdf32',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',2643,100810,0,'2024-12-27',39,'euro',0,0,2024 ,?,?)
20241227@192831.3211 8lf3r3fjes7c9dvjrfn495jlhd Query : use flama_phc
20241227@192831.3214 8lf3r3fjes7c9dvjrfn495jlhd Query : select st.usalote valor from st where st.ref = '328.9005.00.1'
20241227@192831.3235 8lf3r3fjes7c9dvjrfn495jlhd Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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'
20241227@192831.3361 8lf3r3fjes7c9dvjrfn495jlhd Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@192831.3376 8lf3r3fjes7c9dvjrfn495jlhd Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241227@192831.3401 8lf3r3fjes7c9dvjrfn495jlhd Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@192831.3415 8lf3r3fjes7c9dvjrfn495jlhd Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241227@192831.3423 8lf3r3fjes7c9dvjrfn495jlhd Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241227@192831.3437 8lf3r3fjes7c9dvjrfn495jlhd Query : select sestamp valor from se where ref ='328.9005.00.1' and lote = 'r2400092600a'
20241227@192831.3450 8lf3r3fjes7c9dvjrfn495jlhd Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@192831.3464 8lf3r3fjes7c9dvjrfn495jlhd Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241227@192831.3477 8lf3r3fjes7c9dvjrfn495jlhd Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut676ef63119676effdf54','aut676ef26411676effdf32' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241227@192831.3480 8lf3r3fjes7c9dvjrfn495jlhd Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@192831.3495 8lf3r3fjes7c9dvjrfn495jlhd Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241227@192831.3523 8lf3r3fjes7c9dvjrfn495jlhd Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut676ef63119676effdf54',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',1.000 ,'aut676ef26411676effdf32' ,0,0 ,2,23.00,10000,?,?,?,?,?)
20241227@192831.3756 8lf3r3fjes7c9dvjrfn495jlhd Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@192831.3771 8lf3r3fjes7c9dvjrfn495jlhd Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241227@192831.3796 8lf3r3fjes7c9dvjrfn495jlhd Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@192831.3810 8lf3r3fjes7c9dvjrfn495jlhd Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241227@192831.3820 8lf3r3fjes7c9dvjrfn495jlhd Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241227@192831.3833 8lf3r3fjes7c9dvjrfn495jlhd Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@192831.3848 8lf3r3fjes7c9dvjrfn495jlhd Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241227@192831.3859 8lf3r3fjes7c9dvjrfn495jlhd Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut676ef80291676effdf5d','aut676ef26411676effdf32' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241227@192831.3863 8lf3r3fjes7c9dvjrfn495jlhd Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@192831.4028 8lf3r3fjes7c9dvjrfn495jlhd Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241227@192831.4057 8lf3r3fjes7c9dvjrfn495jlhd Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut676ef80291676effdf5d',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut676ef26411676effdf32' ,0,0 ,2,23.00,20000,?,?,?)
20241227@192831.4286 8lf3r3fjes7c9dvjrfn495jlhd Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut676ef26411676effdf32','2408865','wait',39,'adm09112754980.682000002')
20241227@192831.4357 8lf3r3fjes7c9dvjrfn495jlhd Query : use flama_phc
20241227@192831.4360 8lf3r3fjes7c9dvjrfn495jlhd Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20241227@192831.4389 8lf3r3fjes7c9dvjrfn495jlhd Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4199';
20241227@192831.4428 8lf3r3fjes7c9dvjrfn495jlhd Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4199';
20241227@192831.4478 8lf3r3fjes7c9dvjrfn495jlhd Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4199';
20241227@192831.4507 8lf3r3fjes7c9dvjrfn495jlhd Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4199';
20241227@192831.5057 ebcgafq1mjtr4b65e074i9ge4h Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20241227@192831.5069 ebcgafq1mjtr4b65e074i9ge4h Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20241227@192831.5139 ebcgafq1mjtr4b65e074i9ge4h Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4200';
20241227@192831.5202 ebcgafq1mjtr4b65e074i9ge4h Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4200';
20241227@192831.5411 ebcgafq1mjtr4b65e074i9ge4h Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4200';
20241227@192831.5490 ebcgafq1mjtr4b65e074i9ge4h Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4200';
20241227@192831.5556 ebcgafq1mjtr4b65e074i9ge4h Query : use flama_phc
20241227@192831.5564 ebcgafq1mjtr4b65e074i9ge4h Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20241227@192831.5633 ebcgafq1mjtr4b65e074i9ge4h Query : use flama_phc
20241227@192831.5636 ebcgafq1mjtr4b65e074i9ge4h Query : select no, estab,szadrsdesc from szadrs where u_coddest=6737
20241227@192831.5686 ebcgafq1mjtr4b65e074i9ge4h 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'
20241227@192831.5715 ebcgafq1mjtr4b65e074i9ge4h Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2088 and bo.obrano = 2408866 and bi.ref ='328.9005.00.1' and bi.lordem =1
20241227@192831.6043 ebcgafq1mjtr4b65e074i9ge4h Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '328.9335.00.1'
20241227@192831.6172 ebcgafq1mjtr4b65e074i9ge4h Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2088 and bo.obrano = 2408866 and bi.ref ='328.9335.00.1' and bi.lordem =2
20241227@192831.6486 ebcgafq1mjtr4b65e074i9ge4h Query : use flama_phc
20241227@192831.6489 ebcgafq1mjtr4b65e074i9ge4h Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20241227@192831.6546 ebcgafq1mjtr4b65e074i9ge4h Query : use flama_phc
20241227@192831.6549 ebcgafq1mjtr4b65e074i9ge4h Query : select top 1 1 valor from td where td.ndoc = 39
20241227@192831.6606 ebcgafq1mjtr4b65e074i9ge4h Query : use flama_phc
20241227@192831.6609 ebcgafq1mjtr4b65e074i9ge4h 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')
20241227@192831.6652 ebcgafq1mjtr4b65e074i9ge4h 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
20241227@192831.6712 ebcgafq1mjtr4b65e074i9ge4h Query : use flama_phc
20241227@192831.6715 ebcgafq1mjtr4b65e074i9ge4h Query : select top 1 ~inactivo valor from cl where no = '100810' and estab = 0 order by inactivo desc
20241227@192831.6766 ebcgafq1mjtr4b65e074i9ge4h Query : use flama_phc
20241227@192831.6769 ebcgafq1mjtr4b65e074i9ge4h Query : select top 1 tipodoc,regrd from td where ndoc = 39
20241227@192831.6817 ebcgafq1mjtr4b65e074i9ge4h Query : use flama_phc
20241227@192831.6821 ebcgafq1mjtr4b65e074i9ge4h Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20241227@192831.6891 ebcgafq1mjtr4b65e074i9ge4h Query : use flama_phc
20241227@192831.6894 ebcgafq1mjtr4b65e074i9ge4h Query : select szadrsstamp valor from szadrs where szadrsdesc='100810 - worten-plaza large formats rainha'
20241227@192831.6972 ebcgafq1mjtr4b65e074i9ge4h Query : use flama_phc
20241227@192831.6975 ebcgafq1mjtr4b65e074i9ge4h Query : select 1 valor from td where ndoc = 39
20241227@192831.6988 ebcgafq1mjtr4b65e074i9ge4h Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20241227@192831.7002 ebcgafq1mjtr4b65e074i9ge4h Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@192831.7583 ebcgafq1mjtr4b65e074i9ge4h Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20241227@192831.8148 ebcgafq1mjtr4b65e074i9ge4h Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@192831.8165 ebcgafq1mjtr4b65e074i9ge4h Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20241227@192831.8194 ebcgafq1mjtr4b65e074i9ge4h Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@192831.8210 ebcgafq1mjtr4b65e074i9ge4h Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20241227@192831.8224 ebcgafq1mjtr4b65e074i9ge4h Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20241227@192831.8281 ebcgafq1mjtr4b65e074i9ge4h Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20241227@192831.8293 ebcgafq1mjtr4b65e074i9ge4h Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@192831.8307 ebcgafq1mjtr4b65e074i9ge4h Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20241227@192831.8323 ebcgafq1mjtr4b65e074i9ge4h Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut676ef27203676effdfc8' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20241227@192831.8649 ebcgafq1mjtr4b65e074i9ge4h Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@192831.9048 ebcgafq1mjtr4b65e074i9ge4h Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20241227@192831.9081 ebcgafq1mjtr4b65e074i9ge4h Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20241227@192831.9093 ebcgafq1mjtr4b65e074i9ge4h Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20241227@192831.9105 ebcgafq1mjtr4b65e074i9ge4h Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20241227@192831.9116 ebcgafq1mjtr4b65e074i9ge4h Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20241227@192831.9128 ebcgafq1mjtr4b65e074i9ge4h Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20241227@192831.9140 ebcgafq1mjtr4b65e074i9ge4h Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20241227@192831.9151 ebcgafq1mjtr4b65e074i9ge4h Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut676ef27203676effdfc8',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20241227@192831.9544 ebcgafq1mjtr4b65e074i9ge4h Query : select top 1 fno valor from wsftdata order by fno desc
20241227@192831.9631 ebcgafq1mjtr4b65e074i9ge4h Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@192831.9648 ebcgafq1mjtr4b65e074i9ge4h Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20241227@192831.9671 ebcgafq1mjtr4b65e074i9ge4h Query : select 'normal' from dummy
20241227@192831.9686 ebcgafq1mjtr4b65e074i9ge4h Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut676ef27203676effdfc8',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',2644,100810,0,'2024-12-27',39,'euro',0,0,2024 ,?,?)
20241227@192831.9952 ebcgafq1mjtr4b65e074i9ge4h Query : use flama_phc
20241227@192831.9955 ebcgafq1mjtr4b65e074i9ge4h Query : select st.usalote valor from st where st.ref = '328.9005.00.1'
20241227@192831.9979 ebcgafq1mjtr4b65e074i9ge4h Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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'
20241227@192831.9993 ebcgafq1mjtr4b65e074i9ge4h Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@192832.9000 ebcgafq1mjtr4b65e074i9ge4h Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241227@192832.3700 ebcgafq1mjtr4b65e074i9ge4h Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@192832.5100 ebcgafq1mjtr4b65e074i9ge4h Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241227@192832.6100 ebcgafq1mjtr4b65e074i9ge4h Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241227@192832.7600 ebcgafq1mjtr4b65e074i9ge4h Query : select sestamp valor from se where ref ='328.9005.00.1' and lote = 'r2400092600a'
20241227@192832.8900 ebcgafq1mjtr4b65e074i9ge4h Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@192832.1030 ebcgafq1mjtr4b65e074i9ge4h Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241227@192832.1150 ebcgafq1mjtr4b65e074i9ge4h Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut676ef31161676effe002','aut676ef27203676effdfc8' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241227@192832.1200 ebcgafq1mjtr4b65e074i9ge4h Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@192832.1350 ebcgafq1mjtr4b65e074i9ge4h Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241227@192832.1630 ebcgafq1mjtr4b65e074i9ge4h Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut676ef31161676effe002',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',1.000 ,'aut676ef27203676effdfc8' ,0,0 ,2,23.00,10000,?,?,?,?,?)
20241227@192832.3990 ebcgafq1mjtr4b65e074i9ge4h Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@192832.4150 ebcgafq1mjtr4b65e074i9ge4h Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241227@192832.4400 ebcgafq1mjtr4b65e074i9ge4h Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@192832.4550 ebcgafq1mjtr4b65e074i9ge4h Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241227@192832.4630 ebcgafq1mjtr4b65e074i9ge4h Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241227@192832.4750 ebcgafq1mjtr4b65e074i9ge4h Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@192832.4890 ebcgafq1mjtr4b65e074i9ge4h Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241227@192832.5010 ebcgafq1mjtr4b65e074i9ge4h Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut676ef41177676effe00b','aut676ef27203676effdfc8' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241227@192832.5050 ebcgafq1mjtr4b65e074i9ge4h Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@192832.5200 ebcgafq1mjtr4b65e074i9ge4h Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241227@192832.5470 ebcgafq1mjtr4b65e074i9ge4h Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut676ef41177676effe00b',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut676ef27203676effdfc8' ,0,0 ,2,23.00,20000,?,?,?)
20241227@192832.7690 ebcgafq1mjtr4b65e074i9ge4h Query : use flama_phc
20241227@192832.7720 ebcgafq1mjtr4b65e074i9ge4h Query : select st.usalote valor from st where st.ref = '328.9335.00.1'
20241227@192832.7910 ebcgafq1mjtr4b65e074i9ge4h Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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.9335.00.1'
20241227@192832.9110 ebcgafq1mjtr4b65e074i9ge4h Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@192832.9260 ebcgafq1mjtr4b65e074i9ge4h Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241227@192832.9530 ebcgafq1mjtr4b65e074i9ge4h Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@192832.9670 ebcgafq1mjtr4b65e074i9ge4h Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241227@192832.9760 ebcgafq1mjtr4b65e074i9ge4h Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241227@192832.9870 ebcgafq1mjtr4b65e074i9ge4h Query : select sestamp valor from se where ref ='328.9335.00.1' and lote = 'r2001448100a'
20241227@192832.1003 ebcgafq1mjtr4b65e074i9ge4h Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@192832.1017 ebcgafq1mjtr4b65e074i9ge4h Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241227@192832.1029 ebcgafq1mjtr4b65e074i9ge4h Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut676ef63805676effe018','aut676ef27203676effdfc8' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241227@192832.1033 ebcgafq1mjtr4b65e074i9ge4h Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@192832.1047 ebcgafq1mjtr4b65e074i9ge4h Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241227@192832.1075 ebcgafq1mjtr4b65e074i9ge4h Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut676ef63805676effe018',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',1.000 ,'aut676ef27203676effdfc8' ,0,0 ,2,23.00,40000,?,?,?,?,?)
20241227@192832.1316 ebcgafq1mjtr4b65e074i9ge4h Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@192832.1331 ebcgafq1mjtr4b65e074i9ge4h Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241227@192832.1357 ebcgafq1mjtr4b65e074i9ge4h Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@192832.1371 ebcgafq1mjtr4b65e074i9ge4h Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241227@192832.1380 ebcgafq1mjtr4b65e074i9ge4h Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241227@192832.1391 ebcgafq1mjtr4b65e074i9ge4h Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@192832.1408 ebcgafq1mjtr4b65e074i9ge4h Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241227@192832.1420 ebcgafq1mjtr4b65e074i9ge4h Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut676ef26082676effe021','aut676ef27203676effdfc8' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241227@192832.1424 ebcgafq1mjtr4b65e074i9ge4h Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@192832.1439 ebcgafq1mjtr4b65e074i9ge4h Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241227@192832.1466 ebcgafq1mjtr4b65e074i9ge4h Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut676ef26082676effe021',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut676ef27203676effdfc8' ,0,0 ,2,23.00,50000,?,?,?)
20241227@192832.1696 ebcgafq1mjtr4b65e074i9ge4h Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut676ef27203676effdfc8','2408866','wait',39,'adm09112754980.682000002')
20241227@192832.1769 ebcgafq1mjtr4b65e074i9ge4h Query : use flama_phc
20241227@192832.1772 ebcgafq1mjtr4b65e074i9ge4h Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20241227@192832.1807 ebcgafq1mjtr4b65e074i9ge4h Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4200';
20241227@192832.2042 ebcgafq1mjtr4b65e074i9ge4h Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4200';
20241227@192832.2099 ebcgafq1mjtr4b65e074i9ge4h Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4200';
20241227@192832.2134 ebcgafq1mjtr4b65e074i9ge4h Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4200';
20241227@192832.2748 9qsvfs405aocmh1ae01h6htc0k Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20241227@192832.2758 9qsvfs405aocmh1ae01h6htc0k Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20241227@192832.2825 9qsvfs405aocmh1ae01h6htc0k Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4201';
20241227@192832.2885 9qsvfs405aocmh1ae01h6htc0k Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4201';
20241227@192832.2953 9qsvfs405aocmh1ae01h6htc0k Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4201';
20241227@192832.2985 9qsvfs405aocmh1ae01h6htc0k Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4201';
20241227@192832.3044 9qsvfs405aocmh1ae01h6htc0k Query : use flama_phc
20241227@192832.3047 9qsvfs405aocmh1ae01h6htc0k Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20241227@192832.3744 9qsvfs405aocmh1ae01h6htc0k Query : use flama_phc
20241227@192832.3748 9qsvfs405aocmh1ae01h6htc0k Query : select no, estab,szadrsdesc from szadrs where u_coddest=4740
20241227@192832.3794 9qsvfs405aocmh1ae01h6htc0k 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'
20241227@192832.4286 9qsvfs405aocmh1ae01h6htc0k Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2088 and bo.obrano = 2408867 and bi.ref ='324.1670.00.1' and bi.lordem =1
20241227@192832.4605 9qsvfs405aocmh1ae01h6htc0k Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1685.00.1'
20241227@192832.4631 9qsvfs405aocmh1ae01h6htc0k Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2088 and bo.obrano = 2408867 and bi.ref ='324.1685.00.1' and bi.lordem =2
20241227@192832.4947 9qsvfs405aocmh1ae01h6htc0k Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.2366.00.1'
20241227@192832.4972 9qsvfs405aocmh1ae01h6htc0k Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2088 and bo.obrano = 2408867 and bi.ref ='324.2366.00.1' and bi.lordem =3
20241227@192832.5276 9qsvfs405aocmh1ae01h6htc0k Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1608.00.1'
20241227@192832.5397 9qsvfs405aocmh1ae01h6htc0k Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2088 and bo.obrano = 2408867 and bi.ref ='324.1608.00.1' and bi.lordem =4
20241227@192832.5713 9qsvfs405aocmh1ae01h6htc0k Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1837.00.1'
20241227@192832.5834 9qsvfs405aocmh1ae01h6htc0k Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2088 and bo.obrano = 2408867 and bi.ref ='324.1837.00.1' and bi.lordem =5
20241227@192832.6153 9qsvfs405aocmh1ae01h6htc0k Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1816.00.1'
20241227@192832.6348 9qsvfs405aocmh1ae01h6htc0k Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2088 and bo.obrano = 2408867 and bi.ref ='324.1816.00.1' and bi.lordem =6
20241227@192832.6829 9qsvfs405aocmh1ae01h6htc0k Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1643.00.1'
20241227@192832.6952 9qsvfs405aocmh1ae01h6htc0k Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2088 and bo.obrano = 2408867 and bi.ref ='324.1643.00.1' and bi.lordem =7
20241227@192832.7255 9qsvfs405aocmh1ae01h6htc0k Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1643.00.1'
20241227@192832.7276 9qsvfs405aocmh1ae01h6htc0k Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2088 and bo.obrano = 2408867 and bi.ref ='324.1643.00.1' and bi.lordem =7
20241227@192832.7292 9qsvfs405aocmh1ae01h6htc0k Query : use flama_phc
20241227@192832.7295 9qsvfs405aocmh1ae01h6htc0k Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20241227@192832.7328 9qsvfs405aocmh1ae01h6htc0k Query : use flama_phc
20241227@192832.7332 9qsvfs405aocmh1ae01h6htc0k Query : select top 1 1 valor from td where td.ndoc = 39
20241227@192832.7363 9qsvfs405aocmh1ae01h6htc0k Query : use flama_phc
20241227@192832.7366 9qsvfs405aocmh1ae01h6htc0k 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')
20241227@192832.7394 9qsvfs405aocmh1ae01h6htc0k 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
20241227@192832.7428 9qsvfs405aocmh1ae01h6htc0k Query : use flama_phc
20241227@192832.7431 9qsvfs405aocmh1ae01h6htc0k Query : select top 1 ~inactivo valor from cl where no = '100810' and estab = 0 order by inactivo desc
20241227@192832.7460 9qsvfs405aocmh1ae01h6htc0k Query : use flama_phc
20241227@192832.7463 9qsvfs405aocmh1ae01h6htc0k Query : select top 1 tipodoc,regrd from td where ndoc = 39
20241227@192832.7492 9qsvfs405aocmh1ae01h6htc0k Query : use flama_phc
20241227@192832.7495 9qsvfs405aocmh1ae01h6htc0k Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20241227@192832.7533 9qsvfs405aocmh1ae01h6htc0k Query : use flama_phc
20241227@192832.7536 9qsvfs405aocmh1ae01h6htc0k Query : select szadrsstamp valor from szadrs where szadrsdesc='100810 - worten-equipamentos para o lar,sa.'
20241227@192832.7581 9qsvfs405aocmh1ae01h6htc0k Query : use flama_phc
20241227@192832.7584 9qsvfs405aocmh1ae01h6htc0k Query : select 1 valor from td where ndoc = 39
20241227@192832.7596 9qsvfs405aocmh1ae01h6htc0k Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20241227@192832.7611 9qsvfs405aocmh1ae01h6htc0k Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@192832.7628 9qsvfs405aocmh1ae01h6htc0k Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20241227@192832.7652 9qsvfs405aocmh1ae01h6htc0k Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@192832.7667 9qsvfs405aocmh1ae01h6htc0k Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20241227@192832.7695 9qsvfs405aocmh1ae01h6htc0k Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@192832.7709 9qsvfs405aocmh1ae01h6htc0k Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20241227@192832.7722 9qsvfs405aocmh1ae01h6htc0k Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20241227@192832.7780 9qsvfs405aocmh1ae01h6htc0k Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20241227@192832.7792 9qsvfs405aocmh1ae01h6htc0k Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@192832.7806 9qsvfs405aocmh1ae01h6htc0k Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20241227@192832.7824 9qsvfs405aocmh1ae01h6htc0k Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut676ef99717676effe0bc' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20241227@192832.7975 9qsvfs405aocmh1ae01h6htc0k Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@192832.7990 9qsvfs405aocmh1ae01h6htc0k Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20241227@192832.8022 9qsvfs405aocmh1ae01h6htc0k Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20241227@192832.8034 9qsvfs405aocmh1ae01h6htc0k Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20241227@192832.8045 9qsvfs405aocmh1ae01h6htc0k Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20241227@192832.8057 9qsvfs405aocmh1ae01h6htc0k Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20241227@192832.8068 9qsvfs405aocmh1ae01h6htc0k Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20241227@192832.8081 9qsvfs405aocmh1ae01h6htc0k Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20241227@192832.8092 9qsvfs405aocmh1ae01h6htc0k Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut676ef99717676effe0bc',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20241227@192832.8886 9qsvfs405aocmh1ae01h6htc0k Query : select top 1 fno valor from wsftdata order by fno desc
20241227@192832.8915 9qsvfs405aocmh1ae01h6htc0k Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@192832.8931 9qsvfs405aocmh1ae01h6htc0k Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20241227@192832.9151 9qsvfs405aocmh1ae01h6htc0k Query : select 'normal' from dummy
20241227@192832.9166 9qsvfs405aocmh1ae01h6htc0k Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut676ef99717676effe0bc',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',2645,100810,0,'2024-12-27',39,'euro',0,0,2024 ,?,?)
20241227@192832.9440 9qsvfs405aocmh1ae01h6htc0k Query : use flama_phc
20241227@192832.9443 9qsvfs405aocmh1ae01h6htc0k Query : select st.usalote valor from st where st.ref = '324.1670.00.1'
20241227@192832.9464 9qsvfs405aocmh1ae01h6htc0k Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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'
20241227@192832.9591 9qsvfs405aocmh1ae01h6htc0k Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@192832.9609 9qsvfs405aocmh1ae01h6htc0k Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241227@192832.9635 9qsvfs405aocmh1ae01h6htc0k Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@192832.9848 9qsvfs405aocmh1ae01h6htc0k Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241227@192832.9857 9qsvfs405aocmh1ae01h6htc0k Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241227@192832.9870 9qsvfs405aocmh1ae01h6htc0k Query : select sestamp valor from se where ref ='324.1670.00.1' and lote = 'r2301213200a'
20241227@192832.9883 9qsvfs405aocmh1ae01h6htc0k Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@192832.9897 9qsvfs405aocmh1ae01h6htc0k Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241227@192832.9910 9qsvfs405aocmh1ae01h6htc0k Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut676ef34362676effe0f1','aut676ef99717676effe0bc' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241227@192832.9913 9qsvfs405aocmh1ae01h6htc0k Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@192832.9930 9qsvfs405aocmh1ae01h6htc0k Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241227@192832.9961 9qsvfs405aocmh1ae01h6htc0k Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut676ef34362676effe0f1',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',1.000 ,'aut676ef99717676effe0bc' ,0,0 ,2,23.00,10000,?,?,?,?,?)
20241227@192833.2420 9qsvfs405aocmh1ae01h6htc0k Query : use flama_phc
20241227@192833.2450 9qsvfs405aocmh1ae01h6htc0k Query : select st.usalote valor from st where st.ref = '324.1685.00.1'
20241227@192833.2640 9qsvfs405aocmh1ae01h6htc0k Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.1685.00.1'
20241227@192833.2800 9qsvfs405aocmh1ae01h6htc0k Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@192833.2960 9qsvfs405aocmh1ae01h6htc0k Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241227@192833.3210 9qsvfs405aocmh1ae01h6htc0k Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@192833.3350 9qsvfs405aocmh1ae01h6htc0k Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241227@192833.3460 9qsvfs405aocmh1ae01h6htc0k Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241227@192833.3580 9qsvfs405aocmh1ae01h6htc0k Query : select sestamp valor from se where ref ='324.1685.00.1' and lote = 'r2400173100a'
20241227@192833.3760 9qsvfs405aocmh1ae01h6htc0k Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241227@192833.3910 9qsvfs405aocmh1ae01h6htc0k Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
