20240909@073350.3893 7n81cj5c6qugop913c4u0nq2e1 INICIO DE FICHEIRO DE LOG :: /var/www/webservices/logs/website.sql.log
20240909@073350.3892 7n81cj5c6qugop913c4u0nq2e1 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073350.3910 7n81cj5c6qugop913c4u0nq2e1 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240909@073350.3919 7n81cj5c6qugop913c4u0nq2e1 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240909@073350.3932 7n81cj5c6qugop913c4u0nq2e1 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073350.3947 7n81cj5c6qugop913c4u0nq2e1 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240909@073350.3958 7n81cj5c6qugop913c4u0nq2e1 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66de92335066de96ce5f','aut66de93689166de96ce16' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240909@073350.3963 7n81cj5c6qugop913c4u0nq2e1 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073350.3985 7n81cj5c6qugop913c4u0nq2e1 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240909@073350.4014 7n81cj5c6qugop913c4u0nq2e1 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66de92335066de96ce5f',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66de93689166de96ce16' ,0,0 ,2,23.00,20000,?,?,?)
20240909@073350.4297 7n81cj5c6qugop913c4u0nq2e1 Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut66de93689166de96ce16','2405779','wait',39,'adm09112754980.682000002')
20240909@073350.4371 7n81cj5c6qugop913c4u0nq2e1 Query : use flama_phc
20240909@073350.4375 7n81cj5c6qugop913c4u0nq2e1 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240909@073350.4418 7n81cj5c6qugop913c4u0nq2e1 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1868';
20240909@073350.4448 7n81cj5c6qugop913c4u0nq2e1 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1868';
20240909@073350.4486 7n81cj5c6qugop913c4u0nq2e1 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1868';
20240909@073350.4515 7n81cj5c6qugop913c4u0nq2e1 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1868';
20240909@073350.4987 u53k295au5lsp8im124df52mk2 Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240909@073350.4999 u53k295au5lsp8im124df52mk2 Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240909@073350.5055 u53k295au5lsp8im124df52mk2 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1869';
20240909@073350.5113 u53k295au5lsp8im124df52mk2 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1869';
20240909@073350.5164 u53k295au5lsp8im124df52mk2 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1869';
20240909@073350.5188 u53k295au5lsp8im124df52mk2 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1869';
20240909@073350.5405 u53k295au5lsp8im124df52mk2 Query : use flama_phc
20240909@073350.5409 u53k295au5lsp8im124df52mk2 Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240909@073350.5481 u53k295au5lsp8im124df52mk2 Query : use flama_phc
20240909@073350.5484 u53k295au5lsp8im124df52mk2 Query : select no, estab,szadrsdesc from szadrs where u_coddest=4779
20240909@073350.5581 u53k295au5lsp8im124df52mk2 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '304.421.00.04'
20240909@073350.5613 u53k295au5lsp8im124df52mk2 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2057 and bo.obrano = 2405782 and bi.ref ='304.421.00.04' and bi.lordem =1
20240909@073350.5966 u53k295au5lsp8im124df52mk2 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '304.421.00.04'
20240909@073350.5988 u53k295au5lsp8im124df52mk2 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2057 and bo.obrano = 2405782 and bi.ref ='304.421.00.04' and bi.lordem =1
20240909@073350.6019 u53k295au5lsp8im124df52mk2 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.4960.00.1'
20240909@073350.6205 u53k295au5lsp8im124df52mk2 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2057 and bo.obrano = 2405782 and bi.ref ='324.4960.00.1' and bi.lordem =2
20240909@073350.6535 u53k295au5lsp8im124df52mk2 Query : use flama_phc
20240909@073350.6538 u53k295au5lsp8im124df52mk2 Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20240909@073350.6571 u53k295au5lsp8im124df52mk2 Query : use flama_phc
20240909@073350.6574 u53k295au5lsp8im124df52mk2 Query : select top 1 1 valor from td where td.ndoc = 39
20240909@073350.6605 u53k295au5lsp8im124df52mk2 Query : use flama_phc
20240909@073350.6608 u53k295au5lsp8im124df52mk2 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')
20240909@073350.6636 u53k295au5lsp8im124df52mk2 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
20240909@073350.6670 u53k295au5lsp8im124df52mk2 Query : use flama_phc
20240909@073350.6673 u53k295au5lsp8im124df52mk2 Query : select top 1 ~inactivo valor from cl where no = '101900' and estab = 0 order by inactivo desc
20240909@073350.6807 u53k295au5lsp8im124df52mk2 Query : use flama_phc
20240909@073350.6811 u53k295au5lsp8im124df52mk2 Query : select top 1 tipodoc,regrd from td where ndoc = 39
20240909@073350.6866 u53k295au5lsp8im124df52mk2 Query : use flama_phc
20240909@073350.6869 u53k295au5lsp8im124df52mk2 Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20240909@073350.6910 u53k295au5lsp8im124df52mk2 Query : use flama_phc
20240909@073350.6913 u53k295au5lsp8im124df52mk2 Query : select szadrsstamp valor from szadrs where szadrsdesc='101900 - pd - alcochete'
20240909@073350.6973 u53k295au5lsp8im124df52mk2 Query : use flama_phc
20240909@073350.6976 u53k295au5lsp8im124df52mk2 Query : select 1 valor from td where ndoc = 39
20240909@073350.6989 u53k295au5lsp8im124df52mk2 Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20240909@073350.7003 u53k295au5lsp8im124df52mk2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073350.7021 u53k295au5lsp8im124df52mk2 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20240909@073350.7040 u53k295au5lsp8im124df52mk2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073350.7056 u53k295au5lsp8im124df52mk2 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20240909@073350.7086 u53k295au5lsp8im124df52mk2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073350.7101 u53k295au5lsp8im124df52mk2 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20240909@073350.7113 u53k295au5lsp8im124df52mk2 Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240909@073350.7185 u53k295au5lsp8im124df52mk2 Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240909@073350.7198 u53k295au5lsp8im124df52mk2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073350.7213 u53k295au5lsp8im124df52mk2 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20240909@073350.7228 u53k295au5lsp8im124df52mk2 Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut66de93249766de96cead' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20240909@073350.7418 u53k295au5lsp8im124df52mk2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073350.7435 u53k295au5lsp8im124df52mk2 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20240909@073350.7470 u53k295au5lsp8im124df52mk2 Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20240909@073350.7483 u53k295au5lsp8im124df52mk2 Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20240909@073350.7495 u53k295au5lsp8im124df52mk2 Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20240909@073350.7507 u53k295au5lsp8im124df52mk2 Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20240909@073350.7519 u53k295au5lsp8im124df52mk2 Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20240909@073350.7531 u53k295au5lsp8im124df52mk2 Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20240909@073350.7543 u53k295au5lsp8im124df52mk2 Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut66de93249766de96cead',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20240909@073350.7828 u53k295au5lsp8im124df52mk2 Query : select top 1 fno valor from wsftdata order by fno desc
20240909@073350.7849 u53k295au5lsp8im124df52mk2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073350.7866 u53k295au5lsp8im124df52mk2 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20240909@073350.7889 u53k295au5lsp8im124df52mk2 Query : select 'normal' from dummy
20240909@073350.7905 u53k295au5lsp8im124df52mk2 Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut66de93249766de96cead',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',635,101900,0,'2024-09-09',39,'euro',0,0,2024 ,?,?)
20240909@073350.8219 u53k295au5lsp8im124df52mk2 Query : use flama_phc
20240909@073350.8223 u53k295au5lsp8im124df52mk2 Query : select st.usalote valor from st where st.ref = '304.421.00.04'
20240909@073350.8245 u53k295au5lsp8im124df52mk2 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '304.421.00.04'
20240909@073350.8259 u53k295au5lsp8im124df52mk2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073350.8276 u53k295au5lsp8im124df52mk2 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240909@073350.8880 u53k295au5lsp8im124df52mk2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073350.9414 u53k295au5lsp8im124df52mk2 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240909@073350.9491 u53k295au5lsp8im124df52mk2 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240909@073350.9505 u53k295au5lsp8im124df52mk2 Query : select sestamp valor from se where ref ='304.421.00.04' and lote = '240896'
20240909@073350.9518 u53k295au5lsp8im124df52mk2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073350.9535 u53k295au5lsp8im124df52mk2 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240909@073350.9547 u53k295au5lsp8im124df52mk2 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66de97320466de96cee8','aut66de93249766de96cead' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240909@073350.9552 u53k295au5lsp8im124df52mk2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073350.9567 u53k295au5lsp8im124df52mk2 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240909@073350.9596 u53k295au5lsp8im124df52mk2 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66de97320466de96cee8',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',40.000 ,'aut66de93249766de96cead' ,0,0 ,2,23.00,10000,?,?,?,?,?)
20240909@073350.9958 u53k295au5lsp8im124df52mk2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073350.9975 u53k295au5lsp8im124df52mk2 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240909@073351.3000 u53k295au5lsp8im124df52mk2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073351.3300 u53k295au5lsp8im124df52mk2 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240909@073351.4100 u53k295au5lsp8im124df52mk2 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240909@073351.5400 u53k295au5lsp8im124df52mk2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073351.6900 u53k295au5lsp8im124df52mk2 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240909@073351.8000 u53k295au5lsp8im124df52mk2 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66de95756466de96cf01','aut66de93249766de96cead' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240909@073351.8500 u53k295au5lsp8im124df52mk2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073351.9900 u53k295au5lsp8im124df52mk2 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240909@073351.1290 u53k295au5lsp8im124df52mk2 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66de95756466de96cf01',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66de93249766de96cead' ,0,0 ,2,23.00,20000,?,?,?)
20240909@073351.4350 u53k295au5lsp8im124df52mk2 Query : use flama_phc
20240909@073351.4380 u53k295au5lsp8im124df52mk2 Query : select st.usalote valor from st where st.ref = '304.421.00.04'
20240909@073351.4730 u53k295au5lsp8im124df52mk2 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '304.421.00.04'
20240909@073351.4870 u53k295au5lsp8im124df52mk2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073351.5050 u53k295au5lsp8im124df52mk2 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240909@073351.5300 u53k295au5lsp8im124df52mk2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073351.5440 u53k295au5lsp8im124df52mk2 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240909@073351.5530 u53k295au5lsp8im124df52mk2 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240909@073351.5670 u53k295au5lsp8im124df52mk2 Query : select sestamp valor from se where ref ='304.421.00.04' and lote = '241001'
20240909@073351.5950 u53k295au5lsp8im124df52mk2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073351.6100 u53k295au5lsp8im124df52mk2 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240909@073351.6330 u53k295au5lsp8im124df52mk2 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66de98798366de96cf0e','aut66de93249766de96cead' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240909@073351.6370 u53k295au5lsp8im124df52mk2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073351.6510 u53k295au5lsp8im124df52mk2 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240909@073351.6800 u53k295au5lsp8im124df52mk2 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66de98798366de96cf0e',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',4.000 ,'aut66de93249766de96cead' ,0,0 ,2,23.00,40000,?,?,?,?,?)
20240909@073351.9660 u53k295au5lsp8im124df52mk2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073351.9850 u53k295au5lsp8im124df52mk2 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240909@073351.1011 u53k295au5lsp8im124df52mk2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073351.1026 u53k295au5lsp8im124df52mk2 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240909@073351.1035 u53k295au5lsp8im124df52mk2 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240909@073351.1048 u53k295au5lsp8im124df52mk2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073351.1064 u53k295au5lsp8im124df52mk2 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240909@073351.1075 u53k295au5lsp8im124df52mk2 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66de94146166de96cf19','aut66de93249766de96cead' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240909@073351.1079 u53k295au5lsp8im124df52mk2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073351.1094 u53k295au5lsp8im124df52mk2 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240909@073351.1122 u53k295au5lsp8im124df52mk2 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66de94146166de96cf19',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66de93249766de96cead' ,0,0 ,2,23.00,50000,?,?,?)
20240909@073351.1478 u53k295au5lsp8im124df52mk2 Query : use flama_phc
20240909@073351.1482 u53k295au5lsp8im124df52mk2 Query : select st.usalote valor from st where st.ref = '324.4960.00.1'
20240909@073351.1509 u53k295au5lsp8im124df52mk2 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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'
20240909@073351.1665 u53k295au5lsp8im124df52mk2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073351.1682 u53k295au5lsp8im124df52mk2 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240909@073351.1723 u53k295au5lsp8im124df52mk2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073351.1739 u53k295au5lsp8im124df52mk2 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240909@073351.1747 u53k295au5lsp8im124df52mk2 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240909@073351.1760 u53k295au5lsp8im124df52mk2 Query : select sestamp valor from se where ref ='324.4960.00.1' and lote = 'r2100754100a'
20240909@073351.1795 u53k295au5lsp8im124df52mk2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073351.1811 u53k295au5lsp8im124df52mk2 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240909@073351.1823 u53k295au5lsp8im124df52mk2 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66de95434366de96cf2b','aut66de93249766de96cead' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240909@073351.1827 u53k295au5lsp8im124df52mk2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073351.1842 u53k295au5lsp8im124df52mk2 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240909@073351.1872 u53k295au5lsp8im124df52mk2 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66de95434366de96cf2b',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',6.000 ,'aut66de93249766de96cead' ,0,0 ,2,23.00,70000,?,?,?,?,?)
20240909@073351.2213 u53k295au5lsp8im124df52mk2 Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut66de93249766de96cead','2405782','wait',39,'adm09112754980.682000002')
20240909@073351.2287 u53k295au5lsp8im124df52mk2 Query : use flama_phc
20240909@073351.2291 u53k295au5lsp8im124df52mk2 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240909@073351.2320 u53k295au5lsp8im124df52mk2 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1869';
20240909@073351.2350 u53k295au5lsp8im124df52mk2 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1869';
20240909@073351.2389 u53k295au5lsp8im124df52mk2 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1869';
20240909@073351.2413 u53k295au5lsp8im124df52mk2 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1869';
20240909@073351.2983 dlb7torr95nh94c4lrhks2q6l3 Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240909@073351.2994 dlb7torr95nh94c4lrhks2q6l3 Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240909@073351.3048 dlb7torr95nh94c4lrhks2q6l3 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1870';
20240909@073351.3103 dlb7torr95nh94c4lrhks2q6l3 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1870';
20240909@073351.3152 dlb7torr95nh94c4lrhks2q6l3 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1870';
20240909@073351.3201 dlb7torr95nh94c4lrhks2q6l3 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1870';
20240909@073351.3250 dlb7torr95nh94c4lrhks2q6l3 Query : use flama_phc
20240909@073351.3253 dlb7torr95nh94c4lrhks2q6l3 Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240909@073351.3329 dlb7torr95nh94c4lrhks2q6l3 Query : use flama_phc
20240909@073351.3332 dlb7torr95nh94c4lrhks2q6l3 Query : select no, estab,szadrsdesc from szadrs where u_coddest=1453
20240909@073351.3427 dlb7torr95nh94c4lrhks2q6l3 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '327.8261.00.1'
20240909@073351.3603 dlb7torr95nh94c4lrhks2q6l3 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2057 and bo.obrano = 2405783 and bi.ref ='327.8261.00.1' and bi.lordem =1
20240909@073351.3962 dlb7torr95nh94c4lrhks2q6l3 Query : use flama_phc
20240909@073351.3966 dlb7torr95nh94c4lrhks2q6l3 Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20240909@073351.3999 dlb7torr95nh94c4lrhks2q6l3 Query : use flama_phc
20240909@073351.4002 dlb7torr95nh94c4lrhks2q6l3 Query : select top 1 1 valor from td where td.ndoc = 39
20240909@073351.4032 dlb7torr95nh94c4lrhks2q6l3 Query : use flama_phc
20240909@073351.4036 dlb7torr95nh94c4lrhks2q6l3 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')
20240909@073351.4068 dlb7torr95nh94c4lrhks2q6l3 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
20240909@073351.4103 dlb7torr95nh94c4lrhks2q6l3 Query : use flama_phc
20240909@073351.4106 dlb7torr95nh94c4lrhks2q6l3 Query : select top 1 ~inactivo valor from cl where no = '101621' and estab = 0 order by inactivo desc
20240909@073351.4251 dlb7torr95nh94c4lrhks2q6l3 Query : use flama_phc
20240909@073351.4254 dlb7torr95nh94c4lrhks2q6l3 Query : select top 1 tipodoc,regrd from td where ndoc = 39
20240909@073351.4285 dlb7torr95nh94c4lrhks2q6l3 Query : use flama_phc
20240909@073351.4288 dlb7torr95nh94c4lrhks2q6l3 Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20240909@073351.4328 dlb7torr95nh94c4lrhks2q6l3 Query : use flama_phc
20240909@073351.4331 dlb7torr95nh94c4lrhks2q6l3 Query : select szadrsstamp valor from szadrs where szadrsdesc='jom - batalha'
20240909@073351.4378 dlb7torr95nh94c4lrhks2q6l3 Query : use flama_phc
20240909@073351.4381 dlb7torr95nh94c4lrhks2q6l3 Query : select 1 valor from td where ndoc = 39
20240909@073351.4394 dlb7torr95nh94c4lrhks2q6l3 Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20240909@073351.4408 dlb7torr95nh94c4lrhks2q6l3 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073351.4425 dlb7torr95nh94c4lrhks2q6l3 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20240909@073351.4444 dlb7torr95nh94c4lrhks2q6l3 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073351.4458 dlb7torr95nh94c4lrhks2q6l3 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20240909@073351.4488 dlb7torr95nh94c4lrhks2q6l3 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073351.4502 dlb7torr95nh94c4lrhks2q6l3 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20240909@073351.4515 dlb7torr95nh94c4lrhks2q6l3 Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240909@073351.4583 dlb7torr95nh94c4lrhks2q6l3 Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240909@073351.4596 dlb7torr95nh94c4lrhks2q6l3 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073351.4611 dlb7torr95nh94c4lrhks2q6l3 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20240909@073351.4627 dlb7torr95nh94c4lrhks2q6l3 Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut66de91105166de96cf6e' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20240909@073351.4829 dlb7torr95nh94c4lrhks2q6l3 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073351.4846 dlb7torr95nh94c4lrhks2q6l3 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20240909@073351.4882 dlb7torr95nh94c4lrhks2q6l3 Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20240909@073351.4962 dlb7torr95nh94c4lrhks2q6l3 Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20240909@073351.4974 dlb7torr95nh94c4lrhks2q6l3 Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20240909@073351.4986 dlb7torr95nh94c4lrhks2q6l3 Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20240909@073351.4998 dlb7torr95nh94c4lrhks2q6l3 Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20240909@073351.5011 dlb7torr95nh94c4lrhks2q6l3 Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20240909@073351.5023 dlb7torr95nh94c4lrhks2q6l3 Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut66de91105166de96cf6e',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20240909@073351.5294 dlb7torr95nh94c4lrhks2q6l3 Query : select top 1 fno valor from wsftdata order by fno desc
20240909@073351.5315 dlb7torr95nh94c4lrhks2q6l3 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073351.5332 dlb7torr95nh94c4lrhks2q6l3 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20240909@073351.5354 dlb7torr95nh94c4lrhks2q6l3 Query : select 'normal' from dummy
20240909@073351.5370 dlb7torr95nh94c4lrhks2q6l3 Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut66de91105166de96cf6e',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',636,101621,0,'2024-09-09',39,'euro',0,0,2024 ,?,?)
20240909@073351.5894 dlb7torr95nh94c4lrhks2q6l3 Query : use flama_phc
20240909@073351.5897 dlb7torr95nh94c4lrhks2q6l3 Query : select st.usalote valor from st where st.ref = '327.8261.00.1'
20240909@073351.5923 dlb7torr95nh94c4lrhks2q6l3 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '327.8261.00.1'
20240909@073351.6086 dlb7torr95nh94c4lrhks2q6l3 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073351.6103 dlb7torr95nh94c4lrhks2q6l3 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240909@073351.6128 dlb7torr95nh94c4lrhks2q6l3 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073351.6142 dlb7torr95nh94c4lrhks2q6l3 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240909@073351.6151 dlb7torr95nh94c4lrhks2q6l3 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240909@073351.6163 dlb7torr95nh94c4lrhks2q6l3 Query : select sestamp valor from se where ref ='327.8261.00.1' and lote = 'r2400078200a'
20240909@073351.6190 dlb7torr95nh94c4lrhks2q6l3 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073351.6204 dlb7torr95nh94c4lrhks2q6l3 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240909@073351.6216 dlb7torr95nh94c4lrhks2q6l3 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66de93878466de96cf97','aut66de91105166de96cf6e' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240909@073351.6220 dlb7torr95nh94c4lrhks2q6l3 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073351.6235 dlb7torr95nh94c4lrhks2q6l3 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240909@073351.6280 dlb7torr95nh94c4lrhks2q6l3 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66de93878466de96cf97',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',2.000 ,'aut66de91105166de96cf6e' ,0,0 ,2,23.00,10000,?,?,?,?,?)
20240909@073351.6620 dlb7torr95nh94c4lrhks2q6l3 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073351.6638 dlb7torr95nh94c4lrhks2q6l3 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240909@073351.6665 dlb7torr95nh94c4lrhks2q6l3 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073351.6693 dlb7torr95nh94c4lrhks2q6l3 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240909@073351.6702 dlb7torr95nh94c4lrhks2q6l3 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240909@073351.6715 dlb7torr95nh94c4lrhks2q6l3 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073351.6730 dlb7torr95nh94c4lrhks2q6l3 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240909@073351.6742 dlb7torr95nh94c4lrhks2q6l3 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66de95983566de96cfa3','aut66de91105166de96cf6e' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240909@073351.6746 dlb7torr95nh94c4lrhks2q6l3 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073351.6760 dlb7torr95nh94c4lrhks2q6l3 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240909@073351.6791 dlb7torr95nh94c4lrhks2q6l3 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66de95983566de96cfa3',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66de91105166de96cf6e' ,0,0 ,2,23.00,20000,?,?,?)
20240909@073351.7084 dlb7torr95nh94c4lrhks2q6l3 Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut66de91105166de96cf6e','2405783','wait',39,'adm09112754980.682000002')
20240909@073351.7172 dlb7torr95nh94c4lrhks2q6l3 Query : use flama_phc
20240909@073351.7176 dlb7torr95nh94c4lrhks2q6l3 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240909@073351.7206 dlb7torr95nh94c4lrhks2q6l3 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1870';
20240909@073351.7237 dlb7torr95nh94c4lrhks2q6l3 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1870';
20240909@073351.7278 dlb7torr95nh94c4lrhks2q6l3 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1870';
20240909@073351.7304 dlb7torr95nh94c4lrhks2q6l3 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1870';
20240909@073351.8592 mtam6dlffgo3jkk2pnph4uv2n9 Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240909@073351.8606 mtam6dlffgo3jkk2pnph4uv2n9 Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240909@073351.8672 mtam6dlffgo3jkk2pnph4uv2n9 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1871';
20240909@073351.8727 mtam6dlffgo3jkk2pnph4uv2n9 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1871';
20240909@073351.8777 mtam6dlffgo3jkk2pnph4uv2n9 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1871';
20240909@073351.8801 mtam6dlffgo3jkk2pnph4uv2n9 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1871';
20240909@073351.8848 mtam6dlffgo3jkk2pnph4uv2n9 Query : use flama_phc
20240909@073351.8851 mtam6dlffgo3jkk2pnph4uv2n9 Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240909@073351.8913 mtam6dlffgo3jkk2pnph4uv2n9 Query : use flama_phc
20240909@073351.8916 mtam6dlffgo3jkk2pnph4uv2n9 Query : select no, estab,szadrsdesc from szadrs where u_coddest=8301
20240909@073351.9008 mtam6dlffgo3jkk2pnph4uv2n9 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '327.8261.00.1'
20240909@073351.9028 mtam6dlffgo3jkk2pnph4uv2n9 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2057 and bo.obrano = 2405784 and bi.ref ='327.8261.00.1' and bi.lordem =1
20240909@073351.9373 mtam6dlffgo3jkk2pnph4uv2n9 Query : use flama_phc
20240909@073351.9376 mtam6dlffgo3jkk2pnph4uv2n9 Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20240909@073351.9411 mtam6dlffgo3jkk2pnph4uv2n9 Query : use flama_phc
20240909@073351.9414 mtam6dlffgo3jkk2pnph4uv2n9 Query : select top 1 1 valor from td where td.ndoc = 39
20240909@073351.9445 mtam6dlffgo3jkk2pnph4uv2n9 Query : use flama_phc
20240909@073351.9448 mtam6dlffgo3jkk2pnph4uv2n9 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')
20240909@073351.9479 mtam6dlffgo3jkk2pnph4uv2n9 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
20240909@073351.9516 mtam6dlffgo3jkk2pnph4uv2n9 Query : use flama_phc
20240909@073351.9519 mtam6dlffgo3jkk2pnph4uv2n9 Query : select top 1 ~inactivo valor from cl where no = '101621' and estab = 0 order by inactivo desc
20240909@073351.9553 mtam6dlffgo3jkk2pnph4uv2n9 Query : use flama_phc
20240909@073351.9556 mtam6dlffgo3jkk2pnph4uv2n9 Query : select top 1 tipodoc,regrd from td where ndoc = 39
20240909@073351.9590 mtam6dlffgo3jkk2pnph4uv2n9 Query : use flama_phc
20240909@073351.9593 mtam6dlffgo3jkk2pnph4uv2n9 Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20240909@073351.9633 mtam6dlffgo3jkk2pnph4uv2n9 Query : use flama_phc
20240909@073351.9635 mtam6dlffgo3jkk2pnph4uv2n9 Query : select szadrsstamp valor from szadrs where szadrsdesc='j.o.m.,lda - alverca'
20240909@073351.9683 mtam6dlffgo3jkk2pnph4uv2n9 Query : use flama_phc
20240909@073351.9686 mtam6dlffgo3jkk2pnph4uv2n9 Query : select 1 valor from td where ndoc = 39
20240909@073351.9699 mtam6dlffgo3jkk2pnph4uv2n9 Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20240909@073351.9714 mtam6dlffgo3jkk2pnph4uv2n9 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073351.9731 mtam6dlffgo3jkk2pnph4uv2n9 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20240909@073351.9750 mtam6dlffgo3jkk2pnph4uv2n9 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073351.9765 mtam6dlffgo3jkk2pnph4uv2n9 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20240909@073351.9793 mtam6dlffgo3jkk2pnph4uv2n9 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073351.9808 mtam6dlffgo3jkk2pnph4uv2n9 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20240909@073351.9821 mtam6dlffgo3jkk2pnph4uv2n9 Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240909@073351.9889 mtam6dlffgo3jkk2pnph4uv2n9 Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240909@073351.9902 mtam6dlffgo3jkk2pnph4uv2n9 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073351.9917 mtam6dlffgo3jkk2pnph4uv2n9 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20240909@073351.9933 mtam6dlffgo3jkk2pnph4uv2n9 Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut66de91189066de96cfef' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20240909@073352.1240 mtam6dlffgo3jkk2pnph4uv2n9 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073352.1480 mtam6dlffgo3jkk2pnph4uv2n9 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20240909@073352.1820 mtam6dlffgo3jkk2pnph4uv2n9 Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20240909@073352.1940 mtam6dlffgo3jkk2pnph4uv2n9 Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20240909@073352.2060 mtam6dlffgo3jkk2pnph4uv2n9 Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20240909@073352.2190 mtam6dlffgo3jkk2pnph4uv2n9 Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20240909@073352.2310 mtam6dlffgo3jkk2pnph4uv2n9 Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20240909@073352.2430 mtam6dlffgo3jkk2pnph4uv2n9 Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20240909@073352.2660 mtam6dlffgo3jkk2pnph4uv2n9 Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut66de91189066de96cfef',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20240909@073352.5450 mtam6dlffgo3jkk2pnph4uv2n9 Query : select top 1 fno valor from wsftdata order by fno desc
20240909@073352.5710 mtam6dlffgo3jkk2pnph4uv2n9 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073352.5890 mtam6dlffgo3jkk2pnph4uv2n9 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20240909@073352.6160 mtam6dlffgo3jkk2pnph4uv2n9 Query : select 'normal' from dummy
20240909@073352.6330 mtam6dlffgo3jkk2pnph4uv2n9 Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut66de91189066de96cfef',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',637,101621,0,'2024-09-09',39,'euro',0,0,2024 ,?,?)
20240909@073352.9550 mtam6dlffgo3jkk2pnph4uv2n9 Query : use flama_phc
20240909@073352.9590 mtam6dlffgo3jkk2pnph4uv2n9 Query : select st.usalote valor from st where st.ref = '327.8261.00.1'
20240909@073352.9880 mtam6dlffgo3jkk2pnph4uv2n9 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '327.8261.00.1'
20240909@073352.1005 mtam6dlffgo3jkk2pnph4uv2n9 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073352.1024 mtam6dlffgo3jkk2pnph4uv2n9 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240909@073352.1057 mtam6dlffgo3jkk2pnph4uv2n9 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073352.1074 mtam6dlffgo3jkk2pnph4uv2n9 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240909@073352.1084 mtam6dlffgo3jkk2pnph4uv2n9 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240909@073352.1097 mtam6dlffgo3jkk2pnph4uv2n9 Query : select sestamp valor from se where ref ='327.8261.00.1' and lote = 'r2400078200a'
20240909@073352.1110 mtam6dlffgo3jkk2pnph4uv2n9 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073352.1125 mtam6dlffgo3jkk2pnph4uv2n9 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240909@073352.1137 mtam6dlffgo3jkk2pnph4uv2n9 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66de96972066de96d01b','aut66de91189066de96cfef' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240909@073352.1142 mtam6dlffgo3jkk2pnph4uv2n9 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073352.1157 mtam6dlffgo3jkk2pnph4uv2n9 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240909@073352.1190 mtam6dlffgo3jkk2pnph4uv2n9 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66de96972066de96d01b',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',1.000 ,'aut66de91189066de96cfef' ,0,0 ,2,23.00,10000,?,?,?,?,?)
20240909@073352.1484 mtam6dlffgo3jkk2pnph4uv2n9 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073352.1502 mtam6dlffgo3jkk2pnph4uv2n9 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240909@073352.1531 mtam6dlffgo3jkk2pnph4uv2n9 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073352.1546 mtam6dlffgo3jkk2pnph4uv2n9 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240909@073352.1555 mtam6dlffgo3jkk2pnph4uv2n9 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240909@073352.1567 mtam6dlffgo3jkk2pnph4uv2n9 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073352.1582 mtam6dlffgo3jkk2pnph4uv2n9 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240909@073352.1593 mtam6dlffgo3jkk2pnph4uv2n9 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66de95304866de96d026','aut66de91189066de96cfef' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240909@073352.1597 mtam6dlffgo3jkk2pnph4uv2n9 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073352.1613 mtam6dlffgo3jkk2pnph4uv2n9 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240909@073352.1641 mtam6dlffgo3jkk2pnph4uv2n9 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66de95304866de96d026',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66de91189066de96cfef' ,0,0 ,2,23.00,20000,?,?,?)
20240909@073352.1950 mtam6dlffgo3jkk2pnph4uv2n9 Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut66de91189066de96cfef','2405784','wait',39,'adm09112754980.682000002')
20240909@073352.2024 mtam6dlffgo3jkk2pnph4uv2n9 Query : use flama_phc
20240909@073352.2028 mtam6dlffgo3jkk2pnph4uv2n9 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240909@073352.2058 mtam6dlffgo3jkk2pnph4uv2n9 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1871';
20240909@073352.2151 mtam6dlffgo3jkk2pnph4uv2n9 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1871';
20240909@073352.2195 mtam6dlffgo3jkk2pnph4uv2n9 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1871';
20240909@073352.2220 mtam6dlffgo3jkk2pnph4uv2n9 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1871';
20240909@073352.2696 ohhi0lsuib8vbf127lcp7o4598 Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240909@073352.2707 ohhi0lsuib8vbf127lcp7o4598 Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240909@073352.2764 ohhi0lsuib8vbf127lcp7o4598 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1872';
20240909@073352.2822 ohhi0lsuib8vbf127lcp7o4598 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1872';
20240909@073352.2895 ohhi0lsuib8vbf127lcp7o4598 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1872';
20240909@073352.2922 ohhi0lsuib8vbf127lcp7o4598 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1872';
20240909@073352.2973 ohhi0lsuib8vbf127lcp7o4598 Query : use flama_phc
20240909@073352.2976 ohhi0lsuib8vbf127lcp7o4598 Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240909@073352.3042 ohhi0lsuib8vbf127lcp7o4598 Query : use flama_phc
20240909@073352.3045 ohhi0lsuib8vbf127lcp7o4598 Query : select no, estab,szadrsdesc from szadrs where u_coddest=7737
20240909@073352.3136 ohhi0lsuib8vbf127lcp7o4598 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '327.8261.00.1'
20240909@073352.3157 ohhi0lsuib8vbf127lcp7o4598 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2057 and bo.obrano = 2405785 and bi.ref ='327.8261.00.1' and bi.lordem =1
20240909@073352.3521 ohhi0lsuib8vbf127lcp7o4598 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '327.8261.00.1'
20240909@073352.3545 ohhi0lsuib8vbf127lcp7o4598 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2057 and bo.obrano = 2405785 and bi.ref ='327.8261.00.1' and bi.lordem =1
20240909@073352.3562 ohhi0lsuib8vbf127lcp7o4598 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '327.8261.00.1'
20240909@073352.3584 ohhi0lsuib8vbf127lcp7o4598 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2057 and bo.obrano = 2405785 and bi.ref ='327.8261.00.1' and bi.lordem =2
20240909@073352.4108 ohhi0lsuib8vbf127lcp7o4598 Query : use flama_phc
20240909@073352.4112 ohhi0lsuib8vbf127lcp7o4598 Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20240909@073352.4148 ohhi0lsuib8vbf127lcp7o4598 Query : use flama_phc
20240909@073352.4151 ohhi0lsuib8vbf127lcp7o4598 Query : select top 1 1 valor from td where td.ndoc = 39
20240909@073352.4184 ohhi0lsuib8vbf127lcp7o4598 Query : use flama_phc
20240909@073352.4187 ohhi0lsuib8vbf127lcp7o4598 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')
20240909@073352.4219 ohhi0lsuib8vbf127lcp7o4598 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
20240909@073352.4258 ohhi0lsuib8vbf127lcp7o4598 Query : use flama_phc
20240909@073352.4262 ohhi0lsuib8vbf127lcp7o4598 Query : select top 1 ~inactivo valor from cl where no = '101621' and estab = 0 order by inactivo desc
20240909@073352.4297 ohhi0lsuib8vbf127lcp7o4598 Query : use flama_phc
20240909@073352.4301 ohhi0lsuib8vbf127lcp7o4598 Query : select top 1 tipodoc,regrd from td where ndoc = 39
20240909@073352.4336 ohhi0lsuib8vbf127lcp7o4598 Query : use flama_phc
20240909@073352.4339 ohhi0lsuib8vbf127lcp7o4598 Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20240909@073352.4379 ohhi0lsuib8vbf127lcp7o4598 Query : use flama_phc
20240909@073352.4381 ohhi0lsuib8vbf127lcp7o4598 Query : select szadrsstamp valor from szadrs where szadrsdesc='j.o.m - loja da ponte'
20240909@073352.4429 ohhi0lsuib8vbf127lcp7o4598 Query : use flama_phc
20240909@073352.4432 ohhi0lsuib8vbf127lcp7o4598 Query : select 1 valor from td where ndoc = 39
20240909@073352.4444 ohhi0lsuib8vbf127lcp7o4598 Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20240909@073352.4458 ohhi0lsuib8vbf127lcp7o4598 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073352.4474 ohhi0lsuib8vbf127lcp7o4598 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20240909@073352.4494 ohhi0lsuib8vbf127lcp7o4598 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073352.4508 ohhi0lsuib8vbf127lcp7o4598 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20240909@073352.4539 ohhi0lsuib8vbf127lcp7o4598 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073352.4554 ohhi0lsuib8vbf127lcp7o4598 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20240909@073352.4567 ohhi0lsuib8vbf127lcp7o4598 Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240909@073352.4638 ohhi0lsuib8vbf127lcp7o4598 Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240909@073352.4653 ohhi0lsuib8vbf127lcp7o4598 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073352.5504 ohhi0lsuib8vbf127lcp7o4598 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20240909@073352.6076 ohhi0lsuib8vbf127lcp7o4598 Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut66de91545966de96d06f' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20240909@073352.6267 ohhi0lsuib8vbf127lcp7o4598 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073352.6286 ohhi0lsuib8vbf127lcp7o4598 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20240909@073352.6321 ohhi0lsuib8vbf127lcp7o4598 Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20240909@073352.6333 ohhi0lsuib8vbf127lcp7o4598 Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20240909@073352.6344 ohhi0lsuib8vbf127lcp7o4598 Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20240909@073352.6356 ohhi0lsuib8vbf127lcp7o4598 Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20240909@073352.6368 ohhi0lsuib8vbf127lcp7o4598 Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20240909@073352.6380 ohhi0lsuib8vbf127lcp7o4598 Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20240909@073352.6393 ohhi0lsuib8vbf127lcp7o4598 Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut66de91545966de96d06f',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20240909@073352.6657 ohhi0lsuib8vbf127lcp7o4598 Query : select top 1 fno valor from wsftdata order by fno desc
20240909@073352.6678 ohhi0lsuib8vbf127lcp7o4598 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073352.6696 ohhi0lsuib8vbf127lcp7o4598 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20240909@073352.6720 ohhi0lsuib8vbf127lcp7o4598 Query : select 'normal' from dummy
20240909@073352.6735 ohhi0lsuib8vbf127lcp7o4598 Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut66de91545966de96d06f',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',638,101621,0,'2024-09-09',39,'euro',0,0,2024 ,?,?)
20240909@073352.7112 ohhi0lsuib8vbf127lcp7o4598 Query : use flama_phc
20240909@073352.7116 ohhi0lsuib8vbf127lcp7o4598 Query : select st.usalote valor from st where st.ref = '327.8261.00.1'
20240909@073352.7138 ohhi0lsuib8vbf127lcp7o4598 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '327.8261.00.1'
20240909@073352.7153 ohhi0lsuib8vbf127lcp7o4598 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073352.7173 ohhi0lsuib8vbf127lcp7o4598 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240909@073352.7200 ohhi0lsuib8vbf127lcp7o4598 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073352.7221 ohhi0lsuib8vbf127lcp7o4598 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240909@073352.7231 ohhi0lsuib8vbf127lcp7o4598 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240909@073352.7244 ohhi0lsuib8vbf127lcp7o4598 Query : select sestamp valor from se where ref ='327.8261.00.1' and lote = 'r2400078200a'
20240909@073352.7257 ohhi0lsuib8vbf127lcp7o4598 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073352.7274 ohhi0lsuib8vbf127lcp7o4598 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240909@073352.7286 ohhi0lsuib8vbf127lcp7o4598 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66de94703866de96d0b1','aut66de91545966de96d06f' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240909@073352.7291 ohhi0lsuib8vbf127lcp7o4598 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073352.7305 ohhi0lsuib8vbf127lcp7o4598 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240909@073352.7340 ohhi0lsuib8vbf127lcp7o4598 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66de94703866de96d0b1',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',4.000 ,'aut66de91545966de96d06f' ,0,0 ,2,23.00,10000,?,?,?,?,?)
20240909@073352.7626 ohhi0lsuib8vbf127lcp7o4598 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073352.7643 ohhi0lsuib8vbf127lcp7o4598 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240909@073352.7672 ohhi0lsuib8vbf127lcp7o4598 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073352.7691 ohhi0lsuib8vbf127lcp7o4598 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240909@073352.7702 ohhi0lsuib8vbf127lcp7o4598 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240909@073352.7716 ohhi0lsuib8vbf127lcp7o4598 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073352.7733 ohhi0lsuib8vbf127lcp7o4598 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240909@073352.7747 ohhi0lsuib8vbf127lcp7o4598 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66de92364266de96d0bc','aut66de91545966de96d06f' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240909@073352.7752 ohhi0lsuib8vbf127lcp7o4598 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073352.7768 ohhi0lsuib8vbf127lcp7o4598 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240909@073352.7800 ohhi0lsuib8vbf127lcp7o4598 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66de92364266de96d0bc',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66de91545966de96d06f' ,0,0 ,2,23.00,20000,?,?,?)
20240909@073352.8093 ohhi0lsuib8vbf127lcp7o4598 Query : use flama_phc
20240909@073352.8096 ohhi0lsuib8vbf127lcp7o4598 Query : select st.usalote valor from st where st.ref = '327.8261.00.1'
20240909@073352.8117 ohhi0lsuib8vbf127lcp7o4598 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '327.8261.00.1'
20240909@073352.8132 ohhi0lsuib8vbf127lcp7o4598 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073352.8150 ohhi0lsuib8vbf127lcp7o4598 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240909@073352.8176 ohhi0lsuib8vbf127lcp7o4598 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073352.8192 ohhi0lsuib8vbf127lcp7o4598 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240909@073352.8201 ohhi0lsuib8vbf127lcp7o4598 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240909@073352.8216 ohhi0lsuib8vbf127lcp7o4598 Query : select sestamp valor from se where ref ='327.8261.00.1' and lote = 'r2400078200a'
20240909@073352.8229 ohhi0lsuib8vbf127lcp7o4598 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073352.8255 ohhi0lsuib8vbf127lcp7o4598 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240909@073352.8268 ohhi0lsuib8vbf127lcp7o4598 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66de93667466de96d0c8','aut66de91545966de96d06f' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240909@073352.8272 ohhi0lsuib8vbf127lcp7o4598 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073352.8287 ohhi0lsuib8vbf127lcp7o4598 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240909@073352.8317 ohhi0lsuib8vbf127lcp7o4598 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66de93667466de96d0c8',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',4.000 ,'aut66de91545966de96d06f' ,0,0 ,2,23.00,40000,?,?,?,?,?)
20240909@073352.8596 ohhi0lsuib8vbf127lcp7o4598 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073352.8613 ohhi0lsuib8vbf127lcp7o4598 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240909@073352.8639 ohhi0lsuib8vbf127lcp7o4598 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073352.8656 ohhi0lsuib8vbf127lcp7o4598 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240909@073352.8665 ohhi0lsuib8vbf127lcp7o4598 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240909@073352.8678 ohhi0lsuib8vbf127lcp7o4598 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073352.8693 ohhi0lsuib8vbf127lcp7o4598 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240909@073352.8706 ohhi0lsuib8vbf127lcp7o4598 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66de93879066de96d0d3','aut66de91545966de96d06f' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240909@073352.8710 ohhi0lsuib8vbf127lcp7o4598 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073352.8727 ohhi0lsuib8vbf127lcp7o4598 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240909@073352.8769 ohhi0lsuib8vbf127lcp7o4598 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66de93879066de96d0d3',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66de91545966de96d06f' ,0,0 ,2,23.00,50000,?,?,?)
20240909@073352.9051 ohhi0lsuib8vbf127lcp7o4598 Query : use flama_phc
20240909@073352.9055 ohhi0lsuib8vbf127lcp7o4598 Query : select st.usalote valor from st where st.ref = '327.8261.00.1'
20240909@073352.9076 ohhi0lsuib8vbf127lcp7o4598 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '327.8261.00.1'
20240909@073352.9091 ohhi0lsuib8vbf127lcp7o4598 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073352.9110 ohhi0lsuib8vbf127lcp7o4598 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240909@073352.9141 ohhi0lsuib8vbf127lcp7o4598 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073352.9157 ohhi0lsuib8vbf127lcp7o4598 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240909@073352.9167 ohhi0lsuib8vbf127lcp7o4598 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240909@073352.9180 ohhi0lsuib8vbf127lcp7o4598 Query : select sestamp valor from se where ref ='327.8261.00.1' and lote = 'r2400078200a'
20240909@073352.9193 ohhi0lsuib8vbf127lcp7o4598 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073352.9210 ohhi0lsuib8vbf127lcp7o4598 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240909@073352.9223 ohhi0lsuib8vbf127lcp7o4598 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66de98723866de96d0e0','aut66de91545966de96d06f' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240909@073352.9228 ohhi0lsuib8vbf127lcp7o4598 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073352.9256 ohhi0lsuib8vbf127lcp7o4598 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240909@073352.9289 ohhi0lsuib8vbf127lcp7o4598 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66de98723866de96d0e0',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',1.000 ,'aut66de91545966de96d06f' ,0,0 ,2,23.00,70000,?,?,?,?,?)
20240909@073352.9566 ohhi0lsuib8vbf127lcp7o4598 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073352.9583 ohhi0lsuib8vbf127lcp7o4598 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240909@073352.9613 ohhi0lsuib8vbf127lcp7o4598 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073352.9629 ohhi0lsuib8vbf127lcp7o4598 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240909@073352.9638 ohhi0lsuib8vbf127lcp7o4598 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240909@073352.9650 ohhi0lsuib8vbf127lcp7o4598 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073352.9668 ohhi0lsuib8vbf127lcp7o4598 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240909@073352.9680 ohhi0lsuib8vbf127lcp7o4598 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66de91848966de96d0eb','aut66de91545966de96d06f' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240909@073352.9684 ohhi0lsuib8vbf127lcp7o4598 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073352.9699 ohhi0lsuib8vbf127lcp7o4598 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240909@073352.9730 ohhi0lsuib8vbf127lcp7o4598 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66de91848966de96d0eb',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66de91545966de96d06f' ,0,0 ,2,23.00,80000,?,?,?)
20240909@073353.5000 ohhi0lsuib8vbf127lcp7o4598 Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut66de91545966de96d06f','2405785','wait',39,'adm09112754980.682000002')
20240909@073353.8000 ohhi0lsuib8vbf127lcp7o4598 Query : use flama_phc
20240909@073353.8300 ohhi0lsuib8vbf127lcp7o4598 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240909@073353.1150 ohhi0lsuib8vbf127lcp7o4598 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1872';
20240909@073353.1440 ohhi0lsuib8vbf127lcp7o4598 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1872';
20240909@073353.1840 ohhi0lsuib8vbf127lcp7o4598 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1872';
20240909@073353.2080 ohhi0lsuib8vbf127lcp7o4598 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1872';
20240909@073353.6900 apf70mjg8h0mfp8n5jsp1m263b Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240909@073353.7020 apf70mjg8h0mfp8n5jsp1m263b Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240909@073353.7560 apf70mjg8h0mfp8n5jsp1m263b Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1873';
20240909@073353.8160 apf70mjg8h0mfp8n5jsp1m263b Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1873';
20240909@073353.8670 apf70mjg8h0mfp8n5jsp1m263b Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1873';
20240909@073353.8940 apf70mjg8h0mfp8n5jsp1m263b Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1873';
20240909@073353.9480 apf70mjg8h0mfp8n5jsp1m263b Query : use flama_phc
20240909@073353.9660 apf70mjg8h0mfp8n5jsp1m263b Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240909@073353.1034 apf70mjg8h0mfp8n5jsp1m263b Query : use flama_phc
20240909@073353.1037 apf70mjg8h0mfp8n5jsp1m263b Query : select no, estab,szadrsdesc from szadrs where u_coddest=6855
20240909@073353.1129 apf70mjg8h0mfp8n5jsp1m263b Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.646.00.01'
20240909@073353.1151 apf70mjg8h0mfp8n5jsp1m263b Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2057 and bo.obrano = 2405786 and bi.ref ='324.646.00.01' and bi.lordem =1
20240909@073353.2660 apf70mjg8h0mfp8n5jsp1m263b Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.646.00.01'
20240909@073353.2686 apf70mjg8h0mfp8n5jsp1m263b Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2057 and bo.obrano = 2405786 and bi.ref ='324.646.00.01' and bi.lordem =2
20240909@073353.3127 apf70mjg8h0mfp8n5jsp1m263b Query : use flama_phc
20240909@073353.3130 apf70mjg8h0mfp8n5jsp1m263b Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20240909@073353.3163 apf70mjg8h0mfp8n5jsp1m263b Query : use flama_phc
20240909@073353.3166 apf70mjg8h0mfp8n5jsp1m263b Query : select top 1 1 valor from td where td.ndoc = 39
20240909@073353.3196 apf70mjg8h0mfp8n5jsp1m263b Query : use flama_phc
20240909@073353.3198 apf70mjg8h0mfp8n5jsp1m263b 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')
20240909@073353.3226 apf70mjg8h0mfp8n5jsp1m263b 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
20240909@073353.3260 apf70mjg8h0mfp8n5jsp1m263b Query : use flama_phc
20240909@073353.3263 apf70mjg8h0mfp8n5jsp1m263b Query : select top 1 ~inactivo valor from cl where no = '101621' and estab = 0 order by inactivo desc
20240909@073353.3293 apf70mjg8h0mfp8n5jsp1m263b Query : use flama_phc
20240909@073353.3296 apf70mjg8h0mfp8n5jsp1m263b Query : select top 1 tipodoc,regrd from td where ndoc = 39
20240909@073353.3328 apf70mjg8h0mfp8n5jsp1m263b Query : use flama_phc
20240909@073353.3331 apf70mjg8h0mfp8n5jsp1m263b Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20240909@073353.3371 apf70mjg8h0mfp8n5jsp1m263b Query : use flama_phc
20240909@073353.3373 apf70mjg8h0mfp8n5jsp1m263b Query : select szadrsstamp valor from szadrs where szadrsdesc='j.o.m.,lda - montijo nova'
20240909@073353.3420 apf70mjg8h0mfp8n5jsp1m263b Query : use flama_phc
20240909@073353.3423 apf70mjg8h0mfp8n5jsp1m263b Query : select 1 valor from td where ndoc = 39
20240909@073353.3435 apf70mjg8h0mfp8n5jsp1m263b Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20240909@073353.3448 apf70mjg8h0mfp8n5jsp1m263b Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073353.3465 apf70mjg8h0mfp8n5jsp1m263b Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20240909@073353.3498 apf70mjg8h0mfp8n5jsp1m263b Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073353.3513 apf70mjg8h0mfp8n5jsp1m263b Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20240909@073353.3540 apf70mjg8h0mfp8n5jsp1m263b Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073353.3554 apf70mjg8h0mfp8n5jsp1m263b Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20240909@073353.3566 apf70mjg8h0mfp8n5jsp1m263b Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240909@073353.3636 apf70mjg8h0mfp8n5jsp1m263b Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240909@073353.3649 apf70mjg8h0mfp8n5jsp1m263b Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073353.3665 apf70mjg8h0mfp8n5jsp1m263b Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20240909@073353.3683 apf70mjg8h0mfp8n5jsp1m263b Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut66de97636666de96d157' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20240909@073353.3877 apf70mjg8h0mfp8n5jsp1m263b Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073353.3897 apf70mjg8h0mfp8n5jsp1m263b Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20240909@073353.3929 apf70mjg8h0mfp8n5jsp1m263b Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20240909@073353.3941 apf70mjg8h0mfp8n5jsp1m263b Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20240909@073353.3952 apf70mjg8h0mfp8n5jsp1m263b Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20240909@073353.3963 apf70mjg8h0mfp8n5jsp1m263b Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20240909@073353.3975 apf70mjg8h0mfp8n5jsp1m263b Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20240909@073353.3986 apf70mjg8h0mfp8n5jsp1m263b Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20240909@073353.3998 apf70mjg8h0mfp8n5jsp1m263b Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut66de97636666de96d157',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20240909@073353.4257 apf70mjg8h0mfp8n5jsp1m263b Query : select top 1 fno valor from wsftdata order by fno desc
20240909@073353.4278 apf70mjg8h0mfp8n5jsp1m263b Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073353.4293 apf70mjg8h0mfp8n5jsp1m263b Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20240909@073353.4316 apf70mjg8h0mfp8n5jsp1m263b Query : select 'normal' from dummy
20240909@073353.4330 apf70mjg8h0mfp8n5jsp1m263b Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut66de97636666de96d157',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',639,101621,0,'2024-09-09',39,'euro',0,0,2024 ,?,?)
20240909@073353.4656 apf70mjg8h0mfp8n5jsp1m263b Query : use flama_phc
20240909@073353.4660 apf70mjg8h0mfp8n5jsp1m263b Query : select st.usalote valor from st where st.ref = '324.646.00.01'
20240909@073353.4685 apf70mjg8h0mfp8n5jsp1m263b Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.646.00.01'
20240909@073353.4699 apf70mjg8h0mfp8n5jsp1m263b Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073353.4715 apf70mjg8h0mfp8n5jsp1m263b Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240909@073353.4741 apf70mjg8h0mfp8n5jsp1m263b Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073353.4769 apf70mjg8h0mfp8n5jsp1m263b Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240909@073353.4778 apf70mjg8h0mfp8n5jsp1m263b Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240909@073353.4790 apf70mjg8h0mfp8n5jsp1m263b Query : select sestamp valor from se where ref ='324.646.00.01' and lote = 'r2400055100a'
20240909@073353.4802 apf70mjg8h0mfp8n5jsp1m263b Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073353.4819 apf70mjg8h0mfp8n5jsp1m263b Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240909@073353.4830 apf70mjg8h0mfp8n5jsp1m263b Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66de99620666de96d175','aut66de97636666de96d157' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240909@073353.4834 apf70mjg8h0mfp8n5jsp1m263b Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073353.4848 apf70mjg8h0mfp8n5jsp1m263b Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240909@073353.4878 apf70mjg8h0mfp8n5jsp1m263b Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66de99620666de96d175',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',3.000 ,'aut66de97636666de96d157' ,0,0 ,2,23.00,10000,?,?,?,?,?)
20240909@073353.5168 apf70mjg8h0mfp8n5jsp1m263b Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073353.5186 apf70mjg8h0mfp8n5jsp1m263b Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240909@073353.5216 apf70mjg8h0mfp8n5jsp1m263b Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073353.5233 apf70mjg8h0mfp8n5jsp1m263b Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240909@073353.5243 apf70mjg8h0mfp8n5jsp1m263b Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240909@073353.5271 apf70mjg8h0mfp8n5jsp1m263b Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073353.5288 apf70mjg8h0mfp8n5jsp1m263b Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240909@073353.5301 apf70mjg8h0mfp8n5jsp1m263b Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66de90799866de96d180','aut66de97636666de96d157' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240909@073353.5306 apf70mjg8h0mfp8n5jsp1m263b Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073353.5320 apf70mjg8h0mfp8n5jsp1m263b Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240909@073353.5351 apf70mjg8h0mfp8n5jsp1m263b Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66de90799866de96d180',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66de97636666de96d157' ,0,0 ,2,23.00,20000,?,?,?)
20240909@073353.5641 apf70mjg8h0mfp8n5jsp1m263b Query : use flama_phc
20240909@073353.5644 apf70mjg8h0mfp8n5jsp1m263b Query : select st.usalote valor from st where st.ref = '324.646.00.01'
20240909@073353.5665 apf70mjg8h0mfp8n5jsp1m263b Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.646.00.01'
20240909@073353.5681 apf70mjg8h0mfp8n5jsp1m263b Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073353.5733 apf70mjg8h0mfp8n5jsp1m263b Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240909@073353.5773 apf70mjg8h0mfp8n5jsp1m263b Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073353.5792 apf70mjg8h0mfp8n5jsp1m263b Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240909@073353.5800 apf70mjg8h0mfp8n5jsp1m263b Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240909@073353.5813 apf70mjg8h0mfp8n5jsp1m263b Query : select sestamp valor from se where ref ='324.646.00.01' and lote = 'r2400055100a'
20240909@073353.5826 apf70mjg8h0mfp8n5jsp1m263b Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073353.5841 apf70mjg8h0mfp8n5jsp1m263b Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240909@073353.5853 apf70mjg8h0mfp8n5jsp1m263b Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66de99833366de96d18e','aut66de97636666de96d157' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240909@073353.5857 apf70mjg8h0mfp8n5jsp1m263b Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073353.5872 apf70mjg8h0mfp8n5jsp1m263b Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240909@073353.5900 apf70mjg8h0mfp8n5jsp1m263b Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66de99833366de96d18e',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',1.000 ,'aut66de97636666de96d157' ,0,0 ,2,23.00,40000,?,?,?,?,?)
20240909@073353.6376 apf70mjg8h0mfp8n5jsp1m263b Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073353.6395 apf70mjg8h0mfp8n5jsp1m263b Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240909@073353.6421 apf70mjg8h0mfp8n5jsp1m263b Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073353.6437 apf70mjg8h0mfp8n5jsp1m263b Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240909@073353.6446 apf70mjg8h0mfp8n5jsp1m263b Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240909@073353.6460 apf70mjg8h0mfp8n5jsp1m263b Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073353.6476 apf70mjg8h0mfp8n5jsp1m263b Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240909@073353.6490 apf70mjg8h0mfp8n5jsp1m263b Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66de90931066de96d19d','aut66de97636666de96d157' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240909@073353.6495 apf70mjg8h0mfp8n5jsp1m263b Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073353.6511 apf70mjg8h0mfp8n5jsp1m263b Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240909@073353.6543 apf70mjg8h0mfp8n5jsp1m263b Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66de90931066de96d19d',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66de97636666de96d157' ,0,0 ,2,23.00,50000,?,?,?)
20240909@073353.6831 apf70mjg8h0mfp8n5jsp1m263b Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut66de97636666de96d157','2405786','wait',39,'adm09112754980.682000002')
20240909@073353.6915 apf70mjg8h0mfp8n5jsp1m263b Query : use flama_phc
20240909@073353.6918 apf70mjg8h0mfp8n5jsp1m263b Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240909@073353.6949 apf70mjg8h0mfp8n5jsp1m263b Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1873';
20240909@073353.6979 apf70mjg8h0mfp8n5jsp1m263b Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1873';
20240909@073353.7020 apf70mjg8h0mfp8n5jsp1m263b Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1873';
20240909@073353.7044 apf70mjg8h0mfp8n5jsp1m263b Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1873';
20240909@073353.7519 jbaaa80dg2dobpqu6efbfo4dcu Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240909@073353.7531 jbaaa80dg2dobpqu6efbfo4dcu Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240909@073353.7584 jbaaa80dg2dobpqu6efbfo4dcu Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1874';
20240909@073353.7639 jbaaa80dg2dobpqu6efbfo4dcu Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1874';
20240909@073353.7689 jbaaa80dg2dobpqu6efbfo4dcu Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1874';
20240909@073353.7713 jbaaa80dg2dobpqu6efbfo4dcu Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1874';
20240909@073353.7760 jbaaa80dg2dobpqu6efbfo4dcu Query : use flama_phc
20240909@073353.7764 jbaaa80dg2dobpqu6efbfo4dcu Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240909@073353.7826 jbaaa80dg2dobpqu6efbfo4dcu Query : use flama_phc
20240909@073353.7830 jbaaa80dg2dobpqu6efbfo4dcu Query : select no, estab,szadrsdesc from szadrs where u_coddest=2632
20240909@073353.7919 jbaaa80dg2dobpqu6efbfo4dcu Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '327.8261.00.1'
20240909@073353.7940 jbaaa80dg2dobpqu6efbfo4dcu Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2057 and bo.obrano = 2405787 and bi.ref ='327.8261.00.1' and bi.lordem =1
20240909@073353.8284 jbaaa80dg2dobpqu6efbfo4dcu Query : use flama_phc
20240909@073353.8288 jbaaa80dg2dobpqu6efbfo4dcu Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20240909@073353.8322 jbaaa80dg2dobpqu6efbfo4dcu Query : use flama_phc
20240909@073353.8325 jbaaa80dg2dobpqu6efbfo4dcu Query : select top 1 1 valor from td where td.ndoc = 39
20240909@073353.8355 jbaaa80dg2dobpqu6efbfo4dcu Query : use flama_phc
20240909@073353.8358 jbaaa80dg2dobpqu6efbfo4dcu 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')
20240909@073353.8386 jbaaa80dg2dobpqu6efbfo4dcu 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
20240909@073353.8426 jbaaa80dg2dobpqu6efbfo4dcu Query : use flama_phc
20240909@073353.8429 jbaaa80dg2dobpqu6efbfo4dcu Query : select top 1 ~inactivo valor from cl where no = '101621' and estab = 0 order by inactivo desc
20240909@073353.8460 jbaaa80dg2dobpqu6efbfo4dcu Query : use flama_phc
20240909@073353.8463 jbaaa80dg2dobpqu6efbfo4dcu Query : select top 1 tipodoc,regrd from td where ndoc = 39
20240909@073353.8495 jbaaa80dg2dobpqu6efbfo4dcu Query : use flama_phc
20240909@073353.8498 jbaaa80dg2dobpqu6efbfo4dcu Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20240909@073353.8537 jbaaa80dg2dobpqu6efbfo4dcu Query : use flama_phc
20240909@073353.8540 jbaaa80dg2dobpqu6efbfo4dcu Query : select szadrsstamp valor from szadrs where szadrsdesc='j.o.m.,lda- braganÇa'
20240909@073353.8589 jbaaa80dg2dobpqu6efbfo4dcu Query : use flama_phc
20240909@073353.8592 jbaaa80dg2dobpqu6efbfo4dcu Query : select 1 valor from td where ndoc = 39
20240909@073353.8605 jbaaa80dg2dobpqu6efbfo4dcu Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20240909@073353.8620 jbaaa80dg2dobpqu6efbfo4dcu Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073353.8637 jbaaa80dg2dobpqu6efbfo4dcu Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20240909@073353.8657 jbaaa80dg2dobpqu6efbfo4dcu Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073353.8671 jbaaa80dg2dobpqu6efbfo4dcu Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20240909@073353.8702 jbaaa80dg2dobpqu6efbfo4dcu Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073353.8718 jbaaa80dg2dobpqu6efbfo4dcu Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20240909@073353.8731 jbaaa80dg2dobpqu6efbfo4dcu Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240909@073353.8832 jbaaa80dg2dobpqu6efbfo4dcu Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240909@073353.8846 jbaaa80dg2dobpqu6efbfo4dcu Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073353.8861 jbaaa80dg2dobpqu6efbfo4dcu Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20240909@073353.8876 jbaaa80dg2dobpqu6efbfo4dcu Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut66de90703966de96d1d5' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20240909@073353.9078 jbaaa80dg2dobpqu6efbfo4dcu Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073353.9098 jbaaa80dg2dobpqu6efbfo4dcu Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20240909@073353.9133 jbaaa80dg2dobpqu6efbfo4dcu Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20240909@073353.9146 jbaaa80dg2dobpqu6efbfo4dcu Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20240909@073353.9159 jbaaa80dg2dobpqu6efbfo4dcu Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20240909@073353.9172 jbaaa80dg2dobpqu6efbfo4dcu Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20240909@073353.9184 jbaaa80dg2dobpqu6efbfo4dcu Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20240909@073353.9196 jbaaa80dg2dobpqu6efbfo4dcu Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20240909@073353.9208 jbaaa80dg2dobpqu6efbfo4dcu Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut66de90703966de96d1d5',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20240909@073353.9480 jbaaa80dg2dobpqu6efbfo4dcu Query : select top 1 fno valor from wsftdata order by fno desc
20240909@073353.9506 jbaaa80dg2dobpqu6efbfo4dcu Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073353.9526 jbaaa80dg2dobpqu6efbfo4dcu Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20240909@073353.9550 jbaaa80dg2dobpqu6efbfo4dcu Query : select 'normal' from dummy
20240909@073353.9566 jbaaa80dg2dobpqu6efbfo4dcu Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut66de90703966de96d1d5',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',640,101621,0,'2024-09-09',39,'euro',0,0,2024 ,?,?)
20240909@073353.9897 jbaaa80dg2dobpqu6efbfo4dcu Query : use flama_phc
20240909@073353.9900 jbaaa80dg2dobpqu6efbfo4dcu Query : select st.usalote valor from st where st.ref = '327.8261.00.1'
20240909@073354.1740 jbaaa80dg2dobpqu6efbfo4dcu Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '327.8261.00.1'
20240909@073354.1076 jbaaa80dg2dobpqu6efbfo4dcu Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073354.1094 jbaaa80dg2dobpqu6efbfo4dcu Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240909@073354.1123 jbaaa80dg2dobpqu6efbfo4dcu Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073354.1140 jbaaa80dg2dobpqu6efbfo4dcu Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240909@073354.1150 jbaaa80dg2dobpqu6efbfo4dcu Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240909@073354.1163 jbaaa80dg2dobpqu6efbfo4dcu Query : select sestamp valor from se where ref ='327.8261.00.1' and lote = 'r2400078200a'
20240909@073354.1176 jbaaa80dg2dobpqu6efbfo4dcu Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073354.1192 jbaaa80dg2dobpqu6efbfo4dcu Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240909@073354.1204 jbaaa80dg2dobpqu6efbfo4dcu Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66de92739066de96d21c','aut66de90703966de96d1d5' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240909@073354.1209 jbaaa80dg2dobpqu6efbfo4dcu Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073354.1224 jbaaa80dg2dobpqu6efbfo4dcu Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240909@073354.1254 jbaaa80dg2dobpqu6efbfo4dcu Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66de92739066de96d21c',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',1.000 ,'aut66de90703966de96d1d5' ,0,0 ,2,23.00,10000,?,?,?,?,?)
20240909@073354.1543 jbaaa80dg2dobpqu6efbfo4dcu Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073354.1559 jbaaa80dg2dobpqu6efbfo4dcu Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240909@073354.1585 jbaaa80dg2dobpqu6efbfo4dcu Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073354.1600 jbaaa80dg2dobpqu6efbfo4dcu Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240909@073354.1608 jbaaa80dg2dobpqu6efbfo4dcu Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240909@073354.1621 jbaaa80dg2dobpqu6efbfo4dcu Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073354.1635 jbaaa80dg2dobpqu6efbfo4dcu Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240909@073354.1646 jbaaa80dg2dobpqu6efbfo4dcu Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66de98058166de96d227','aut66de90703966de96d1d5' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240909@073354.1651 jbaaa80dg2dobpqu6efbfo4dcu Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073354.1665 jbaaa80dg2dobpqu6efbfo4dcu Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240909@073354.1693 jbaaa80dg2dobpqu6efbfo4dcu Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66de98058166de96d227',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66de90703966de96d1d5' ,0,0 ,2,23.00,20000,?,?,?)
20240909@073354.1985 jbaaa80dg2dobpqu6efbfo4dcu Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut66de90703966de96d1d5','2405787','wait',39,'adm09112754980.682000002')
20240909@073354.2062 jbaaa80dg2dobpqu6efbfo4dcu Query : use flama_phc
20240909@073354.2065 jbaaa80dg2dobpqu6efbfo4dcu Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240909@073354.2096 jbaaa80dg2dobpqu6efbfo4dcu Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1874';
20240909@073354.2127 jbaaa80dg2dobpqu6efbfo4dcu Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1874';
20240909@073354.2167 jbaaa80dg2dobpqu6efbfo4dcu Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1874';
20240909@073354.2191 jbaaa80dg2dobpqu6efbfo4dcu Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1874';
20240909@073354.2793 r6u5rj5c5vgu8temm9e9nbjevo Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240909@073354.2805 r6u5rj5c5vgu8temm9e9nbjevo Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240909@073354.2861 r6u5rj5c5vgu8temm9e9nbjevo Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1875';
20240909@073354.2921 r6u5rj5c5vgu8temm9e9nbjevo Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1875';
20240909@073354.2973 r6u5rj5c5vgu8temm9e9nbjevo Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1875';
20240909@073354.3000 r6u5rj5c5vgu8temm9e9nbjevo Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1875';
20240909@073354.3054 r6u5rj5c5vgu8temm9e9nbjevo Query : use flama_phc
20240909@073354.3058 r6u5rj5c5vgu8temm9e9nbjevo Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240909@073354.3181 r6u5rj5c5vgu8temm9e9nbjevo Query : use flama_phc
20240909@073354.3185 r6u5rj5c5vgu8temm9e9nbjevo Query : select no, estab,szadrsdesc from szadrs where u_coddest=886
20240909@073354.3275 r6u5rj5c5vgu8temm9e9nbjevo Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1831.00.2'
20240909@073354.3445 r6u5rj5c5vgu8temm9e9nbjevo Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2057 and bo.obrano = 2405788 and bi.ref ='324.1831.00.2' and bi.lordem =1
20240909@073354.3776 r6u5rj5c5vgu8temm9e9nbjevo Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1831.00.2'
20240909@073354.3799 r6u5rj5c5vgu8temm9e9nbjevo Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2057 and bo.obrano = 2405788 and bi.ref ='324.1831.00.2' and bi.lordem =2
20240909@073354.4131 r6u5rj5c5vgu8temm9e9nbjevo Query : use flama_phc
20240909@073354.4134 r6u5rj5c5vgu8temm9e9nbjevo Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20240909@073354.4169 r6u5rj5c5vgu8temm9e9nbjevo Query : use flama_phc
20240909@073354.4172 r6u5rj5c5vgu8temm9e9nbjevo Query : select top 1 1 valor from td where td.ndoc = 39
20240909@073354.4204 r6u5rj5c5vgu8temm9e9nbjevo Query : use flama_phc
20240909@073354.4207 r6u5rj5c5vgu8temm9e9nbjevo 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')
20240909@073354.4238 r6u5rj5c5vgu8temm9e9nbjevo 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
20240909@073354.5490 r6u5rj5c5vgu8temm9e9nbjevo Query : use flama_phc
20240909@073354.5494 r6u5rj5c5vgu8temm9e9nbjevo Query : select top 1 ~inactivo valor from cl where no = '101621' and estab = 0 order by inactivo desc
20240909@073354.5524 r6u5rj5c5vgu8temm9e9nbjevo Query : use flama_phc
20240909@073354.5527 r6u5rj5c5vgu8temm9e9nbjevo Query : select top 1 tipodoc,regrd from td where ndoc = 39
20240909@073354.5558 r6u5rj5c5vgu8temm9e9nbjevo Query : use flama_phc
20240909@073354.5561 r6u5rj5c5vgu8temm9e9nbjevo Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20240909@073354.5601 r6u5rj5c5vgu8temm9e9nbjevo Query : use flama_phc
20240909@073354.5604 r6u5rj5c5vgu8temm9e9nbjevo Query : select szadrsstamp valor from szadrs where szadrsdesc='j.o.m.,lda coimbra'
20240909@073354.5661 r6u5rj5c5vgu8temm9e9nbjevo Query : use flama_phc
20240909@073354.5665 r6u5rj5c5vgu8temm9e9nbjevo Query : select 1 valor from td where ndoc = 39
20240909@073354.5677 r6u5rj5c5vgu8temm9e9nbjevo Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20240909@073354.5694 r6u5rj5c5vgu8temm9e9nbjevo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073354.5713 r6u5rj5c5vgu8temm9e9nbjevo Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20240909@073354.5732 r6u5rj5c5vgu8temm9e9nbjevo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073354.5747 r6u5rj5c5vgu8temm9e9nbjevo Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20240909@073354.5776 r6u5rj5c5vgu8temm9e9nbjevo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073354.5791 r6u5rj5c5vgu8temm9e9nbjevo Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20240909@073354.5804 r6u5rj5c5vgu8temm9e9nbjevo Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240909@073354.5878 r6u5rj5c5vgu8temm9e9nbjevo Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240909@073354.5891 r6u5rj5c5vgu8temm9e9nbjevo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073354.5905 r6u5rj5c5vgu8temm9e9nbjevo Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20240909@073354.5924 r6u5rj5c5vgu8temm9e9nbjevo Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut66de97175366de96d28d' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20240909@073354.6118 r6u5rj5c5vgu8temm9e9nbjevo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073354.6138 r6u5rj5c5vgu8temm9e9nbjevo Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20240909@073354.6173 r6u5rj5c5vgu8temm9e9nbjevo Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20240909@073354.6185 r6u5rj5c5vgu8temm9e9nbjevo Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20240909@073354.6198 r6u5rj5c5vgu8temm9e9nbjevo Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20240909@073354.6210 r6u5rj5c5vgu8temm9e9nbjevo Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20240909@073354.6222 r6u5rj5c5vgu8temm9e9nbjevo Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20240909@073354.6234 r6u5rj5c5vgu8temm9e9nbjevo Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20240909@073354.6245 r6u5rj5c5vgu8temm9e9nbjevo Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut66de97175366de96d28d',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20240909@073354.6605 r6u5rj5c5vgu8temm9e9nbjevo Query : select top 1 fno valor from wsftdata order by fno desc
20240909@073354.6726 r6u5rj5c5vgu8temm9e9nbjevo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073354.6744 r6u5rj5c5vgu8temm9e9nbjevo Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20240909@073354.6770 r6u5rj5c5vgu8temm9e9nbjevo Query : select 'normal' from dummy
20240909@073354.6786 r6u5rj5c5vgu8temm9e9nbjevo Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut66de97175366de96d28d',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',641,101621,0,'2024-09-09',39,'euro',0,0,2024 ,?,?)
20240909@073354.7110 r6u5rj5c5vgu8temm9e9nbjevo Query : use flama_phc
20240909@073354.7113 r6u5rj5c5vgu8temm9e9nbjevo Query : select st.usalote valor from st where st.ref = '324.1831.00.2'
20240909@073354.7137 r6u5rj5c5vgu8temm9e9nbjevo Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.1831.00.2'
20240909@073354.7293 r6u5rj5c5vgu8temm9e9nbjevo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073354.7310 r6u5rj5c5vgu8temm9e9nbjevo Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240909@073354.7338 r6u5rj5c5vgu8temm9e9nbjevo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073354.7353 r6u5rj5c5vgu8temm9e9nbjevo Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240909@073354.7363 r6u5rj5c5vgu8temm9e9nbjevo Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240909@073354.7378 r6u5rj5c5vgu8temm9e9nbjevo Query : select sestamp valor from se where ref ='324.1831.00.2' and lote = 'r2301271200a'
20240909@073354.7392 r6u5rj5c5vgu8temm9e9nbjevo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073354.7408 r6u5rj5c5vgu8temm9e9nbjevo Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240909@073354.7420 r6u5rj5c5vgu8temm9e9nbjevo Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66de92445066de96d2b4','aut66de97175366de96d28d' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240909@073354.7425 r6u5rj5c5vgu8temm9e9nbjevo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073354.7457 r6u5rj5c5vgu8temm9e9nbjevo Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240909@073354.7538 r6u5rj5c5vgu8temm9e9nbjevo Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66de92445066de96d2b4',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',3.000 ,'aut66de97175366de96d28d' ,0,0 ,2,23.00,10000,?,?,?,?,?)
20240909@073354.7832 r6u5rj5c5vgu8temm9e9nbjevo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073354.7849 r6u5rj5c5vgu8temm9e9nbjevo Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240909@073354.7877 r6u5rj5c5vgu8temm9e9nbjevo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073354.7892 r6u5rj5c5vgu8temm9e9nbjevo Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240909@073354.7902 r6u5rj5c5vgu8temm9e9nbjevo Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240909@073354.7916 r6u5rj5c5vgu8temm9e9nbjevo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073354.7931 r6u5rj5c5vgu8temm9e9nbjevo Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240909@073354.7943 r6u5rj5c5vgu8temm9e9nbjevo Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66de97453066de96d2c1','aut66de97175366de96d28d' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240909@073354.7947 r6u5rj5c5vgu8temm9e9nbjevo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073354.7962 r6u5rj5c5vgu8temm9e9nbjevo Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240909@073354.7990 r6u5rj5c5vgu8temm9e9nbjevo Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66de97453066de96d2c1',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66de97175366de96d28d' ,0,0 ,2,23.00,20000,?,?,?)
20240909@073354.8305 r6u5rj5c5vgu8temm9e9nbjevo Query : use flama_phc
20240909@073354.8310 r6u5rj5c5vgu8temm9e9nbjevo Query : select st.usalote valor from st where st.ref = '324.1831.00.2'
20240909@073354.8329 r6u5rj5c5vgu8temm9e9nbjevo Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.1831.00.2'
20240909@073354.8343 r6u5rj5c5vgu8temm9e9nbjevo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073354.8360 r6u5rj5c5vgu8temm9e9nbjevo Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240909@073354.8385 r6u5rj5c5vgu8temm9e9nbjevo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073354.8400 r6u5rj5c5vgu8temm9e9nbjevo Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240909@073354.8409 r6u5rj5c5vgu8temm9e9nbjevo Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240909@073354.8424 r6u5rj5c5vgu8temm9e9nbjevo Query : select sestamp valor from se where ref ='324.1831.00.2' and lote = 'r2301271200a'
20240909@073354.8437 r6u5rj5c5vgu8temm9e9nbjevo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073354.8452 r6u5rj5c5vgu8temm9e9nbjevo Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240909@073354.8464 r6u5rj5c5vgu8temm9e9nbjevo Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66de93612466de96d2cd','aut66de97175366de96d28d' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240909@073354.8468 r6u5rj5c5vgu8temm9e9nbjevo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073354.8484 r6u5rj5c5vgu8temm9e9nbjevo Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240909@073354.8512 r6u5rj5c5vgu8temm9e9nbjevo Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66de93612466de96d2cd',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',1.000 ,'aut66de97175366de96d28d' ,0,0 ,2,23.00,40000,?,?,?,?,?)
20240909@073354.8809 r6u5rj5c5vgu8temm9e9nbjevo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073354.8827 r6u5rj5c5vgu8temm9e9nbjevo Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240909@073354.8853 r6u5rj5c5vgu8temm9e9nbjevo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073354.8868 r6u5rj5c5vgu8temm9e9nbjevo Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240909@073354.8876 r6u5rj5c5vgu8temm9e9nbjevo Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240909@073354.8889 r6u5rj5c5vgu8temm9e9nbjevo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073354.8912 r6u5rj5c5vgu8temm9e9nbjevo Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240909@073354.8925 r6u5rj5c5vgu8temm9e9nbjevo Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66de98369066de96d2d9','aut66de97175366de96d28d' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240909@073354.8929 r6u5rj5c5vgu8temm9e9nbjevo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073354.8945 r6u5rj5c5vgu8temm9e9nbjevo Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240909@073354.8975 r6u5rj5c5vgu8temm9e9nbjevo Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66de98369066de96d2d9',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66de97175366de96d28d' ,0,0 ,2,23.00,50000,?,?,?)
20240909@073354.9282 r6u5rj5c5vgu8temm9e9nbjevo Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut66de97175366de96d28d','2405788','wait',39,'adm09112754980.682000002')
20240909@073354.9358 r6u5rj5c5vgu8temm9e9nbjevo Query : use flama_phc
20240909@073354.9361 r6u5rj5c5vgu8temm9e9nbjevo Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240909@073354.9391 r6u5rj5c5vgu8temm9e9nbjevo Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1875';
20240909@073354.9420 r6u5rj5c5vgu8temm9e9nbjevo Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1875';
20240909@073354.9460 r6u5rj5c5vgu8temm9e9nbjevo Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1875';
20240909@073354.9484 r6u5rj5c5vgu8temm9e9nbjevo Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1875';
20240909@073354.9945 eu63ujr4fd336jee6e7nd61u1f Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240909@073354.9956 eu63ujr4fd336jee6e7nd61u1f Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240909@073355.1800 eu63ujr4fd336jee6e7nd61u1f Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1876';
20240909@073355.7400 eu63ujr4fd336jee6e7nd61u1f Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1876';
20240909@073355.1230 eu63ujr4fd336jee6e7nd61u1f Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1876';
20240909@073355.1530 eu63ujr4fd336jee6e7nd61u1f Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1876';
20240909@073355.2030 eu63ujr4fd336jee6e7nd61u1f Query : use flama_phc
20240909@073355.2060 eu63ujr4fd336jee6e7nd61u1f Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240909@073355.2680 eu63ujr4fd336jee6e7nd61u1f Query : use flama_phc
20240909@073355.2710 eu63ujr4fd336jee6e7nd61u1f Query : select no, estab,szadrsdesc from szadrs where u_coddest=4197
20240909@073355.3650 eu63ujr4fd336jee6e7nd61u1f Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '304.4320.00.1'
20240909@073355.5280 eu63ujr4fd336jee6e7nd61u1f Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2057 and bo.obrano = 2405789 and bi.ref ='304.4320.00.1' and bi.lordem =1
20240909@073355.8840 eu63ujr4fd336jee6e7nd61u1f 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'
20240909@073355.1093 eu63ujr4fd336jee6e7nd61u1f Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2057 and bo.obrano = 2405789 and bi.ref ='324.1816.00.1' and bi.lordem =3
20240909@073355.1428 eu63ujr4fd336jee6e7nd61u1f 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'
20240909@073355.1450 eu63ujr4fd336jee6e7nd61u1f Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2057 and bo.obrano = 2405789 and bi.ref ='324.1816.00.1' and bi.lordem =4
20240909@073355.2731 eu63ujr4fd336jee6e7nd61u1f 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'
20240909@073355.2756 eu63ujr4fd336jee6e7nd61u1f Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2057 and bo.obrano = 2405789 and bi.ref ='324.1816.00.1' and bi.lordem =4
20240909@073355.2774 eu63ujr4fd336jee6e7nd61u1f 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'
20240909@073355.2793 eu63ujr4fd336jee6e7nd61u1f Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2057 and bo.obrano = 2405789 and bi.ref ='324.1578.00.1' and bi.lordem =5
20240909@073355.3134 eu63ujr4fd336jee6e7nd61u1f 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'
20240909@073355.3155 eu63ujr4fd336jee6e7nd61u1f Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2057 and bo.obrano = 2405789 and bi.ref ='324.1578.00.1' and bi.lordem =6
20240909@073355.3549 eu63ujr4fd336jee6e7nd61u1f Query : use flama_phc
20240909@073355.3552 eu63ujr4fd336jee6e7nd61u1f Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20240909@073355.3585 eu63ujr4fd336jee6e7nd61u1f Query : use flama_phc
20240909@073355.3588 eu63ujr4fd336jee6e7nd61u1f Query : select top 1 1 valor from td where td.ndoc = 39
20240909@073355.3618 eu63ujr4fd336jee6e7nd61u1f Query : use flama_phc
20240909@073355.3621 eu63ujr4fd336jee6e7nd61u1f 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')
20240909@073355.3656 eu63ujr4fd336jee6e7nd61u1f 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
20240909@073355.3692 eu63ujr4fd336jee6e7nd61u1f Query : use flama_phc
20240909@073355.3695 eu63ujr4fd336jee6e7nd61u1f Query : select top 1 ~inactivo valor from cl where no = '102085' and estab = 0 order by inactivo desc
20240909@073355.3838 eu63ujr4fd336jee6e7nd61u1f Query : use flama_phc
20240909@073355.3841 eu63ujr4fd336jee6e7nd61u1f Query : select top 1 tipodoc,regrd from td where ndoc = 39
20240909@073355.3871 eu63ujr4fd336jee6e7nd61u1f Query : use flama_phc
20240909@073355.3874 eu63ujr4fd336jee6e7nd61u1f Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20240909@073355.3915 eu63ujr4fd336jee6e7nd61u1f Query : use flama_phc
20240909@073355.3918 eu63ujr4fd336jee6e7nd61u1f Query : select szadrsstamp valor from szadrs where szadrsdesc='montilectica 2'
20240909@073355.3967 eu63ujr4fd336jee6e7nd61u1f Query : use flama_phc
20240909@073355.3969 eu63ujr4fd336jee6e7nd61u1f Query : select 1 valor from td where ndoc = 39
20240909@073355.3982 eu63ujr4fd336jee6e7nd61u1f Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20240909@073355.3997 eu63ujr4fd336jee6e7nd61u1f Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073355.4034 eu63ujr4fd336jee6e7nd61u1f Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20240909@073355.4054 eu63ujr4fd336jee6e7nd61u1f Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073355.4081 eu63ujr4fd336jee6e7nd61u1f Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20240909@073355.4110 eu63ujr4fd336jee6e7nd61u1f Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073355.4125 eu63ujr4fd336jee6e7nd61u1f Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20240909@073355.4138 eu63ujr4fd336jee6e7nd61u1f Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240909@073355.4216 eu63ujr4fd336jee6e7nd61u1f Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240909@073355.4230 eu63ujr4fd336jee6e7nd61u1f Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073355.4245 eu63ujr4fd336jee6e7nd61u1f Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20240909@073355.4261 eu63ujr4fd336jee6e7nd61u1f Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut66de97886166de96d365' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20240909@073355.4446 eu63ujr4fd336jee6e7nd61u1f Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073355.4464 eu63ujr4fd336jee6e7nd61u1f Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20240909@073355.4498 eu63ujr4fd336jee6e7nd61u1f Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20240909@073355.4510 eu63ujr4fd336jee6e7nd61u1f Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20240909@073355.4522 eu63ujr4fd336jee6e7nd61u1f Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20240909@073355.4535 eu63ujr4fd336jee6e7nd61u1f Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20240909@073355.4546 eu63ujr4fd336jee6e7nd61u1f Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20240909@073355.4559 eu63ujr4fd336jee6e7nd61u1f Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20240909@073355.4571 eu63ujr4fd336jee6e7nd61u1f Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut66de97886166de96d365',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20240909@073355.4829 eu63ujr4fd336jee6e7nd61u1f Query : select top 1 fno valor from wsftdata order by fno desc
20240909@073355.4849 eu63ujr4fd336jee6e7nd61u1f Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073355.4866 eu63ujr4fd336jee6e7nd61u1f Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20240909@073355.4890 eu63ujr4fd336jee6e7nd61u1f Query : select 'normal' from dummy
20240909@073355.4905 eu63ujr4fd336jee6e7nd61u1f Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut66de97886166de96d365',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',642,102085,0,'2024-09-09',39,'euro',0,0,2024 ,?,?)
20240909@073355.5209 eu63ujr4fd336jee6e7nd61u1f Query : use flama_phc
20240909@073355.5213 eu63ujr4fd336jee6e7nd61u1f Query : select st.usalote valor from st where st.ref = '304.4320.00.1'
20240909@073355.5236 eu63ujr4fd336jee6e7nd61u1f Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '304.4320.00.1'
20240909@073355.5391 eu63ujr4fd336jee6e7nd61u1f Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073355.5408 eu63ujr4fd336jee6e7nd61u1f Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240909@073355.5434 eu63ujr4fd336jee6e7nd61u1f Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073355.5448 eu63ujr4fd336jee6e7nd61u1f Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240909@073355.5458 eu63ujr4fd336jee6e7nd61u1f Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240909@073355.5470 eu63ujr4fd336jee6e7nd61u1f Query : select sestamp valor from se where ref ='304.4320.00.1' and lote = '241005'
20240909@073355.5491 eu63ujr4fd336jee6e7nd61u1f Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073355.5505 eu63ujr4fd336jee6e7nd61u1f Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240909@073355.5517 eu63ujr4fd336jee6e7nd61u1f Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66de93832166de96d386','aut66de97886166de96d365' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240909@073355.5521 eu63ujr4fd336jee6e7nd61u1f Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073355.5539 eu63ujr4fd336jee6e7nd61u1f Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240909@073355.5568 eu63ujr4fd336jee6e7nd61u1f Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66de93832166de96d386',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',12.000 ,'aut66de97886166de96d365' ,0,0 ,2,23.00,10000,?,?,?,?,?)
20240909@073355.5883 eu63ujr4fd336jee6e7nd61u1f Query : use flama_phc
20240909@073355.5886 eu63ujr4fd336jee6e7nd61u1f Query : select st.usalote valor from st where st.ref = '324.1816.00.1'
20240909@073355.5909 eu63ujr4fd336jee6e7nd61u1f Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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'
20240909@073355.6066 eu63ujr4fd336jee6e7nd61u1f Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073355.6082 eu63ujr4fd336jee6e7nd61u1f Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240909@073355.6108 eu63ujr4fd336jee6e7nd61u1f Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073355.6125 eu63ujr4fd336jee6e7nd61u1f Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240909@073355.6135 eu63ujr4fd336jee6e7nd61u1f Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240909@073355.6149 eu63ujr4fd336jee6e7nd61u1f Query : select sestamp valor from se where ref ='324.1816.00.1' and lote = 'r2400198200a'
20240909@073355.6163 eu63ujr4fd336jee6e7nd61u1f Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073355.6177 eu63ujr4fd336jee6e7nd61u1f Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240909@073355.6190 eu63ujr4fd336jee6e7nd61u1f Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66de96232566de96d396','aut66de97886166de96d365' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240909@073355.6201 eu63ujr4fd336jee6e7nd61u1f Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073355.6216 eu63ujr4fd336jee6e7nd61u1f Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240909@073355.6362 eu63ujr4fd336jee6e7nd61u1f Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66de96232566de96d396',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',14.000 ,'aut66de97886166de96d365' ,0,0 ,2,23.00,20000,?,?,?,?,?)
20240909@073355.6666 eu63ujr4fd336jee6e7nd61u1f Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073355.6686 eu63ujr4fd336jee6e7nd61u1f Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240909@073355.6714 eu63ujr4fd336jee6e7nd61u1f Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073355.6911 eu63ujr4fd336jee6e7nd61u1f Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240909@073355.6922 eu63ujr4fd336jee6e7nd61u1f Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240909@073355.6936 eu63ujr4fd336jee6e7nd61u1f Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073355.6954 eu63ujr4fd336jee6e7nd61u1f Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240909@073355.6967 eu63ujr4fd336jee6e7nd61u1f Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66de91042766de96d3a9','aut66de97886166de96d365' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240909@073355.6973 eu63ujr4fd336jee6e7nd61u1f Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073355.6989 eu63ujr4fd336jee6e7nd61u1f Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240909@073355.7020 eu63ujr4fd336jee6e7nd61u1f Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66de91042766de96d3a9',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66de97886166de96d365' ,0,0 ,2,23.00,30000,?,?,?)
20240909@073355.7292 eu63ujr4fd336jee6e7nd61u1f Query : use flama_phc
20240909@073355.7296 eu63ujr4fd336jee6e7nd61u1f Query : select st.usalote valor from st where st.ref = '324.1816.00.1'
20240909@073355.7317 eu63ujr4fd336jee6e7nd61u1f Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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'
20240909@073355.7334 eu63ujr4fd336jee6e7nd61u1f Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073355.7350 eu63ujr4fd336jee6e7nd61u1f Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240909@073355.7379 eu63ujr4fd336jee6e7nd61u1f Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073355.7395 eu63ujr4fd336jee6e7nd61u1f Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240909@073355.7405 eu63ujr4fd336jee6e7nd61u1f Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240909@073355.7418 eu63ujr4fd336jee6e7nd61u1f Query : select sestamp valor from se where ref ='324.1816.00.1' and lote = 'r2400198200a'
20240909@073355.7432 eu63ujr4fd336jee6e7nd61u1f Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073355.7447 eu63ujr4fd336jee6e7nd61u1f Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240909@073355.7461 eu63ujr4fd336jee6e7nd61u1f Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66de97544166de96d3b5','aut66de97886166de96d365' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240909@073355.7465 eu63ujr4fd336jee6e7nd61u1f Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073355.7481 eu63ujr4fd336jee6e7nd61u1f Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240909@073355.7512 eu63ujr4fd336jee6e7nd61u1f Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66de97544166de96d3b5',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',1.000 ,'aut66de97886166de96d365' ,0,0 ,2,23.00,50000,?,?,?,?,?)
20240909@073355.7836 eu63ujr4fd336jee6e7nd61u1f Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073355.7856 eu63ujr4fd336jee6e7nd61u1f Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240909@073355.7884 eu63ujr4fd336jee6e7nd61u1f Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073355.7900 eu63ujr4fd336jee6e7nd61u1f Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240909@073355.7909 eu63ujr4fd336jee6e7nd61u1f Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240909@073355.7923 eu63ujr4fd336jee6e7nd61u1f Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073355.7939 eu63ujr4fd336jee6e7nd61u1f Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240909@073355.7952 eu63ujr4fd336jee6e7nd61u1f Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66de93768666de96d3c1','aut66de97886166de96d365' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240909@073355.7957 eu63ujr4fd336jee6e7nd61u1f Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073355.7972 eu63ujr4fd336jee6e7nd61u1f Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240909@073355.8003 eu63ujr4fd336jee6e7nd61u1f Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66de93768666de96d3c1',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66de97886166de96d365' ,0,0 ,2,23.00,60000,?,?,?)
20240909@073355.8280 eu63ujr4fd336jee6e7nd61u1f Query : use flama_phc
20240909@073355.8283 eu63ujr4fd336jee6e7nd61u1f Query : select st.usalote valor from st where st.ref = '324.1816.00.1'
20240909@073355.8309 eu63ujr4fd336jee6e7nd61u1f Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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'
20240909@073355.8325 eu63ujr4fd336jee6e7nd61u1f Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073355.8343 eu63ujr4fd336jee6e7nd61u1f Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240909@073355.8371 eu63ujr4fd336jee6e7nd61u1f Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073355.8387 eu63ujr4fd336jee6e7nd61u1f Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240909@073355.8397 eu63ujr4fd336jee6e7nd61u1f Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240909@073355.8418 eu63ujr4fd336jee6e7nd61u1f Query : select sestamp valor from se where ref ='324.1816.00.1' and lote = 'r2400198200a'
20240909@073355.8433 eu63ujr4fd336jee6e7nd61u1f Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073355.8449 eu63ujr4fd336jee6e7nd61u1f Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240909@073355.8462 eu63ujr4fd336jee6e7nd61u1f Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66de93962166de96d3cd','aut66de97886166de96d365' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240909@073355.8467 eu63ujr4fd336jee6e7nd61u1f Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073355.8484 eu63ujr4fd336jee6e7nd61u1f Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240909@073355.8515 eu63ujr4fd336jee6e7nd61u1f Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66de93962166de96d3cd',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',1.000 ,'aut66de97886166de96d365' ,0,0 ,2,23.00,80000,?,?,?,?,?)
20240909@073355.8802 eu63ujr4fd336jee6e7nd61u1f Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073355.8822 eu63ujr4fd336jee6e7nd61u1f Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240909@073355.8852 eu63ujr4fd336jee6e7nd61u1f Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073355.8869 eu63ujr4fd336jee6e7nd61u1f Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240909@073355.8879 eu63ujr4fd336jee6e7nd61u1f Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240909@073355.8894 eu63ujr4fd336jee6e7nd61u1f Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073355.8911 eu63ujr4fd336jee6e7nd61u1f Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240909@073355.8925 eu63ujr4fd336jee6e7nd61u1f Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66de98903966de96d3d9','aut66de97886166de96d365' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240909@073355.8930 eu63ujr4fd336jee6e7nd61u1f Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073355.8946 eu63ujr4fd336jee6e7nd61u1f Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240909@073355.8980 eu63ujr4fd336jee6e7nd61u1f Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66de98903966de96d3d9',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66de97886166de96d365' ,0,0 ,2,23.00,90000,?,?,?)
20240909@073355.9300 eu63ujr4fd336jee6e7nd61u1f Query : use flama_phc
20240909@073355.9304 eu63ujr4fd336jee6e7nd61u1f Query : select st.usalote valor from st where st.ref = '324.1578.00.1'
20240909@073355.9365 eu63ujr4fd336jee6e7nd61u1f Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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'
20240909@073355.9381 eu63ujr4fd336jee6e7nd61u1f Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073355.9399 eu63ujr4fd336jee6e7nd61u1f Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240909@073355.9425 eu63ujr4fd336jee6e7nd61u1f Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073355.9442 eu63ujr4fd336jee6e7nd61u1f Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240909@073355.9451 eu63ujr4fd336jee6e7nd61u1f Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240909@073355.9463 eu63ujr4fd336jee6e7nd61u1f Query : select sestamp valor from se where ref ='324.1578.00.1' and lote = 'r2101115200a'
20240909@073355.9476 eu63ujr4fd336jee6e7nd61u1f Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073355.9491 eu63ujr4fd336jee6e7nd61u1f Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240909@073355.9503 eu63ujr4fd336jee6e7nd61u1f Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66de98989766de96d3e7','aut66de97886166de96d365' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240909@073355.9507 eu63ujr4fd336jee6e7nd61u1f Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073355.9522 eu63ujr4fd336jee6e7nd61u1f Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240909@073355.9562 eu63ujr4fd336jee6e7nd61u1f Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66de98989766de96d3e7',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',3.000 ,'aut66de97886166de96d365' ,0,0 ,2,23.00,110000,?,?,?,?,?)
20240909@073355.9843 eu63ujr4fd336jee6e7nd61u1f Query : use flama_phc
20240909@073355.9846 eu63ujr4fd336jee6e7nd61u1f Query : select st.usalote valor from st where st.ref = '324.1578.00.1'
20240909@073355.9866 eu63ujr4fd336jee6e7nd61u1f Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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'
20240909@073355.9881 eu63ujr4fd336jee6e7nd61u1f Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073355.9900 eu63ujr4fd336jee6e7nd61u1f Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240909@073355.9930 eu63ujr4fd336jee6e7nd61u1f Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073355.9945 eu63ujr4fd336jee6e7nd61u1f Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240909@073355.9953 eu63ujr4fd336jee6e7nd61u1f Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240909@073355.9965 eu63ujr4fd336jee6e7nd61u1f Query : select sestamp valor from se where ref ='324.1578.00.1' and lote = 'r2101115200a'
20240909@073355.9978 eu63ujr4fd336jee6e7nd61u1f Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073355.9994 eu63ujr4fd336jee6e7nd61u1f Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240909@073356.5000 eu63ujr4fd336jee6e7nd61u1f Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66de94780666de96d3f3','aut66de97886166de96d365' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240909@073356.1000 eu63ujr4fd336jee6e7nd61u1f Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073356.2600 eu63ujr4fd336jee6e7nd61u1f Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240909@073356.6800 eu63ujr4fd336jee6e7nd61u1f Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66de94780666de96d3f3',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',1.000 ,'aut66de97886166de96d365' ,0,0 ,2,23.00,120000,?,?,?,?,?)
20240909@073356.3700 eu63ujr4fd336jee6e7nd61u1f Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut66de97886166de96d365','2405789','wait',39,'adm09112754980.682000002')
20240909@073356.4440 eu63ujr4fd336jee6e7nd61u1f Query : use flama_phc
20240909@073356.4470 eu63ujr4fd336jee6e7nd61u1f Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240909@073356.4780 eu63ujr4fd336jee6e7nd61u1f Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1876';
20240909@073356.5070 eu63ujr4fd336jee6e7nd61u1f Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1876';
20240909@073356.5470 eu63ujr4fd336jee6e7nd61u1f Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1876';
20240909@073356.5700 eu63ujr4fd336jee6e7nd61u1f Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1876';
20240909@073356.1053 m34ji88261092n9s0ts0losei2 Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240909@073356.1065 m34ji88261092n9s0ts0losei2 Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240909@073356.1120 m34ji88261092n9s0ts0losei2 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1877';
20240909@073356.1173 m34ji88261092n9s0ts0losei2 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1877';
20240909@073356.1227 m34ji88261092n9s0ts0losei2 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1877';
20240909@073356.1252 m34ji88261092n9s0ts0losei2 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1877';
20240909@073356.1301 m34ji88261092n9s0ts0losei2 Query : use flama_phc
20240909@073356.1304 m34ji88261092n9s0ts0losei2 Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240909@073356.1371 m34ji88261092n9s0ts0losei2 Query : use flama_phc
20240909@073356.1374 m34ji88261092n9s0ts0losei2 Query : select no, estab,szadrsdesc from szadrs where u_coddest=6737
20240909@073356.1417 m34ji88261092n9s0ts0losei2 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '328.9326.00.1'
20240909@073356.1438 m34ji88261092n9s0ts0losei2 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2057 and bo.obrano = 2405790 and bi.ref ='328.9326.00.1' and bi.lordem =1
20240909@073356.1836 m34ji88261092n9s0ts0losei2 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '328.9345.00.1'
20240909@073356.1858 m34ji88261092n9s0ts0losei2 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2057 and bo.obrano = 2405790 and bi.ref ='328.9345.00.1' and bi.lordem =2
20240909@073356.2202 m34ji88261092n9s0ts0losei2 Query : use flama_phc
20240909@073356.2205 m34ji88261092n9s0ts0losei2 Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20240909@073356.2240 m34ji88261092n9s0ts0losei2 Query : use flama_phc
20240909@073356.2243 m34ji88261092n9s0ts0losei2 Query : select top 1 1 valor from td where td.ndoc = 39
20240909@073356.2273 m34ji88261092n9s0ts0losei2 Query : use flama_phc
20240909@073356.2276 m34ji88261092n9s0ts0losei2 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')
20240909@073356.2305 m34ji88261092n9s0ts0losei2 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
20240909@073356.2343 m34ji88261092n9s0ts0losei2 Query : use flama_phc
20240909@073356.2346 m34ji88261092n9s0ts0losei2 Query : select top 1 ~inactivo valor from cl where no = '100810' and estab = 0 order by inactivo desc
20240909@073356.2377 m34ji88261092n9s0ts0losei2 Query : use flama_phc
20240909@073356.2380 m34ji88261092n9s0ts0losei2 Query : select top 1 tipodoc,regrd from td where ndoc = 39
20240909@073356.2411 m34ji88261092n9s0ts0losei2 Query : use flama_phc
20240909@073356.2413 m34ji88261092n9s0ts0losei2 Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20240909@073356.2455 m34ji88261092n9s0ts0losei2 Query : use flama_phc
20240909@073356.2458 m34ji88261092n9s0ts0losei2 Query : select szadrsstamp valor from szadrs where szadrsdesc='100810 - worten-plaza large formats rainha'
20240909@073356.2503 m34ji88261092n9s0ts0losei2 Query : use flama_phc
20240909@073356.2505 m34ji88261092n9s0ts0losei2 Query : select 1 valor from td where ndoc = 39
20240909@073356.2518 m34ji88261092n9s0ts0losei2 Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20240909@073356.2533 m34ji88261092n9s0ts0losei2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073356.2550 m34ji88261092n9s0ts0losei2 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20240909@073356.2569 m34ji88261092n9s0ts0losei2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073356.2585 m34ji88261092n9s0ts0losei2 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20240909@073356.2614 m34ji88261092n9s0ts0losei2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073356.2633 m34ji88261092n9s0ts0losei2 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20240909@073356.2648 m34ji88261092n9s0ts0losei2 Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240909@073356.2729 m34ji88261092n9s0ts0losei2 Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240909@073356.2742 m34ji88261092n9s0ts0losei2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073356.2757 m34ji88261092n9s0ts0losei2 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20240909@073356.2776 m34ji88261092n9s0ts0losei2 Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut66de95174766de96d440' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20240909@073356.3001 m34ji88261092n9s0ts0losei2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073356.3022 m34ji88261092n9s0ts0losei2 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20240909@073356.3058 m34ji88261092n9s0ts0losei2 Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20240909@073356.3071 m34ji88261092n9s0ts0losei2 Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20240909@073356.3083 m34ji88261092n9s0ts0losei2 Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20240909@073356.3095 m34ji88261092n9s0ts0losei2 Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20240909@073356.3107 m34ji88261092n9s0ts0losei2 Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20240909@073356.3119 m34ji88261092n9s0ts0losei2 Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20240909@073356.3130 m34ji88261092n9s0ts0losei2 Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut66de95174766de96d440',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20240909@073356.3449 m34ji88261092n9s0ts0losei2 Query : select top 1 fno valor from wsftdata order by fno desc
20240909@073356.3492 m34ji88261092n9s0ts0losei2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073356.3508 m34ji88261092n9s0ts0losei2 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20240909@073356.3532 m34ji88261092n9s0ts0losei2 Query : select 'normal' from dummy
20240909@073356.3548 m34ji88261092n9s0ts0losei2 Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut66de95174766de96d440',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',643,100810,0,'2024-09-09',39,'euro',0,0,2024 ,?,?)
20240909@073356.3882 m34ji88261092n9s0ts0losei2 Query : use flama_phc
20240909@073356.3885 m34ji88261092n9s0ts0losei2 Query : select st.usalote valor from st where st.ref = '328.9326.00.1'
20240909@073356.3907 m34ji88261092n9s0ts0losei2 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '328.9326.00.1'
20240909@073356.3922 m34ji88261092n9s0ts0losei2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073356.3939 m34ji88261092n9s0ts0losei2 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240909@073356.3963 m34ji88261092n9s0ts0losei2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073356.3978 m34ji88261092n9s0ts0losei2 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240909@073356.3987 m34ji88261092n9s0ts0losei2 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240909@073356.3999 m34ji88261092n9s0ts0losei2 Query : select sestamp valor from se where ref ='328.9326.00.1' and lote = 'r2300691100a'
20240909@073356.4011 m34ji88261092n9s0ts0losei2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073356.4026 m34ji88261092n9s0ts0losei2 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240909@073356.4038 m34ji88261092n9s0ts0losei2 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66de95650666de96d461','aut66de95174766de96d440' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240909@073356.4043 m34ji88261092n9s0ts0losei2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073356.4057 m34ji88261092n9s0ts0losei2 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240909@073356.4088 m34ji88261092n9s0ts0losei2 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66de95650666de96d461',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',4.000 ,'aut66de95174766de96d440' ,0,0 ,2,23.00,10000,?,?,?,?,?)
20240909@073356.4376 m34ji88261092n9s0ts0losei2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073356.4393 m34ji88261092n9s0ts0losei2 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240909@073356.4430 m34ji88261092n9s0ts0losei2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073356.4444 m34ji88261092n9s0ts0losei2 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240909@073356.4452 m34ji88261092n9s0ts0losei2 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240909@073356.4465 m34ji88261092n9s0ts0losei2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073356.4479 m34ji88261092n9s0ts0losei2 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240909@073356.4491 m34ji88261092n9s0ts0losei2 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66de95635066de96d46d','aut66de95174766de96d440' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240909@073356.4495 m34ji88261092n9s0ts0losei2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073356.4510 m34ji88261092n9s0ts0losei2 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240909@073356.4538 m34ji88261092n9s0ts0losei2 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66de95635066de96d46d',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66de95174766de96d440' ,0,0 ,2,23.00,20000,?,?,?)
20240909@073356.4825 m34ji88261092n9s0ts0losei2 Query : use flama_phc
20240909@073356.4828 m34ji88261092n9s0ts0losei2 Query : select st.usalote valor from st where st.ref = '328.9345.00.1'
20240909@073356.4848 m34ji88261092n9s0ts0losei2 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '328.9345.00.1'
20240909@073356.4862 m34ji88261092n9s0ts0losei2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073356.4908 m34ji88261092n9s0ts0losei2 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240909@073356.4936 m34ji88261092n9s0ts0losei2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073356.4950 m34ji88261092n9s0ts0losei2 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240909@073356.5009 m34ji88261092n9s0ts0losei2 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240909@073356.5022 m34ji88261092n9s0ts0losei2 Query : select sestamp valor from se where ref ='328.9345.00.1' and lote = 'r2101101300a'
20240909@073356.5034 m34ji88261092n9s0ts0losei2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073356.5053 m34ji88261092n9s0ts0losei2 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240909@073356.5066 m34ji88261092n9s0ts0losei2 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66de92529766de96d47a','aut66de95174766de96d440' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240909@073356.5072 m34ji88261092n9s0ts0losei2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073356.5088 m34ji88261092n9s0ts0losei2 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240909@073356.5182 m34ji88261092n9s0ts0losei2 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66de92529766de96d47a',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',2.000 ,'aut66de95174766de96d440' ,0,0 ,2,23.00,40000,?,?,?,?,?)
20240909@073356.5537 m34ji88261092n9s0ts0losei2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073356.5555 m34ji88261092n9s0ts0losei2 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240909@073356.5582 m34ji88261092n9s0ts0losei2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073356.5651 m34ji88261092n9s0ts0losei2 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240909@073356.5662 m34ji88261092n9s0ts0losei2 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240909@073356.5674 m34ji88261092n9s0ts0losei2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073356.5691 m34ji88261092n9s0ts0losei2 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240909@073356.5704 m34ji88261092n9s0ts0losei2 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66de92811966de96d48a','aut66de95174766de96d440' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240909@073356.5710 m34ji88261092n9s0ts0losei2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073356.5730 m34ji88261092n9s0ts0losei2 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240909@073356.5770 m34ji88261092n9s0ts0losei2 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66de92811966de96d48a',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66de95174766de96d440' ,0,0 ,2,23.00,50000,?,?,?)
20240909@073356.6059 m34ji88261092n9s0ts0losei2 Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut66de95174766de96d440','2405790','wait',39,'adm09112754980.682000002')
20240909@073356.6127 m34ji88261092n9s0ts0losei2 Query : use flama_phc
20240909@073356.6130 m34ji88261092n9s0ts0losei2 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240909@073356.6167 m34ji88261092n9s0ts0losei2 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1877';
20240909@073356.6196 m34ji88261092n9s0ts0losei2 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1877';
20240909@073356.6237 m34ji88261092n9s0ts0losei2 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1877';
20240909@073356.6260 m34ji88261092n9s0ts0losei2 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1877';
20240909@073356.6716 fcmbbhfe4li9c7tu0dj6t433sm Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240909@073356.6728 fcmbbhfe4li9c7tu0dj6t433sm Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240909@073356.6781 fcmbbhfe4li9c7tu0dj6t433sm Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1878';
20240909@073356.6835 fcmbbhfe4li9c7tu0dj6t433sm Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1878';
20240909@073356.6886 fcmbbhfe4li9c7tu0dj6t433sm Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1878';
20240909@073356.6911 fcmbbhfe4li9c7tu0dj6t433sm Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1878';
20240909@073356.7130 fcmbbhfe4li9c7tu0dj6t433sm Query : use flama_phc
20240909@073356.7133 fcmbbhfe4li9c7tu0dj6t433sm Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240909@073356.7200 fcmbbhfe4li9c7tu0dj6t433sm Query : use flama_phc
20240909@073356.7204 fcmbbhfe4li9c7tu0dj6t433sm Query : select no, estab,szadrsdesc from szadrs where u_coddest=4804
20240909@073356.7293 fcmbbhfe4li9c7tu0dj6t433sm 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'
20240909@073356.7323 fcmbbhfe4li9c7tu0dj6t433sm Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2057 and bo.obrano = 2405791 and bi.ref ='324.2031.00.1' and bi.lordem =1
20240909@073356.8773 fcmbbhfe4li9c7tu0dj6t433sm Query : use flama_phc
20240909@073356.8777 fcmbbhfe4li9c7tu0dj6t433sm Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20240909@073356.8810 fcmbbhfe4li9c7tu0dj6t433sm Query : use flama_phc
20240909@073356.8813 fcmbbhfe4li9c7tu0dj6t433sm Query : select top 1 1 valor from td where td.ndoc = 39
20240909@073356.8844 fcmbbhfe4li9c7tu0dj6t433sm Query : use flama_phc
20240909@073356.8847 fcmbbhfe4li9c7tu0dj6t433sm 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')
20240909@073356.8874 fcmbbhfe4li9c7tu0dj6t433sm 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
20240909@073356.8909 fcmbbhfe4li9c7tu0dj6t433sm Query : use flama_phc
20240909@073356.8912 fcmbbhfe4li9c7tu0dj6t433sm Query : select top 1 ~inactivo valor from cl where no = '101900' and estab = 0 order by inactivo desc
20240909@073356.8940 fcmbbhfe4li9c7tu0dj6t433sm Query : use flama_phc
20240909@073356.8943 fcmbbhfe4li9c7tu0dj6t433sm Query : select top 1 tipodoc,regrd from td where ndoc = 39
20240909@073356.8971 fcmbbhfe4li9c7tu0dj6t433sm Query : use flama_phc
20240909@073356.8974 fcmbbhfe4li9c7tu0dj6t433sm Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20240909@073356.9013 fcmbbhfe4li9c7tu0dj6t433sm Query : use flama_phc
20240909@073356.9016 fcmbbhfe4li9c7tu0dj6t433sm Query : select szadrsstamp valor from szadrs where szadrsdesc='101900 - pd - alfena n/p'
20240909@073356.9060 fcmbbhfe4li9c7tu0dj6t433sm Query : use flama_phc
20240909@073356.9062 fcmbbhfe4li9c7tu0dj6t433sm Query : select 1 valor from td where ndoc = 39
20240909@073356.9074 fcmbbhfe4li9c7tu0dj6t433sm Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20240909@073356.9088 fcmbbhfe4li9c7tu0dj6t433sm Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073356.9104 fcmbbhfe4li9c7tu0dj6t433sm Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20240909@073356.9123 fcmbbhfe4li9c7tu0dj6t433sm Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073356.9138 fcmbbhfe4li9c7tu0dj6t433sm Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20240909@073356.9166 fcmbbhfe4li9c7tu0dj6t433sm Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073356.9185 fcmbbhfe4li9c7tu0dj6t433sm Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20240909@073356.9198 fcmbbhfe4li9c7tu0dj6t433sm Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240909@073356.9284 fcmbbhfe4li9c7tu0dj6t433sm Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240909@073356.9300 fcmbbhfe4li9c7tu0dj6t433sm Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073356.9327 fcmbbhfe4li9c7tu0dj6t433sm Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20240909@073356.9345 fcmbbhfe4li9c7tu0dj6t433sm Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut66de90791366de96d4e0' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20240909@073356.9533 fcmbbhfe4li9c7tu0dj6t433sm Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073356.9551 fcmbbhfe4li9c7tu0dj6t433sm Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20240909@073356.9584 fcmbbhfe4li9c7tu0dj6t433sm Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20240909@073356.9597 fcmbbhfe4li9c7tu0dj6t433sm Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20240909@073356.9609 fcmbbhfe4li9c7tu0dj6t433sm Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20240909@073356.9621 fcmbbhfe4li9c7tu0dj6t433sm Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20240909@073356.9633 fcmbbhfe4li9c7tu0dj6t433sm Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20240909@073356.9644 fcmbbhfe4li9c7tu0dj6t433sm Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20240909@073356.9656 fcmbbhfe4li9c7tu0dj6t433sm Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut66de90791366de96d4e0',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20240909@073356.9927 fcmbbhfe4li9c7tu0dj6t433sm Query : select top 1 fno valor from wsftdata order by fno desc
20240909@073356.9949 fcmbbhfe4li9c7tu0dj6t433sm Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073356.9966 fcmbbhfe4li9c7tu0dj6t433sm Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20240909@073356.9990 fcmbbhfe4li9c7tu0dj6t433sm Query : select 'normal' from dummy
20240909@073357.7000 fcmbbhfe4li9c7tu0dj6t433sm Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut66de90791366de96d4e0',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',644,101900,0,'2024-09-09',39,'euro',0,0,2024 ,?,?)
20240909@073357.3260 fcmbbhfe4li9c7tu0dj6t433sm Query : use flama_phc
20240909@073357.3290 fcmbbhfe4li9c7tu0dj6t433sm Query : select st.usalote valor from st where st.ref = '324.2031.00.1'
20240909@073357.3520 fcmbbhfe4li9c7tu0dj6t433sm Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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'
20240909@073357.3660 fcmbbhfe4li9c7tu0dj6t433sm Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073357.3820 fcmbbhfe4li9c7tu0dj6t433sm Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240909@073357.4090 fcmbbhfe4li9c7tu0dj6t433sm Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073357.4240 fcmbbhfe4li9c7tu0dj6t433sm Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240909@073357.4350 fcmbbhfe4li9c7tu0dj6t433sm Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240909@073357.4470 fcmbbhfe4li9c7tu0dj6t433sm Query : select sestamp valor from se where ref ='324.2031.00.1' and lote = 'r2100232100a'
20240909@073357.4610 fcmbbhfe4li9c7tu0dj6t433sm Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073357.4760 fcmbbhfe4li9c7tu0dj6t433sm Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240909@073357.4890 fcmbbhfe4li9c7tu0dj6t433sm Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66de95433966de96d50b','aut66de90791366de96d4e0' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240909@073357.4930 fcmbbhfe4li9c7tu0dj6t433sm Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073357.5080 fcmbbhfe4li9c7tu0dj6t433sm Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240909@073357.5370 fcmbbhfe4li9c7tu0dj6t433sm Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66de95433966de96d50b',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',18.000 ,'aut66de90791366de96d4e0' ,0,0 ,2,23.00,10000,?,?,?,?,?)
20240909@073357.8260 fcmbbhfe4li9c7tu0dj6t433sm Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073357.8540 fcmbbhfe4li9c7tu0dj6t433sm Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240909@073357.8980 fcmbbhfe4li9c7tu0dj6t433sm Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073357.9170 fcmbbhfe4li9c7tu0dj6t433sm Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240909@073357.9270 fcmbbhfe4li9c7tu0dj6t433sm Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240909@073357.9420 fcmbbhfe4li9c7tu0dj6t433sm Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073357.9580 fcmbbhfe4li9c7tu0dj6t433sm Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240909@073357.9720 fcmbbhfe4li9c7tu0dj6t433sm Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66de99565666de96d516','aut66de90791366de96d4e0' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240909@073357.9780 fcmbbhfe4li9c7tu0dj6t433sm Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073357.9940 fcmbbhfe4li9c7tu0dj6t433sm Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240909@073357.1023 fcmbbhfe4li9c7tu0dj6t433sm Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66de99565666de96d516',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66de90791366de96d4e0' ,0,0 ,2,23.00,20000,?,?,?)
20240909@073357.1307 fcmbbhfe4li9c7tu0dj6t433sm Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut66de90791366de96d4e0','2405791','wait',39,'adm09112754980.682000002')
20240909@073357.1411 fcmbbhfe4li9c7tu0dj6t433sm Query : use flama_phc
20240909@073357.1416 fcmbbhfe4li9c7tu0dj6t433sm Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240909@073357.1447 fcmbbhfe4li9c7tu0dj6t433sm Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1878';
20240909@073357.1488 fcmbbhfe4li9c7tu0dj6t433sm Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1878';
20240909@073357.1529 fcmbbhfe4li9c7tu0dj6t433sm Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1878';
20240909@073357.1552 fcmbbhfe4li9c7tu0dj6t433sm Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1878';
20240909@073657.4408 qiv1gdid9qul0ne6j6ng1h2php Query : use flama_phc
20240909@073657.4413 qiv1gdid9qul0ne6j6ng1h2php Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240909@073657.4502 qiv1gdid9qul0ne6j6ng1h2php Query : use flama_phc
20240909@073657.4506 qiv1gdid9qul0ne6j6ng1h2php Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240909@080314.9413 h850vpkq3oju7uvq2h6gc2ouv8 Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240909@080314.9427 h850vpkq3oju7uvq2h6gc2ouv8 Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240909@080314.9500 h850vpkq3oju7uvq2h6gc2ouv8 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1879';
20240909@080314.9621 h850vpkq3oju7uvq2h6gc2ouv8 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1879';
20240909@080314.9759 h850vpkq3oju7uvq2h6gc2ouv8 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1879';
20240909@080314.9815 h850vpkq3oju7uvq2h6gc2ouv8 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1879';
20240909@080315.8820 h850vpkq3oju7uvq2h6gc2ouv8 Query : use flama_phc
20240909@080315.8860 h850vpkq3oju7uvq2h6gc2ouv8 Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240909@080315.1208 h850vpkq3oju7uvq2h6gc2ouv8 Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.679.00.01'
20240909@080315.1352 h850vpkq3oju7uvq2h6gc2ouv8 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 = 2400407 and bi.ref ='324.679.00.01' and bi.lordem =10000
20240909@080315.1726 h850vpkq3oju7uvq2h6gc2ouv8 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 = 'cps24041055212,201000003 ' 
20240909@080315.2123 h850vpkq3oju7uvq2h6gc2ouv8 Query : use flama_phc
20240909@080315.2127 h850vpkq3oju7uvq2h6gc2ouv8 Query : select top 1 1 valor from ts where ts.ndos = 61
20240909@080315.2239 h850vpkq3oju7uvq2h6gc2ouv8 Query : use flama_phc
20240909@080315.2243 h850vpkq3oju7uvq2h6gc2ouv8 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')
20240909@080315.2275 h850vpkq3oju7uvq2h6gc2ouv8 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
20240909@080315.2445 h850vpkq3oju7uvq2h6gc2ouv8 Query : use flama_phc
20240909@080315.2449 h850vpkq3oju7uvq2h6gc2ouv8 Query : select top 1 ~inactivo valor from fl where no = '202549' and estab = 00 order by inactivo desc
20240909@080315.2687 h850vpkq3oju7uvq2h6gc2ouv8 Query : use flama_phc
20240909@080315.2691 h850vpkq3oju7uvq2h6gc2ouv8 Query : select 1 valor from ts where ndos = 61
20240909@080315.2789 h850vpkq3oju7uvq2h6gc2ouv8 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@080315.2811 h850vpkq3oju7uvq2h6gc2ouv8 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bo' and documentnumber = 61
20240909@080315.2824 h850vpkq3oju7uvq2h6gc2ouv8 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@080315.2842 h850vpkq3oju7uvq2h6gc2ouv8 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bo2' and documentnumber = 61
20240909@080315.2853 h850vpkq3oju7uvq2h6gc2ouv8 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@080315.2870 h850vpkq3oju7uvq2h6gc2ouv8 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bo3' and documentnumber = 61
20240909@080315.2881 h850vpkq3oju7uvq2h6gc2ouv8 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
20240909@080315.3218 h850vpkq3oju7uvq2h6gc2ouv8 Query : select top 1 bo.obrano valor from bo bo where bo.ndos = 61 and boano=2024 order by obrano desc
20240909@080315.3406 h850vpkq3oju7uvq2h6gc2ouv8 Query : select top 1 bo.obrano valor from bo bo where bo.ndos = 61 and boano=2024 order by obrano desc
20240909@080315.3427 h850vpkq3oju7uvq2h6gc2ouv8 Query : use flama_phc
20240909@080315.3436 h850vpkq3oju7uvq2h6gc2ouv8 Query : select top 1 no,estab,nome, morada, local,codpost,ncont,pncont,pais,inactivo,motiseimp,codmotiseimp from fl where no='202549' and estab=00
20240909@080315.3746 h850vpkq3oju7uvq2h6gc2ouv8 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@080315.3783 h850vpkq3oju7uvq2h6gc2ouv8 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bo3' and documentnumber = 61
20240909@080315.3800 h850vpkq3oju7uvq2h6gc2ouv8 Query : insert into bo3 (bo3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66de92820166de9db353',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut')
20240909@080315.3925 h850vpkq3oju7uvq2h6gc2ouv8 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@080315.3952 h850vpkq3oju7uvq2h6gc2ouv8 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bo2' and documentnumber = 61
20240909@080315.3968 h850vpkq3oju7uvq2h6gc2ouv8 Query : insert into bo2 (bo2stamp, tiposaft, idserie,cambio,cambiofixo,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66de92820166de9db353','--','bo',7.8670360110803324099 ,1,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut')
20240909@080315.4497 h850vpkq3oju7uvq2h6gc2ouv8 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@080315.4519 h850vpkq3oju7uvq2h6gc2ouv8 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bo' and documentnumber = 61
20240909@080315.4536 h850vpkq3oju7uvq2h6gc2ouv8 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 ('aut66de92820166de9db353','guia r. fornecedor','2024-09-09',61,2402524,?,?,?,?,?,?,?,?,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')
20240909@080320.4729 h850vpkq3oju7uvq2h6gc2ouv8 Query : use flama_phc
20240909@080320.4772 h850vpkq3oju7uvq2h6gc2ouv8 Query : select st.usalote valor from st where st.ref = '324.679.00.01'
20240909@080320.5150 h850vpkq3oju7uvq2h6gc2ouv8 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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.679.00.01'
20240909@080320.5741 h850vpkq3oju7uvq2h6gc2ouv8 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@080320.6018 h850vpkq3oju7uvq2h6gc2ouv8 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 61
20240909@080320.6312 h850vpkq3oju7uvq2h6gc2ouv8 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@080320.6720 h850vpkq3oju7uvq2h6gc2ouv8 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 61
20240909@080320.7048 h850vpkq3oju7uvq2h6gc2ouv8 Query : select sestamp valor from se where ref ='324.679.00.01' and lote = 'r2400407100a'
20240909@080320.7299 h850vpkq3oju7uvq2h6gc2ouv8 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@080320.7411 h850vpkq3oju7uvq2h6gc2ouv8 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'se' and documentnumber = 0
20240909@080320.7427 h850vpkq3oju7uvq2h6gc2ouv8 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@080320.7444 h850vpkq3oju7uvq2h6gc2ouv8 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'se' and documentnumber = 0
20240909@080320.7461 h850vpkq3oju7uvq2h6gc2ouv8 Query : insert into se (sestamp,ref, lote, data,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66de98555766de9db8b5',?,?,'20240909',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut;','aut;')
20240909@080320.8714 h850vpkq3oju7uvq2h6gc2ouv8 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240909@080320.8794 h850vpkq3oju7uvq2h6gc2ouv8 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@080320.8872 h850vpkq3oju7uvq2h6gc2ouv8 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 61
20240909@080320.8886 h850vpkq3oju7uvq2h6gc2ouv8 Query : insert into bi2 (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut66de94074966de9db8d6','aut66de92820166de9db353',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 = 'aut66de92820166de9db353'
20240909@080320.9233 h850vpkq3oju7uvq2h6gc2ouv8 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@080320.9304 h850vpkq3oju7uvq2h6gc2ouv8 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 61
20240909@080320.9323 h850vpkq3oju7uvq2h6gc2ouv8 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 'aut66de94074966de9db8d6',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut',bo.obrano, 775, 775*.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 ,43.32,43.32*200.48,43.32,43.32*200.48 ,0,0,'un ',' ' ,bo.marcada,1 ,43.32*775,43.32*775*200.48 ,43.478000,43.478000*200.48 ,43.478000,43.478000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,43.32,43.32*200.48,43.32*775,43.32*775*200.48,'cps24041055212,201000003 ',340.8,340.8*775,340.8,340.8*775,?,?,?,4 from bo bo where bo.bostamp = 'aut66de92820166de9db353'
20240909@080339.9581 h850vpkq3oju7uvq2h6gc2ouv8 Query : use flama_phc
20240909@080339.9589 h850vpkq3oju7uvq2h6gc2ouv8 Query : declare @bostamp varchar(25) = 'aut66de92820166de9db353' ,@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 
20240909@080353.7223 h850vpkq3oju7uvq2h6gc2ouv8 Query : use flama_phc
20240909@080353.7226 h850vpkq3oju7uvq2h6gc2ouv8 Query : select 1 valor from bo where bo.bostamp = 'aut66de92820166de9db353'
20240909@080353.7323 h850vpkq3oju7uvq2h6gc2ouv8 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) = 'aut66de92820166de9db353' 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 
20240909@080355.9279 h850vpkq3oju7uvq2h6gc2ouv8 Query : use flama_phc
20240909@080355.9282 h850vpkq3oju7uvq2h6gc2ouv8 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240909@080355.9338 h850vpkq3oju7uvq2h6gc2ouv8 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1879';
20240909@080355.9367 h850vpkq3oju7uvq2h6gc2ouv8 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1879';
20240909@081737.9580 qe9et365qrd5psir4mi8nbaoce Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240909@081737.1067 qe9et365qrd5psir4mi8nbaoce Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240909@081737.1164 qe9et365qrd5psir4mi8nbaoce Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1880';
20240909@081737.1217 qe9et365qrd5psir4mi8nbaoce Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1880';
20240909@081737.1272 qe9et365qrd5psir4mi8nbaoce Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1880';
20240909@081737.1301 qe9et365qrd5psir4mi8nbaoce Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1880';
20240909@081737.1342 qe9et365qrd5psir4mi8nbaoce Query : use flama_phc
20240909@081737.1345 qe9et365qrd5psir4mi8nbaoce Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240909@081737.1474 qe9et365qrd5psir4mi8nbaoce Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.734.00.02'
20240909@081737.2226 qe9et365qrd5psir4mi8nbaoce 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 = 2400471 and bi.ref ='324.734.00.02' and bi.lordem =10000
20240909@081737.2843 qe9et365qrd5psir4mi8nbaoce 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 = 'cps24042951213,274000004 ' 
20240909@081737.3702 qe9et365qrd5psir4mi8nbaoce Query : use flama_phc
20240909@081737.3707 qe9et365qrd5psir4mi8nbaoce Query : select top 1 1 valor from ts where ts.ndos = 61
20240909@081737.4286 qe9et365qrd5psir4mi8nbaoce Query : use flama_phc
20240909@081737.4420 qe9et365qrd5psir4mi8nbaoce 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')
20240909@081737.4548 qe9et365qrd5psir4mi8nbaoce 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
20240909@081737.4590 qe9et365qrd5psir4mi8nbaoce Query : use flama_phc
20240909@081737.4595 qe9et365qrd5psir4mi8nbaoce Query : select top 1 ~inactivo valor from fl where no = '202315' and estab = 00 order by inactivo desc
20240909@081737.4804 qe9et365qrd5psir4mi8nbaoce Query : use flama_phc
20240909@081737.4808 qe9et365qrd5psir4mi8nbaoce Query : select 1 valor from ts where ndos = 61
20240909@081737.4823 qe9et365qrd5psir4mi8nbaoce Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@081737.5189 qe9et365qrd5psir4mi8nbaoce Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bo' and documentnumber = 61
20240909@081737.5201 qe9et365qrd5psir4mi8nbaoce Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@081737.5218 qe9et365qrd5psir4mi8nbaoce Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bo2' and documentnumber = 61
20240909@081737.5227 qe9et365qrd5psir4mi8nbaoce Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@081737.5243 qe9et365qrd5psir4mi8nbaoce Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bo3' and documentnumber = 61
20240909@081737.5253 qe9et365qrd5psir4mi8nbaoce 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
20240909@081737.5272 qe9et365qrd5psir4mi8nbaoce Query : select top 1 bo.obrano valor from bo bo where bo.ndos = 61 and boano=2024 order by obrano desc
20240909@081737.5344 qe9et365qrd5psir4mi8nbaoce Query : select top 1 bo.obrano valor from bo bo where bo.ndos = 61 and boano=2024 order by obrano desc
20240909@081737.5367 qe9et365qrd5psir4mi8nbaoce Query : use flama_phc
20240909@081737.5376 qe9et365qrd5psir4mi8nbaoce Query : select top 1 no,estab,nome, morada, local,codpost,ncont,pncont,pais,inactivo,motiseimp,codmotiseimp from fl where no='202315' and estab=00
20240909@081737.5488 qe9et365qrd5psir4mi8nbaoce Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@081737.5509 qe9et365qrd5psir4mi8nbaoce Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bo3' and documentnumber = 61
20240909@081737.5526 qe9et365qrd5psir4mi8nbaoce Query : insert into bo3 (bo3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66dea5262066dea11183',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut')
20240909@081737.5537 qe9et365qrd5psir4mi8nbaoce Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@081737.5556 qe9et365qrd5psir4mi8nbaoce Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bo2' and documentnumber = 61
20240909@081737.5569 qe9et365qrd5psir4mi8nbaoce Query : insert into bo2 (bo2stamp, tiposaft, idserie,cambio,cambiofixo,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66dea5262066dea11183','--','bo',7.8635014836795252225 ,1,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut')
20240909@081737.5582 qe9et365qrd5psir4mi8nbaoce Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@081737.5601 qe9et365qrd5psir4mi8nbaoce Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bo' and documentnumber = 61
20240909@081737.5617 qe9et365qrd5psir4mi8nbaoce 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 ('aut66dea5262066dea11183','guia r. fornecedor','2024-09-09',61,2402525,?,?,?,?,?,?,?,?,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')
20240909@081741.7199 qe9et365qrd5psir4mi8nbaoce Query : use flama_phc
20240909@081741.7204 qe9et365qrd5psir4mi8nbaoce Query : select st.usalote valor from st where st.ref = '324.734.00.02'
20240909@081741.7250 qe9et365qrd5psir4mi8nbaoce Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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.734.00.02'
20240909@081741.7417 qe9et365qrd5psir4mi8nbaoce Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@081741.7437 qe9et365qrd5psir4mi8nbaoce Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 61
20240909@081741.7461 qe9et365qrd5psir4mi8nbaoce Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@081741.7477 qe9et365qrd5psir4mi8nbaoce Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 61
20240909@081741.7488 qe9et365qrd5psir4mi8nbaoce Query : select sestamp valor from se where ref ='324.734.00.02' and lote = 'r2400471100a'
20240909@081741.7505 qe9et365qrd5psir4mi8nbaoce Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@081741.7523 qe9et365qrd5psir4mi8nbaoce Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'se' and documentnumber = 0
20240909@081741.7534 qe9et365qrd5psir4mi8nbaoce Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@081741.7552 qe9et365qrd5psir4mi8nbaoce Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'se' and documentnumber = 0
20240909@081741.7568 qe9et365qrd5psir4mi8nbaoce Query : insert into se (sestamp,ref, lote, data,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66dea6148966dea115b7',?,?,'20240909',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut;','aut;')
20240909@081741.9388 qe9et365qrd5psir4mi8nbaoce Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240909@081741.9435 qe9et365qrd5psir4mi8nbaoce Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@081741.9452 qe9et365qrd5psir4mi8nbaoce Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 61
20240909@081741.9465 qe9et365qrd5psir4mi8nbaoce Query : insert into bi2 (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut66dea6351566dea115e6','aut66dea5262066dea11183',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 = 'aut66dea5262066dea11183'
20240909@081741.9672 qe9et365qrd5psir4mi8nbaoce Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@081741.9690 qe9et365qrd5psir4mi8nbaoce Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 61
20240909@081741.9708 qe9et365qrd5psir4mi8nbaoce 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 'aut66dea6351566dea115e6',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut',bo.obrano, 2848, 2848*.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 ,6.74,6.74*200.48,6.74,6.74*200.48 ,0,0,'un ',' ' ,bo.marcada,1 ,6.74*2848,6.74*2848*200.48 ,.000000,.000000*200.48 ,.000000,.000000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,6.74,6.74*200.48,6.74*2848,6.74*2848*200.48,'cps24042951213,274000004 ',53,53*2848,53,53*2848,?,?,?,4 from bo bo where bo.bostamp = 'aut66dea5262066dea11183'
20240909@081803.7420 qe9et365qrd5psir4mi8nbaoce Query : use flama_phc
20240909@081803.7426 qe9et365qrd5psir4mi8nbaoce Query : declare @bostamp varchar(25) = 'aut66dea5262066dea11183' ,@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 
20240909@081820.3712 qe9et365qrd5psir4mi8nbaoce Query : use flama_phc
20240909@081820.3715 qe9et365qrd5psir4mi8nbaoce Query : select 1 valor from bo where bo.bostamp = 'aut66dea5262066dea11183'
20240909@081820.3732 qe9et365qrd5psir4mi8nbaoce 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) = 'aut66dea5262066dea11183' 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 
20240909@081822.7708 qe9et365qrd5psir4mi8nbaoce Query : use flama_phc
20240909@081822.7712 qe9et365qrd5psir4mi8nbaoce Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240909@081822.7854 qe9et365qrd5psir4mi8nbaoce Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1880';
20240909@081822.7896 qe9et365qrd5psir4mi8nbaoce Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1880';
20240909@081909.1316 gkd0ls53emk0itfj7j7kg0is66 Query : use flama_phc
20240909@081909.1321 gkd0ls53emk0itfj7j7kg0is66 Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240909@081909.1457 gkd0ls53emk0itfj7j7kg0is66 Query : use flama_phc
20240909@081909.1460 gkd0ls53emk0itfj7j7kg0is66 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240909@083609.1980 m32jnnq3nclsek1rgsnkc6jpm3 Query : use flama_phc
20240909@083609.1990 m32jnnq3nclsek1rgsnkc6jpm3 Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240909@083609.2092 m32jnnq3nclsek1rgsnkc6jpm3 Query : use flama_phc
20240909@083609.2098 m32jnnq3nclsek1rgsnkc6jpm3 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240909@085037.6120 utsgr1ggbt4q0bmiddp1opm26j Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240909@085037.6134 utsgr1ggbt4q0bmiddp1opm26j Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240909@085037.6196 utsgr1ggbt4q0bmiddp1opm26j Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1881';
20240909@085037.6252 utsgr1ggbt4q0bmiddp1opm26j Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1881';
20240909@085037.6346 utsgr1ggbt4q0bmiddp1opm26j Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1881';
20240909@085037.6426 utsgr1ggbt4q0bmiddp1opm26j Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1881';
20240909@085037.8603 mks06dtiekomv5vdrmavbi9umo Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240909@085037.8653 mks06dtiekomv5vdrmavbi9umo Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240909@085037.8909 mks06dtiekomv5vdrmavbi9umo Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1882';
20240909@085037.9560 mks06dtiekomv5vdrmavbi9umo Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1882';
20240909@085037.9626 mks06dtiekomv5vdrmavbi9umo Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1882';
20240909@085037.9656 mks06dtiekomv5vdrmavbi9umo Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1882';
20240909@085037.9700 mks06dtiekomv5vdrmavbi9umo Query : use flama_phc
20240909@085037.9703 mks06dtiekomv5vdrmavbi9umo Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240909@085037.9777 mks06dtiekomv5vdrmavbi9umo Query : select no, estab,szadrsdesc from szadrs where u_coddest=23
20240909@085037.9870 mks06dtiekomv5vdrmavbi9umo Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '321.162.40.00'
20240909@085038.2000 mks06dtiekomv5vdrmavbi9umo Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =054 and bo.boano =2024 and bo.obrano = 0000034 and bi.ref ='321.162.40.00' and bi.lordem =10000
20240909@085038.3630 mks06dtiekomv5vdrmavbi9umo 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 = 'pll24090440036,567000001 ' 
20240909@085038.6970 mks06dtiekomv5vdrmavbi9umo Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '321.181.120.0'
20240909@085038.8230 mks06dtiekomv5vdrmavbi9umo Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =054 and bo.boano =2024 and bo.obrano = 0000034 and bi.ref ='321.181.120.0' and bi.lordem =20000
20240909@085038.1346 mks06dtiekomv5vdrmavbi9umo 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 = 'pll24090440142,413000002 ' 
20240909@085038.1719 mks06dtiekomv5vdrmavbi9umo Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.1462.00.1'
20240909@085038.1849 mks06dtiekomv5vdrmavbi9umo Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =054 and bo.boano =2024 and bo.obrano = 0000034 and bi.ref ='324.1462.00.1' and bi.lordem =30000
20240909@085038.2187 mks06dtiekomv5vdrmavbi9umo 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 = 'pll24090440169,362000003 ' 
20240909@085038.2481 mks06dtiekomv5vdrmavbi9umo Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.1832.00.2'
20240909@085038.2594 mks06dtiekomv5vdrmavbi9umo Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =054 and bo.boano =2024 and bo.obrano = 0000034 and bi.ref ='324.1832.00.2' and bi.lordem =40000
20240909@085038.2917 mks06dtiekomv5vdrmavbi9umo 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 = 'pll24090440205,908000004 ' 
20240909@085038.3224 mks06dtiekomv5vdrmavbi9umo Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.736.00.01'
20240909@085038.3345 mks06dtiekomv5vdrmavbi9umo Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =054 and bo.boano =2024 and bo.obrano = 0000034 and bi.ref ='324.736.00.01' and bi.lordem =50000
20240909@085038.3674 mks06dtiekomv5vdrmavbi9umo 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 = 'pll24090440223,731000005 ' 
20240909@085038.3968 mks06dtiekomv5vdrmavbi9umo Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.2031.00.1'
20240909@085038.4079 mks06dtiekomv5vdrmavbi9umo Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =054 and bo.boano =2024 and bo.obrano = 0000034 and bi.ref ='324.2031.00.1' and bi.lordem =60000
20240909@085038.4609 mks06dtiekomv5vdrmavbi9umo 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 = 'pll24090440246,653000006 ' 
20240909@085038.4932 mks06dtiekomv5vdrmavbi9umo Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.1578.00.1'
20240909@085038.5056 mks06dtiekomv5vdrmavbi9umo Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =054 and bo.boano =2024 and bo.obrano = 0000034 and bi.ref ='324.1578.00.1' and bi.lordem =70000
20240909@085038.5955 mks06dtiekomv5vdrmavbi9umo 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 = 'pll24090440324,005000007 ' 
20240909@085038.6268 mks06dtiekomv5vdrmavbi9umo Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.691.00.01'
20240909@085038.6382 mks06dtiekomv5vdrmavbi9umo Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =054 and bo.boano =2024 and bo.obrano = 0000034 and bi.ref ='324.691.00.01' and bi.lordem =80000
20240909@085038.6709 mks06dtiekomv5vdrmavbi9umo 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 = 'pll24090440348,559000008 ' 
20240909@085038.7008 mks06dtiekomv5vdrmavbi9umo Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.691.00.01'
20240909@085038.7030 mks06dtiekomv5vdrmavbi9umo Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =054 and bo.boano =2024 and bo.obrano = 0000034 and bi.ref ='324.691.00.01' and bi.lordem =80000
20240909@085038.7053 mks06dtiekomv5vdrmavbi9umo 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 = 'pll24090440348,559000008 ' 
20240909@085038.7081 mks06dtiekomv5vdrmavbi9umo Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.642.00.01'
20240909@085038.7252 mks06dtiekomv5vdrmavbi9umo Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =054 and bo.boano =2024 and bo.obrano = 0000034 and bi.ref ='324.642.00.01' and bi.lordem =90000
20240909@085038.7585 mks06dtiekomv5vdrmavbi9umo 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 = 'pll24090440369,766000009 ' 
20240909@085038.7925 mks06dtiekomv5vdrmavbi9umo Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.1667.00.1'
20240909@085038.8213 mks06dtiekomv5vdrmavbi9umo Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =054 and bo.boano =2024 and bo.obrano = 0000034 and bi.ref ='324.1667.00.1' and bi.lordem =100000
20240909@085038.8738 mks06dtiekomv5vdrmavbi9umo 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 = 'pll24090440388,426000010 ' 
20240909@085038.9936 mks06dtiekomv5vdrmavbi9umo Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.1676.00.1'
20240909@085039.7200 mks06dtiekomv5vdrmavbi9umo Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =054 and bo.boano =2024 and bo.obrano = 0000034 and bi.ref ='324.1676.00.1' and bi.lordem =110000
20240909@085039.4090 mks06dtiekomv5vdrmavbi9umo 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 = 'pll24090440407,161000011 ' 
20240909@085039.7340 mks06dtiekomv5vdrmavbi9umo Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.1676.00.1'
20240909@085039.7560 mks06dtiekomv5vdrmavbi9umo Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =054 and bo.boano =2024 and bo.obrano = 0000034 and bi.ref ='324.1676.00.1' and bi.lordem =110000
20240909@085039.7810 mks06dtiekomv5vdrmavbi9umo 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 = 'pll24090440407,161000011 ' 
20240909@085039.8060 mks06dtiekomv5vdrmavbi9umo Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.4906.00.1'
20240909@085039.9400 mks06dtiekomv5vdrmavbi9umo Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =054 and bo.boano =2024 and bo.obrano = 0000034 and bi.ref ='324.4906.00.1' and bi.lordem =120000
20240909@085039.1276 mks06dtiekomv5vdrmavbi9umo 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 = 'pll24090440558,517000012 ' 
20240909@085039.1756 mks06dtiekomv5vdrmavbi9umo Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.1834.00.1'
20240909@085039.2118 mks06dtiekomv5vdrmavbi9umo Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =054 and bo.boano =2024 and bo.obrano = 0000034 and bi.ref ='324.1834.00.1' and bi.lordem =130000
20240909@085039.3279 mks06dtiekomv5vdrmavbi9umo 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 = 'pll24090440583,588000013 ' 
20240909@085039.4223 mks06dtiekomv5vdrmavbi9umo Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.5396.00.1'
20240909@085039.4446 mks06dtiekomv5vdrmavbi9umo Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =054 and bo.boano =2024 and bo.obrano = 0000034 and bi.ref ='324.5396.00.1' and bi.lordem =140000
20240909@085039.5344 mks06dtiekomv5vdrmavbi9umo 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 = 'pll24090440607,614000014 ' 
20240909@085039.6042 mks06dtiekomv5vdrmavbi9umo Query : use flama_phc
20240909@085039.6046 mks06dtiekomv5vdrmavbi9umo Query : select top 1 1 valor from ts where ts.ndos = 5
20240909@085039.6765 mks06dtiekomv5vdrmavbi9umo Query : use flama_phc
20240909@085039.6769 mks06dtiekomv5vdrmavbi9umo 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')
20240909@085039.6800 mks06dtiekomv5vdrmavbi9umo 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
20240909@085039.6979 mks06dtiekomv5vdrmavbi9umo Query : use flama_phc
20240909@085039.6983 mks06dtiekomv5vdrmavbi9umo Query : select top 1 ~inactivo valor from fl where no = '100999' and estab = 0 order by inactivo desc
20240909@085039.7102 mks06dtiekomv5vdrmavbi9umo Query : use flama_phc
20240909@085039.7107 mks06dtiekomv5vdrmavbi9umo Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20240909@085039.7185 mks06dtiekomv5vdrmavbi9umo Query : use flama_phc
20240909@085039.7189 mks06dtiekomv5vdrmavbi9umo Query : select szadrsstamp valor from szadrs where szadrsdesc='flama-fab.louÇas e electrodomesticos,sa'
20240909@085039.7243 mks06dtiekomv5vdrmavbi9umo Query : use flama_phc
20240909@085039.7246 mks06dtiekomv5vdrmavbi9umo Query : select 1 valor from ts where ndos = 5
20240909@085039.7263 mks06dtiekomv5vdrmavbi9umo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@085039.7283 mks06dtiekomv5vdrmavbi9umo Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bo' and documentnumber = 5
20240909@085039.7299 mks06dtiekomv5vdrmavbi9umo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@085039.7315 mks06dtiekomv5vdrmavbi9umo Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bo2' and documentnumber = 5
20240909@085039.7329 mks06dtiekomv5vdrmavbi9umo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@085039.7345 mks06dtiekomv5vdrmavbi9umo Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bo3' and documentnumber = 5
20240909@085039.7357 mks06dtiekomv5vdrmavbi9umo 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
20240909@085039.7536 mks06dtiekomv5vdrmavbi9umo Query : select top 1 bo.obrano valor from bo bo where bo.ndos = 5 and boano=2024 order by obrano desc
20240909@085039.7682 mks06dtiekomv5vdrmavbi9umo Query : select top 1 bo.obrano valor from wsbodata bo where bo.ndos = 5 and boano=2024 order by obrano desc
20240909@085039.7779 mks06dtiekomv5vdrmavbi9umo Query : use flama_phc
20240909@085039.7786 mks06dtiekomv5vdrmavbi9umo Query : select top 1 no,estab,nome, morada, local,codpost,ncont,pncont,pais,inactivo,motiseimp,codmotiseimp from fl where no='100999' and estab=0
20240909@085039.7878 mks06dtiekomv5vdrmavbi9umo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@085039.7897 mks06dtiekomv5vdrmavbi9umo Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bo3' and documentnumber = 5
20240909@085039.7913 mks06dtiekomv5vdrmavbi9umo Query : insert into wsbo3data (bo3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66dea7609666dea8cfbd',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut')
20240909@085039.7986 mks06dtiekomv5vdrmavbi9umo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@085039.8013 mks06dtiekomv5vdrmavbi9umo Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bo2' and documentnumber = 5
20240909@085039.8030 mks06dtiekomv5vdrmavbi9umo Query : insert into wsbo2data (bo2stamp, tiposaft, idserie,cambio,cambiofixo,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,xpddata,xpdhora,carga,descar) values ('aut66dea7609666dea8cfbd','ga','bo',0 ,0,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut','20240909','09:20',?,?)
20240909@085039.8577 mks06dtiekomv5vdrmavbi9umo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@085039.8600 mks06dtiekomv5vdrmavbi9umo Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bo' and documentnumber = 5
20240909@085039.8620 mks06dtiekomv5vdrmavbi9umo 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 ('aut66dea7609666dea8cfbd','trf entre armazéns a','2024-09-09',5,441,?,?,?,?,?,?,?,?,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',?)
20240909@085039.9266 mks06dtiekomv5vdrmavbi9umo Query : use flama_phc
20240909@085039.9271 mks06dtiekomv5vdrmavbi9umo Query : select st.usalote valor from st where st.ref = '321.162.40.00'
20240909@085039.9291 mks06dtiekomv5vdrmavbi9umo Query : use flama_phc
20240909@085039.9295 mks06dtiekomv5vdrmavbi9umo Query : select st.stns valor from st where st.ref = '321.162.40.00'
20240909@085039.9419 mks06dtiekomv5vdrmavbi9umo Query : use flama_phc
20240909@085039.9422 mks06dtiekomv5vdrmavbi9umo 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 = '321.162.40.00' and sa.armazem = 133 
20240909@085039.9496 mks06dtiekomv5vdrmavbi9umo Query : use flama_phc
20240909@085039.9499 mks06dtiekomv5vdrmavbi9umo Query : select st.stns valor from st where st.ref = '321.162.40.00'
20240909@085039.9527 mks06dtiekomv5vdrmavbi9umo Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '321.162.40.00'
20240909@085039.9672 mks06dtiekomv5vdrmavbi9umo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@085039.9692 mks06dtiekomv5vdrmavbi9umo Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 5
20240909@085039.9709 mks06dtiekomv5vdrmavbi9umo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@085039.9726 mks06dtiekomv5vdrmavbi9umo Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 5
20240909@085039.9738 mks06dtiekomv5vdrmavbi9umo Query : select sestamp valor from se where ref ='321.162.40.00' and lote = '1'
20240909@085039.9762 mks06dtiekomv5vdrmavbi9umo Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240909@085039.9777 mks06dtiekomv5vdrmavbi9umo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@085039.9793 mks06dtiekomv5vdrmavbi9umo Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 5
20240909@085039.9807 mks06dtiekomv5vdrmavbi9umo Query : insert into wsbi2data (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut66dea4250166dea8cfee','aut66dea7609666dea8cfbd',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 = 'aut66dea7609666dea8cfbd'
20240909@085040.3310 mks06dtiekomv5vdrmavbi9umo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@085040.3540 mks06dtiekomv5vdrmavbi9umo Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 5
20240909@085040.3780 mks06dtiekomv5vdrmavbi9umo 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 'aut66dea4250166dea8cfee',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut',bo.obrano, 4.000, 4.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 ,69.99,69.99*200.48,69.99,69.99*200.48 ,0,0,'un',' ' ,bo.marcada,1 ,69.99*4.000,69.99*4.000*200.48 ,19.985000,19.985000*200.48 ,19.985000,19.985000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,69.99,69.99*200.48,69.99*4.000,69.99*4.000*200.48,'pll24090440036,567000001 ',69.99,69.99*4.000,69.99,69.99*4.000,?,?,?,?,4 from wsbodata bo where bo.bostamp = 'aut66dea7609666dea8cfbd'
20240909@085040.2060 mks06dtiekomv5vdrmavbi9umo Query : use flama_phc
20240909@085040.2064 mks06dtiekomv5vdrmavbi9umo Query : select st.usalote valor from st where st.ref = '321.181.120.0'
20240909@085040.2080 mks06dtiekomv5vdrmavbi9umo Query : use flama_phc
20240909@085040.2083 mks06dtiekomv5vdrmavbi9umo Query : select st.stns valor from st where st.ref = '321.181.120.0'
20240909@085040.2103 mks06dtiekomv5vdrmavbi9umo Query : use flama_phc
20240909@085040.2107 mks06dtiekomv5vdrmavbi9umo 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 = '321.181.120.0' and sa.armazem = 133 
20240909@085040.2179 mks06dtiekomv5vdrmavbi9umo Query : use flama_phc
20240909@085040.2183 mks06dtiekomv5vdrmavbi9umo Query : select st.stns valor from st where st.ref = '321.181.120.0'
20240909@085040.2204 mks06dtiekomv5vdrmavbi9umo Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '321.181.120.0'
20240909@085040.2360 mks06dtiekomv5vdrmavbi9umo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@085040.2379 mks06dtiekomv5vdrmavbi9umo Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 5
20240909@085040.2394 mks06dtiekomv5vdrmavbi9umo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@085040.2412 mks06dtiekomv5vdrmavbi9umo Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 5
20240909@085040.2422 mks06dtiekomv5vdrmavbi9umo Query : select sestamp valor from se where ref ='321.181.120.0' and lote = 'r2100632100a'
20240909@085040.2439 mks06dtiekomv5vdrmavbi9umo Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240909@085040.2455 mks06dtiekomv5vdrmavbi9umo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@085040.2478 mks06dtiekomv5vdrmavbi9umo Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 5
20240909@085040.2494 mks06dtiekomv5vdrmavbi9umo Query : insert into wsbi2data (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut66dea9661466dea8d03b','aut66dea7609666dea8cfbd',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 = 'aut66dea7609666dea8cfbd'
20240909@085040.2659 mks06dtiekomv5vdrmavbi9umo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@085040.2679 mks06dtiekomv5vdrmavbi9umo Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 5
20240909@085040.2699 mks06dtiekomv5vdrmavbi9umo 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 'aut66dea9661466dea8d03b',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,20000 ,156.99,156.99*200.48,156.99,156.99*200.48 ,0,0,'un',' ' ,bo.marcada,1 ,156.99*2.000,156.99*2.000*200.48 ,32.581000,32.581000*200.48 ,32.581000,32.581000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,156.99,156.99*200.48,156.99*2.000,156.99*2.000*200.48,'pll24090440142,413000002 ',156.99,156.99*2.000,156.99,156.99*2.000,?,?,?,?,4 from wsbodata bo where bo.bostamp = 'aut66dea7609666dea8cfbd'
20240909@085040.3026 mks06dtiekomv5vdrmavbi9umo Query : use flama_phc
20240909@085040.3030 mks06dtiekomv5vdrmavbi9umo Query : select st.usalote valor from st where st.ref = '324.1462.00.1'
20240909@085040.3048 mks06dtiekomv5vdrmavbi9umo Query : use flama_phc
20240909@085040.3051 mks06dtiekomv5vdrmavbi9umo Query : select st.stns valor from st where st.ref = '324.1462.00.1'
20240909@085040.3073 mks06dtiekomv5vdrmavbi9umo Query : use flama_phc
20240909@085040.3076 mks06dtiekomv5vdrmavbi9umo 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.1462.00.1' and sa.armazem = 133 
20240909@085040.3152 mks06dtiekomv5vdrmavbi9umo Query : use flama_phc
20240909@085040.3155 mks06dtiekomv5vdrmavbi9umo Query : select st.stns valor from st where st.ref = '324.1462.00.1'
20240909@085040.3176 mks06dtiekomv5vdrmavbi9umo Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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'
20240909@085040.3332 mks06dtiekomv5vdrmavbi9umo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@085040.3351 mks06dtiekomv5vdrmavbi9umo Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 5
20240909@085040.3372 mks06dtiekomv5vdrmavbi9umo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@085040.3388 mks06dtiekomv5vdrmavbi9umo Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 5
20240909@085040.3398 mks06dtiekomv5vdrmavbi9umo Query : select sestamp valor from se where ref ='324.1462.00.1' and lote = 'r2101096200a'
20240909@085040.3420 mks06dtiekomv5vdrmavbi9umo Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240909@085040.3435 mks06dtiekomv5vdrmavbi9umo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@085040.3452 mks06dtiekomv5vdrmavbi9umo Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 5
20240909@085040.3469 mks06dtiekomv5vdrmavbi9umo Query : insert into wsbi2data (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut66dea7374966dea8d053','aut66dea7609666dea8cfbd',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 = 'aut66dea7609666dea8cfbd'
20240909@085040.3628 mks06dtiekomv5vdrmavbi9umo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@085040.3648 mks06dtiekomv5vdrmavbi9umo Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 5
20240909@085040.3666 mks06dtiekomv5vdrmavbi9umo 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 'aut66dea7374966dea8d053',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut',bo.obrano, 6.000, 6.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 ,99.99,99.99*200.48,99.99,99.99*200.48 ,0,0,'un ',' ' ,bo.marcada,1 ,99.99*6.000,99.99*6.000*200.48 ,30.730000,30.730000*200.48 ,30.730000,30.730000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,99.99,99.99*200.48,99.99*6.000,99.99*6.000*200.48,'pll24090440169,362000003 ',99.99,99.99*6.000,99.99,99.99*6.000,?,?,?,?,4 from wsbodata bo where bo.bostamp = 'aut66dea7609666dea8cfbd'
20240909@085040.3997 mks06dtiekomv5vdrmavbi9umo Query : use flama_phc
20240909@085040.4002 mks06dtiekomv5vdrmavbi9umo Query : select st.usalote valor from st where st.ref = '324.1832.00.2'
20240909@085040.4018 mks06dtiekomv5vdrmavbi9umo Query : use flama_phc
20240909@085040.4022 mks06dtiekomv5vdrmavbi9umo Query : select st.stns valor from st where st.ref = '324.1832.00.2'
20240909@085040.4041 mks06dtiekomv5vdrmavbi9umo Query : use flama_phc
20240909@085040.4044 mks06dtiekomv5vdrmavbi9umo 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.1832.00.2' and sa.armazem = 133 
20240909@085040.4145 mks06dtiekomv5vdrmavbi9umo Query : use flama_phc
20240909@085040.4149 mks06dtiekomv5vdrmavbi9umo Query : select st.stns valor from st where st.ref = '324.1832.00.2'
20240909@085040.4172 mks06dtiekomv5vdrmavbi9umo Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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'
20240909@085040.4329 mks06dtiekomv5vdrmavbi9umo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@085040.4347 mks06dtiekomv5vdrmavbi9umo Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 5
20240909@085040.4363 mks06dtiekomv5vdrmavbi9umo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@085040.4387 mks06dtiekomv5vdrmavbi9umo Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 5
20240909@085040.4397 mks06dtiekomv5vdrmavbi9umo Query : select sestamp valor from se where ref ='324.1832.00.2' and lote = 'r2301271100a'
20240909@085040.4413 mks06dtiekomv5vdrmavbi9umo Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240909@085040.4427 mks06dtiekomv5vdrmavbi9umo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@085040.4444 mks06dtiekomv5vdrmavbi9umo Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 5
20240909@085040.4459 mks06dtiekomv5vdrmavbi9umo Query : insert into wsbi2data (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut66dea0778066dea8d06c','aut66dea7609666dea8cfbd',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 = 'aut66dea7609666dea8cfbd'
20240909@085040.4607 mks06dtiekomv5vdrmavbi9umo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@085040.4626 mks06dtiekomv5vdrmavbi9umo Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 5
20240909@085040.4646 mks06dtiekomv5vdrmavbi9umo 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 'aut66dea0778066dea8d06c',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut',bo.obrano, 4.000, 4.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 ,89.99,89.99*200.48,89.99,89.99*200.48 ,0,0,'un ',' ' ,bo.marcada,1 ,89.99*4.000,89.99*4.000*200.48 ,32.228000,32.228000*200.48 ,32.228000,32.228000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,89.99,89.99*200.48,89.99*4.000,89.99*4.000*200.48,'pll24090440205,908000004 ',89.99,89.99*4.000,89.99,89.99*4.000,?,?,?,?,4 from wsbodata bo where bo.bostamp = 'aut66dea7609666dea8cfbd'
20240909@085040.4970 mks06dtiekomv5vdrmavbi9umo Query : use flama_phc
20240909@085040.4973 mks06dtiekomv5vdrmavbi9umo Query : select st.usalote valor from st where st.ref = '324.736.00.01'
20240909@085040.4991 mks06dtiekomv5vdrmavbi9umo Query : use flama_phc
20240909@085040.4994 mks06dtiekomv5vdrmavbi9umo Query : select st.stns valor from st where st.ref = '324.736.00.01'
20240909@085040.5013 mks06dtiekomv5vdrmavbi9umo Query : use flama_phc
20240909@085040.5016 mks06dtiekomv5vdrmavbi9umo 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.736.00.01' and sa.armazem = 133 
20240909@085040.5095 mks06dtiekomv5vdrmavbi9umo Query : use flama_phc
20240909@085040.5099 mks06dtiekomv5vdrmavbi9umo Query : select st.stns valor from st where st.ref = '324.736.00.01'
20240909@085040.5121 mks06dtiekomv5vdrmavbi9umo Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.736.00.01'
20240909@085040.5275 mks06dtiekomv5vdrmavbi9umo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@085040.5294 mks06dtiekomv5vdrmavbi9umo Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 5
20240909@085040.5310 mks06dtiekomv5vdrmavbi9umo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@085040.5327 mks06dtiekomv5vdrmavbi9umo Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 5
20240909@085040.5338 mks06dtiekomv5vdrmavbi9umo Query : select sestamp valor from se where ref ='324.736.00.01' and lote = 'r2400239300a'
20240909@085040.5355 mks06dtiekomv5vdrmavbi9umo Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240909@085040.5369 mks06dtiekomv5vdrmavbi9umo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@085040.5385 mks06dtiekomv5vdrmavbi9umo Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 5
20240909@085040.5399 mks06dtiekomv5vdrmavbi9umo Query : insert into wsbi2data (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut66dea0604466dea8d083','aut66dea7609666dea8cfbd',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 = 'aut66dea7609666dea8cfbd'
20240909@085040.5554 mks06dtiekomv5vdrmavbi9umo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@085040.5573 mks06dtiekomv5vdrmavbi9umo Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 5
20240909@085040.5593 mks06dtiekomv5vdrmavbi9umo 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 'aut66dea0604466dea8d083',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,50000 ,36.99,36.99*200.48,36.99,36.99*200.48 ,0,0,'un',' ' ,bo.marcada,1 ,36.99*8.000,36.99*8.000*200.48 ,7.897000,7.897000*200.48 ,7.897000,7.897000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,36.99,36.99*200.48,36.99*8.000,36.99*8.000*200.48,'pll24090440223,731000005 ',36.99,36.99*8.000,36.99,36.99*8.000,?,?,?,?,4 from wsbodata bo where bo.bostamp = 'aut66dea7609666dea8cfbd'
20240909@085040.5977 mks06dtiekomv5vdrmavbi9umo Query : use flama_phc
20240909@085040.5981 mks06dtiekomv5vdrmavbi9umo Query : select st.usalote valor from st where st.ref = '324.2031.00.1'
20240909@085040.5998 mks06dtiekomv5vdrmavbi9umo Query : use flama_phc
20240909@085040.6001 mks06dtiekomv5vdrmavbi9umo Query : select st.stns valor from st where st.ref = '324.2031.00.1'
20240909@085040.6020 mks06dtiekomv5vdrmavbi9umo Query : use flama_phc
20240909@085040.6023 mks06dtiekomv5vdrmavbi9umo 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.2031.00.1' and sa.armazem = 133 
20240909@085040.6100 mks06dtiekomv5vdrmavbi9umo Query : use flama_phc
20240909@085040.6104 mks06dtiekomv5vdrmavbi9umo Query : select st.stns valor from st where st.ref = '324.2031.00.1'
20240909@085040.6127 mks06dtiekomv5vdrmavbi9umo Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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'
20240909@085040.6280 mks06dtiekomv5vdrmavbi9umo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@085040.6299 mks06dtiekomv5vdrmavbi9umo Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 5
20240909@085040.6315 mks06dtiekomv5vdrmavbi9umo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@085040.6332 mks06dtiekomv5vdrmavbi9umo Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 5
20240909@085040.6341 mks06dtiekomv5vdrmavbi9umo Query : select sestamp valor from se where ref ='324.2031.00.1' and lote = 'r2100232100a'
20240909@085040.6358 mks06dtiekomv5vdrmavbi9umo Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240909@085040.6373 mks06dtiekomv5vdrmavbi9umo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@085040.6389 mks06dtiekomv5vdrmavbi9umo Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 5
20240909@085040.6404 mks06dtiekomv5vdrmavbi9umo Query : insert into wsbi2data (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut66dea8970166dea8d09b','aut66dea7609666dea8cfbd',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 = 'aut66dea7609666dea8cfbd'
20240909@085040.6693 mks06dtiekomv5vdrmavbi9umo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@085040.6803 mks06dtiekomv5vdrmavbi9umo Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 5
20240909@085040.6874 mks06dtiekomv5vdrmavbi9umo 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 'aut66dea8970166dea8d09b',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut',bo.obrano, 24.000, 24.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 ,36.99,36.99*200.48,36.99,36.99*200.48 ,0,0,'un ','' ,bo.marcada,1 ,36.99*24.000,36.99*24.000*200.48 ,8.924000,8.924000*200.48 ,8.924000,8.924000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,36.99,36.99*200.48,36.99*24.000,36.99*24.000*200.48,'pll24090440246,653000006 ',36.99,36.99*24.000,36.99,36.99*24.000,?,?,?,?,4 from wsbodata bo where bo.bostamp = 'aut66dea7609666dea8cfbd'
20240909@085040.7212 mks06dtiekomv5vdrmavbi9umo Query : use flama_phc
20240909@085040.7216 mks06dtiekomv5vdrmavbi9umo Query : select st.usalote valor from st where st.ref = '324.1578.00.1'
20240909@085040.7234 mks06dtiekomv5vdrmavbi9umo Query : use flama_phc
20240909@085040.7237 mks06dtiekomv5vdrmavbi9umo Query : select st.stns valor from st where st.ref = '324.1578.00.1'
20240909@085040.7255 mks06dtiekomv5vdrmavbi9umo Query : use flama_phc
20240909@085040.7259 mks06dtiekomv5vdrmavbi9umo 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.1578.00.1' and sa.armazem = 133 
20240909@085040.7333 mks06dtiekomv5vdrmavbi9umo Query : use flama_phc
20240909@085040.7337 mks06dtiekomv5vdrmavbi9umo Query : select st.stns valor from st where st.ref = '324.1578.00.1'
20240909@085040.7359 mks06dtiekomv5vdrmavbi9umo Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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'
20240909@085040.7512 mks06dtiekomv5vdrmavbi9umo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@085040.7529 mks06dtiekomv5vdrmavbi9umo Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 5
20240909@085040.7544 mks06dtiekomv5vdrmavbi9umo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@085040.7560 mks06dtiekomv5vdrmavbi9umo Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 5
20240909@085040.7576 mks06dtiekomv5vdrmavbi9umo Query : select sestamp valor from se where ref ='324.1578.00.1' and lote = 'r2101115200a'
20240909@085040.7591 mks06dtiekomv5vdrmavbi9umo Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240909@085040.7604 mks06dtiekomv5vdrmavbi9umo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@085040.7619 mks06dtiekomv5vdrmavbi9umo Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 5
20240909@085040.7632 mks06dtiekomv5vdrmavbi9umo Query : insert into wsbi2data (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut66dea2522766dea8d0b9','aut66dea7609666dea8cfbd',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 = 'aut66dea7609666dea8cfbd'
20240909@085040.7786 mks06dtiekomv5vdrmavbi9umo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@085040.7804 mks06dtiekomv5vdrmavbi9umo Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 5
20240909@085040.7822 mks06dtiekomv5vdrmavbi9umo 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 'aut66dea2522766dea8d0b9',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut',bo.obrano, 6.000, 6.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 ,189.99,189.99*200.48,189.99,189.99*200.48 ,0,0,'un ','' ,bo.marcada,1 ,189.99*6.000,189.99*6.000*200.48 ,51.717000,51.717000*200.48 ,51.717000,51.717000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,189.99,189.99*200.48,189.99*6.000,189.99*6.000*200.48,'pll24090440324,005000007 ',189.99,189.99*6.000,189.99,189.99*6.000,?,?,?,?,4 from wsbodata bo where bo.bostamp = 'aut66dea7609666dea8cfbd'
20240909@085040.8144 mks06dtiekomv5vdrmavbi9umo Query : use flama_phc
20240909@085040.8148 mks06dtiekomv5vdrmavbi9umo Query : select st.usalote valor from st where st.ref = '324.691.00.01'
20240909@085040.8163 mks06dtiekomv5vdrmavbi9umo Query : use flama_phc
20240909@085040.8167 mks06dtiekomv5vdrmavbi9umo Query : select st.stns valor from st where st.ref = '324.691.00.01'
20240909@085040.8184 mks06dtiekomv5vdrmavbi9umo Query : use flama_phc
20240909@085040.8187 mks06dtiekomv5vdrmavbi9umo 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.691.00.01' and sa.armazem = 133 
20240909@085040.8256 mks06dtiekomv5vdrmavbi9umo Query : use flama_phc
20240909@085040.8260 mks06dtiekomv5vdrmavbi9umo Query : select st.stns valor from st where st.ref = '324.691.00.01'
20240909@085040.8280 mks06dtiekomv5vdrmavbi9umo Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.691.00.01'
20240909@085040.8439 mks06dtiekomv5vdrmavbi9umo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@085040.8455 mks06dtiekomv5vdrmavbi9umo Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 5
20240909@085040.8469 mks06dtiekomv5vdrmavbi9umo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@085040.8485 mks06dtiekomv5vdrmavbi9umo Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 5
20240909@085040.8494 mks06dtiekomv5vdrmavbi9umo Query : select sestamp valor from se where ref ='324.691.00.01' and lote = 'r2400209200a'
20240909@085040.8516 mks06dtiekomv5vdrmavbi9umo Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240909@085040.8529 mks06dtiekomv5vdrmavbi9umo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@085040.8544 mks06dtiekomv5vdrmavbi9umo Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 5
20240909@085040.8556 mks06dtiekomv5vdrmavbi9umo Query : insert into wsbi2data (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut66dea6025766dea8d0d0','aut66dea7609666dea8cfbd',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 = 'aut66dea7609666dea8cfbd'
20240909@085040.8700 mks06dtiekomv5vdrmavbi9umo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@085040.8719 mks06dtiekomv5vdrmavbi9umo Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 5
20240909@085040.8755 mks06dtiekomv5vdrmavbi9umo 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 'aut66dea6025766dea8d0d0',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,80000 ,149.99,149.99*200.48,149.99,149.99*200.48 ,0,0,'un ',' ' ,bo.marcada,1 ,149.99*2.000,149.99*2.000*200.48 ,31.778000,31.778000*200.48 ,31.778000,31.778000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,149.99,149.99*200.48,149.99*2.000,149.99*2.000*200.48,'pll24090440348,559000008 ',149.99,149.99*2.000,149.99,149.99*2.000,?,?,?,?,4 from wsbodata bo where bo.bostamp = 'aut66dea7609666dea8cfbd'
20240909@085040.9077 mks06dtiekomv5vdrmavbi9umo Query : use flama_phc
20240909@085040.9081 mks06dtiekomv5vdrmavbi9umo Query : select st.usalote valor from st where st.ref = '324.691.00.01'
20240909@085040.9098 mks06dtiekomv5vdrmavbi9umo Query : use flama_phc
20240909@085040.9100 mks06dtiekomv5vdrmavbi9umo Query : select st.stns valor from st where st.ref = '324.691.00.01'
20240909@085040.9117 mks06dtiekomv5vdrmavbi9umo Query : use flama_phc
20240909@085040.9120 mks06dtiekomv5vdrmavbi9umo 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.691.00.01' and sa.armazem = 133 
20240909@085040.9148 mks06dtiekomv5vdrmavbi9umo Query : use flama_phc
20240909@085040.9151 mks06dtiekomv5vdrmavbi9umo Query : select st.stns valor from st where st.ref = '324.691.00.01'
20240909@085040.9173 mks06dtiekomv5vdrmavbi9umo Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.691.00.01'
20240909@085040.9189 mks06dtiekomv5vdrmavbi9umo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@085040.9208 mks06dtiekomv5vdrmavbi9umo Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 5
20240909@085040.9223 mks06dtiekomv5vdrmavbi9umo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@085040.9242 mks06dtiekomv5vdrmavbi9umo Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 5
20240909@085040.9252 mks06dtiekomv5vdrmavbi9umo Query : select sestamp valor from se where ref ='324.691.00.01' and lote = 'r2400209200a'
20240909@085040.9266 mks06dtiekomv5vdrmavbi9umo Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240909@085040.9279 mks06dtiekomv5vdrmavbi9umo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@085040.9294 mks06dtiekomv5vdrmavbi9umo Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 5
20240909@085040.9308 mks06dtiekomv5vdrmavbi9umo Query : insert into wsbi2data (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut66dea6451366dea8d0e2','aut66dea7609666dea8cfbd',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 = 'aut66dea7609666dea8cfbd'
20240909@085040.9457 mks06dtiekomv5vdrmavbi9umo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@085040.9474 mks06dtiekomv5vdrmavbi9umo Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 5
20240909@085040.9491 mks06dtiekomv5vdrmavbi9umo 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 'aut66dea6451366dea8d0e2',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut',bo.obrano, 4.000, 4.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 ,149.99,149.99*200.48,149.99,149.99*200.48 ,0,0,'un ',' ' ,bo.marcada,1 ,149.99*4.000,149.99*4.000*200.48 ,31.778000,31.778000*200.48 ,31.778000,31.778000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,149.99,149.99*200.48,149.99*4.000,149.99*4.000*200.48,'pll24090440348,559000008 ',149.99,149.99*4.000,149.99,149.99*4.000,?,?,?,?,4 from wsbodata bo where bo.bostamp = 'aut66dea7609666dea8cfbd'
20240909@085041.4900 mks06dtiekomv5vdrmavbi9umo Query : use flama_phc
20240909@085041.5690 mks06dtiekomv5vdrmavbi9umo Query : select st.usalote valor from st where st.ref = '324.642.00.01'
20240909@085041.1068 mks06dtiekomv5vdrmavbi9umo Query : use flama_phc
20240909@085041.1072 mks06dtiekomv5vdrmavbi9umo Query : select st.stns valor from st where st.ref = '324.642.00.01'
20240909@085041.1111 mks06dtiekomv5vdrmavbi9umo Query : use flama_phc
20240909@085041.1116 mks06dtiekomv5vdrmavbi9umo 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.642.00.01' and sa.armazem = 133 
20240909@085041.1192 mks06dtiekomv5vdrmavbi9umo Query : use flama_phc
20240909@085041.1196 mks06dtiekomv5vdrmavbi9umo Query : select st.stns valor from st where st.ref = '324.642.00.01'
20240909@085041.1219 mks06dtiekomv5vdrmavbi9umo Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.642.00.01'
20240909@085041.1371 mks06dtiekomv5vdrmavbi9umo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@085041.1391 mks06dtiekomv5vdrmavbi9umo Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 5
20240909@085041.1406 mks06dtiekomv5vdrmavbi9umo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@085041.1423 mks06dtiekomv5vdrmavbi9umo Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 5
20240909@085041.1434 mks06dtiekomv5vdrmavbi9umo Query : select sestamp valor from se where ref ='324.642.00.01' and lote = 'r2100892200a'
20240909@085041.1448 mks06dtiekomv5vdrmavbi9umo Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240909@085041.1464 mks06dtiekomv5vdrmavbi9umo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@085041.1481 mks06dtiekomv5vdrmavbi9umo Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 5
20240909@085041.1497 mks06dtiekomv5vdrmavbi9umo Query : insert into wsbi2data (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut66dea8431266dea8d123','aut66dea7609666dea8cfbd',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 = 'aut66dea7609666dea8cfbd'
20240909@085041.1646 mks06dtiekomv5vdrmavbi9umo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@085041.1665 mks06dtiekomv5vdrmavbi9umo Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 5
20240909@085041.1682 mks06dtiekomv5vdrmavbi9umo 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 'aut66dea8431266dea8d123',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut',bo.obrano, 6.000, 6.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,100000 ,84.99,84.99*200.48,84.99,84.99*200.48 ,0,0,'un ','' ,bo.marcada,1 ,84.99*6.000,84.99*6.000*200.48 ,18.573000,18.573000*200.48 ,18.573000,18.573000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,84.99,84.99*200.48,84.99*6.000,84.99*6.000*200.48,'pll24090440369,766000009 ',84.99,84.99*6.000,84.99,84.99*6.000,?,?,?,?,4 from wsbodata bo where bo.bostamp = 'aut66dea7609666dea8cfbd'
20240909@085041.1997 mks06dtiekomv5vdrmavbi9umo Query : use flama_phc
20240909@085041.2000 mks06dtiekomv5vdrmavbi9umo Query : select st.usalote valor from st where st.ref = '324.1667.00.1'
20240909@085041.2016 mks06dtiekomv5vdrmavbi9umo Query : use flama_phc
20240909@085041.2020 mks06dtiekomv5vdrmavbi9umo Query : select st.stns valor from st where st.ref = '324.1667.00.1'
20240909@085041.2038 mks06dtiekomv5vdrmavbi9umo Query : use flama_phc
20240909@085041.2042 mks06dtiekomv5vdrmavbi9umo 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.1667.00.1' and sa.armazem = 133 
20240909@085041.2112 mks06dtiekomv5vdrmavbi9umo Query : use flama_phc
20240909@085041.2115 mks06dtiekomv5vdrmavbi9umo Query : select st.stns valor from st where st.ref = '324.1667.00.1'
20240909@085041.2136 mks06dtiekomv5vdrmavbi9umo Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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'
20240909@085041.2297 mks06dtiekomv5vdrmavbi9umo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@085041.2315 mks06dtiekomv5vdrmavbi9umo Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 5
20240909@085041.2329 mks06dtiekomv5vdrmavbi9umo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@085041.2346 mks06dtiekomv5vdrmavbi9umo Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 5
20240909@085041.2357 mks06dtiekomv5vdrmavbi9umo Query : select sestamp valor from se where ref ='324.1667.00.1' and lote = 'r2400065200a'
20240909@085041.2380 mks06dtiekomv5vdrmavbi9umo Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240909@085041.2395 mks06dtiekomv5vdrmavbi9umo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@085041.2414 mks06dtiekomv5vdrmavbi9umo Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 5
20240909@085041.2430 mks06dtiekomv5vdrmavbi9umo Query : insert into wsbi2data (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut66dea8940366dea8d13a','aut66dea7609666dea8cfbd',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 = 'aut66dea7609666dea8cfbd'
20240909@085041.2575 mks06dtiekomv5vdrmavbi9umo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@085041.2595 mks06dtiekomv5vdrmavbi9umo Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 5
20240909@085041.2612 mks06dtiekomv5vdrmavbi9umo 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 'aut66dea8940366dea8d13a',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,110000 ,139.99,139.99*200.48,139.99,139.99*200.48 ,0,0,'un',' ' ,bo.marcada,1 ,139.99*10.000,139.99*10.000*200.48 ,36.603000,36.603000*200.48 ,36.603000,36.603000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,139.99,139.99*200.48,139.99*10.000,139.99*10.000*200.48,'pll24090440388,426000010 ',139.99,139.99*10.000,139.99,139.99*10.000,?,?,?,?,4 from wsbodata bo where bo.bostamp = 'aut66dea7609666dea8cfbd'
20240909@085041.2935 mks06dtiekomv5vdrmavbi9umo Query : use flama_phc
20240909@085041.2939 mks06dtiekomv5vdrmavbi9umo Query : select st.usalote valor from st where st.ref = '324.1676.00.1'
20240909@085041.2958 mks06dtiekomv5vdrmavbi9umo Query : use flama_phc
20240909@085041.2961 mks06dtiekomv5vdrmavbi9umo Query : select st.stns valor from st where st.ref = '324.1676.00.1'
20240909@085041.2986 mks06dtiekomv5vdrmavbi9umo Query : use flama_phc
20240909@085041.2989 mks06dtiekomv5vdrmavbi9umo 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.1676.00.1' and sa.armazem = 133 
20240909@085041.3085 mks06dtiekomv5vdrmavbi9umo Query : use flama_phc
20240909@085041.3089 mks06dtiekomv5vdrmavbi9umo Query : select st.stns valor from st where st.ref = '324.1676.00.1'
20240909@085041.3110 mks06dtiekomv5vdrmavbi9umo Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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.1676.00.1'
20240909@085041.3265 mks06dtiekomv5vdrmavbi9umo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@085041.3287 mks06dtiekomv5vdrmavbi9umo Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 5
20240909@085041.3310 mks06dtiekomv5vdrmavbi9umo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@085041.3328 mks06dtiekomv5vdrmavbi9umo Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 5
20240909@085041.3338 mks06dtiekomv5vdrmavbi9umo Query : select sestamp valor from se where ref ='324.1676.00.1' and lote = 'r2400173900a'
20240909@085041.3361 mks06dtiekomv5vdrmavbi9umo Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240909@085041.3376 mks06dtiekomv5vdrmavbi9umo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@085041.3394 mks06dtiekomv5vdrmavbi9umo Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 5
20240909@085041.3409 mks06dtiekomv5vdrmavbi9umo Query : insert into wsbi2data (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut66dea6706166dea8d152','aut66dea7609666dea8cfbd',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 = 'aut66dea7609666dea8cfbd'
20240909@085041.3563 mks06dtiekomv5vdrmavbi9umo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@085041.3581 mks06dtiekomv5vdrmavbi9umo Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 5
20240909@085041.3601 mks06dtiekomv5vdrmavbi9umo 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 'aut66dea6706166dea8d152',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,120000 ,89.99,89.99*200.48,89.99,89.99*200.48 ,0,0,'un',' ' ,bo.marcada,1 ,89.99*8.000,89.99*8.000*200.48 ,24.530000,24.530000*200.48 ,24.530000,24.530000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,89.99,89.99*200.48,89.99*8.000,89.99*8.000*200.48,'pll24090440407,161000011 ',89.99,89.99*8.000,89.99,89.99*8.000,?,?,?,?,4 from wsbodata bo where bo.bostamp = 'aut66dea7609666dea8cfbd'
20240909@085041.3978 mks06dtiekomv5vdrmavbi9umo Query : use flama_phc
20240909@085041.3983 mks06dtiekomv5vdrmavbi9umo Query : select st.usalote valor from st where st.ref = '324.1676.00.1'
20240909@085041.3999 mks06dtiekomv5vdrmavbi9umo Query : use flama_phc
20240909@085041.4002 mks06dtiekomv5vdrmavbi9umo Query : select st.stns valor from st where st.ref = '324.1676.00.1'
20240909@085041.4021 mks06dtiekomv5vdrmavbi9umo Query : use flama_phc
20240909@085041.4024 mks06dtiekomv5vdrmavbi9umo 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.1676.00.1' and sa.armazem = 133 
20240909@085041.4050 mks06dtiekomv5vdrmavbi9umo Query : use flama_phc
20240909@085041.4053 mks06dtiekomv5vdrmavbi9umo Query : select st.stns valor from st where st.ref = '324.1676.00.1'
20240909@085041.4075 mks06dtiekomv5vdrmavbi9umo Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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.1676.00.1'
20240909@085041.4090 mks06dtiekomv5vdrmavbi9umo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@085041.4110 mks06dtiekomv5vdrmavbi9umo Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 5
20240909@085041.4124 mks06dtiekomv5vdrmavbi9umo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@085041.4141 mks06dtiekomv5vdrmavbi9umo Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 5
20240909@085041.4150 mks06dtiekomv5vdrmavbi9umo Query : select sestamp valor from se where ref ='324.1676.00.1' and lote = 'r2400173900a'
20240909@085041.4165 mks06dtiekomv5vdrmavbi9umo Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240909@085041.4180 mks06dtiekomv5vdrmavbi9umo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@085041.4196 mks06dtiekomv5vdrmavbi9umo Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 5
20240909@085041.4210 mks06dtiekomv5vdrmavbi9umo Query : insert into wsbi2data (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut66dea8342966dea8d166','aut66dea7609666dea8cfbd',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 = 'aut66dea7609666dea8cfbd'
20240909@085041.4360 mks06dtiekomv5vdrmavbi9umo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@085041.4377 mks06dtiekomv5vdrmavbi9umo Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 5
20240909@085041.4394 mks06dtiekomv5vdrmavbi9umo 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 'aut66dea8342966dea8d166',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,130000 ,89.99,89.99*200.48,89.99,89.99*200.48 ,0,0,'un',' ' ,bo.marcada,1 ,89.99*2.000,89.99*2.000*200.48 ,24.530000,24.530000*200.48 ,24.530000,24.530000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,89.99,89.99*200.48,89.99*2.000,89.99*2.000*200.48,'pll24090440407,161000011 ',89.99,89.99*2.000,89.99,89.99*2.000,?,?,?,?,4 from wsbodata bo where bo.bostamp = 'aut66dea7609666dea8cfbd'
20240909@085041.4699 mks06dtiekomv5vdrmavbi9umo Query : use flama_phc
20240909@085041.4705 mks06dtiekomv5vdrmavbi9umo Query : select st.usalote valor from st where st.ref = '324.4906.00.1'
20240909@085041.4723 mks06dtiekomv5vdrmavbi9umo Query : use flama_phc
20240909@085041.4726 mks06dtiekomv5vdrmavbi9umo Query : select st.stns valor from st where st.ref = '324.4906.00.1'
20240909@085041.4746 mks06dtiekomv5vdrmavbi9umo Query : use flama_phc
20240909@085041.4750 mks06dtiekomv5vdrmavbi9umo 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.4906.00.1' and sa.armazem = 133 
20240909@085041.4822 mks06dtiekomv5vdrmavbi9umo Query : use flama_phc
20240909@085041.4826 mks06dtiekomv5vdrmavbi9umo Query : select st.stns valor from st where st.ref = '324.4906.00.1'
20240909@085041.4848 mks06dtiekomv5vdrmavbi9umo Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.4906.00.1'
20240909@085041.5001 mks06dtiekomv5vdrmavbi9umo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@085041.5021 mks06dtiekomv5vdrmavbi9umo Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 5
20240909@085041.5036 mks06dtiekomv5vdrmavbi9umo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@085041.5054 mks06dtiekomv5vdrmavbi9umo Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 5
20240909@085041.5064 mks06dtiekomv5vdrmavbi9umo Query : select sestamp valor from se where ref ='324.4906.00.1' and lote = 'r2300207200a'
20240909@085041.5094 mks06dtiekomv5vdrmavbi9umo Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240909@085041.5110 mks06dtiekomv5vdrmavbi9umo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@085041.5127 mks06dtiekomv5vdrmavbi9umo Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 5
20240909@085041.5140 mks06dtiekomv5vdrmavbi9umo Query : insert into wsbi2data (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut66dea4476266dea8d17c','aut66dea7609666dea8cfbd',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 = 'aut66dea7609666dea8cfbd'
20240909@085041.5285 mks06dtiekomv5vdrmavbi9umo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@085041.5303 mks06dtiekomv5vdrmavbi9umo Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 5
20240909@085041.5322 mks06dtiekomv5vdrmavbi9umo 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 'aut66dea4476266dea8d17c',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,140000 ,64.99,64.99*200.48,64.99,64.99*200.48 ,0,0,'un ',' ' ,bo.marcada,1 ,64.99*8.000,64.99*8.000*200.48 ,19.270000,19.270000*200.48 ,19.270000,19.270000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,64.99,64.99*200.48,64.99*8.000,64.99*8.000*200.48,'pll24090440558,517000012 ',64.99,64.99*8.000,64.99,64.99*8.000,?,?,?,?,4 from wsbodata bo where bo.bostamp = 'aut66dea7609666dea8cfbd'
20240909@085041.5638 mks06dtiekomv5vdrmavbi9umo Query : use flama_phc
20240909@085041.5660 mks06dtiekomv5vdrmavbi9umo Query : select st.usalote valor from st where st.ref = '324.1834.00.1'
20240909@085041.5920 mks06dtiekomv5vdrmavbi9umo Query : use flama_phc
20240909@085041.5925 mks06dtiekomv5vdrmavbi9umo Query : select st.stns valor from st where st.ref = '324.1834.00.1'
20240909@085041.5945 mks06dtiekomv5vdrmavbi9umo Query : use flama_phc
20240909@085041.5948 mks06dtiekomv5vdrmavbi9umo 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.1834.00.1' and sa.armazem = 133 
20240909@085041.6028 mks06dtiekomv5vdrmavbi9umo Query : use flama_phc
20240909@085041.6031 mks06dtiekomv5vdrmavbi9umo Query : select st.stns valor from st where st.ref = '324.1834.00.1'
20240909@085041.6053 mks06dtiekomv5vdrmavbi9umo Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.1834.00.1'
20240909@085041.6208 mks06dtiekomv5vdrmavbi9umo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@085041.6226 mks06dtiekomv5vdrmavbi9umo Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 5
20240909@085041.6241 mks06dtiekomv5vdrmavbi9umo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@085041.6260 mks06dtiekomv5vdrmavbi9umo Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 5
20240909@085041.6271 mks06dtiekomv5vdrmavbi9umo Query : select sestamp valor from se where ref ='324.1834.00.1' and lote = 'r2300974200a'
20240909@085041.6296 mks06dtiekomv5vdrmavbi9umo Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240909@085041.6313 mks06dtiekomv5vdrmavbi9umo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@085041.6536 mks06dtiekomv5vdrmavbi9umo Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 5
20240909@085041.6615 mks06dtiekomv5vdrmavbi9umo Query : insert into wsbi2data (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut66dea4724366dea8d19a','aut66dea7609666dea8cfbd',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 = 'aut66dea7609666dea8cfbd'
20240909@085041.6787 mks06dtiekomv5vdrmavbi9umo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@085041.6809 mks06dtiekomv5vdrmavbi9umo Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 5
20240909@085041.6830 mks06dtiekomv5vdrmavbi9umo 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 'aut66dea4724366dea8d19a',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut',bo.obrano, 6.000, 6.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,150000 ,79.99,79.99*200.48,79.99,79.99*200.48 ,0,0,'un',' ' ,bo.marcada,1 ,79.99*6.000,79.99*6.000*200.48 ,28.471000,28.471000*200.48 ,28.471000,28.471000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,79.99,79.99*200.48,79.99*6.000,79.99*6.000*200.48,'pll24090440583,588000013 ',79.99,79.99*6.000,79.99,79.99*6.000,?,?,?,?,4 from wsbodata bo where bo.bostamp = 'aut66dea7609666dea8cfbd'
20240909@085041.7163 mks06dtiekomv5vdrmavbi9umo Query : use flama_phc
20240909@085041.7168 mks06dtiekomv5vdrmavbi9umo Query : select st.usalote valor from st where st.ref = '324.5396.00.1'
20240909@085041.7185 mks06dtiekomv5vdrmavbi9umo Query : use flama_phc
20240909@085041.7188 mks06dtiekomv5vdrmavbi9umo Query : select st.stns valor from st where st.ref = '324.5396.00.1'
20240909@085041.7206 mks06dtiekomv5vdrmavbi9umo Query : use flama_phc
20240909@085041.7210 mks06dtiekomv5vdrmavbi9umo 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.5396.00.1' and sa.armazem = 133 
20240909@085041.7286 mks06dtiekomv5vdrmavbi9umo Query : use flama_phc
20240909@085041.7290 mks06dtiekomv5vdrmavbi9umo Query : select st.stns valor from st where st.ref = '324.5396.00.1'
20240909@085041.7313 mks06dtiekomv5vdrmavbi9umo Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.5396.00.1'
20240909@085041.7466 mks06dtiekomv5vdrmavbi9umo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@085041.7485 mks06dtiekomv5vdrmavbi9umo Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 5
20240909@085041.7501 mks06dtiekomv5vdrmavbi9umo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@085041.7520 mks06dtiekomv5vdrmavbi9umo Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 5
20240909@085041.7531 mks06dtiekomv5vdrmavbi9umo Query : select sestamp valor from se where ref ='324.5396.00.1' and lote = 'r2300840100a'
20240909@085041.7548 mks06dtiekomv5vdrmavbi9umo Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240909@085041.7563 mks06dtiekomv5vdrmavbi9umo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@085041.7580 mks06dtiekomv5vdrmavbi9umo Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 5
20240909@085041.7594 mks06dtiekomv5vdrmavbi9umo Query : insert into wsbi2data (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut66dea4404966dea8d1b8','aut66dea7609666dea8cfbd',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 = 'aut66dea7609666dea8cfbd'
20240909@085041.7765 mks06dtiekomv5vdrmavbi9umo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@085041.7786 mks06dtiekomv5vdrmavbi9umo Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 5
20240909@085041.7805 mks06dtiekomv5vdrmavbi9umo 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 'aut66dea4404966dea8d1b8',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut',bo.obrano, 24.000, 24.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,160000 ,44.99,44.99*200.48,44.99,44.99*200.48 ,0,0,'un ',' ' ,bo.marcada,1 ,44.99*24.000,44.99*24.000*200.48 ,9.272000,9.272000*200.48 ,9.272000,9.272000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,44.99,44.99*200.48,44.99*24.000,44.99*24.000*200.48,'pll24090440607,614000014 ',44.99,44.99*24.000,44.99,44.99*24.000,?,?,?,?,4 from wsbodata bo where bo.bostamp = 'aut66dea7609666dea8cfbd'
20240909@085041.8139 mks06dtiekomv5vdrmavbi9umo Query : insert into wsbocreationlog (initialstamp,externalid,creationstatus,documenttypeid,idustamp,transactionid) values ('aut66dea7609666dea8cfbd','','wait',5,'adm12071144683,938000003','')
20240909@085041.8242 mks06dtiekomv5vdrmavbi9umo Query : use flama_phc
20240909@085041.8247 mks06dtiekomv5vdrmavbi9umo Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240909@085041.8301 mks06dtiekomv5vdrmavbi9umo Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1882';
20240909@085041.8335 mks06dtiekomv5vdrmavbi9umo Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1882';
20240909@091915.5609 ro5u26epgd32drnovqjf80742l Query : use flama_phc
20240909@091915.5617 ro5u26epgd32drnovqjf80742l Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240909@091915.5720 ro5u26epgd32drnovqjf80742l Query : use flama_phc
20240909@091915.5724 ro5u26epgd32drnovqjf80742l Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240909@093615.5100 c4tr36tnu1jhjeduge52o8f4qc Query : use flama_phc
20240909@093615.5104 c4tr36tnu1jhjeduge52o8f4qc Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240909@093615.5199 c4tr36tnu1jhjeduge52o8f4qc Query : use flama_phc
20240909@093615.5203 c4tr36tnu1jhjeduge52o8f4qc Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240909@101912.3682 8dcer950n21ic4t6hljmo8qdpj Query : use flama_phc
20240909@101912.3687 8dcer950n21ic4t6hljmo8qdpj Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240909@101912.4024 8dcer950n21ic4t6hljmo8qdpj Query : use flama_phc
20240909@101912.4028 8dcer950n21ic4t6hljmo8qdpj Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240909@103612.5820 h6pd48biapcm26mem80gssjs3a Query : use flama_phc
20240909@103612.5870 h6pd48biapcm26mem80gssjs3a Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240909@103612.6920 h6pd48biapcm26mem80gssjs3a Query : use flama_phc
20240909@103612.6960 h6pd48biapcm26mem80gssjs3a Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240909@111910.6769 9jsrtmjhj7cmn1ahhs9t721s48 Query : use flama_phc
20240909@111910.6775 9jsrtmjhj7cmn1ahhs9t721s48 Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240909@111910.6877 9jsrtmjhj7cmn1ahhs9t721s48 Query : use flama_phc
20240909@111910.6880 9jsrtmjhj7cmn1ahhs9t721s48 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240909@113610.7487 n1ldrgkjs0o904772nqphmm80l Query : use flama_phc
20240909@113610.7493 n1ldrgkjs0o904772nqphmm80l Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240909@113610.7660 n1ldrgkjs0o904772nqphmm80l Query : use flama_phc
20240909@113610.7701 n1ldrgkjs0o904772nqphmm80l Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240909@121916.7015 7k2bkol71f7l9oe738sl45n5mi Query : use flama_phc
20240909@121916.7020 7k2bkol71f7l9oe738sl45n5mi Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240909@121916.7110 7k2bkol71f7l9oe738sl45n5mi Query : use flama_phc
20240909@121916.7113 7k2bkol71f7l9oe738sl45n5mi Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240909@123616.4301 3aj06k47cevk20i7asbbagmogo Query : use flama_phc
20240909@123616.4330 3aj06k47cevk20i7asbbagmogo Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240909@123616.4499 3aj06k47cevk20i7asbbagmogo Query : use flama_phc
20240909@123616.4503 3aj06k47cevk20i7asbbagmogo Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240909@131910.7798 c12eo6ub8bnadoat4tg1hcgpba Query : use flama_phc
20240909@131910.7803 c12eo6ub8bnadoat4tg1hcgpba Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240909@131910.7896 c12eo6ub8bnadoat4tg1hcgpba Query : use flama_phc
20240909@131910.7901 c12eo6ub8bnadoat4tg1hcgpba Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240909@133610.9496 kemesq1q8acc9tj8tgi1asbf67 Query : use flama_phc
20240909@133610.9502 kemesq1q8acc9tj8tgi1asbf67 Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240909@133610.9785 kemesq1q8acc9tj8tgi1asbf67 Query : use flama_phc
20240909@133610.9791 kemesq1q8acc9tj8tgi1asbf67 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240909@141910.3091 jvelo866qbgipfsgbsop6lsnib Query : use flama_phc
20240909@141910.3096 jvelo866qbgipfsgbsop6lsnib Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240909@141910.3213 jvelo866qbgipfsgbsop6lsnib Query : use flama_phc
20240909@141910.3217 jvelo866qbgipfsgbsop6lsnib Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240909@143610.2450 hnib1aoffja880co63nts96bch Query : use flama_phc
20240909@143610.2455 hnib1aoffja880co63nts96bch Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240909@143610.2549 hnib1aoffja880co63nts96bch Query : use flama_phc
20240909@143610.2552 hnib1aoffja880co63nts96bch Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240909@151910.5828 qb858e3tumim6qehdcddjccs2d Query : use flama_phc
20240909@151910.5834 qb858e3tumim6qehdcddjccs2d Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240909@151910.5966 qb858e3tumim6qehdcddjccs2d Query : use flama_phc
20240909@151910.5970 qb858e3tumim6qehdcddjccs2d Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240909@152518.9393 3dt6lg4rlr50t255806t3bdd87 Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240909@152518.9431 3dt6lg4rlr50t255806t3bdd87 Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240909@152518.9666 3dt6lg4rlr50t255806t3bdd87 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1883';
20240909@152518.9763 3dt6lg4rlr50t255806t3bdd87 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1883';
20240909@152518.9844 3dt6lg4rlr50t255806t3bdd87 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1883';
20240909@152518.9877 3dt6lg4rlr50t255806t3bdd87 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1883';
20240909@152518.9927 3dt6lg4rlr50t255806t3bdd87 Query : use flama_phc
20240909@152518.9930 3dt6lg4rlr50t255806t3bdd87 Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240909@152519.5600 3dt6lg4rlr50t255806t3bdd87 Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.670.00.01'
20240909@152519.1840 3dt6lg4rlr50t255806t3bdd87 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =005 and bo.boano =2024 and bo.obrano = 0000440 and bi.ref ='324.670.00.01' and bi.lordem =10000
20240909@152519.5290 3dt6lg4rlr50t255806t3bdd87 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 = 'az24090664458,021000001 ' 
20240909@152519.8770 3dt6lg4rlr50t255806t3bdd87 Query : use flama_phc
20240909@152519.8810 3dt6lg4rlr50t255806t3bdd87 Query : select top 1 1 valor from ts where ts.ndos = 61
20240909@152519.9880 3dt6lg4rlr50t255806t3bdd87 Query : use flama_phc
20240909@152519.9920 3dt6lg4rlr50t255806t3bdd87 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')
20240909@152519.1069 3dt6lg4rlr50t255806t3bdd87 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
20240909@152519.1272 3dt6lg4rlr50t255806t3bdd87 Query : use flama_phc
20240909@152519.1275 3dt6lg4rlr50t255806t3bdd87 Query : select top 1 ~inactivo valor from fl where no = '2' and estab = 2 order by inactivo desc
20240909@152519.1409 3dt6lg4rlr50t255806t3bdd87 Query : use flama_phc
20240909@152519.1412 3dt6lg4rlr50t255806t3bdd87 Query : select top 1 errorresult result ,errornumber errornumber ,descriptionpt description ,isnull(descriptionen,'') descriptionen ,isnull(descriptionfr,'') descriptionfr from wserrorcodes where errornumber = -230
20240909@152519.1516 3dt6lg4rlr50t255806t3bdd87 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1883';
20240909@152519.1553 3dt6lg4rlr50t255806t3bdd87 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1883';
20240909@153610.7588 fvtekfviuiun27unfu57d39l70 Query : use flama_phc
20240909@153610.7592 fvtekfviuiun27unfu57d39l70 Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240909@153610.7682 fvtekfviuiun27unfu57d39l70 Query : use flama_phc
20240909@153610.7686 fvtekfviuiun27unfu57d39l70 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240909@161913.4433 g46d8kc2fdneft35fmbmsssi2m Query : use flama_phc
20240909@161913.4437 g46d8kc2fdneft35fmbmsssi2m Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240909@161913.4529 g46d8kc2fdneft35fmbmsssi2m Query : use flama_phc
20240909@161913.4533 g46d8kc2fdneft35fmbmsssi2m Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240909@163613.3182 9kse5cquh59s1a6f5m08n93kol Query : use flama_phc
20240909@163613.3186 9kse5cquh59s1a6f5m08n93kol Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240909@163613.3301 9kse5cquh59s1a6f5m08n93kol Query : use flama_phc
20240909@163613.3305 9kse5cquh59s1a6f5m08n93kol Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240909@171911.7879 1kdgfouo2vm2sh9jvsh7uql9lf Query : use flama_phc
20240909@171911.7884 1kdgfouo2vm2sh9jvsh7uql9lf Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240909@171911.8121 1kdgfouo2vm2sh9jvsh7uql9lf Query : use flama_phc
20240909@171911.8126 1kdgfouo2vm2sh9jvsh7uql9lf Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240909@173612.2026 1ph1nmpoc1fievkdp8rbv74oke Query : use flama_phc
20240909@173612.2031 1ph1nmpoc1fievkdp8rbv74oke Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240909@173612.2129 1ph1nmpoc1fievkdp8rbv74oke Query : use flama_phc
20240909@173612.2133 1ph1nmpoc1fievkdp8rbv74oke Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240909@174138.7814 fk1fsvc1pfj84eaq66hpf551r7 Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240909@174138.7828 fk1fsvc1pfj84eaq66hpf551r7 Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240909@174138.7893 fk1fsvc1pfj84eaq66hpf551r7 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1884';
20240909@174138.7972 fk1fsvc1pfj84eaq66hpf551r7 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1884';
20240909@174138.8044 fk1fsvc1pfj84eaq66hpf551r7 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1884';
20240909@174138.8075 fk1fsvc1pfj84eaq66hpf551r7 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1884';
20240909@174138.9264 fk1fsvc1pfj84eaq66hpf551r7 Query : use flama_phc
20240909@174138.9268 fk1fsvc1pfj84eaq66hpf551r7 Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240909@174138.9353 fk1fsvc1pfj84eaq66hpf551r7 Query : use flama_phc
20240909@174138.9356 fk1fsvc1pfj84eaq66hpf551r7 Query : select no, estab,szadrsdesc from szadrs where u_coddest=4740
20240909@174138.9479 fk1fsvc1pfj84eaq66hpf551r7 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.719.00.01'
20240909@174138.9661 fk1fsvc1pfj84eaq66hpf551r7 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2057 and bo.obrano = 2405793 and bi.ref ='324.719.00.01' and bi.lordem =1
20240909@174139.7000 fk1fsvc1pfj84eaq66hpf551r7 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'
20240909@174139.1750 fk1fsvc1pfj84eaq66hpf551r7 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2057 and bo.obrano = 2405793 and bi.ref ='324.1578.00.1' and bi.lordem =2
20240909@174139.5070 fk1fsvc1pfj84eaq66hpf551r7 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'
20240909@174139.5280 fk1fsvc1pfj84eaq66hpf551r7 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2057 and bo.obrano = 2405793 and bi.ref ='324.1578.00.1' and bi.lordem =2
20240909@174139.5500 fk1fsvc1pfj84eaq66hpf551r7 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.4585.00.1'
20240909@174139.7350 fk1fsvc1pfj84eaq66hpf551r7 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2057 and bo.obrano = 2405793 and bi.ref ='324.4585.00.1' and bi.lordem =3
20240909@174139.1076 fk1fsvc1pfj84eaq66hpf551r7 Query : use flama_phc
20240909@174139.1080 fk1fsvc1pfj84eaq66hpf551r7 Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20240909@174139.1285 fk1fsvc1pfj84eaq66hpf551r7 Query : use flama_phc
20240909@174139.1289 fk1fsvc1pfj84eaq66hpf551r7 Query : select top 1 1 valor from td where td.ndoc = 39
20240909@174139.1385 fk1fsvc1pfj84eaq66hpf551r7 Query : use flama_phc
20240909@174139.1389 fk1fsvc1pfj84eaq66hpf551r7 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')
20240909@174139.1450 fk1fsvc1pfj84eaq66hpf551r7 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
20240909@174139.1587 fk1fsvc1pfj84eaq66hpf551r7 Query : use flama_phc
20240909@174139.1591 fk1fsvc1pfj84eaq66hpf551r7 Query : select top 1 ~inactivo valor from cl where no = '100810' and estab = 0 order by inactivo desc
20240909@174139.1708 fk1fsvc1pfj84eaq66hpf551r7 Query : use flama_phc
20240909@174139.1711 fk1fsvc1pfj84eaq66hpf551r7 Query : select top 1 tipodoc,regrd from td where ndoc = 39
20240909@174139.1827 fk1fsvc1pfj84eaq66hpf551r7 Query : use flama_phc
20240909@174139.1833 fk1fsvc1pfj84eaq66hpf551r7 Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20240909@174139.1911 fk1fsvc1pfj84eaq66hpf551r7 Query : use flama_phc
20240909@174139.1914 fk1fsvc1pfj84eaq66hpf551r7 Query : select szadrsstamp valor from szadrs where szadrsdesc='100810 - worten-equipamentos para o lar,sa.'
20240909@174139.1960 fk1fsvc1pfj84eaq66hpf551r7 Query : use flama_phc
20240909@174139.1964 fk1fsvc1pfj84eaq66hpf551r7 Query : select 1 valor from td where ndoc = 39
20240909@174139.2050 fk1fsvc1pfj84eaq66hpf551r7 Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20240909@174139.2141 fk1fsvc1pfj84eaq66hpf551r7 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@174139.2455 fk1fsvc1pfj84eaq66hpf551r7 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20240909@174139.2547 fk1fsvc1pfj84eaq66hpf551r7 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@174139.2563 fk1fsvc1pfj84eaq66hpf551r7 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20240909@174139.2598 fk1fsvc1pfj84eaq66hpf551r7 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@174139.2612 fk1fsvc1pfj84eaq66hpf551r7 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20240909@174139.2626 fk1fsvc1pfj84eaq66hpf551r7 Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240909@174139.2842 fk1fsvc1pfj84eaq66hpf551r7 Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240909@174139.2944 fk1fsvc1pfj84eaq66hpf551r7 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@174139.2962 fk1fsvc1pfj84eaq66hpf551r7 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20240909@174139.3031 fk1fsvc1pfj84eaq66hpf551r7 Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut66df26485066df254340' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20240909@174139.3328 fk1fsvc1pfj84eaq66hpf551r7 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@174139.3361 fk1fsvc1pfj84eaq66hpf551r7 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20240909@174139.3407 fk1fsvc1pfj84eaq66hpf551r7 Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20240909@174139.3517 fk1fsvc1pfj84eaq66hpf551r7 Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20240909@174139.3592 fk1fsvc1pfj84eaq66hpf551r7 Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20240909@174139.3666 fk1fsvc1pfj84eaq66hpf551r7 Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20240909@174139.3752 fk1fsvc1pfj84eaq66hpf551r7 Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20240909@174139.3879 fk1fsvc1pfj84eaq66hpf551r7 Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20240909@174139.3972 fk1fsvc1pfj84eaq66hpf551r7 Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut66df26485066df254340',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20240909@174139.4411 fk1fsvc1pfj84eaq66hpf551r7 Query : select top 1 fno valor from wsftdata order by fno desc
20240909@174139.4505 fk1fsvc1pfj84eaq66hpf551r7 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@174139.4524 fk1fsvc1pfj84eaq66hpf551r7 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20240909@174139.4564 fk1fsvc1pfj84eaq66hpf551r7 Query : select 'normal' from dummy
20240909@174139.4683 fk1fsvc1pfj84eaq66hpf551r7 Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut66df26485066df254340',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',645,100810,0,'2024-09-09',39,'euro',0,0,2024 ,?,?)
20240909@174139.5111 fk1fsvc1pfj84eaq66hpf551r7 Query : use flama_phc
20240909@174139.5115 fk1fsvc1pfj84eaq66hpf551r7 Query : select st.usalote valor from st where st.ref = '324.719.00.01'
20240909@174139.5258 fk1fsvc1pfj84eaq66hpf551r7 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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.719.00.01'
20240909@174139.5404 fk1fsvc1pfj84eaq66hpf551r7 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@174139.5422 fk1fsvc1pfj84eaq66hpf551r7 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240909@174139.5453 fk1fsvc1pfj84eaq66hpf551r7 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@174139.5471 fk1fsvc1pfj84eaq66hpf551r7 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240909@174139.5483 fk1fsvc1pfj84eaq66hpf551r7 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240909@174139.5537 fk1fsvc1pfj84eaq66hpf551r7 Query : select sestamp valor from se where ref ='324.719.00.01' and lote = 'r2300383300a'
20240909@174139.5615 fk1fsvc1pfj84eaq66hpf551r7 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@174139.5635 fk1fsvc1pfj84eaq66hpf551r7 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240909@174139.5652 fk1fsvc1pfj84eaq66hpf551r7 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66df25017966df254389','aut66df26485066df254340' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240909@174139.5712 fk1fsvc1pfj84eaq66hpf551r7 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@174139.5731 fk1fsvc1pfj84eaq66hpf551r7 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240909@174139.5766 fk1fsvc1pfj84eaq66hpf551r7 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66df25017966df254389',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',24.000 ,'aut66df26485066df254340' ,0,0 ,2,23.00,10000,?,?,?,?,?)
20240909@174139.6198 fk1fsvc1pfj84eaq66hpf551r7 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@174139.6220 fk1fsvc1pfj84eaq66hpf551r7 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240909@174139.6251 fk1fsvc1pfj84eaq66hpf551r7 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@174139.6273 fk1fsvc1pfj84eaq66hpf551r7 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240909@174139.6282 fk1fsvc1pfj84eaq66hpf551r7 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240909@174139.6296 fk1fsvc1pfj84eaq66hpf551r7 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@174139.6313 fk1fsvc1pfj84eaq66hpf551r7 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240909@174139.6329 fk1fsvc1pfj84eaq66hpf551r7 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66df28260566df254399','aut66df26485066df254340' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240909@174139.6333 fk1fsvc1pfj84eaq66hpf551r7 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@174139.6351 fk1fsvc1pfj84eaq66hpf551r7 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240909@174139.6383 fk1fsvc1pfj84eaq66hpf551r7 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66df28260566df254399',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66df26485066df254340' ,0,0 ,2,23.00,20000,?,?,?)
20240909@174139.6678 fk1fsvc1pfj84eaq66hpf551r7 Query : use flama_phc
20240909@174139.6682 fk1fsvc1pfj84eaq66hpf551r7 Query : select st.usalote valor from st where st.ref = '324.1578.00.1'
20240909@174139.6707 fk1fsvc1pfj84eaq66hpf551r7 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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'
20240909@174139.6878 fk1fsvc1pfj84eaq66hpf551r7 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@174139.6897 fk1fsvc1pfj84eaq66hpf551r7 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240909@174139.6928 fk1fsvc1pfj84eaq66hpf551r7 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@174139.6944 fk1fsvc1pfj84eaq66hpf551r7 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240909@174139.6954 fk1fsvc1pfj84eaq66hpf551r7 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240909@174139.6968 fk1fsvc1pfj84eaq66hpf551r7 Query : select sestamp valor from se where ref ='324.1578.00.1' and lote = 'r2101115200a'
20240909@174139.6995 fk1fsvc1pfj84eaq66hpf551r7 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@174139.7038 fk1fsvc1pfj84eaq66hpf551r7 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240909@174139.7053 fk1fsvc1pfj84eaq66hpf551r7 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66df25331966df2543aa','aut66df26485066df254340' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240909@174139.7059 fk1fsvc1pfj84eaq66hpf551r7 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@174139.7078 fk1fsvc1pfj84eaq66hpf551r7 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240909@174139.7120 fk1fsvc1pfj84eaq66hpf551r7 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66df25331966df2543aa',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',1.000 ,'aut66df26485066df254340' ,0,0 ,2,23.00,40000,?,?,?,?,?)
20240909@174139.7409 fk1fsvc1pfj84eaq66hpf551r7 Query : use flama_phc
20240909@174139.7413 fk1fsvc1pfj84eaq66hpf551r7 Query : select st.usalote valor from st where st.ref = '324.1578.00.1'
20240909@174139.7450 fk1fsvc1pfj84eaq66hpf551r7 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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'
20240909@174139.7468 fk1fsvc1pfj84eaq66hpf551r7 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@174139.7502 fk1fsvc1pfj84eaq66hpf551r7 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240909@174139.7551 fk1fsvc1pfj84eaq66hpf551r7 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@174139.7743 fk1fsvc1pfj84eaq66hpf551r7 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240909@174139.7755 fk1fsvc1pfj84eaq66hpf551r7 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240909@174139.7783 fk1fsvc1pfj84eaq66hpf551r7 Query : select sestamp valor from se where ref ='324.1578.00.1' and lote = 'r2101115200a'
20240909@174139.7801 fk1fsvc1pfj84eaq66hpf551r7 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@174139.7820 fk1fsvc1pfj84eaq66hpf551r7 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240909@174139.7834 fk1fsvc1pfj84eaq66hpf551r7 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66df22147966df2543be','aut66df26485066df254340' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240909@174139.7840 fk1fsvc1pfj84eaq66hpf551r7 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@174139.7863 fk1fsvc1pfj84eaq66hpf551r7 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240909@174139.7908 fk1fsvc1pfj84eaq66hpf551r7 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66df22147966df2543be',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',3.000 ,'aut66df26485066df254340' ,0,0 ,2,23.00,50000,?,?,?,?,?)
20240909@174139.8214 fk1fsvc1pfj84eaq66hpf551r7 Query : use flama_phc
20240909@174139.8218 fk1fsvc1pfj84eaq66hpf551r7 Query : select st.usalote valor from st where st.ref = '324.4585.00.1'
20240909@174139.8246 fk1fsvc1pfj84eaq66hpf551r7 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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.4585.00.1'
20240909@174139.8412 fk1fsvc1pfj84eaq66hpf551r7 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@174139.8431 fk1fsvc1pfj84eaq66hpf551r7 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240909@174139.8461 fk1fsvc1pfj84eaq66hpf551r7 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@174139.8493 fk1fsvc1pfj84eaq66hpf551r7 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240909@174139.8504 fk1fsvc1pfj84eaq66hpf551r7 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240909@174139.8517 fk1fsvc1pfj84eaq66hpf551r7 Query : select sestamp valor from se where ref ='324.4585.00.1' and lote = 'r2300381200a'
20240909@174139.8549 fk1fsvc1pfj84eaq66hpf551r7 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@174139.8568 fk1fsvc1pfj84eaq66hpf551r7 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240909@174139.8583 fk1fsvc1pfj84eaq66hpf551r7 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66df28798766df2543d0','aut66df26485066df254340' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240909@174139.8587 fk1fsvc1pfj84eaq66hpf551r7 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@174139.8606 fk1fsvc1pfj84eaq66hpf551r7 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240909@174139.8640 fk1fsvc1pfj84eaq66hpf551r7 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66df28798766df2543d0',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',4.000 ,'aut66df26485066df254340' ,0,0 ,2,23.00,60000,?,?,?,?,?)
20240909@174139.8950 fk1fsvc1pfj84eaq66hpf551r7 Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut66df26485066df254340','2405793','wait',39,'adm09112754980.682000002')
20240909@174139.9178 fk1fsvc1pfj84eaq66hpf551r7 Query : use flama_phc
20240909@174139.9262 fk1fsvc1pfj84eaq66hpf551r7 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240909@174140.2160 fk1fsvc1pfj84eaq66hpf551r7 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1884';
20240909@174140.2520 fk1fsvc1pfj84eaq66hpf551r7 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1884';
20240909@174140.3030 fk1fsvc1pfj84eaq66hpf551r7 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1884';
20240909@174140.3280 fk1fsvc1pfj84eaq66hpf551r7 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1884';
20240909@174140.1167 hcqha44du7dghqc5ab9ds3q0hh Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240909@174140.1179 hcqha44du7dghqc5ab9ds3q0hh Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240909@174140.1243 hcqha44du7dghqc5ab9ds3q0hh Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1885';
20240909@174140.1302 hcqha44du7dghqc5ab9ds3q0hh Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1885';
20240909@174140.1360 hcqha44du7dghqc5ab9ds3q0hh Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1885';
20240909@174140.1393 hcqha44du7dghqc5ab9ds3q0hh Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1885';
20240909@174140.1444 hcqha44du7dghqc5ab9ds3q0hh Query : use flama_phc
20240909@174140.1449 hcqha44du7dghqc5ab9ds3q0hh Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240909@174140.1531 hcqha44du7dghqc5ab9ds3q0hh Query : use flama_phc
20240909@174140.1535 hcqha44du7dghqc5ab9ds3q0hh Query : select no, estab,szadrsdesc from szadrs where u_coddest=6258
20240909@174140.1650 hcqha44du7dghqc5ab9ds3q0hh Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.4964.00.1'
20240909@174140.1818 hcqha44du7dghqc5ab9ds3q0hh Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2057 and bo.obrano = 2405795 and bi.ref ='324.4964.00.1' and bi.lordem =1
20240909@174140.2162 hcqha44du7dghqc5ab9ds3q0hh Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.945.00.01'
20240909@174140.2354 hcqha44du7dghqc5ab9ds3q0hh Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2057 and bo.obrano = 2405795 and bi.ref ='324.945.00.01' and bi.lordem =2
20240909@174140.2686 hcqha44du7dghqc5ab9ds3q0hh Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.642.00.01'
20240909@174140.2851 hcqha44du7dghqc5ab9ds3q0hh Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2057 and bo.obrano = 2405795 and bi.ref ='324.642.00.01' and bi.lordem =3
20240909@174140.3243 hcqha44du7dghqc5ab9ds3q0hh Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1705.00.1'
20240909@174140.3410 hcqha44du7dghqc5ab9ds3q0hh Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2057 and bo.obrano = 2405795 and bi.ref ='324.1705.00.1' and bi.lordem =4
20240909@174140.3736 hcqha44du7dghqc5ab9ds3q0hh Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.5540.00.1'
20240909@174140.3911 hcqha44du7dghqc5ab9ds3q0hh Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2057 and bo.obrano = 2405795 and bi.ref ='324.5540.00.1' and bi.lordem =5
20240909@174140.4262 hcqha44du7dghqc5ab9ds3q0hh Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.5343.00.1'
20240909@174140.4440 hcqha44du7dghqc5ab9ds3q0hh Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2057 and bo.obrano = 2405795 and bi.ref ='324.5343.00.1' and bi.lordem =6
20240909@174140.4807 hcqha44du7dghqc5ab9ds3q0hh Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.670.00.01'
20240909@174140.5006 hcqha44du7dghqc5ab9ds3q0hh Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2057 and bo.obrano = 2405795 and bi.ref ='324.670.00.01' and bi.lordem =7
20240909@174140.5381 hcqha44du7dghqc5ab9ds3q0hh Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.670.00.01'
20240909@174140.5403 hcqha44du7dghqc5ab9ds3q0hh Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2057 and bo.obrano = 2405795 and bi.ref ='324.670.00.01' and bi.lordem =8
20240909@174140.5735 hcqha44du7dghqc5ab9ds3q0hh Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.670.00.01'
20240909@174140.5759 hcqha44du7dghqc5ab9ds3q0hh Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2057 and bo.obrano = 2405795 and bi.ref ='324.670.00.01' and bi.lordem =8
20240909@174140.5779 hcqha44du7dghqc5ab9ds3q0hh Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.670.00.01'
20240909@174140.5800 hcqha44du7dghqc5ab9ds3q0hh Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2057 and bo.obrano = 2405795 and bi.ref ='324.670.00.01' and bi.lordem =8
20240909@174140.5818 hcqha44du7dghqc5ab9ds3q0hh Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.670.00.01'
20240909@174140.5840 hcqha44du7dghqc5ab9ds3q0hh Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2057 and bo.obrano = 2405795 and bi.ref ='324.670.00.01' and bi.lordem =8
20240909@174140.5859 hcqha44du7dghqc5ab9ds3q0hh Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.670.00.01'
20240909@174140.5882 hcqha44du7dghqc5ab9ds3q0hh Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2057 and bo.obrano = 2405795 and bi.ref ='324.670.00.01' and bi.lordem =8
20240909@174140.5901 hcqha44du7dghqc5ab9ds3q0hh Query : use flama_phc
20240909@174140.5905 hcqha44du7dghqc5ab9ds3q0hh Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20240909@174140.5942 hcqha44du7dghqc5ab9ds3q0hh Query : use flama_phc
20240909@174140.5946 hcqha44du7dghqc5ab9ds3q0hh Query : select top 1 1 valor from td where td.ndoc = 39
20240909@174140.5978 hcqha44du7dghqc5ab9ds3q0hh Query : use flama_phc
20240909@174140.5981 hcqha44du7dghqc5ab9ds3q0hh 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')
20240909@174140.6013 hcqha44du7dghqc5ab9ds3q0hh 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
20240909@174140.6054 hcqha44du7dghqc5ab9ds3q0hh Query : use flama_phc
20240909@174140.6059 hcqha44du7dghqc5ab9ds3q0hh Query : select top 1 ~inactivo valor from cl where no = '200500' and estab = 0 order by inactivo desc
20240909@174140.6192 hcqha44du7dghqc5ab9ds3q0hh Query : use flama_phc
20240909@174140.6196 hcqha44du7dghqc5ab9ds3q0hh Query : select top 1 tipodoc,regrd from td where ndoc = 39
20240909@174140.6230 hcqha44du7dghqc5ab9ds3q0hh Query : use flama_phc
20240909@174140.6235 hcqha44du7dghqc5ab9ds3q0hh Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20240909@174140.6280 hcqha44du7dghqc5ab9ds3q0hh Query : use flama_phc
20240909@174140.6284 hcqha44du7dghqc5ab9ds3q0hh Query : select szadrsstamp valor from szadrs where szadrsdesc='iiruñadis sl'
20240909@174140.6333 hcqha44du7dghqc5ab9ds3q0hh Query : use flama_phc
20240909@174140.6337 hcqha44du7dghqc5ab9ds3q0hh Query : select 1 valor from td where ndoc = 39
20240909@174140.6352 hcqha44du7dghqc5ab9ds3q0hh Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20240909@174140.6370 hcqha44du7dghqc5ab9ds3q0hh Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@174140.6389 hcqha44du7dghqc5ab9ds3q0hh Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20240909@174140.6413 hcqha44du7dghqc5ab9ds3q0hh Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@174140.6431 hcqha44du7dghqc5ab9ds3q0hh Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20240909@174140.6467 hcqha44du7dghqc5ab9ds3q0hh Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@174140.6483 hcqha44du7dghqc5ab9ds3q0hh Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20240909@174140.6497 hcqha44du7dghqc5ab9ds3q0hh Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240909@174140.6571 hcqha44du7dghqc5ab9ds3q0hh Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240909@174140.6588 hcqha44du7dghqc5ab9ds3q0hh Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@174140.6652 hcqha44du7dghqc5ab9ds3q0hh Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20240909@174140.6671 hcqha44du7dghqc5ab9ds3q0hh Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut66df26949366df25449e' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20240909@174140.6865 hcqha44du7dghqc5ab9ds3q0hh Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@174140.6885 hcqha44du7dghqc5ab9ds3q0hh Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20240909@174140.6925 hcqha44du7dghqc5ab9ds3q0hh Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20240909@174140.6939 hcqha44du7dghqc5ab9ds3q0hh Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20240909@174140.6955 hcqha44du7dghqc5ab9ds3q0hh Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20240909@174140.6968 hcqha44du7dghqc5ab9ds3q0hh Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20240909@174140.6984 hcqha44du7dghqc5ab9ds3q0hh Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20240909@174140.6999 hcqha44du7dghqc5ab9ds3q0hh Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20240909@174140.7012 hcqha44du7dghqc5ab9ds3q0hh Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut66df26949366df25449e',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20240909@174140.7305 hcqha44du7dghqc5ab9ds3q0hh Query : select top 1 fno valor from wsftdata order by fno desc
20240909@174140.7328 hcqha44du7dghqc5ab9ds3q0hh Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@174140.7345 hcqha44du7dghqc5ab9ds3q0hh Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20240909@174140.7373 hcqha44du7dghqc5ab9ds3q0hh Query : select 'normal' from dummy
20240909@174140.7392 hcqha44du7dghqc5ab9ds3q0hh Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut66df26949366df25449e',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',646,200500,0,'2024-09-09',39,'euro',0,0,2024 ,?,?)
20240909@174140.7719 hcqha44du7dghqc5ab9ds3q0hh Query : use flama_phc
20240909@174140.7723 hcqha44du7dghqc5ab9ds3q0hh Query : select st.usalote valor from st where st.ref = '324.4964.00.1'
20240909@174140.7900 hcqha44du7dghqc5ab9ds3q0hh Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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.4964.00.1'
20240909@174140.9258 hcqha44du7dghqc5ab9ds3q0hh Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@174140.9276 hcqha44du7dghqc5ab9ds3q0hh Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240909@174140.9309 hcqha44du7dghqc5ab9ds3q0hh Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@174140.9328 hcqha44du7dghqc5ab9ds3q0hh Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240909@174140.9358 hcqha44du7dghqc5ab9ds3q0hh Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240909@174140.9373 hcqha44du7dghqc5ab9ds3q0hh Query : select sestamp valor from se where ref ='324.4964.00.1' and lote = 'r2300717100a'
20240909@174140.9388 hcqha44du7dghqc5ab9ds3q0hh Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@174140.9407 hcqha44du7dghqc5ab9ds3q0hh Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240909@174140.9422 hcqha44du7dghqc5ab9ds3q0hh Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66df28060966df2544e5','aut66df26949366df25449e' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240909@174140.9426 hcqha44du7dghqc5ab9ds3q0hh Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@174140.9442 hcqha44du7dghqc5ab9ds3q0hh Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240909@174140.9475 hcqha44du7dghqc5ab9ds3q0hh Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66df28060966df2544e5',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',4.000 ,'aut66df26949366df25449e' ,0,0 ,2,23.00,10000,?,?,?,?,?)
20240909@174140.9777 hcqha44du7dghqc5ab9ds3q0hh Query : use flama_phc
20240909@174140.9781 hcqha44du7dghqc5ab9ds3q0hh Query : select st.usalote valor from st where st.ref = '324.945.00.01'
20240909@174140.9804 hcqha44du7dghqc5ab9ds3q0hh Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.945.00.01'
20240909@174140.9956 hcqha44du7dghqc5ab9ds3q0hh Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@174140.9973 hcqha44du7dghqc5ab9ds3q0hh Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240909@174141.5000 hcqha44du7dghqc5ab9ds3q0hh Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@174141.2200 hcqha44du7dghqc5ab9ds3q0hh Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240909@174141.3200 hcqha44du7dghqc5ab9ds3q0hh Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240909@174141.4600 hcqha44du7dghqc5ab9ds3q0hh Query : select sestamp valor from se where ref ='324.945.00.01' and lote = 'r2200799100a'
20240909@174141.6300 hcqha44du7dghqc5ab9ds3q0hh Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@174141.8300 hcqha44du7dghqc5ab9ds3q0hh Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240909@174141.9700 hcqha44du7dghqc5ab9ds3q0hh Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66df29033166df254501','aut66df26949366df25449e' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240909@174141.1010 hcqha44du7dghqc5ab9ds3q0hh Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@174141.1190 hcqha44du7dghqc5ab9ds3q0hh Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240909@174141.1520 hcqha44du7dghqc5ab9ds3q0hh Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66df29033166df254501',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',12.000 ,'aut66df26949366df25449e' ,0,0 ,2,23.00,20000,?,?,?,?,?)
20240909@174141.4210 hcqha44du7dghqc5ab9ds3q0hh Query : use flama_phc
20240909@174141.4240 hcqha44du7dghqc5ab9ds3q0hh Query : select st.usalote valor from st where st.ref = '324.642.00.01'
20240909@174141.4480 hcqha44du7dghqc5ab9ds3q0hh Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.642.00.01'
20240909@174141.5990 hcqha44du7dghqc5ab9ds3q0hh Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@174141.6180 hcqha44du7dghqc5ab9ds3q0hh Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240909@174141.6490 hcqha44du7dghqc5ab9ds3q0hh Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@174141.6650 hcqha44du7dghqc5ab9ds3q0hh Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240909@174141.6760 hcqha44du7dghqc5ab9ds3q0hh Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240909@174141.6900 hcqha44du7dghqc5ab9ds3q0hh Query : select sestamp valor from se where ref ='324.642.00.01' and lote = 'r2100892200a'
20240909@174141.7250 hcqha44du7dghqc5ab9ds3q0hh Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@174141.7410 hcqha44du7dghqc5ab9ds3q0hh Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240909@174141.7570 hcqha44du7dghqc5ab9ds3q0hh Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66df27651766df254511','aut66df26949366df25449e' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240909@174141.7630 hcqha44du7dghqc5ab9ds3q0hh Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@174141.7810 hcqha44du7dghqc5ab9ds3q0hh Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240909@174141.8160 hcqha44du7dghqc5ab9ds3q0hh Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66df27651766df254511',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',2.000 ,'aut66df26949366df25449e' ,0,0 ,2,23.00,30000,?,?,?,?,?)
20240909@174141.1109 hcqha44du7dghqc5ab9ds3q0hh Query : use flama_phc
20240909@174141.1112 hcqha44du7dghqc5ab9ds3q0hh Query : select st.usalote valor from st where st.ref = '324.1705.00.1'
20240909@174141.1137 hcqha44du7dghqc5ab9ds3q0hh Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.1705.00.1'
20240909@174141.1302 hcqha44du7dghqc5ab9ds3q0hh Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@174141.1319 hcqha44du7dghqc5ab9ds3q0hh Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240909@174141.1351 hcqha44du7dghqc5ab9ds3q0hh Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@174141.1367 hcqha44du7dghqc5ab9ds3q0hh Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240909@174141.1378 hcqha44du7dghqc5ab9ds3q0hh Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240909@174141.1392 hcqha44du7dghqc5ab9ds3q0hh Query : select sestamp valor from se where ref ='324.1705.00.1' and lote = 'r2400050500a'
20240909@174141.1408 hcqha44du7dghqc5ab9ds3q0hh Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@174141.1424 hcqha44du7dghqc5ab9ds3q0hh Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240909@174141.1439 hcqha44du7dghqc5ab9ds3q0hh Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66df21954666df254522','aut66df26949366df25449e' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240909@174141.1444 hcqha44du7dghqc5ab9ds3q0hh Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@174141.1460 hcqha44du7dghqc5ab9ds3q0hh Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240909@174141.1491 hcqha44du7dghqc5ab9ds3q0hh Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66df21954666df254522',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',4.000 ,'aut66df26949366df25449e' ,0,0 ,2,23.00,40000,?,?,?,?,?)
20240909@174141.1766 hcqha44du7dghqc5ab9ds3q0hh Query : use flama_phc
20240909@174141.1770 hcqha44du7dghqc5ab9ds3q0hh Query : select st.usalote valor from st where st.ref = '324.5540.00.1'
20240909@174141.1800 hcqha44du7dghqc5ab9ds3q0hh Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.5540.00.1'
20240909@174141.1962 hcqha44du7dghqc5ab9ds3q0hh Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@174141.1983 hcqha44du7dghqc5ab9ds3q0hh Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240909@174141.2015 hcqha44du7dghqc5ab9ds3q0hh Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@174141.2034 hcqha44du7dghqc5ab9ds3q0hh Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240909@174141.2043 hcqha44du7dghqc5ab9ds3q0hh Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240909@174141.2057 hcqha44du7dghqc5ab9ds3q0hh Query : select sestamp valor from se where ref ='324.5540.00.1' and lote = 'r2300830100a'
20240909@174141.2073 hcqha44du7dghqc5ab9ds3q0hh Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@174141.2089 hcqha44du7dghqc5ab9ds3q0hh Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240909@174141.2105 hcqha44du7dghqc5ab9ds3q0hh Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66df29788966df254532','aut66df26949366df25449e' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240909@174141.2109 hcqha44du7dghqc5ab9ds3q0hh Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@174141.2126 hcqha44du7dghqc5ab9ds3q0hh Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240909@174141.2161 hcqha44du7dghqc5ab9ds3q0hh Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66df29788966df254532',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',1.000 ,'aut66df26949366df25449e' ,0,0 ,2,23.00,50000,?,?,?,?,?)
20240909@174141.2512 hcqha44du7dghqc5ab9ds3q0hh Query : use flama_phc
20240909@174141.2517 hcqha44du7dghqc5ab9ds3q0hh Query : select st.usalote valor from st where st.ref = '324.5343.00.1'
20240909@174141.2544 hcqha44du7dghqc5ab9ds3q0hh Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.5343.00.1'
20240909@174141.2722 hcqha44du7dghqc5ab9ds3q0hh Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@174141.2749 hcqha44du7dghqc5ab9ds3q0hh Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
