20240726@080250.8248 5clg5r1ksarbh1bucdjohmo7qh Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240726@080250.8265 5clg5r1ksarbh1bucdjohmo7qh Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240726@080250.8296 5clg5r1ksarbh1bucdjohmo7qh Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66a341810866a34a1ac8',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66a344757366a34a1949' ,0,0 ,2,23.00,290000,?,?,?)
20240726@080250.8618 5clg5r1ksarbh1bucdjohmo7qh Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut66a344757366a34a1949','2404955','wait',39,'adm09112754980.682000002')
20240726@080250.8697 5clg5r1ksarbh1bucdjohmo7qh Query : use flama_phc
20240726@080250.8700 5clg5r1ksarbh1bucdjohmo7qh Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240726@080250.8730 5clg5r1ksarbh1bucdjohmo7qh Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1177';
20240726@080250.8753 5clg5r1ksarbh1bucdjohmo7qh Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1177';
20240726@080250.8791 5clg5r1ksarbh1bucdjohmo7qh Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1177';
20240726@080250.8816 5clg5r1ksarbh1bucdjohmo7qh Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1177';
20240726@080250.9380 gbhmbnmale9q15ol2r0o0f33rs Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240726@080250.9393 gbhmbnmale9q15ol2r0o0f33rs Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240726@080250.9457 gbhmbnmale9q15ol2r0o0f33rs Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1178';
20240726@080250.9570 gbhmbnmale9q15ol2r0o0f33rs Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1178';
20240726@080250.9622 gbhmbnmale9q15ol2r0o0f33rs Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1178';
20240726@080250.9644 gbhmbnmale9q15ol2r0o0f33rs Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1178';
20240726@080250.9711 gbhmbnmale9q15ol2r0o0f33rs Query : use flama_phc
20240726@080250.9714 gbhmbnmale9q15ol2r0o0f33rs Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240726@080251.2500 gbhmbnmale9q15ol2r0o0f33rs Query : use flama_phc
20240726@080251.2900 gbhmbnmale9q15ol2r0o0f33rs Query : select no, estab,szadrsdesc from szadrs where u_coddest=743
20240726@080251.1220 gbhmbnmale9q15ol2r0o0f33rs Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.691.00.01'
20240726@080251.2930 gbhmbnmale9q15ol2r0o0f33rs Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2049 and bo.obrano = 2404956 and bi.ref ='324.691.00.01' and bi.lordem =1
20240726@080251.6420 gbhmbnmale9q15ol2r0o0f33rs Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1667.00.1'
20240726@080251.8270 gbhmbnmale9q15ol2r0o0f33rs Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2049 and bo.obrano = 2404956 and bi.ref ='324.1667.00.1' and bi.lordem =2
20240726@080251.1439 gbhmbnmale9q15ol2r0o0f33rs Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.692.00.01'
20240726@080251.1607 gbhmbnmale9q15ol2r0o0f33rs Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2049 and bo.obrano = 2404956 and bi.ref ='324.692.00.01' and bi.lordem =3
20240726@080251.1989 gbhmbnmale9q15ol2r0o0f33rs Query : use flama_phc
20240726@080251.1993 gbhmbnmale9q15ol2r0o0f33rs Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20240726@080251.2026 gbhmbnmale9q15ol2r0o0f33rs Query : use flama_phc
20240726@080251.2045 gbhmbnmale9q15ol2r0o0f33rs Query : select top 1 1 valor from td where td.ndoc = 39
20240726@080251.2075 gbhmbnmale9q15ol2r0o0f33rs Query : use flama_phc
20240726@080251.2078 gbhmbnmale9q15ol2r0o0f33rs 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')
20240726@080251.2140 gbhmbnmale9q15ol2r0o0f33rs 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
20240726@080251.2349 gbhmbnmale9q15ol2r0o0f33rs Query : use flama_phc
20240726@080251.2353 gbhmbnmale9q15ol2r0o0f33rs Query : select top 1 ~inactivo valor from cl where no = '100497' and estab = 0 order by inactivo desc
20240726@080251.2491 gbhmbnmale9q15ol2r0o0f33rs Query : use flama_phc
20240726@080251.2495 gbhmbnmale9q15ol2r0o0f33rs Query : select top 1 tipodoc,regrd from td where ndoc = 39
20240726@080251.2530 gbhmbnmale9q15ol2r0o0f33rs Query : use flama_phc
20240726@080251.2534 gbhmbnmale9q15ol2r0o0f33rs Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20240726@080251.2573 gbhmbnmale9q15ol2r0o0f33rs Query : use flama_phc
20240726@080251.2576 gbhmbnmale9q15ol2r0o0f33rs Query : select szadrsstamp valor from szadrs where szadrsdesc='utilar-utilidades para o lar, lda.'
20240726@080251.2623 gbhmbnmale9q15ol2r0o0f33rs Query : use flama_phc
20240726@080251.2626 gbhmbnmale9q15ol2r0o0f33rs Query : select 1 valor from td where ndoc = 39
20240726@080251.2640 gbhmbnmale9q15ol2r0o0f33rs Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20240726@080251.2656 gbhmbnmale9q15ol2r0o0f33rs Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240726@080251.2680 gbhmbnmale9q15ol2r0o0f33rs Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20240726@080251.2705 gbhmbnmale9q15ol2r0o0f33rs Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240726@080251.2720 gbhmbnmale9q15ol2r0o0f33rs Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20240726@080251.2751 gbhmbnmale9q15ol2r0o0f33rs Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240726@080251.2766 gbhmbnmale9q15ol2r0o0f33rs Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20240726@080251.2780 gbhmbnmale9q15ol2r0o0f33rs Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240726@080251.2853 gbhmbnmale9q15ol2r0o0f33rs Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240726@080251.2866 gbhmbnmale9q15ol2r0o0f33rs Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240726@080251.2882 gbhmbnmale9q15ol2r0o0f33rs Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20240726@080251.2924 gbhmbnmale9q15ol2r0o0f33rs Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut66a349552766a34a1b43' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20240726@080251.3222 gbhmbnmale9q15ol2r0o0f33rs Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240726@080251.3258 gbhmbnmale9q15ol2r0o0f33rs Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20240726@080251.3296 gbhmbnmale9q15ol2r0o0f33rs Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20240726@080251.3310 gbhmbnmale9q15ol2r0o0f33rs Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20240726@080251.3323 gbhmbnmale9q15ol2r0o0f33rs Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20240726@080251.3338 gbhmbnmale9q15ol2r0o0f33rs Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20240726@080251.3351 gbhmbnmale9q15ol2r0o0f33rs Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20240726@080251.3366 gbhmbnmale9q15ol2r0o0f33rs Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20240726@080251.3382 gbhmbnmale9q15ol2r0o0f33rs Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut66a349552766a34a1b43',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20240726@080251.3647 gbhmbnmale9q15ol2r0o0f33rs Query : select top 1 fno valor from wsftdata order by fno desc
20240726@080251.3666 gbhmbnmale9q15ol2r0o0f33rs Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240726@080251.3685 gbhmbnmale9q15ol2r0o0f33rs Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20240726@080251.3711 gbhmbnmale9q15ol2r0o0f33rs Query : select 'normal' from dummy
20240726@080251.3729 gbhmbnmale9q15ol2r0o0f33rs Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut66a349552766a34a1b43',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',30,100497,0,'2024-07-26',39,'euro',0,0,2024 ,?,?)
20240726@080251.4088 gbhmbnmale9q15ol2r0o0f33rs Query : use flama_phc
20240726@080251.4091 gbhmbnmale9q15ol2r0o0f33rs Query : select st.usalote valor from st where st.ref = '324.691.00.01'
20240726@080251.4121 gbhmbnmale9q15ol2r0o0f33rs Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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'
20240726@080251.4284 gbhmbnmale9q15ol2r0o0f33rs Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240726@080251.4302 gbhmbnmale9q15ol2r0o0f33rs Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240726@080251.4332 gbhmbnmale9q15ol2r0o0f33rs Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240726@080251.4347 gbhmbnmale9q15ol2r0o0f33rs Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240726@080251.4356 gbhmbnmale9q15ol2r0o0f33rs Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240726@080251.4368 gbhmbnmale9q15ol2r0o0f33rs Query : select sestamp valor from se where ref ='324.691.00.01' and lote = 'r2400209200a'
20240726@080251.4390 gbhmbnmale9q15ol2r0o0f33rs Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240726@080251.4407 gbhmbnmale9q15ol2r0o0f33rs Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240726@080251.4423 gbhmbnmale9q15ol2r0o0f33rs Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66a347999966a34a1b6b','aut66a349552766a34a1b43' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240726@080251.4427 gbhmbnmale9q15ol2r0o0f33rs Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240726@080251.4443 gbhmbnmale9q15ol2r0o0f33rs Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240726@080251.4473 gbhmbnmale9q15ol2r0o0f33rs Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66a347999966a34a1b6b',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',3.000 ,'aut66a349552766a34a1b43' ,0,0 ,2,23.00,10000,?,?,?,?,?)
20240726@080251.4758 gbhmbnmale9q15ol2r0o0f33rs Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240726@080251.4778 gbhmbnmale9q15ol2r0o0f33rs Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240726@080251.4802 gbhmbnmale9q15ol2r0o0f33rs Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240726@080251.4817 gbhmbnmale9q15ol2r0o0f33rs Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240726@080251.4826 gbhmbnmale9q15ol2r0o0f33rs Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240726@080251.4838 gbhmbnmale9q15ol2r0o0f33rs Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240726@080251.4855 gbhmbnmale9q15ol2r0o0f33rs Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240726@080251.4871 gbhmbnmale9q15ol2r0o0f33rs Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66a340306866a34a1b76','aut66a349552766a34a1b43' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240726@080251.4877 gbhmbnmale9q15ol2r0o0f33rs Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240726@080251.4893 gbhmbnmale9q15ol2r0o0f33rs Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240726@080251.5020 gbhmbnmale9q15ol2r0o0f33rs Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66a340306866a34a1b76',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66a349552766a34a1b43' ,0,0 ,2,23.00,20000,?,?,?)
20240726@080251.5312 gbhmbnmale9q15ol2r0o0f33rs Query : use flama_phc
20240726@080251.5316 gbhmbnmale9q15ol2r0o0f33rs Query : select st.usalote valor from st where st.ref = '324.1667.00.1'
20240726@080251.5338 gbhmbnmale9q15ol2r0o0f33rs Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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'
20240726@080251.5513 gbhmbnmale9q15ol2r0o0f33rs Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240726@080251.5531 gbhmbnmale9q15ol2r0o0f33rs Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240726@080251.5687 gbhmbnmale9q15ol2r0o0f33rs Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240726@080251.5705 gbhmbnmale9q15ol2r0o0f33rs Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240726@080251.5723 gbhmbnmale9q15ol2r0o0f33rs Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240726@080251.5738 gbhmbnmale9q15ol2r0o0f33rs Query : select sestamp valor from se where ref ='324.1667.00.1' and lote = 'r2400065200a'
20240726@080251.5788 gbhmbnmale9q15ol2r0o0f33rs Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240726@080251.5807 gbhmbnmale9q15ol2r0o0f33rs Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240726@080251.5824 gbhmbnmale9q15ol2r0o0f33rs Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66a349008766a34a1b8d','aut66a349552766a34a1b43' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240726@080251.5829 gbhmbnmale9q15ol2r0o0f33rs Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240726@080251.5914 gbhmbnmale9q15ol2r0o0f33rs Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240726@080251.5942 gbhmbnmale9q15ol2r0o0f33rs Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66a349008766a34a1b8d',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',2.000 ,'aut66a349552766a34a1b43' ,0,0 ,2,23.00,40000,?,?,?,?,?)
20240726@080251.6321 gbhmbnmale9q15ol2r0o0f33rs Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240726@080251.6341 gbhmbnmale9q15ol2r0o0f33rs Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240726@080251.6367 gbhmbnmale9q15ol2r0o0f33rs Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240726@080251.6385 gbhmbnmale9q15ol2r0o0f33rs Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240726@080251.6393 gbhmbnmale9q15ol2r0o0f33rs Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240726@080251.6405 gbhmbnmale9q15ol2r0o0f33rs Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240726@080251.6427 gbhmbnmale9q15ol2r0o0f33rs Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240726@080251.6439 gbhmbnmale9q15ol2r0o0f33rs Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66a349714266a34a1b9c','aut66a349552766a34a1b43' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240726@080251.6446 gbhmbnmale9q15ol2r0o0f33rs Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240726@080251.6468 gbhmbnmale9q15ol2r0o0f33rs Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240726@080251.6497 gbhmbnmale9q15ol2r0o0f33rs Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66a349714266a34a1b9c',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66a349552766a34a1b43' ,0,0 ,2,23.00,50000,?,?,?)
20240726@080251.6873 gbhmbnmale9q15ol2r0o0f33rs Query : use flama_phc
20240726@080251.6877 gbhmbnmale9q15ol2r0o0f33rs Query : select st.usalote valor from st where st.ref = '324.692.00.01'
20240726@080251.6901 gbhmbnmale9q15ol2r0o0f33rs Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.692.00.01'
20240726@080251.7085 gbhmbnmale9q15ol2r0o0f33rs Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240726@080251.7174 gbhmbnmale9q15ol2r0o0f33rs Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240726@080251.7206 gbhmbnmale9q15ol2r0o0f33rs Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240726@080251.7226 gbhmbnmale9q15ol2r0o0f33rs Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240726@080251.7237 gbhmbnmale9q15ol2r0o0f33rs Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240726@080251.7249 gbhmbnmale9q15ol2r0o0f33rs Query : select sestamp valor from se where ref ='324.692.00.01' and lote = 'r2400062200a'
20240726@080251.7261 gbhmbnmale9q15ol2r0o0f33rs Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240726@080251.7279 gbhmbnmale9q15ol2r0o0f33rs Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240726@080251.7293 gbhmbnmale9q15ol2r0o0f33rs Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66a344129966a34a1bb1','aut66a349552766a34a1b43' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240726@080251.7314 gbhmbnmale9q15ol2r0o0f33rs Query : use flama_phc
20240726@080251.7317 gbhmbnmale9q15ol2r0o0f33rs Query : select top 1 errorresult result ,errornumber errornumber ,descriptionpt description ,isnull(descriptionen,'') descriptionen ,isnull(descriptionfr,'') descriptionfr from wserrorcodes where errornumber = -116
20240726@080251.7455 gbhmbnmale9q15ol2r0o0f33rs Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1178';
20240726@080251.7480 gbhmbnmale9q15ol2r0o0f33rs Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1178';
20240726@080251.8174 005mue8qhq2g8qado0t64s4id2 Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240726@080251.8194 005mue8qhq2g8qado0t64s4id2 Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240726@080251.8242 005mue8qhq2g8qado0t64s4id2 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1179';
20240726@080251.8302 005mue8qhq2g8qado0t64s4id2 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1179';
20240726@080251.8360 005mue8qhq2g8qado0t64s4id2 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1179';
20240726@080251.8386 005mue8qhq2g8qado0t64s4id2 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1179';
20240726@080251.8446 005mue8qhq2g8qado0t64s4id2 Query : use flama_phc
20240726@080251.8476 005mue8qhq2g8qado0t64s4id2 Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240726@080251.8548 005mue8qhq2g8qado0t64s4id2 Query : use flama_phc
20240726@080251.8552 005mue8qhq2g8qado0t64s4id2 Query : select no, estab,szadrsdesc from szadrs where u_coddest=210
20240726@080251.8659 005mue8qhq2g8qado0t64s4id2 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.4970.00.1'
20240726@080251.8849 005mue8qhq2g8qado0t64s4id2 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2049 and bo.obrano = 2404957 and bi.ref ='324.4970.00.1' and bi.lordem =1
20240726@080251.9280 005mue8qhq2g8qado0t64s4id2 Query : use flama_phc
20240726@080251.9284 005mue8qhq2g8qado0t64s4id2 Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20240726@080251.9344 005mue8qhq2g8qado0t64s4id2 Query : use flama_phc
20240726@080251.9348 005mue8qhq2g8qado0t64s4id2 Query : select top 1 1 valor from td where td.ndoc = 39
20240726@080251.9378 005mue8qhq2g8qado0t64s4id2 Query : use flama_phc
20240726@080251.9381 005mue8qhq2g8qado0t64s4id2 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')
20240726@080251.9410 005mue8qhq2g8qado0t64s4id2 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
20240726@080251.9447 005mue8qhq2g8qado0t64s4id2 Query : use flama_phc
20240726@080251.9450 005mue8qhq2g8qado0t64s4id2 Query : select top 1 ~inactivo valor from cl where no = '101895' and estab = 0 order by inactivo desc
20240726@080251.9600 005mue8qhq2g8qado0t64s4id2 Query : use flama_phc
20240726@080251.9604 005mue8qhq2g8qado0t64s4id2 Query : select top 1 tipodoc,regrd from td where ndoc = 39
20240726@080251.9638 005mue8qhq2g8qado0t64s4id2 Query : use flama_phc
20240726@080251.9642 005mue8qhq2g8qado0t64s4id2 Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20240726@080251.9710 005mue8qhq2g8qado0t64s4id2 Query : use flama_phc
20240726@080251.9714 005mue8qhq2g8qado0t64s4id2 Query : select szadrsstamp valor from szadrs where szadrsdesc='quase bom-com.de electrodomÉsticos, lda.-pombal'
20240726@080251.9787 005mue8qhq2g8qado0t64s4id2 Query : use flama_phc
20240726@080251.9790 005mue8qhq2g8qado0t64s4id2 Query : select 1 valor from td where ndoc = 39
20240726@080251.9804 005mue8qhq2g8qado0t64s4id2 Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20240726@080251.9836 005mue8qhq2g8qado0t64s4id2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240726@080251.9911 005mue8qhq2g8qado0t64s4id2 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20240726@080251.9932 005mue8qhq2g8qado0t64s4id2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240726@080251.9949 005mue8qhq2g8qado0t64s4id2 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20240726@080251.9980 005mue8qhq2g8qado0t64s4id2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240726@080251.9995 005mue8qhq2g8qado0t64s4id2 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20240726@080252.9000 005mue8qhq2g8qado0t64s4id2 Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240726@080252.8700 005mue8qhq2g8qado0t64s4id2 Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240726@080252.1020 005mue8qhq2g8qado0t64s4id2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240726@080252.1210 005mue8qhq2g8qado0t64s4id2 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20240726@080252.1390 005mue8qhq2g8qado0t64s4id2 Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut66a348052666a34a1c00' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20240726@080252.3160 005mue8qhq2g8qado0t64s4id2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240726@080252.3360 005mue8qhq2g8qado0t64s4id2 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20240726@080252.3690 005mue8qhq2g8qado0t64s4id2 Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20240726@080252.3820 005mue8qhq2g8qado0t64s4id2 Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20240726@080252.3940 005mue8qhq2g8qado0t64s4id2 Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20240726@080252.4060 005mue8qhq2g8qado0t64s4id2 Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20240726@080252.4190 005mue8qhq2g8qado0t64s4id2 Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20240726@080252.4310 005mue8qhq2g8qado0t64s4id2 Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20240726@080252.4450 005mue8qhq2g8qado0t64s4id2 Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut66a348052666a34a1c00',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20240726@080252.9360 005mue8qhq2g8qado0t64s4id2 Query : select top 1 fno valor from wsftdata order by fno desc
20240726@080252.9540 005mue8qhq2g8qado0t64s4id2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240726@080252.9720 005mue8qhq2g8qado0t64s4id2 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20240726@080252.9980 005mue8qhq2g8qado0t64s4id2 Query : select 'normal' from dummy
20240726@080252.1013 005mue8qhq2g8qado0t64s4id2 Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut66a348052666a34a1c00',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',30,101895,0,'2024-07-26',39,'euro',0,0,2024 ,?,?)
20240726@080252.1312 005mue8qhq2g8qado0t64s4id2 Query : use flama_phc
20240726@080252.1315 005mue8qhq2g8qado0t64s4id2 Query : select st.usalote valor from st where st.ref = '324.4970.00.1'
20240726@080252.1338 005mue8qhq2g8qado0t64s4id2 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.4970.00.1'
20240726@080252.1713 005mue8qhq2g8qado0t64s4id2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240726@080252.1772 005mue8qhq2g8qado0t64s4id2 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240726@080252.1798 005mue8qhq2g8qado0t64s4id2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240726@080252.1867 005mue8qhq2g8qado0t64s4id2 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240726@080252.1876 005mue8qhq2g8qado0t64s4id2 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240726@080252.1889 005mue8qhq2g8qado0t64s4id2 Query : select sestamp valor from se where ref ='324.4970.00.1' and lote = 'r2400205200a'
20240726@080252.1904 005mue8qhq2g8qado0t64s4id2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240726@080252.1921 005mue8qhq2g8qado0t64s4id2 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240726@080252.1935 005mue8qhq2g8qado0t64s4id2 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66a347015566a34a1c2e','aut66a348052666a34a1c00' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240726@080252.1939 005mue8qhq2g8qado0t64s4id2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240726@080252.1955 005mue8qhq2g8qado0t64s4id2 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240726@080252.1988 005mue8qhq2g8qado0t64s4id2 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66a347015566a34a1c2e',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',8.000 ,'aut66a348052666a34a1c00' ,0,0 ,2,23.00,10000,?,?,?,?,?)
20240726@080252.2255 005mue8qhq2g8qado0t64s4id2 Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut66a348052666a34a1c00','2404957','wait',39,'adm09112754980.682000002')
20240726@080252.2365 005mue8qhq2g8qado0t64s4id2 Query : use flama_phc
20240726@080252.2369 005mue8qhq2g8qado0t64s4id2 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240726@080252.2450 005mue8qhq2g8qado0t64s4id2 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1179';
20240726@080252.2477 005mue8qhq2g8qado0t64s4id2 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1179';
20240726@080252.2544 005mue8qhq2g8qado0t64s4id2 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1179';
20240726@080252.2572 005mue8qhq2g8qado0t64s4id2 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1179';
20240726@080252.3233 n61p5n4qpms0n4monp0agv9f5t Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240726@080252.3273 n61p5n4qpms0n4monp0agv9f5t Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240726@080252.3365 n61p5n4qpms0n4monp0agv9f5t Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1180';
20240726@080252.3646 n61p5n4qpms0n4monp0agv9f5t Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1180';
20240726@080252.3738 n61p5n4qpms0n4monp0agv9f5t Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1180';
20240726@080252.3766 n61p5n4qpms0n4monp0agv9f5t Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1180';
20240726@080252.3853 n61p5n4qpms0n4monp0agv9f5t Query : use flama_phc
20240726@080252.3857 n61p5n4qpms0n4monp0agv9f5t Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240726@080252.3974 n61p5n4qpms0n4monp0agv9f5t Query : use flama_phc
20240726@080252.3979 n61p5n4qpms0n4monp0agv9f5t Query : select no, estab,szadrsdesc from szadrs where u_coddest=2069
20240726@080252.4087 n61p5n4qpms0n4monp0agv9f5t Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1266.00.1'
20240726@080252.4258 n61p5n4qpms0n4monp0agv9f5t Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2049 and bo.obrano = 2404964 and bi.ref ='324.1266.00.1' and bi.lordem =1
20240726@080252.4678 n61p5n4qpms0n4monp0agv9f5t Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1256.00.1'
20240726@080252.4905 n61p5n4qpms0n4monp0agv9f5t Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2049 and bo.obrano = 2404964 and bi.ref ='324.1256.00.1' and bi.lordem =2
20240726@080252.5421 n61p5n4qpms0n4monp0agv9f5t Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1646.00.1'
20240726@080252.5665 n61p5n4qpms0n4monp0agv9f5t Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2049 and bo.obrano = 2404964 and bi.ref ='324.1646.00.1' and bi.lordem =3
20240726@080252.6054 n61p5n4qpms0n4monp0agv9f5t Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1676.00.1'
20240726@080252.6235 n61p5n4qpms0n4monp0agv9f5t Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2049 and bo.obrano = 2404964 and bi.ref ='324.1676.00.1' and bi.lordem =4
20240726@080252.6594 n61p5n4qpms0n4monp0agv9f5t Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '304.4005.00.2'
20240726@080252.6777 n61p5n4qpms0n4monp0agv9f5t Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2049 and bo.obrano = 2404964 and bi.ref ='304.4005.00.2' and bi.lordem =5
20240726@080252.7196 n61p5n4qpms0n4monp0agv9f5t Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '304.4006.00.2'
20240726@080252.7401 n61p5n4qpms0n4monp0agv9f5t Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2049 and bo.obrano = 2404964 and bi.ref ='304.4006.00.2' and bi.lordem =6
20240726@080252.7741 n61p5n4qpms0n4monp0agv9f5t Query : use flama_phc
20240726@080252.7745 n61p5n4qpms0n4monp0agv9f5t Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20240726@080252.7788 n61p5n4qpms0n4monp0agv9f5t Query : use flama_phc
20240726@080252.7791 n61p5n4qpms0n4monp0agv9f5t Query : select top 1 1 valor from td where td.ndoc = 39
20240726@080252.7823 n61p5n4qpms0n4monp0agv9f5t Query : use flama_phc
20240726@080252.7826 n61p5n4qpms0n4monp0agv9f5t 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')
20240726@080252.7861 n61p5n4qpms0n4monp0agv9f5t 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
20240726@080252.7908 n61p5n4qpms0n4monp0agv9f5t Query : use flama_phc
20240726@080252.7911 n61p5n4qpms0n4monp0agv9f5t Query : select top 1 ~inactivo valor from cl where no = '100390' and estab = 0 order by inactivo desc
20240726@080252.8119 n61p5n4qpms0n4monp0agv9f5t Query : use flama_phc
20240726@080252.8122 n61p5n4qpms0n4monp0agv9f5t Query : select top 1 tipodoc,regrd from td where ndoc = 39
20240726@080252.8150 n61p5n4qpms0n4monp0agv9f5t Query : use flama_phc
20240726@080252.8153 n61p5n4qpms0n4monp0agv9f5t Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20240726@080252.8202 n61p5n4qpms0n4monp0agv9f5t Query : use flama_phc
20240726@080252.8205 n61p5n4qpms0n4monp0agv9f5t Query : select szadrsstamp valor from szadrs where szadrsdesc='armindo da conceiÇao domingues'
20240726@080252.8257 n61p5n4qpms0n4monp0agv9f5t Query : use flama_phc
20240726@080252.8259 n61p5n4qpms0n4monp0agv9f5t Query : select 1 valor from td where ndoc = 39
20240726@080252.8273 n61p5n4qpms0n4monp0agv9f5t Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20240726@080252.8288 n61p5n4qpms0n4monp0agv9f5t Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240726@080252.8306 n61p5n4qpms0n4monp0agv9f5t Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20240726@080252.8328 n61p5n4qpms0n4monp0agv9f5t Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240726@080252.8346 n61p5n4qpms0n4monp0agv9f5t Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20240726@080252.8401 n61p5n4qpms0n4monp0agv9f5t Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240726@080252.8420 n61p5n4qpms0n4monp0agv9f5t Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20240726@080252.8460 n61p5n4qpms0n4monp0agv9f5t Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240726@080252.8862 n61p5n4qpms0n4monp0agv9f5t Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240726@080252.9235 n61p5n4qpms0n4monp0agv9f5t Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240726@080252.9691 n61p5n4qpms0n4monp0agv9f5t Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20240726@080252.9970 n61p5n4qpms0n4monp0agv9f5t Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut66a347263566a34a1cce' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20240726@080253.1430 n61p5n4qpms0n4monp0agv9f5t Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240726@080253.1630 n61p5n4qpms0n4monp0agv9f5t Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20240726@080253.1960 n61p5n4qpms0n4monp0agv9f5t Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20240726@080253.2070 n61p5n4qpms0n4monp0agv9f5t Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20240726@080253.2190 n61p5n4qpms0n4monp0agv9f5t Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20240726@080253.2350 n61p5n4qpms0n4monp0agv9f5t Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20240726@080253.2480 n61p5n4qpms0n4monp0agv9f5t Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20240726@080253.2590 n61p5n4qpms0n4monp0agv9f5t Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20240726@080253.2700 n61p5n4qpms0n4monp0agv9f5t Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut66a347263566a34a1cce',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20240726@080253.5250 n61p5n4qpms0n4monp0agv9f5t Query : select top 1 fno valor from wsftdata order by fno desc
20240726@080253.5490 n61p5n4qpms0n4monp0agv9f5t Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240726@080253.5710 n61p5n4qpms0n4monp0agv9f5t Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20240726@080253.5960 n61p5n4qpms0n4monp0agv9f5t Query : select 'normal' from dummy
20240726@080253.6120 n61p5n4qpms0n4monp0agv9f5t Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut66a347263566a34a1cce',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',31,100390,0,'2024-07-26',39,'euro',0,0,2024 ,?,?)
20240726@080253.9250 n61p5n4qpms0n4monp0agv9f5t Query : use flama_phc
20240726@080253.9280 n61p5n4qpms0n4monp0agv9f5t Query : select st.usalote valor from st where st.ref = '324.1266.00.1'
20240726@080253.9510 n61p5n4qpms0n4monp0agv9f5t Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.1266.00.1'
20240726@080253.1109 n61p5n4qpms0n4monp0agv9f5t Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240726@080253.1126 n61p5n4qpms0n4monp0agv9f5t Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240726@080253.1153 n61p5n4qpms0n4monp0agv9f5t Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240726@080253.1168 n61p5n4qpms0n4monp0agv9f5t Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240726@080253.1177 n61p5n4qpms0n4monp0agv9f5t Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240726@080253.1197 n61p5n4qpms0n4monp0agv9f5t Query : select sestamp valor from se where ref ='324.1266.00.1' and lote = 'r2100597100a'
20240726@080253.1226 n61p5n4qpms0n4monp0agv9f5t Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240726@080253.1240 n61p5n4qpms0n4monp0agv9f5t Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240726@080253.1252 n61p5n4qpms0n4monp0agv9f5t Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66a347549566a34a1d1d','aut66a347263566a34a1cce' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240726@080253.1257 n61p5n4qpms0n4monp0agv9f5t Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240726@080253.1271 n61p5n4qpms0n4monp0agv9f5t Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240726@080253.1302 n61p5n4qpms0n4monp0agv9f5t Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66a347549566a34a1d1d',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',1.000 ,'aut66a347263566a34a1cce' ,0,0 ,2,23.00,10000,?,?,?,?,?)
20240726@080253.1569 n61p5n4qpms0n4monp0agv9f5t Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240726@080253.1587 n61p5n4qpms0n4monp0agv9f5t Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240726@080253.1614 n61p5n4qpms0n4monp0agv9f5t Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240726@080253.1629 n61p5n4qpms0n4monp0agv9f5t Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240726@080253.1638 n61p5n4qpms0n4monp0agv9f5t Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240726@080253.1650 n61p5n4qpms0n4monp0agv9f5t Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240726@080253.1665 n61p5n4qpms0n4monp0agv9f5t Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240726@080253.1677 n61p5n4qpms0n4monp0agv9f5t Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66a348296666a34a1d28','aut66a347263566a34a1cce' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240726@080253.1721 n61p5n4qpms0n4monp0agv9f5t Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240726@080253.1834 n61p5n4qpms0n4monp0agv9f5t Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240726@080253.1868 n61p5n4qpms0n4monp0agv9f5t Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66a348296666a34a1d28',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66a347263566a34a1cce' ,0,0 ,2,23.00,20000,?,?,?)
20240726@080253.2145 n61p5n4qpms0n4monp0agv9f5t Query : use flama_phc
20240726@080253.2148 n61p5n4qpms0n4monp0agv9f5t Query : select st.usalote valor from st where st.ref = '324.1256.00.1'
20240726@080253.2168 n61p5n4qpms0n4monp0agv9f5t Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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.1256.00.1'
20240726@080253.2326 n61p5n4qpms0n4monp0agv9f5t Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240726@080253.2343 n61p5n4qpms0n4monp0agv9f5t Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240726@080253.2368 n61p5n4qpms0n4monp0agv9f5t Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240726@080253.2385 n61p5n4qpms0n4monp0agv9f5t Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240726@080253.2407 n61p5n4qpms0n4monp0agv9f5t Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240726@080253.2421 n61p5n4qpms0n4monp0agv9f5t Query : select sestamp valor from se where ref ='324.1256.00.1' and lote = 'r210135200a'
20240726@080253.2445 n61p5n4qpms0n4monp0agv9f5t Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240726@080253.2461 n61p5n4qpms0n4monp0agv9f5t Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240726@080253.2474 n61p5n4qpms0n4monp0agv9f5t Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66a345640966a34a1d3b','aut66a347263566a34a1cce' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240726@080253.2479 n61p5n4qpms0n4monp0agv9f5t Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240726@080253.2497 n61p5n4qpms0n4monp0agv9f5t Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240726@080253.2530 n61p5n4qpms0n4monp0agv9f5t Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66a345640966a34a1d3b',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',3.000 ,'aut66a347263566a34a1cce' ,0,0 ,2,23.00,40000,?,?,?,?,?)
20240726@080253.2804 n61p5n4qpms0n4monp0agv9f5t Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240726@080253.2822 n61p5n4qpms0n4monp0agv9f5t Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240726@080253.2854 n61p5n4qpms0n4monp0agv9f5t Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240726@080253.2871 n61p5n4qpms0n4monp0agv9f5t Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240726@080253.2881 n61p5n4qpms0n4monp0agv9f5t Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240726@080253.2895 n61p5n4qpms0n4monp0agv9f5t Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240726@080253.2908 n61p5n4qpms0n4monp0agv9f5t Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240726@080253.2920 n61p5n4qpms0n4monp0agv9f5t Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66a343344266a34a1d46','aut66a347263566a34a1cce' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240726@080253.2925 n61p5n4qpms0n4monp0agv9f5t Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240726@080253.2940 n61p5n4qpms0n4monp0agv9f5t Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240726@080253.2970 n61p5n4qpms0n4monp0agv9f5t Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66a343344266a34a1d46',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66a347263566a34a1cce' ,0,0 ,2,23.00,50000,?,?,?)
20240726@080253.3250 n61p5n4qpms0n4monp0agv9f5t Query : use flama_phc
20240726@080253.3253 n61p5n4qpms0n4monp0agv9f5t Query : select st.usalote valor from st where st.ref = '324.1646.00.1'
20240726@080253.3275 n61p5n4qpms0n4monp0agv9f5t Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.1646.00.1'
20240726@080253.3478 n61p5n4qpms0n4monp0agv9f5t Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240726@080253.3494 n61p5n4qpms0n4monp0agv9f5t Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240726@080253.3520 n61p5n4qpms0n4monp0agv9f5t Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240726@080253.3535 n61p5n4qpms0n4monp0agv9f5t Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240726@080253.3543 n61p5n4qpms0n4monp0agv9f5t Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240726@080253.3561 n61p5n4qpms0n4monp0agv9f5t Query : select sestamp valor from se where ref ='324.1646.00.1' and lote = 'r2101259200a'
20240726@080253.3658 n61p5n4qpms0n4monp0agv9f5t Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240726@080253.3677 n61p5n4qpms0n4monp0agv9f5t Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240726@080253.3713 n61p5n4qpms0n4monp0agv9f5t Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66a340040466a34a1d59','aut66a347263566a34a1cce' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240726@080253.3719 n61p5n4qpms0n4monp0agv9f5t Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240726@080253.3736 n61p5n4qpms0n4monp0agv9f5t Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240726@080253.3766 n61p5n4qpms0n4monp0agv9f5t Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66a340040466a34a1d59',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',2.000 ,'aut66a347263566a34a1cce' ,0,0 ,2,23.00,70000,?,?,?,?,?)
20240726@080253.4050 n61p5n4qpms0n4monp0agv9f5t Query : use flama_phc
20240726@080253.4054 n61p5n4qpms0n4monp0agv9f5t Query : select st.usalote valor from st where st.ref = '324.1676.00.1'
20240726@080253.4075 n61p5n4qpms0n4monp0agv9f5t Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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'
20240726@080253.4247 n61p5n4qpms0n4monp0agv9f5t Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240726@080253.4267 n61p5n4qpms0n4monp0agv9f5t Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240726@080253.4296 n61p5n4qpms0n4monp0agv9f5t Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240726@080253.4312 n61p5n4qpms0n4monp0agv9f5t Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240726@080253.4321 n61p5n4qpms0n4monp0agv9f5t Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240726@080253.4342 n61p5n4qpms0n4monp0agv9f5t Query : select sestamp valor from se where ref ='324.1676.00.1' and lote = 'r2400173900a'
20240726@080253.4365 n61p5n4qpms0n4monp0agv9f5t Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240726@080253.4384 n61p5n4qpms0n4monp0agv9f5t Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240726@080253.4401 n61p5n4qpms0n4monp0agv9f5t Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66a341214366a34a1d6a','aut66a347263566a34a1cce' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240726@080253.4406 n61p5n4qpms0n4monp0agv9f5t Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240726@080253.4422 n61p5n4qpms0n4monp0agv9f5t Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240726@080253.4452 n61p5n4qpms0n4monp0agv9f5t Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66a341214366a34a1d6a',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',2.000 ,'aut66a347263566a34a1cce' ,0,0 ,2,23.00,80000,?,?,?,?,?)
20240726@080253.4754 n61p5n4qpms0n4monp0agv9f5t Query : use flama_phc
20240726@080253.4758 n61p5n4qpms0n4monp0agv9f5t Query : select st.usalote valor from st where st.ref = '304.4005.00.2'
20240726@080253.4784 n61p5n4qpms0n4monp0agv9f5t Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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.4005.00.2'
20240726@080253.4951 n61p5n4qpms0n4monp0agv9f5t Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240726@080253.4972 n61p5n4qpms0n4monp0agv9f5t Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240726@080253.5005 n61p5n4qpms0n4monp0agv9f5t Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240726@080253.5022 n61p5n4qpms0n4monp0agv9f5t Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240726@080253.5040 n61p5n4qpms0n4monp0agv9f5t Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240726@080253.5052 n61p5n4qpms0n4monp0agv9f5t Query : select sestamp valor from se where ref ='304.4005.00.2' and lote = '211257'
20240726@080253.5118 n61p5n4qpms0n4monp0agv9f5t Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240726@080253.5139 n61p5n4qpms0n4monp0agv9f5t Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240726@080253.5154 n61p5n4qpms0n4monp0agv9f5t Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66a349789166a34a1d7c','aut66a347263566a34a1cce' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240726@080253.5160 n61p5n4qpms0n4monp0agv9f5t Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240726@080253.5176 n61p5n4qpms0n4monp0agv9f5t Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240726@080253.5208 n61p5n4qpms0n4monp0agv9f5t Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66a349789166a34a1d7c',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',1.000 ,'aut66a347263566a34a1cce' ,0,0 ,2,23.00,90000,?,?,?,?,?)
20240726@080253.5505 n61p5n4qpms0n4monp0agv9f5t Query : use flama_phc
20240726@080253.5508 n61p5n4qpms0n4monp0agv9f5t Query : select st.usalote valor from st where st.ref = '304.4006.00.2'
20240726@080253.5533 n61p5n4qpms0n4monp0agv9f5t Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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.4006.00.2'
20240726@080253.5706 n61p5n4qpms0n4monp0agv9f5t Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240726@080253.5723 n61p5n4qpms0n4monp0agv9f5t Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240726@080253.5747 n61p5n4qpms0n4monp0agv9f5t Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240726@080253.5761 n61p5n4qpms0n4monp0agv9f5t Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240726@080253.5770 n61p5n4qpms0n4monp0agv9f5t Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240726@080253.5782 n61p5n4qpms0n4monp0agv9f5t Query : select sestamp valor from se where ref ='304.4006.00.2' and lote = '220327'
20240726@080253.5821 n61p5n4qpms0n4monp0agv9f5t Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240726@080253.5840 n61p5n4qpms0n4monp0agv9f5t Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240726@080253.5868 n61p5n4qpms0n4monp0agv9f5t Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66a345283866a34a1d8e','aut66a347263566a34a1cce' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240726@080253.5874 n61p5n4qpms0n4monp0agv9f5t Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240726@080253.5890 n61p5n4qpms0n4monp0agv9f5t Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240726@080253.5924 n61p5n4qpms0n4monp0agv9f5t Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66a345283866a34a1d8e',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',1.000 ,'aut66a347263566a34a1cce' ,0,0 ,2,23.00,100000,?,?,?,?,?)
20240726@080253.6230 n61p5n4qpms0n4monp0agv9f5t Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut66a347263566a34a1cce','2404964','wait',39,'adm09112754980.682000002')
20240726@080253.6326 n61p5n4qpms0n4monp0agv9f5t Query : use flama_phc
20240726@080253.6329 n61p5n4qpms0n4monp0agv9f5t Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240726@080253.6359 n61p5n4qpms0n4monp0agv9f5t Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1180';
20240726@080253.6384 n61p5n4qpms0n4monp0agv9f5t Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1180';
20240726@080253.6423 n61p5n4qpms0n4monp0agv9f5t Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1180';
20240726@080253.6445 n61p5n4qpms0n4monp0agv9f5t Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1180';
20240726@080253.6988 qffuat8fa5h4r8kmoj32p9s16p Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240726@080253.6999 qffuat8fa5h4r8kmoj32p9s16p Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240726@080253.7049 qffuat8fa5h4r8kmoj32p9s16p Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1181';
20240726@080253.7107 qffuat8fa5h4r8kmoj32p9s16p Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1181';
20240726@080253.7160 qffuat8fa5h4r8kmoj32p9s16p Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1181';
20240726@080253.7190 qffuat8fa5h4r8kmoj32p9s16p Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1181';
20240726@080253.7235 qffuat8fa5h4r8kmoj32p9s16p Query : use flama_phc
20240726@080253.7238 qffuat8fa5h4r8kmoj32p9s16p Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240726@080253.7347 qffuat8fa5h4r8kmoj32p9s16p Query : use flama_phc
20240726@080253.7360 qffuat8fa5h4r8kmoj32p9s16p Query : select no, estab,szadrsdesc from szadrs where u_coddest=4743
20240726@080253.7457 qffuat8fa5h4r8kmoj32p9s16p 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'
20240726@080253.7630 qffuat8fa5h4r8kmoj32p9s16p Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2049 and bo.obrano = 2404970 and bi.ref ='324.1831.00.2' and bi.lordem =1
20240726@080253.7982 qffuat8fa5h4r8kmoj32p9s16p Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.958.00.01'
20240726@080253.8161 qffuat8fa5h4r8kmoj32p9s16p Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2049 and bo.obrano = 2404970 and bi.ref ='324.958.00.01' and bi.lordem =2
20240726@080253.8509 qffuat8fa5h4r8kmoj32p9s16p Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.958.00.01'
20240726@080253.8532 qffuat8fa5h4r8kmoj32p9s16p Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2049 and bo.obrano = 2404970 and bi.ref ='324.958.00.01' and bi.lordem =2
20240726@080253.8558 qffuat8fa5h4r8kmoj32p9s16p Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.4751.00.1'
20240726@080253.8580 qffuat8fa5h4r8kmoj32p9s16p Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2049 and bo.obrano = 2404970 and bi.ref ='324.4751.00.1' and bi.lordem =3
20240726@080253.8929 qffuat8fa5h4r8kmoj32p9s16p Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '304.4860.00.1'
20240726@080253.8956 qffuat8fa5h4r8kmoj32p9s16p Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2049 and bo.obrano = 2404970 and bi.ref ='304.4860.00.1' and bi.lordem =4
20240726@080253.9306 qffuat8fa5h4r8kmoj32p9s16p Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '304.4860.00.1'
20240726@080253.9328 qffuat8fa5h4r8kmoj32p9s16p Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2049 and bo.obrano = 2404970 and bi.ref ='304.4860.00.1' and bi.lordem =4
20240726@080253.9347 qffuat8fa5h4r8kmoj32p9s16p Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.4970.00.1'
20240726@080253.9369 qffuat8fa5h4r8kmoj32p9s16p Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2049 and bo.obrano = 2404970 and bi.ref ='324.4970.00.1' and bi.lordem =5
20240726@080253.9713 qffuat8fa5h4r8kmoj32p9s16p Query : use flama_phc
20240726@080253.9717 qffuat8fa5h4r8kmoj32p9s16p Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20240726@080253.9751 qffuat8fa5h4r8kmoj32p9s16p Query : use flama_phc
20240726@080253.9754 qffuat8fa5h4r8kmoj32p9s16p Query : select top 1 1 valor from td where td.ndoc = 39
20240726@080253.9788 qffuat8fa5h4r8kmoj32p9s16p Query : use flama_phc
20240726@080253.9791 qffuat8fa5h4r8kmoj32p9s16p 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')
20240726@080253.9820 qffuat8fa5h4r8kmoj32p9s16p 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
20240726@080253.9886 qffuat8fa5h4r8kmoj32p9s16p Query : use flama_phc
20240726@080253.9889 qffuat8fa5h4r8kmoj32p9s16p Query : select top 1 ~inactivo valor from cl where no = '101597' and estab = 0 order by inactivo desc
20240726@080254.8600 qffuat8fa5h4r8kmoj32p9s16p Query : use flama_phc
20240726@080254.9440 qffuat8fa5h4r8kmoj32p9s16p Query : select top 1 tipodoc,regrd from td where ndoc = 39
20240726@080254.1325 qffuat8fa5h4r8kmoj32p9s16p Query : use flama_phc
20240726@080254.1329 qffuat8fa5h4r8kmoj32p9s16p Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20240726@080254.1373 qffuat8fa5h4r8kmoj32p9s16p Query : use flama_phc
20240726@080254.1376 qffuat8fa5h4r8kmoj32p9s16p Query : select szadrsstamp valor from szadrs where szadrsdesc='101597 - auchan retail portugal , sa'
20240726@080254.1430 qffuat8fa5h4r8kmoj32p9s16p Query : use flama_phc
20240726@080254.1433 qffuat8fa5h4r8kmoj32p9s16p Query : select 1 valor from td where ndoc = 39
20240726@080254.1445 qffuat8fa5h4r8kmoj32p9s16p Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20240726@080254.1459 qffuat8fa5h4r8kmoj32p9s16p Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240726@080254.1475 qffuat8fa5h4r8kmoj32p9s16p Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20240726@080254.1493 qffuat8fa5h4r8kmoj32p9s16p Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240726@080254.1507 qffuat8fa5h4r8kmoj32p9s16p Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20240726@080254.1543 qffuat8fa5h4r8kmoj32p9s16p Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240726@080254.1560 qffuat8fa5h4r8kmoj32p9s16p Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20240726@080254.1573 qffuat8fa5h4r8kmoj32p9s16p Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240726@080254.1644 qffuat8fa5h4r8kmoj32p9s16p Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240726@080254.1656 qffuat8fa5h4r8kmoj32p9s16p Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240726@080254.1671 qffuat8fa5h4r8kmoj32p9s16p Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20240726@080254.1686 qffuat8fa5h4r8kmoj32p9s16p Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut66a346940566a34a1e26' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20240726@080254.1865 qffuat8fa5h4r8kmoj32p9s16p Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240726@080254.2022 qffuat8fa5h4r8kmoj32p9s16p Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20240726@080254.2055 qffuat8fa5h4r8kmoj32p9s16p Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20240726@080254.2067 qffuat8fa5h4r8kmoj32p9s16p Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20240726@080254.2080 qffuat8fa5h4r8kmoj32p9s16p Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20240726@080254.2092 qffuat8fa5h4r8kmoj32p9s16p Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20240726@080254.2103 qffuat8fa5h4r8kmoj32p9s16p Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20240726@080254.2118 qffuat8fa5h4r8kmoj32p9s16p Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20240726@080254.2129 qffuat8fa5h4r8kmoj32p9s16p Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut66a346940566a34a1e26',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20240726@080254.2402 qffuat8fa5h4r8kmoj32p9s16p Query : select top 1 fno valor from wsftdata order by fno desc
20240726@080254.2420 qffuat8fa5h4r8kmoj32p9s16p Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240726@080254.2437 qffuat8fa5h4r8kmoj32p9s16p Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20240726@080254.2465 qffuat8fa5h4r8kmoj32p9s16p Query : select 'normal' from dummy
20240726@080254.2481 qffuat8fa5h4r8kmoj32p9s16p Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut66a346940566a34a1e26',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',32,101597,0,'2024-07-26',39,'euro',0,0,2024 ,?,?)
20240726@080254.2807 qffuat8fa5h4r8kmoj32p9s16p Query : use flama_phc
20240726@080254.2810 qffuat8fa5h4r8kmoj32p9s16p Query : select st.usalote valor from st where st.ref = '324.1831.00.2'
20240726@080254.2837 qffuat8fa5h4r8kmoj32p9s16p Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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'
20240726@080254.3004 qffuat8fa5h4r8kmoj32p9s16p Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240726@080254.3023 qffuat8fa5h4r8kmoj32p9s16p Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240726@080254.3050 qffuat8fa5h4r8kmoj32p9s16p Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240726@080254.3065 qffuat8fa5h4r8kmoj32p9s16p Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240726@080254.3075 qffuat8fa5h4r8kmoj32p9s16p Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240726@080254.3088 qffuat8fa5h4r8kmoj32p9s16p Query : select sestamp valor from se where ref ='324.1831.00.2' and lote = 'r2301271200a'
20240726@080254.3104 qffuat8fa5h4r8kmoj32p9s16p Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240726@080254.3121 qffuat8fa5h4r8kmoj32p9s16p Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240726@080254.3135 qffuat8fa5h4r8kmoj32p9s16p Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66a347177366a34a1e4b','aut66a346940566a34a1e26' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240726@080254.3140 qffuat8fa5h4r8kmoj32p9s16p Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240726@080254.3164 qffuat8fa5h4r8kmoj32p9s16p Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240726@080254.3198 qffuat8fa5h4r8kmoj32p9s16p Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66a347177366a34a1e4b',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',20.000 ,'aut66a346940566a34a1e26' ,0,0 ,2,23.00,10000,?,?,?,?,?)
20240726@080254.3473 qffuat8fa5h4r8kmoj32p9s16p Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240726@080254.3491 qffuat8fa5h4r8kmoj32p9s16p Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240726@080254.3518 qffuat8fa5h4r8kmoj32p9s16p Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240726@080254.3534 qffuat8fa5h4r8kmoj32p9s16p Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240726@080254.3543 qffuat8fa5h4r8kmoj32p9s16p Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240726@080254.3555 qffuat8fa5h4r8kmoj32p9s16p Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240726@080254.3576 qffuat8fa5h4r8kmoj32p9s16p Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240726@080254.3587 qffuat8fa5h4r8kmoj32p9s16p Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66a342064966a34a1e56','aut66a346940566a34a1e26' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240726@080254.3591 qffuat8fa5h4r8kmoj32p9s16p Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240726@080254.3605 qffuat8fa5h4r8kmoj32p9s16p Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240726@080254.3635 qffuat8fa5h4r8kmoj32p9s16p Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66a342064966a34a1e56',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66a346940566a34a1e26' ,0,0 ,2,23.00,20000,?,?,?)
20240726@080254.3926 qffuat8fa5h4r8kmoj32p9s16p Query : use flama_phc
20240726@080254.3929 qffuat8fa5h4r8kmoj32p9s16p Query : select st.usalote valor from st where st.ref = '324.958.00.01'
20240726@080254.3959 qffuat8fa5h4r8kmoj32p9s16p Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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.958.00.01'
20240726@080254.4124 qffuat8fa5h4r8kmoj32p9s16p Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240726@080254.4140 qffuat8fa5h4r8kmoj32p9s16p Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240726@080254.4167 qffuat8fa5h4r8kmoj32p9s16p Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240726@080254.4183 qffuat8fa5h4r8kmoj32p9s16p Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240726@080254.4198 qffuat8fa5h4r8kmoj32p9s16p Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240726@080254.4209 qffuat8fa5h4r8kmoj32p9s16p Query : select sestamp valor from se where ref ='324.958.00.01' and lote = 'r2400240200a'
20240726@080254.4231 qffuat8fa5h4r8kmoj32p9s16p Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240726@080254.4246 qffuat8fa5h4r8kmoj32p9s16p Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240726@080254.4259 qffuat8fa5h4r8kmoj32p9s16p Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66a345640266a34a1e67','aut66a346940566a34a1e26' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240726@080254.4264 qffuat8fa5h4r8kmoj32p9s16p Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240726@080254.4284 qffuat8fa5h4r8kmoj32p9s16p Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240726@080254.4320 qffuat8fa5h4r8kmoj32p9s16p Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66a345640266a34a1e67',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',48.000 ,'aut66a346940566a34a1e26' ,0,0 ,2,23.00,40000,?,?,?,?,?)
20240726@080254.4598 qffuat8fa5h4r8kmoj32p9s16p Query : use flama_phc
20240726@080254.4601 qffuat8fa5h4r8kmoj32p9s16p Query : select st.usalote valor from st where st.ref = '324.958.00.01'
20240726@080254.4625 qffuat8fa5h4r8kmoj32p9s16p Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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.958.00.01'
20240726@080254.4640 qffuat8fa5h4r8kmoj32p9s16p Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240726@080254.4657 qffuat8fa5h4r8kmoj32p9s16p Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240726@080254.4685 qffuat8fa5h4r8kmoj32p9s16p Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240726@080254.4699 qffuat8fa5h4r8kmoj32p9s16p Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240726@080254.4708 qffuat8fa5h4r8kmoj32p9s16p Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240726@080254.4721 qffuat8fa5h4r8kmoj32p9s16p Query : select sestamp valor from se where ref ='324.958.00.01' and lote = 'r2400240200a'
20240726@080254.4734 qffuat8fa5h4r8kmoj32p9s16p Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240726@080254.4747 qffuat8fa5h4r8kmoj32p9s16p Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240726@080254.4766 qffuat8fa5h4r8kmoj32p9s16p Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66a348818366a34a1e73','aut66a346940566a34a1e26' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240726@080254.4772 qffuat8fa5h4r8kmoj32p9s16p Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240726@080254.4790 qffuat8fa5h4r8kmoj32p9s16p Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240726@080254.4818 qffuat8fa5h4r8kmoj32p9s16p Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66a348818366a34a1e73',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',72.000 ,'aut66a346940566a34a1e26' ,0,0 ,2,23.00,50000,?,?,?,?,?)
20240726@080254.5112 qffuat8fa5h4r8kmoj32p9s16p Query : use flama_phc
20240726@080254.5115 qffuat8fa5h4r8kmoj32p9s16p Query : select st.usalote valor from st where st.ref = '324.4751.00.1'
20240726@080254.5139 qffuat8fa5h4r8kmoj32p9s16p Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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.4751.00.1'
20240726@080254.5161 qffuat8fa5h4r8kmoj32p9s16p Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240726@080254.5267 qffuat8fa5h4r8kmoj32p9s16p Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240726@080254.5294 qffuat8fa5h4r8kmoj32p9s16p Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240726@080254.5309 qffuat8fa5h4r8kmoj32p9s16p Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240726@080254.5319 qffuat8fa5h4r8kmoj32p9s16p Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240726@080254.5335 qffuat8fa5h4r8kmoj32p9s16p Query : select sestamp valor from se where ref ='324.4751.00.1' and lote = 'r2400049200a'
20240726@080254.5350 qffuat8fa5h4r8kmoj32p9s16p Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240726@080254.5367 qffuat8fa5h4r8kmoj32p9s16p Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240726@080254.5381 qffuat8fa5h4r8kmoj32p9s16p Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66a345812666a34a1e82','aut66a346940566a34a1e26' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240726@080254.5386 qffuat8fa5h4r8kmoj32p9s16p Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240726@080254.5402 qffuat8fa5h4r8kmoj32p9s16p Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240726@080254.5437 qffuat8fa5h4r8kmoj32p9s16p Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66a345812666a34a1e82',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',32.000 ,'aut66a346940566a34a1e26' ,0,0 ,2,23.00,60000,?,?,?,?,?)
20240726@080254.5754 qffuat8fa5h4r8kmoj32p9s16p Query : use flama_phc
20240726@080254.5757 qffuat8fa5h4r8kmoj32p9s16p Query : select st.usalote valor from st where st.ref = '304.4860.00.1'
20240726@080254.5779 qffuat8fa5h4r8kmoj32p9s16p Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '304.4860.00.1'
20240726@080254.5794 qffuat8fa5h4r8kmoj32p9s16p Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240726@080254.5811 qffuat8fa5h4r8kmoj32p9s16p Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240726@080254.5911 qffuat8fa5h4r8kmoj32p9s16p Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240726@080254.5929 qffuat8fa5h4r8kmoj32p9s16p Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240726@080254.5938 qffuat8fa5h4r8kmoj32p9s16p Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240726@080254.5951 qffuat8fa5h4r8kmoj32p9s16p Query : select sestamp valor from se where ref ='304.4860.00.1' and lote = '241006'
20240726@080254.5965 qffuat8fa5h4r8kmoj32p9s16p Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240726@080254.5983 qffuat8fa5h4r8kmoj32p9s16p Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240726@080254.5998 qffuat8fa5h4r8kmoj32p9s16p Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66a346669266a34a1e91','aut66a346940566a34a1e26' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240726@080254.6004 qffuat8fa5h4r8kmoj32p9s16p Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240726@080254.6020 qffuat8fa5h4r8kmoj32p9s16p Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240726@080254.6054 qffuat8fa5h4r8kmoj32p9s16p Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66a346669266a34a1e91',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',16.000 ,'aut66a346940566a34a1e26' ,0,0 ,2,23.00,70000,?,?,?,?,?)
20240726@080254.6330 qffuat8fa5h4r8kmoj32p9s16p Query : use flama_phc
20240726@080254.6335 qffuat8fa5h4r8kmoj32p9s16p Query : select st.usalote valor from st where st.ref = '304.4860.00.1'
20240726@080254.6358 qffuat8fa5h4r8kmoj32p9s16p Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '304.4860.00.1'
20240726@080254.6375 qffuat8fa5h4r8kmoj32p9s16p Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240726@080254.6391 qffuat8fa5h4r8kmoj32p9s16p Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240726@080254.6418 qffuat8fa5h4r8kmoj32p9s16p Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240726@080254.6433 qffuat8fa5h4r8kmoj32p9s16p Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240726@080254.6441 qffuat8fa5h4r8kmoj32p9s16p Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240726@080254.6453 qffuat8fa5h4r8kmoj32p9s16p Query : select sestamp valor from se where ref ='304.4860.00.1' and lote = '241006'
20240726@080254.6465 qffuat8fa5h4r8kmoj32p9s16p Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240726@080254.6480 qffuat8fa5h4r8kmoj32p9s16p Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240726@080254.6492 qffuat8fa5h4r8kmoj32p9s16p Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66a344796566a34a1e9d','aut66a346940566a34a1e26' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240726@080254.6497 qffuat8fa5h4r8kmoj32p9s16p Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240726@080254.6511 qffuat8fa5h4r8kmoj32p9s16p Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240726@080254.6538 qffuat8fa5h4r8kmoj32p9s16p Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66a344796566a34a1e9d',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',24.000 ,'aut66a346940566a34a1e26' ,0,0 ,2,23.00,80000,?,?,?,?,?)
20240726@080254.6835 qffuat8fa5h4r8kmoj32p9s16p Query : use flama_phc
20240726@080254.6840 qffuat8fa5h4r8kmoj32p9s16p Query : select st.usalote valor from st where st.ref = '324.4970.00.1'
20240726@080254.6862 qffuat8fa5h4r8kmoj32p9s16p Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.4970.00.1'
20240726@080254.6880 qffuat8fa5h4r8kmoj32p9s16p Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240726@080254.6897 qffuat8fa5h4r8kmoj32p9s16p Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240726@080254.6929 qffuat8fa5h4r8kmoj32p9s16p Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240726@080254.6946 qffuat8fa5h4r8kmoj32p9s16p Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240726@080254.6975 qffuat8fa5h4r8kmoj32p9s16p Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240726@080254.6988 qffuat8fa5h4r8kmoj32p9s16p Query : select sestamp valor from se where ref ='324.4970.00.1' and lote = 'r2400205200a'
20240726@080254.7002 qffuat8fa5h4r8kmoj32p9s16p Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240726@080254.7020 qffuat8fa5h4r8kmoj32p9s16p Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240726@080254.7037 qffuat8fa5h4r8kmoj32p9s16p Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66a340159166a34a1eaa','aut66a346940566a34a1e26' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240726@080254.7042 qffuat8fa5h4r8kmoj32p9s16p Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240726@080254.7066 qffuat8fa5h4r8kmoj32p9s16p Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240726@080254.7183 qffuat8fa5h4r8kmoj32p9s16p Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66a340159166a34a1eaa',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',96.000 ,'aut66a346940566a34a1e26' ,0,0 ,2,23.00,90000,?,?,?,?,?)
20240726@080254.7520 qffuat8fa5h4r8kmoj32p9s16p Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut66a346940566a34a1e26','2404970','wait',39,'adm09112754980.682000002')
20240726@080254.7629 qffuat8fa5h4r8kmoj32p9s16p Query : use flama_phc
20240726@080254.7633 qffuat8fa5h4r8kmoj32p9s16p Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240726@080254.7680 qffuat8fa5h4r8kmoj32p9s16p Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1181';
20240726@080254.7772 qffuat8fa5h4r8kmoj32p9s16p Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1181';
20240726@080254.7821 qffuat8fa5h4r8kmoj32p9s16p Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1181';
20240726@080254.7884 qffuat8fa5h4r8kmoj32p9s16p Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1181';

20240726@093641.5862 2j66p3hooscs18v78beg2coih7 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1182';
20240726@093641.5954 2j66p3hooscs18v78beg2coih7 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1182';
20240726@093641.6000 2j66p3hooscs18v78beg2coih7 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1182';
20240726@093641.6063 2j66p3hooscs18v78beg2coih7 Query : use flama_phc
20240726@093641.6066 2j66p3hooscs18v78beg2coih7 Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240726@093641.6178 2j66p3hooscs18v78beg2coih7 Query : use flama_phc
20240726@093641.6181 2j66p3hooscs18v78beg2coih7 Query : select no, estab,szadrsdesc from szadrs where u_coddest=8825
20240726@093641.6264 2j66p3hooscs18v78beg2coih7 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'
20240726@093641.6414 2j66p3hooscs18v78beg2coih7 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'
20240726@093641.6441 2j66p3hooscs18v78beg2coih7 Query : use flama_phc
20240726@093641.6445 2j66p3hooscs18v78beg2coih7 Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20240726@093641.6627 2j66p3hooscs18v78beg2coih7 Query : use flama_phc
20240726@093641.6630 2j66p3hooscs18v78beg2coih7 Query : select top 1 1 valor from td where td.ndoc = 39
20240726@093641.7168 2j66p3hooscs18v78beg2coih7 Query : use flama_phc
20240726@093641.7173 2j66p3hooscs18v78beg2coih7 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')
20240726@093641.7409 2j66p3hooscs18v78beg2coih7 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
20240726@093641.7851 2j66p3hooscs18v78beg2coih7 Query : use flama_phc
20240726@093641.7854 2j66p3hooscs18v78beg2coih7 Query : select top 1 ~inactivo valor from cl where no = '101621' and estab = 0 order by inactivo desc
20240726@093641.7990 2j66p3hooscs18v78beg2coih7 Query : use flama_phc
20240726@093641.7995 2j66p3hooscs18v78beg2coih7 Query : select top 1 tipodoc,regrd from td where ndoc = 39
20240726@093641.8098 2j66p3hooscs18v78beg2coih7 Query : use flama_phc
20240726@093641.8101 2j66p3hooscs18v78beg2coih7 Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20240726@093641.8184 2j66p3hooscs18v78beg2coih7 Query : use flama_phc
20240726@093641.8187 2j66p3hooscs18v78beg2coih7 Query : select szadrsstamp valor from szadrs where szadrsdesc='j.o.m.,lda- loja gondomar'
20240726@093641.8266 2j66p3hooscs18v78beg2coih7 Query : use flama_phc
20240726@093641.8269 2j66p3hooscs18v78beg2coih7 Query : select 1 valor from td where ndoc = 39
20240726@093641.8359 2j66p3hooscs18v78beg2coih7 Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20240726@093641.8446 2j66p3hooscs18v78beg2coih7 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240726@093641.8755 2j66p3hooscs18v78beg2coih7 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20240726@093641.9153 2j66p3hooscs18v78beg2coih7 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240726@093641.9171 2j66p3hooscs18v78beg2coih7 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20240726@093641.9212 2j66p3hooscs18v78beg2coih7 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240726@093641.9230 2j66p3hooscs18v78beg2coih7 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20240726@093641.9249 2j66p3hooscs18v78beg2coih7 Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240726@093641.9468 2j66p3hooscs18v78beg2coih7 Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240726@093641.9565 2j66p3hooscs18v78beg2coih7 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240726@093641.9584 2j66p3hooscs18v78beg2coih7 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20240726@093641.9637 2j66p3hooscs18v78beg2coih7 Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut66a362336566a36019e1' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20240726@093641.9861 2j66p3hooscs18v78beg2coih7 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240726@093641.9880 2j66p3hooscs18v78beg2coih7 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20240726@093641.9920 2j66p3hooscs18v78beg2coih7 Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20240726@093642.2700 2j66p3hooscs18v78beg2coih7 Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20240726@093642.1160 2j66p3hooscs18v78beg2coih7 Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20240726@093642.1890 2j66p3hooscs18v78beg2coih7 Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20240726@093642.2620 2j66p3hooscs18v78beg2coih7 Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20240726@093642.3350 2j66p3hooscs18v78beg2coih7 Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20240726@093642.4090 2j66p3hooscs18v78beg2coih7 Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut66a362336566a36019e1',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20240726@093642.9740 2j66p3hooscs18v78beg2coih7 Query : select top 1 fno valor from wsftdata order by fno desc
20240726@093642.1059 2j66p3hooscs18v78beg2coih7 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240726@093642.1078 2j66p3hooscs18v78beg2coih7 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20240726@093642.1107 2j66p3hooscs18v78beg2coih7 Query : select 'normal' from dummy
20240726@093642.1144 2j66p3hooscs18v78beg2coih7 Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut66a362336566a36019e1',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',33,101621,0,'2024-07-26',39,'euro',0,0,2024 ,?,?)
20240726@093642.1446 2j66p3hooscs18v78beg2coih7 Query : use flama_phc
20240726@093642.1449 2j66p3hooscs18v78beg2coih7 Query : select st.usalote valor from st where st.ref = '324.1831.00.2'
20240726@093642.1576 2j66p3hooscs18v78beg2coih7 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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'
20240726@093642.1804 2j66p3hooscs18v78beg2coih7 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240726@093642.1827 2j66p3hooscs18v78beg2coih7 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240726@093642.1864 2j66p3hooscs18v78beg2coih7 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240726@093642.1881 2j66p3hooscs18v78beg2coih7 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240726@093642.1891 2j66p3hooscs18v78beg2coih7 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240726@093642.1943 2j66p3hooscs18v78beg2coih7 Query : select sestamp valor from se where ref ='324.1831.00.2' and lote = 'r2301271200a'
20240726@093642.2010 2j66p3hooscs18v78beg2coih7 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240726@093642.2029 2j66p3hooscs18v78beg2coih7 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240726@093642.2046 2j66p3hooscs18v78beg2coih7 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66a362512066a3601a31','aut66a362336566a36019e1' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240726@093642.2087 2j66p3hooscs18v78beg2coih7 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240726@093642.2104 2j66p3hooscs18v78beg2coih7 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240726@093642.2137 2j66p3hooscs18v78beg2coih7 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem) values ('aut66a362512066a3601a31',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',3.000 ,'aut66a362336566a36019e1' ,0,0 ,2,23.00,10000,?,?,?,?)
20240726@093642.2493 2j66p3hooscs18v78beg2coih7 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240726@093642.2516 2j66p3hooscs18v78beg2coih7 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240726@093642.2549 2j66p3hooscs18v78beg2coih7 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240726@093642.2566 2j66p3hooscs18v78beg2coih7 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240726@093642.2577 2j66p3hooscs18v78beg2coih7 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240726@093642.2592 2j66p3hooscs18v78beg2coih7 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240726@093642.2608 2j66p3hooscs18v78beg2coih7 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240726@093642.2623 2j66p3hooscs18v78beg2coih7 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66a367289466a3601a3f','aut66a362336566a36019e1' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240726@093642.2628 2j66p3hooscs18v78beg2coih7 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240726@093642.2647 2j66p3hooscs18v78beg2coih7 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240726@093642.2681 2j66p3hooscs18v78beg2coih7 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66a367289466a3601a3f',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66a362336566a36019e1' ,0,0 ,2,23.00,20000,?,?,?)
20240726@093642.2943 2j66p3hooscs18v78beg2coih7 Query : use flama_phc
20240726@093642.2947 2j66p3hooscs18v78beg2coih7 Query : select st.usalote valor from st where st.ref = '324.1831.00.2'
20240726@093642.3155 2j66p3hooscs18v78beg2coih7 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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'
20240726@093642.3171 2j66p3hooscs18v78beg2coih7 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240726@093642.3188 2j66p3hooscs18v78beg2coih7 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240726@093642.3216 2j66p3hooscs18v78beg2coih7 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240726@093642.3231 2j66p3hooscs18v78beg2coih7 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240726@093642.3240 2j66p3hooscs18v78beg2coih7 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240726@093642.3253 2j66p3hooscs18v78beg2coih7 Query : select sestamp valor from se where ref ='324.1831.00.2' and lote = 'r2301271200a'
20240726@093642.3266 2j66p3hooscs18v78beg2coih7 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240726@093642.3282 2j66p3hooscs18v78beg2coih7 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240726@093642.3296 2j66p3hooscs18v78beg2coih7 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66a369999566a3601a4f','aut66a362336566a36019e1' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240726@093642.3301 2j66p3hooscs18v78beg2coih7 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240726@093642.3317 2j66p3hooscs18v78beg2coih7 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240726@093642.3346 2j66p3hooscs18v78beg2coih7 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem) values ('aut66a369999566a3601a4f',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',1.000 ,'aut66a362336566a36019e1' ,0,0 ,2,23.00,40000,?,?,?,?)
20240726@093642.3616 2j66p3hooscs18v78beg2coih7 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240726@093642.3632 2j66p3hooscs18v78beg2coih7 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240726@093642.3658 2j66p3hooscs18v78beg2coih7 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240726@093642.3673 2j66p3hooscs18v78beg2coih7 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240726@093642.3682 2j66p3hooscs18v78beg2coih7 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240726@093642.3695 2j66p3hooscs18v78beg2coih7 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240726@093642.3709 2j66p3hooscs18v78beg2coih7 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240726@093642.3723 2j66p3hooscs18v78beg2coih7 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66a367107566a3601a5a','aut66a362336566a36019e1' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240726@093642.3807 2j66p3hooscs18v78beg2coih7 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240726@093642.4365 2j66p3hooscs18v78beg2coih7 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240726@093642.5163 2j66p3hooscs18v78beg2coih7 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66a367107566a3601a5a',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66a362336566a36019e1' ,0,0 ,2,23.00,50000,?,?,?)
20240726@093642.5412 2j66p3hooscs18v78beg2coih7 Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut66a362336566a36019e1','2404971','wait',39,'adm09112754980.682000002')
20240726@093642.5536 2j66p3hooscs18v78beg2coih7 Query : use flama_phc
20240726@093642.5539 2j66p3hooscs18v78beg2coih7 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240726@093642.5573 2j66p3hooscs18v78beg2coih7 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1182';
20240726@093642.5598 2j66p3hooscs18v78beg2coih7 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1182';
20240726@093642.5641 2j66p3hooscs18v78beg2coih7 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1182';
20240726@093642.5733 2j66p3hooscs18v78beg2coih7 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1182';

20240726@102243.9740 mio2gcau5lqeod3clissop8apa Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1183';
20240726@102243.1029 mio2gcau5lqeod3clissop8apa Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1183';
20240726@102243.1055 mio2gcau5lqeod3clissop8apa Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1183';
20240726@102243.1096 mio2gcau5lqeod3clissop8apa Query : use flama_phc
20240726@102243.1099 mio2gcau5lqeod3clissop8apa Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240726@102243.1163 mio2gcau5lqeod3clissop8apa Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.1817.00.1'
20240726@102243.1325 mio2gcau5lqeod3clissop8apa 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 = 2400379 and bi.ref ='324.1817.00.1' and bi.lordem =20000
20240726@102243.2688 mio2gcau5lqeod3clissop8apa 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 = 'cps24040436081,620000002 ' 
20240726@102243.3063 mio2gcau5lqeod3clissop8apa Query : use flama_phc
20240726@102243.3066 mio2gcau5lqeod3clissop8apa Query : select top 1 1 valor from ts where ts.ndos = 61
20240726@102243.3164 mio2gcau5lqeod3clissop8apa Query : use flama_phc
20240726@102243.3167 mio2gcau5lqeod3clissop8apa 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')
20240726@102243.3211 mio2gcau5lqeod3clissop8apa 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
20240726@102243.3378 mio2gcau5lqeod3clissop8apa Query : use flama_phc
20240726@102243.3381 mio2gcau5lqeod3clissop8apa Query : select top 1 ~inactivo valor from fl where no = '202241' and estab = 00 order by inactivo desc
20240726@102243.3491 mio2gcau5lqeod3clissop8apa Query : use flama_phc
20240726@102243.3494 mio2gcau5lqeod3clissop8apa Query : select 1 valor from ts where ndos = 61
20240726@102243.3569 mio2gcau5lqeod3clissop8apa Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240726@102243.3595 mio2gcau5lqeod3clissop8apa Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bo' and documentnumber = 61
20240726@102243.3669 mio2gcau5lqeod3clissop8apa Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240726@102243.3703 mio2gcau5lqeod3clissop8apa Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bo2' and documentnumber = 61
20240726@102243.3714 mio2gcau5lqeod3clissop8apa Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240726@102243.3797 mio2gcau5lqeod3clissop8apa Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bo3' and documentnumber = 61
20240726@102243.3811 mio2gcau5lqeod3clissop8apa 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
20240726@102243.3957 mio2gcau5lqeod3clissop8apa Query : select top 1 bo.obrano valor from bo bo where bo.ndos = 61 and boano=2024 order by obrano desc
20240726@102243.4069 mio2gcau5lqeod3clissop8apa Query : select top 1 bo.obrano valor from bo bo where bo.ndos = 61 and boano=2024 order by obrano desc
20240726@102243.4091 mio2gcau5lqeod3clissop8apa Query : use flama_phc
20240726@102243.4098 mio2gcau5lqeod3clissop8apa Query : select top 1 no,estab,nome, morada, local,codpost,ncont,pncont,pais,inactivo,motiseimp,codmotiseimp from fl where no='202241' and estab=00
20240726@102243.4191 mio2gcau5lqeod3clissop8apa Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240726@102243.4208 mio2gcau5lqeod3clissop8apa Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bo3' and documentnumber = 61
20240726@102243.4225 mio2gcau5lqeod3clissop8apa Query : insert into bo3 (bo3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66a367665066a36ae363',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut')
20240726@102243.4299 mio2gcau5lqeod3clissop8apa Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240726@102243.4321 mio2gcau5lqeod3clissop8apa Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bo2' and documentnumber = 61
20240726@102243.4340 mio2gcau5lqeod3clissop8apa Query : insert into bo2 (bo2stamp, tiposaft, idserie,cambio,cambiofixo,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66a367665066a36ae363','--','bo',7.9728583545377438507 ,1,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut')
20240726@102243.4647 mio2gcau5lqeod3clissop8apa Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240726@102243.4665 mio2gcau5lqeod3clissop8apa Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bo' and documentnumber = 61
20240726@102243.4678 mio2gcau5lqeod3clissop8apa 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 ('aut66a367665066a36ae363','guia r. fornecedor','2024-07-26',61,2402217,?,?,?,?,?,?,?,?,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')
20240726@102243.5163 mio2gcau5lqeod3clissop8apa Query : use flama_phc
20240726@102243.5166 mio2gcau5lqeod3clissop8apa Query : select st.usalote valor from st where st.ref = '324.1817.00.1'
20240726@102243.5192 mio2gcau5lqeod3clissop8apa Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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.1817.00.1'
20240726@102243.5342 mio2gcau5lqeod3clissop8apa Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240726@102243.5361 mio2gcau5lqeod3clissop8apa Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 61
20240726@102243.5374 mio2gcau5lqeod3clissop8apa Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240726@102243.5389 mio2gcau5lqeod3clissop8apa Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 61
20240726@102243.5398 mio2gcau5lqeod3clissop8apa Query : select sestamp valor from se where ref ='324.1817.00.1' and lote = 'r2400379200a'
20240726@102243.5412 mio2gcau5lqeod3clissop8apa Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240726@102243.5426 mio2gcau5lqeod3clissop8apa Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'se' and documentnumber = 0
20240726@102243.5436 mio2gcau5lqeod3clissop8apa Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240726@102243.5451 mio2gcau5lqeod3clissop8apa Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'se' and documentnumber = 0
20240726@102243.5464 mio2gcau5lqeod3clissop8apa Query : insert into se (sestamp,ref, lote, data,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66a368990666a36ae384',?,?,'20240726',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut;','aut;')
20240726@102243.5558 mio2gcau5lqeod3clissop8apa Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240726@102243.5572 mio2gcau5lqeod3clissop8apa Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240726@102243.5588 mio2gcau5lqeod3clissop8apa Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 61
20240726@102243.5600 mio2gcau5lqeod3clissop8apa Query : insert into bi2 (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut66a366787266a36ae388','aut66a367665066a36ae363',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 = 'aut66a367665066a36ae363'
20240726@102243.5772 mio2gcau5lqeod3clissop8apa Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240726@102243.5790 mio2gcau5lqeod3clissop8apa Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 61
20240726@102243.5808 mio2gcau5lqeod3clissop8apa 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 'aut66a366787266a36ae388',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut',bo.obrano, 1470, 1470*.0000000 ,bo.no, bo.estab,bo.nmdos ,bo.ndos, bo.obranome,bo.fechada, bo.dataobra ,bo.dataobra ,bo.dataopen,bo.datafecho,bo.local, bo.morada ,bo.codpost, bo.nome,bo.bostamp,10000 ,23.58,23.58*200.48,23.58,23.58*200.48 ,0,0,'un',' ' ,bo.marcada,1 ,23.58*1470,23.58*1470*200.48 ,33.249000,33.249000*200.48 ,33.249000,33.249000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,23.58,23.58*200.48,23.58*1470,23.58*1470*200.48,'cps24040436081,620000002 ',188,188*1470,188,188*1470,?,?,?,4 from bo bo where bo.bostamp = 'aut66a367665066a36ae363'
20240726@102243.7708 mio2gcau5lqeod3clissop8apa Query : use flama_phc
20240726@102243.7711 mio2gcau5lqeod3clissop8apa Query : declare @bostamp varchar(25) = 'aut66a367665066a36ae363' ,@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 
20240726@102244.1190 mio2gcau5lqeod3clissop8apa Query : use flama_phc
20240726@102244.1230 mio2gcau5lqeod3clissop8apa Query : select 1 valor from bo where bo.bostamp = 'aut66a367665066a36ae363'
20240726@102244.2650 mio2gcau5lqeod3clissop8apa 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) = 'aut66a367665066a36ae363' 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 
20240726@102244.2368 mio2gcau5lqeod3clissop8apa Query : use flama_phc
20240726@102244.2371 mio2gcau5lqeod3clissop8apa Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240726@102244.2423 mio2gcau5lqeod3clissop8apa Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1183';
20240726@102244.2449 mio2gcau5lqeod3clissop8apa Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1183';

20240726@103641.9527 v27ae8gvlcu9h9kbdpcuk9hpad Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1184';
20240726@103641.9578 v27ae8gvlcu9h9kbdpcuk9hpad Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1184';
20240726@103641.9616 v27ae8gvlcu9h9kbdpcuk9hpad Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1184';
20240726@103641.9665 v27ae8gvlcu9h9kbdpcuk9hpad Query : use flama_phc
20240726@103641.9669 v27ae8gvlcu9h9kbdpcuk9hpad Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240726@103641.9737 v27ae8gvlcu9h9kbdpcuk9hpad Query : use flama_phc
20240726@103641.9741 v27ae8gvlcu9h9kbdpcuk9hpad Query : select no, estab,szadrsdesc from szadrs where u_coddest=4779
20240726@103641.9974 v27ae8gvlcu9h9kbdpcuk9hpad Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.4723.00.2'
20240726@103642.1530 v27ae8gvlcu9h9kbdpcuk9hpad Query : use flama_phc
20240726@103642.1570 v27ae8gvlcu9h9kbdpcuk9hpad Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20240726@103642.1960 v27ae8gvlcu9h9kbdpcuk9hpad Query : use flama_phc
20240726@103642.2000 v27ae8gvlcu9h9kbdpcuk9hpad Query : select top 1 1 valor from td where td.ndoc = 39
20240726@103642.2330 v27ae8gvlcu9h9kbdpcuk9hpad Query : use flama_phc
20240726@103642.2360 v27ae8gvlcu9h9kbdpcuk9hpad 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')
20240726@103642.2670 v27ae8gvlcu9h9kbdpcuk9hpad 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
20240726@103642.3200 v27ae8gvlcu9h9kbdpcuk9hpad Query : use flama_phc
20240726@103642.3250 v27ae8gvlcu9h9kbdpcuk9hpad Query : select top 1 ~inactivo valor from cl where no = '101900' and estab = 0 order by inactivo desc
20240726@103642.5150 v27ae8gvlcu9h9kbdpcuk9hpad Query : use flama_phc
20240726@103642.5190 v27ae8gvlcu9h9kbdpcuk9hpad Query : select top 1 tipodoc,regrd from td where ndoc = 39
20240726@103642.5520 v27ae8gvlcu9h9kbdpcuk9hpad Query : use flama_phc
20240726@103642.5560 v27ae8gvlcu9h9kbdpcuk9hpad Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20240726@103642.6030 v27ae8gvlcu9h9kbdpcuk9hpad Query : use flama_phc
20240726@103642.6070 v27ae8gvlcu9h9kbdpcuk9hpad Query : select szadrsstamp valor from szadrs where szadrsdesc='101900 - pd - alcochete'
20240726@103642.6610 v27ae8gvlcu9h9kbdpcuk9hpad Query : use flama_phc
20240726@103642.6640 v27ae8gvlcu9h9kbdpcuk9hpad Query : select 1 valor from td where ndoc = 39
20240726@103642.6840 v27ae8gvlcu9h9kbdpcuk9hpad Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20240726@103642.7020 v27ae8gvlcu9h9kbdpcuk9hpad Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240726@103642.7210 v27ae8gvlcu9h9kbdpcuk9hpad Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20240726@103642.7440 v27ae8gvlcu9h9kbdpcuk9hpad Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240726@103642.7630 v27ae8gvlcu9h9kbdpcuk9hpad Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20240726@103642.8090 v27ae8gvlcu9h9kbdpcuk9hpad Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240726@103642.8280 v27ae8gvlcu9h9kbdpcuk9hpad Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20240726@103642.8430 v27ae8gvlcu9h9kbdpcuk9hpad Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240726@103642.9360 v27ae8gvlcu9h9kbdpcuk9hpad Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240726@103642.9600 v27ae8gvlcu9h9kbdpcuk9hpad Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240726@103642.9800 v27ae8gvlcu9h9kbdpcuk9hpad Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20240726@103642.1001 v27ae8gvlcu9h9kbdpcuk9hpad Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut66a361993866a36e2a14' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20240726@103642.1327 v27ae8gvlcu9h9kbdpcuk9hpad Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240726@103642.1348 v27ae8gvlcu9h9kbdpcuk9hpad Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20240726@103642.1391 v27ae8gvlcu9h9kbdpcuk9hpad Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20240726@103642.1407 v27ae8gvlcu9h9kbdpcuk9hpad Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20240726@103642.1422 v27ae8gvlcu9h9kbdpcuk9hpad Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20240726@103642.1437 v27ae8gvlcu9h9kbdpcuk9hpad Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20240726@103642.1452 v27ae8gvlcu9h9kbdpcuk9hpad Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20240726@103642.1469 v27ae8gvlcu9h9kbdpcuk9hpad Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20240726@103642.1484 v27ae8gvlcu9h9kbdpcuk9hpad Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut66a361993866a36e2a14',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20240726@103642.1915 v27ae8gvlcu9h9kbdpcuk9hpad Query : select top 1 fno valor from wsftdata order by fno desc
20240726@103642.1933 v27ae8gvlcu9h9kbdpcuk9hpad Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240726@103642.1953 v27ae8gvlcu9h9kbdpcuk9hpad Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20240726@103642.1976 v27ae8gvlcu9h9kbdpcuk9hpad Query : select 'normal' from dummy
20240726@103642.2004 v27ae8gvlcu9h9kbdpcuk9hpad Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut66a361993866a36e2a14',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',34,101900,0,'2024-07-26',39,'euro',0,0,2024 ,?,?)
20240726@103642.2423 v27ae8gvlcu9h9kbdpcuk9hpad Query : use flama_phc
20240726@103642.2425 v27ae8gvlcu9h9kbdpcuk9hpad Query : select st.usalote valor from st where st.ref = '324.4723.00.2'
20240726@103642.2448 v27ae8gvlcu9h9kbdpcuk9hpad Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.4723.00.2'
20240726@103642.2679 v27ae8gvlcu9h9kbdpcuk9hpad Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240726@103642.2703 v27ae8gvlcu9h9kbdpcuk9hpad Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240726@103642.2750 v27ae8gvlcu9h9kbdpcuk9hpad Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240726@103642.2765 v27ae8gvlcu9h9kbdpcuk9hpad Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240726@103642.2773 v27ae8gvlcu9h9kbdpcuk9hpad Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240726@103642.2786 v27ae8gvlcu9h9kbdpcuk9hpad Query : select sestamp valor from se where ref ='324.4723.00.2' and lote = 'r2200682200a'
20240726@103642.2800 v27ae8gvlcu9h9kbdpcuk9hpad Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240726@103642.2817 v27ae8gvlcu9h9kbdpcuk9hpad Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240726@103642.2829 v27ae8gvlcu9h9kbdpcuk9hpad Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66a364107466a36e2a44','aut66a361993866a36e2a14' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240726@103642.2839 v27ae8gvlcu9h9kbdpcuk9hpad Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240726@103642.2854 v27ae8gvlcu9h9kbdpcuk9hpad Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240726@103642.2882 v27ae8gvlcu9h9kbdpcuk9hpad Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem) values ('aut66a364107466a36e2a44',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',42.000 ,'aut66a361993866a36e2a14' ,0,0 ,2,23.00,10000,?,?,?,?)
20240726@103642.3286 v27ae8gvlcu9h9kbdpcuk9hpad Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut66a361993866a36e2a14','2404979','wait',39,'adm09112754980.682000002')
20240726@103642.3363 v27ae8gvlcu9h9kbdpcuk9hpad Query : use flama_phc
20240726@103642.3366 v27ae8gvlcu9h9kbdpcuk9hpad Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240726@103642.3395 v27ae8gvlcu9h9kbdpcuk9hpad Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1184';
20240726@103642.3418 v27ae8gvlcu9h9kbdpcuk9hpad Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1184';
20240726@103642.3452 v27ae8gvlcu9h9kbdpcuk9hpad Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1184';
20240726@103642.3474 v27ae8gvlcu9h9kbdpcuk9hpad Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1184';

20240726@112143.5311 vr4l9p97k6af1j461poert5kh0 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1185';
20240726@112143.5370 vr4l9p97k6af1j461poert5kh0 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1185';
20240726@112143.5393 vr4l9p97k6af1j461poert5kh0 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1185';
20240726@112143.5429 vr4l9p97k6af1j461poert5kh0 Query : use flama_phc
20240726@112143.5432 vr4l9p97k6af1j461poert5kh0 Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240726@112143.5502 vr4l9p97k6af1j461poert5kh0 Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '323.318.09.00'
20240726@112143.5630 vr4l9p97k6af1j461poert5kh0 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 = 2400053 and bi.ref ='323.318.09.00' and bi.lordem =20000
20240726@112143.5960 vr4l9p97k6af1j461poert5kh0 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 = 'cps24011543970,341000002 ' 
20240726@112143.6256 vr4l9p97k6af1j461poert5kh0 Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '323.367.09.00'
20240726@112143.6376 vr4l9p97k6af1j461poert5kh0 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 = 2400053 and bi.ref ='323.367.09.00' and bi.lordem =10000
20240726@112143.6700 vr4l9p97k6af1j461poert5kh0 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 = 'cps24011543970,793000003 ' 
20240726@112143.8299 vr4l9p97k6af1j461poert5kh0 Query : use flama_phc
20240726@112143.8304 vr4l9p97k6af1j461poert5kh0 Query : select top 1 1 valor from ts where ts.ndos = 61
20240726@112143.8343 vr4l9p97k6af1j461poert5kh0 Query : use flama_phc
20240726@112143.8346 vr4l9p97k6af1j461poert5kh0 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')
20240726@112143.8379 vr4l9p97k6af1j461poert5kh0 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
20240726@112143.8426 vr4l9p97k6af1j461poert5kh0 Query : use flama_phc
20240726@112143.8430 vr4l9p97k6af1j461poert5kh0 Query : select top 1 ~inactivo valor from fl where no = '202335' and estab = 00 order by inactivo desc
20240726@112143.8568 vr4l9p97k6af1j461poert5kh0 Query : use flama_phc
20240726@112143.8571 vr4l9p97k6af1j461poert5kh0 Query : select 1 valor from ts where ndos = 61
20240726@112143.8585 vr4l9p97k6af1j461poert5kh0 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240726@112143.8609 vr4l9p97k6af1j461poert5kh0 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bo' and documentnumber = 61
20240726@112143.8619 vr4l9p97k6af1j461poert5kh0 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240726@112143.8637 vr4l9p97k6af1j461poert5kh0 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bo2' and documentnumber = 61
20240726@112143.8648 vr4l9p97k6af1j461poert5kh0 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240726@112143.8664 vr4l9p97k6af1j461poert5kh0 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bo3' and documentnumber = 61
20240726@112143.8673 vr4l9p97k6af1j461poert5kh0 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
20240726@112143.8690 vr4l9p97k6af1j461poert5kh0 Query : select top 1 bo.obrano valor from bo bo where bo.ndos = 61 and boano=2024 order by obrano desc
20240726@112143.8713 vr4l9p97k6af1j461poert5kh0 Query : select top 1 bo.obrano valor from bo bo where bo.ndos = 61 and boano=2024 order by obrano desc
20240726@112143.8732 vr4l9p97k6af1j461poert5kh0 Query : use flama_phc
20240726@112143.8741 vr4l9p97k6af1j461poert5kh0 Query : select top 1 no,estab,nome, morada, local,codpost,ncont,pncont,pais,inactivo,motiseimp,codmotiseimp from fl where no='202335' and estab=00
20240726@112143.8833 vr4l9p97k6af1j461poert5kh0 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240726@112143.8849 vr4l9p97k6af1j461poert5kh0 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bo3' and documentnumber = 61
20240726@112143.8862 vr4l9p97k6af1j461poert5kh0 Query : insert into bo3 (bo3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66a375595566a378b7d5',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut')
20240726@112143.8875 vr4l9p97k6af1j461poert5kh0 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240726@112143.8891 vr4l9p97k6af1j461poert5kh0 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bo2' and documentnumber = 61
20240726@112143.8904 vr4l9p97k6af1j461poert5kh0 Query : insert into bo2 (bo2stamp, tiposaft, idserie,cambio,cambiofixo,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66a375595566a378b7d5','--','bo',1.1160468319559228650 ,1,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut')
20240726@112143.8910 vr4l9p97k6af1j461poert5kh0 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240726@112143.8928 vr4l9p97k6af1j461poert5kh0 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bo' and documentnumber = 61
20240726@112143.8943 vr4l9p97k6af1j461poert5kh0 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 ('aut66a375595566a378b7d5','guia r. fornecedor','2024-07-26',61,2402220,?,?,?,?,?,?,?,?,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')
20240726@112147.6274 vr4l9p97k6af1j461poert5kh0 Query : use flama_phc
20240726@112147.6280 vr4l9p97k6af1j461poert5kh0 Query : select st.usalote valor from st where st.ref = '323.318.09.00'
20240726@112147.6311 vr4l9p97k6af1j461poert5kh0 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '323.318.09.00'
20240726@112147.6467 vr4l9p97k6af1j461poert5kh0 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240726@112147.6487 vr4l9p97k6af1j461poert5kh0 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 61
20240726@112147.6503 vr4l9p97k6af1j461poert5kh0 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240726@112147.6524 vr4l9p97k6af1j461poert5kh0 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 61
20240726@112147.6534 vr4l9p97k6af1j461poert5kh0 Query : select sestamp valor from se where ref ='323.318.09.00' and lote = 'r2400053200a'
20240726@112147.6551 vr4l9p97k6af1j461poert5kh0 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240726@112147.6568 vr4l9p97k6af1j461poert5kh0 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'se' and documentnumber = 0
20240726@112147.6577 vr4l9p97k6af1j461poert5kh0 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240726@112147.6594 vr4l9p97k6af1j461poert5kh0 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'se' and documentnumber = 0
20240726@112147.6608 vr4l9p97k6af1j461poert5kh0 Query : insert into se (sestamp,ref, lote, data,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66a370489966a378bba0',?,?,'20240726',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut;','aut;')
20240726@112147.7181 vr4l9p97k6af1j461poert5kh0 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240726@112147.7201 vr4l9p97k6af1j461poert5kh0 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240726@112147.7223 vr4l9p97k6af1j461poert5kh0 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 61
20240726@112147.7242 vr4l9p97k6af1j461poert5kh0 Query : insert into bi2 (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut66a371485766a378bbaf','aut66a375595566a378b7d5',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 = 'aut66a375595566a378b7d5'
20240726@112147.7416 vr4l9p97k6af1j461poert5kh0 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240726@112147.7435 vr4l9p97k6af1j461poert5kh0 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 61
20240726@112147.7457 vr4l9p97k6af1j461poert5kh0 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 'aut66a371485766a378bbaf',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut',bo.obrano, 210, 210*.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 ,58.08,58.08*200.48,58.08,58.08*200.48 ,0,0,'un ',' ' ,bo.marcada,1 ,58.08*210,58.08*210*200.48 ,68.666000,68.666000*200.48 ,68.666000,68.666000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,58.08,58.08*200.48,58.08*210,58.08*210*200.48,'cps24011543970,341000002 ',64.82,64.82*210,64.82,64.82*210,?,?,?,4 from bo bo where bo.bostamp = 'aut66a375595566a378b7d5'
20240726@112202.9206 vr4l9p97k6af1j461poert5kh0 Query : use flama_phc
20240726@112202.9213 vr4l9p97k6af1j461poert5kh0 Query : select st.usalote valor from st where st.ref = '323.367.09.00'
20240726@112202.9242 vr4l9p97k6af1j461poert5kh0 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '323.367.09.00'
20240726@112202.9464 vr4l9p97k6af1j461poert5kh0 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240726@112202.9547 vr4l9p97k6af1j461poert5kh0 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 61
20240726@112202.9650 vr4l9p97k6af1j461poert5kh0 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240726@112202.9728 vr4l9p97k6af1j461poert5kh0 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 61
20240726@112202.9740 vr4l9p97k6af1j461poert5kh0 Query : select sestamp valor from se where ref ='323.367.09.00' and lote = 'r2400053200a'
20240726@112202.9759 vr4l9p97k6af1j461poert5kh0 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240726@112202.9777 vr4l9p97k6af1j461poert5kh0 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'se' and documentnumber = 0
20240726@112202.9789 vr4l9p97k6af1j461poert5kh0 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240726@112202.9808 vr4l9p97k6af1j461poert5kh0 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'se' and documentnumber = 0
20240726@112202.9823 vr4l9p97k6af1j461poert5kh0 Query : insert into se (sestamp,ref, lote, data,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66a373915566a378caee',?,?,'20240726',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut;','aut;')
20240726@112202.9910 vr4l9p97k6af1j461poert5kh0 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240726@112202.9926 vr4l9p97k6af1j461poert5kh0 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240726@112202.9946 vr4l9p97k6af1j461poert5kh0 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 61
20240726@112202.9962 vr4l9p97k6af1j461poert5kh0 Query : insert into bi2 (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut66a370816166a378caf2','aut66a375595566a378b7d5',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 = 'aut66a375595566a378b7d5'
20240726@112203.1330 vr4l9p97k6af1j461poert5kh0 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240726@112203.1520 vr4l9p97k6af1j461poert5kh0 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 61
20240726@112203.1720 vr4l9p97k6af1j461poert5kh0 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 'aut66a370816166a378caf2',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut',bo.obrano, 300, 300*.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 ,58.08,58.08*200.48,58.08,58.08*200.48 ,0,0,'un ','' ,bo.marcada,1 ,58.08*300,58.08*300*200.48 ,69.650000,69.650000*200.48 ,69.650000,69.650000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,58.08,58.08*200.48,58.08*300,58.08*300*200.48,'cps24011543970,793000003 ',64.82,64.82*300,64.82,64.82*300,?,?,?,4 from bo bo where bo.bostamp = 'aut66a375595566a378b7d5'
20240726@112203.1101 vr4l9p97k6af1j461poert5kh0 Query : use flama_phc
20240726@112203.1106 vr4l9p97k6af1j461poert5kh0 Query : declare @bostamp varchar(25) = 'aut66a375595566a378b7d5' ,@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 
20240726@112210.5004 vr4l9p97k6af1j461poert5kh0 Query : use flama_phc
20240726@112210.5008 vr4l9p97k6af1j461poert5kh0 Query : select 1 valor from bo where bo.bostamp = 'aut66a375595566a378b7d5'
20240726@112210.5026 vr4l9p97k6af1j461poert5kh0 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) = 'aut66a375595566a378b7d5' 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 
20240726@112212.7594 vr4l9p97k6af1j461poert5kh0 Query : use flama_phc
20240726@112212.7599 vr4l9p97k6af1j461poert5kh0 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240726@112212.7651 vr4l9p97k6af1j461poert5kh0 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1185';
20240726@112212.7812 vr4l9p97k6af1j461poert5kh0 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1185';

20240728@233843.8190 hva6a7rossina9qdrsrmbf9bdb Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1186';
20240728@233843.8249 hva6a7rossina9qdrsrmbf9bdb Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1186';
20240728@233843.8272 hva6a7rossina9qdrsrmbf9bdb Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1186';
20240728@233843.8322 hva6a7rossina9qdrsrmbf9bdb Query : use flama_phc
20240728@233843.8325 hva6a7rossina9qdrsrmbf9bdb Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240728@233843.8426 hva6a7rossina9qdrsrmbf9bdb Query : use flama_phc
20240728@233843.8430 hva6a7rossina9qdrsrmbf9bdb Query : select no, estab,szadrsdesc from szadrs where u_coddest=6917
20240728@233843.8522 hva6a7rossina9qdrsrmbf9bdb Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.600.94.01'
20240728@233843.8696 hva6a7rossina9qdrsrmbf9bdb Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2049 and bo.obrano = 2404962 and bi.ref ='324.600.94.01' and bi.lordem =1
20240728@233843.9051 hva6a7rossina9qdrsrmbf9bdb Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.2000.94.1'
20240728@233843.9216 hva6a7rossina9qdrsrmbf9bdb Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2049 and bo.obrano = 2404962 and bi.ref ='324.2000.94.1' and bi.lordem =2
20240728@233843.9947 hva6a7rossina9qdrsrmbf9bdb Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.900.94.01'
20240728@233844.8470 hva6a7rossina9qdrsrmbf9bdb Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2049 and bo.obrano = 2404962 and bi.ref ='324.900.94.01' and bi.lordem =3
20240728@233844.1296 hva6a7rossina9qdrsrmbf9bdb Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.700.94.01'
20240728@233844.1587 hva6a7rossina9qdrsrmbf9bdb Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2049 and bo.obrano = 2404962 and bi.ref ='324.700.94.01' and bi.lordem =4
20240728@233844.1945 hva6a7rossina9qdrsrmbf9bdb Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.700.94.01'
20240728@233844.1969 hva6a7rossina9qdrsrmbf9bdb Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2049 and bo.obrano = 2404962 and bi.ref ='324.700.94.01' and bi.lordem =4
20240728@233844.1989 hva6a7rossina9qdrsrmbf9bdb Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.2200.94.1'
20240728@233844.2171 hva6a7rossina9qdrsrmbf9bdb Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2049 and bo.obrano = 2404962 and bi.ref ='324.2200.94.1' and bi.lordem =5
20240728@233844.2516 hva6a7rossina9qdrsrmbf9bdb Query : use flama_phc
20240728@233844.2520 hva6a7rossina9qdrsrmbf9bdb Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20240728@233844.2760 hva6a7rossina9qdrsrmbf9bdb Query : use flama_phc
20240728@233844.2765 hva6a7rossina9qdrsrmbf9bdb Query : select top 1 1 valor from td where td.ndoc = 39
20240728@233844.2893 hva6a7rossina9qdrsrmbf9bdb Query : use flama_phc
20240728@233844.2897 hva6a7rossina9qdrsrmbf9bdb 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')
20240728@233844.2997 hva6a7rossina9qdrsrmbf9bdb 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
20240728@233844.3219 hva6a7rossina9qdrsrmbf9bdb Query : use flama_phc
20240728@233844.3223 hva6a7rossina9qdrsrmbf9bdb Query : select top 1 ~inactivo valor from cl where no = '199800' and estab = 0 order by inactivo desc
20240728@233844.3357 hva6a7rossina9qdrsrmbf9bdb Query : use flama_phc
20240728@233844.3360 hva6a7rossina9qdrsrmbf9bdb Query : select top 1 tipodoc,regrd from td where ndoc = 39
20240728@233844.3462 hva6a7rossina9qdrsrmbf9bdb Query : use flama_phc
20240728@233844.3466 hva6a7rossina9qdrsrmbf9bdb Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20240728@233844.3548 hva6a7rossina9qdrsrmbf9bdb Query : use flama_phc
20240728@233844.3553 hva6a7rossina9qdrsrmbf9bdb Query : select szadrsstamp valor from szadrs where szadrsdesc='740 ent vnr bligeiro'
20240728@233844.3607 hva6a7rossina9qdrsrmbf9bdb Query : use flama_phc
20240728@233844.3611 hva6a7rossina9qdrsrmbf9bdb Query : select 1 valor from td where ndoc = 39
20240728@233844.3691 hva6a7rossina9qdrsrmbf9bdb Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20240728@233844.3751 hva6a7rossina9qdrsrmbf9bdb Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233844.4125 hva6a7rossina9qdrsrmbf9bdb Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20240728@233844.4223 hva6a7rossina9qdrsrmbf9bdb Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233844.4240 hva6a7rossina9qdrsrmbf9bdb Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20240728@233844.4277 hva6a7rossina9qdrsrmbf9bdb Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233844.4300 hva6a7rossina9qdrsrmbf9bdb Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20240728@233844.4316 hva6a7rossina9qdrsrmbf9bdb Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240728@233844.4650 hva6a7rossina9qdrsrmbf9bdb Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240728@233844.4768 hva6a7rossina9qdrsrmbf9bdb Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233844.4787 hva6a7rossina9qdrsrmbf9bdb Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20240728@233844.4832 hva6a7rossina9qdrsrmbf9bdb Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut66a6c2859866a6c87469' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20240728@233844.5167 hva6a7rossina9qdrsrmbf9bdb Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233844.5190 hva6a7rossina9qdrsrmbf9bdb Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20240728@233844.5234 hva6a7rossina9qdrsrmbf9bdb Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20240728@233844.5343 hva6a7rossina9qdrsrmbf9bdb Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20240728@233844.5420 hva6a7rossina9qdrsrmbf9bdb Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20240728@233844.5490 hva6a7rossina9qdrsrmbf9bdb Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20240728@233844.5562 hva6a7rossina9qdrsrmbf9bdb Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20240728@233844.5639 hva6a7rossina9qdrsrmbf9bdb Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20240728@233844.5711 hva6a7rossina9qdrsrmbf9bdb Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut66a6c2859866a6c87469',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20240728@233844.6211 hva6a7rossina9qdrsrmbf9bdb Query : select top 1 fno valor from wsftdata order by fno desc
20240728@233844.6299 hva6a7rossina9qdrsrmbf9bdb Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233844.6318 hva6a7rossina9qdrsrmbf9bdb Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20240728@233844.6348 hva6a7rossina9qdrsrmbf9bdb Query : select 'normal' from dummy
20240728@233844.6397 hva6a7rossina9qdrsrmbf9bdb Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut66a6c2859866a6c87469',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',35,199800,0,'2024-07-28',39,'euro',0,0,2024 ,?,?)
20240728@233844.7043 hva6a7rossina9qdrsrmbf9bdb Query : use flama_phc
20240728@233844.7047 hva6a7rossina9qdrsrmbf9bdb Query : select st.usalote valor from st where st.ref = '324.600.94.01'
20240728@233844.7182 hva6a7rossina9qdrsrmbf9bdb Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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.600.94.01'
20240728@233844.7328 hva6a7rossina9qdrsrmbf9bdb Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233844.7347 hva6a7rossina9qdrsrmbf9bdb Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240728@233844.8563 hva6a7rossina9qdrsrmbf9bdb Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233844.8607 hva6a7rossina9qdrsrmbf9bdb Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240728@233844.8619 hva6a7rossina9qdrsrmbf9bdb Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240728@233844.8664 hva6a7rossina9qdrsrmbf9bdb Query : select sestamp valor from se where ref ='324.600.94.01' and lote = 'r2400047200a'
20240728@233844.8742 hva6a7rossina9qdrsrmbf9bdb Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233844.8799 hva6a7rossina9qdrsrmbf9bdb Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240728@233844.8814 hva6a7rossina9qdrsrmbf9bdb Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66a6c9815466a6c874d5','aut66a6c2859866a6c87469' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240728@233844.8876 hva6a7rossina9qdrsrmbf9bdb Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233844.8894 hva6a7rossina9qdrsrmbf9bdb Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240728@233844.8929 hva6a7rossina9qdrsrmbf9bdb Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66a6c9815466a6c874d5',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',8.000 ,'aut66a6c2859866a6c87469' ,0,0 ,2,23.00,10000,?,?,?,?,?)
20240728@233844.9371 hva6a7rossina9qdrsrmbf9bdb Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233844.9390 hva6a7rossina9qdrsrmbf9bdb Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240728@233844.9422 hva6a7rossina9qdrsrmbf9bdb Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233844.9444 hva6a7rossina9qdrsrmbf9bdb Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240728@233844.9453 hva6a7rossina9qdrsrmbf9bdb Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240728@233844.9469 hva6a7rossina9qdrsrmbf9bdb Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233844.9487 hva6a7rossina9qdrsrmbf9bdb Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240728@233844.9501 hva6a7rossina9qdrsrmbf9bdb Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66a6c9331466a6c874e7','aut66a6c2859866a6c87469' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240728@233844.9505 hva6a7rossina9qdrsrmbf9bdb Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233844.9521 hva6a7rossina9qdrsrmbf9bdb Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240728@233844.9553 hva6a7rossina9qdrsrmbf9bdb Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66a6c9331466a6c874e7',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66a6c2859866a6c87469' ,0,0 ,2,23.00,20000,?,?,?)
20240728@233844.9823 hva6a7rossina9qdrsrmbf9bdb Query : use flama_phc
20240728@233844.9826 hva6a7rossina9qdrsrmbf9bdb Query : select st.usalote valor from st where st.ref = '324.2000.94.1'
20240728@233844.9849 hva6a7rossina9qdrsrmbf9bdb Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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.2000.94.1'
20240728@233845.1000 hva6a7rossina9qdrsrmbf9bdb Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233845.2900 hva6a7rossina9qdrsrmbf9bdb Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240728@233845.6100 hva6a7rossina9qdrsrmbf9bdb Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233845.8300 hva6a7rossina9qdrsrmbf9bdb Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240728@233845.9400 hva6a7rossina9qdrsrmbf9bdb Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240728@233845.1080 hva6a7rossina9qdrsrmbf9bdb Query : select sestamp valor from se where ref ='324.2000.94.1' and lote = 'r2300916200a'
20240728@233845.1370 hva6a7rossina9qdrsrmbf9bdb Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233845.1550 hva6a7rossina9qdrsrmbf9bdb Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240728@233845.1720 hva6a7rossina9qdrsrmbf9bdb Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66a6c9786666a6c87503','aut66a6c2859866a6c87469' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240728@233845.1770 hva6a7rossina9qdrsrmbf9bdb Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233845.1960 hva6a7rossina9qdrsrmbf9bdb Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240728@233845.2340 hva6a7rossina9qdrsrmbf9bdb Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66a6c9786666a6c87503',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',12.000 ,'aut66a6c2859866a6c87469' ,0,0 ,2,23.00,40000,?,?,?,?,?)
20240728@233845.5080 hva6a7rossina9qdrsrmbf9bdb Query : use flama_phc
20240728@233845.5120 hva6a7rossina9qdrsrmbf9bdb Query : select st.usalote valor from st where st.ref = '324.900.94.01'
20240728@233845.5360 hva6a7rossina9qdrsrmbf9bdb Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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.900.94.01'
20240728@233845.7000 hva6a7rossina9qdrsrmbf9bdb Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233845.7170 hva6a7rossina9qdrsrmbf9bdb Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240728@233845.7610 hva6a7rossina9qdrsrmbf9bdb Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233845.7780 hva6a7rossina9qdrsrmbf9bdb Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240728@233845.7880 hva6a7rossina9qdrsrmbf9bdb Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240728@233845.8040 hva6a7rossina9qdrsrmbf9bdb Query : select sestamp valor from se where ref ='324.900.94.01' and lote = 'r2300952200a'
20240728@233845.8320 hva6a7rossina9qdrsrmbf9bdb Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233845.8510 hva6a7rossina9qdrsrmbf9bdb Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240728@233845.8650 hva6a7rossina9qdrsrmbf9bdb Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66a6c2111966a6c87514','aut66a6c2859866a6c87469' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240728@233845.8700 hva6a7rossina9qdrsrmbf9bdb Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233845.9050 hva6a7rossina9qdrsrmbf9bdb Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240728@233845.9380 hva6a7rossina9qdrsrmbf9bdb Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66a6c2111966a6c87514',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',24.000 ,'aut66a6c2859866a6c87469' ,0,0 ,2,23.00,50000,?,?,?,?,?)
20240728@233845.1309 hva6a7rossina9qdrsrmbf9bdb Query : use flama_phc
20240728@233845.1312 hva6a7rossina9qdrsrmbf9bdb Query : select st.usalote valor from st where st.ref = '324.700.94.01'
20240728@233845.1337 hva6a7rossina9qdrsrmbf9bdb Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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.700.94.01'
20240728@233845.1509 hva6a7rossina9qdrsrmbf9bdb Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233845.1527 hva6a7rossina9qdrsrmbf9bdb Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240728@233845.1558 hva6a7rossina9qdrsrmbf9bdb Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233845.1575 hva6a7rossina9qdrsrmbf9bdb Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240728@233845.1584 hva6a7rossina9qdrsrmbf9bdb Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240728@233845.1601 hva6a7rossina9qdrsrmbf9bdb Query : select sestamp valor from se where ref ='324.700.94.01' and lote = 'r2300913100a'
20240728@233845.1617 hva6a7rossina9qdrsrmbf9bdb Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233845.1633 hva6a7rossina9qdrsrmbf9bdb Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240728@233845.1647 hva6a7rossina9qdrsrmbf9bdb Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66a6c0193866a6c87527','aut66a6c2859866a6c87469' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240728@233845.1652 hva6a7rossina9qdrsrmbf9bdb Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233845.1669 hva6a7rossina9qdrsrmbf9bdb Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240728@233845.1702 hva6a7rossina9qdrsrmbf9bdb Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66a6c0193866a6c87527',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',22.000 ,'aut66a6c2859866a6c87469' ,0,0 ,2,23.00,60000,?,?,?,?,?)
20240728@233845.1954 hva6a7rossina9qdrsrmbf9bdb Query : use flama_phc
20240728@233845.1958 hva6a7rossina9qdrsrmbf9bdb Query : select st.usalote valor from st where st.ref = '324.700.94.01'
20240728@233845.1982 hva6a7rossina9qdrsrmbf9bdb Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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.700.94.01'
20240728@233845.1998 hva6a7rossina9qdrsrmbf9bdb Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233845.2016 hva6a7rossina9qdrsrmbf9bdb Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240728@233845.2054 hva6a7rossina9qdrsrmbf9bdb Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233845.2071 hva6a7rossina9qdrsrmbf9bdb Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240728@233845.2081 hva6a7rossina9qdrsrmbf9bdb Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240728@233845.2095 hva6a7rossina9qdrsrmbf9bdb Query : select sestamp valor from se where ref ='324.700.94.01' and lote = 'r2300913100a'
20240728@233845.2111 hva6a7rossina9qdrsrmbf9bdb Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233845.2128 hva6a7rossina9qdrsrmbf9bdb Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240728@233845.2143 hva6a7rossina9qdrsrmbf9bdb Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66a6c0365966a6c87533','aut66a6c2859866a6c87469' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240728@233845.2148 hva6a7rossina9qdrsrmbf9bdb Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233845.2167 hva6a7rossina9qdrsrmbf9bdb Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240728@233845.2203 hva6a7rossina9qdrsrmbf9bdb Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66a6c0365966a6c87533',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',6.000 ,'aut66a6c2859866a6c87469' ,0,0 ,2,23.00,70000,?,?,?,?,?)
20240728@233845.2477 hva6a7rossina9qdrsrmbf9bdb Query : use flama_phc
20240728@233845.2480 hva6a7rossina9qdrsrmbf9bdb Query : select st.usalote valor from st where st.ref = '324.2200.94.1'
20240728@233845.2504 hva6a7rossina9qdrsrmbf9bdb Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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.2200.94.1'
20240728@233845.2660 hva6a7rossina9qdrsrmbf9bdb Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233845.2677 hva6a7rossina9qdrsrmbf9bdb Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240728@233845.2707 hva6a7rossina9qdrsrmbf9bdb Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233845.2726 hva6a7rossina9qdrsrmbf9bdb Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240728@233845.2736 hva6a7rossina9qdrsrmbf9bdb Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240728@233845.2791 hva6a7rossina9qdrsrmbf9bdb Query : select sestamp valor from se where ref ='324.2200.94.1' and lote = 'r2400046200a'
20240728@233845.2807 hva6a7rossina9qdrsrmbf9bdb Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233845.2823 hva6a7rossina9qdrsrmbf9bdb Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240728@233845.2837 hva6a7rossina9qdrsrmbf9bdb Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66a6c5098266a6c87544','aut66a6c2859866a6c87469' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240728@233845.2841 hva6a7rossina9qdrsrmbf9bdb Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233845.2858 hva6a7rossina9qdrsrmbf9bdb Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240728@233845.2891 hva6a7rossina9qdrsrmbf9bdb Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66a6c5098266a6c87544',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',6.000 ,'aut66a6c2859866a6c87469' ,0,0 ,2,23.00,80000,?,?,?,?,?)
20240728@233845.3155 hva6a7rossina9qdrsrmbf9bdb Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut66a6c2859866a6c87469','2404962','wait',39,'adm09112754980.682000002')
20240728@233845.3265 hva6a7rossina9qdrsrmbf9bdb Query : use flama_phc
20240728@233845.3268 hva6a7rossina9qdrsrmbf9bdb Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240728@233845.3301 hva6a7rossina9qdrsrmbf9bdb Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1186';
20240728@233845.3327 hva6a7rossina9qdrsrmbf9bdb Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1186';
20240728@233845.3374 hva6a7rossina9qdrsrmbf9bdb Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1186';
20240728@233845.3399 hva6a7rossina9qdrsrmbf9bdb Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1186';
20240728@233845.3997 5b138jj7oi6ch5ijjf5mlq2spi Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240728@233845.4010 5b138jj7oi6ch5ijjf5mlq2spi Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240728@233845.4067 5b138jj7oi6ch5ijjf5mlq2spi Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1187';
20240728@233845.4135 5b138jj7oi6ch5ijjf5mlq2spi Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1187';
20240728@233845.5411 5b138jj7oi6ch5ijjf5mlq2spi Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1187';
20240728@233845.5546 5b138jj7oi6ch5ijjf5mlq2spi Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1187';
20240728@233845.5596 5b138jj7oi6ch5ijjf5mlq2spi Query : use flama_phc
20240728@233845.5599 5b138jj7oi6ch5ijjf5mlq2spi Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240728@233845.5669 5b138jj7oi6ch5ijjf5mlq2spi Query : use flama_phc
20240728@233845.5672 5b138jj7oi6ch5ijjf5mlq2spi Query : select no, estab,szadrsdesc from szadrs where u_coddest=8748
20240728@233845.5758 5b138jj7oi6ch5ijjf5mlq2spi 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'
20240728@233845.5933 5b138jj7oi6ch5ijjf5mlq2spi Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2049 and bo.obrano = 2404965 and bi.ref ='304.4320.00.1' and bi.lordem =1
20240728@233845.6275 5b138jj7oi6ch5ijjf5mlq2spi Query : use flama_phc
20240728@233845.6278 5b138jj7oi6ch5ijjf5mlq2spi Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20240728@233845.6314 5b138jj7oi6ch5ijjf5mlq2spi Query : use flama_phc
20240728@233845.6317 5b138jj7oi6ch5ijjf5mlq2spi Query : select top 1 1 valor from td where td.ndoc = 39
20240728@233845.6356 5b138jj7oi6ch5ijjf5mlq2spi Query : use flama_phc
20240728@233845.6360 5b138jj7oi6ch5ijjf5mlq2spi 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')
20240728@233845.6391 5b138jj7oi6ch5ijjf5mlq2spi 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
20240728@233845.6435 5b138jj7oi6ch5ijjf5mlq2spi Query : use flama_phc
20240728@233845.6440 5b138jj7oi6ch5ijjf5mlq2spi Query : select top 1 ~inactivo valor from cl where no = '102253' and estab = 0 order by inactivo desc
20240728@233845.6584 5b138jj7oi6ch5ijjf5mlq2spi Query : use flama_phc
20240728@233845.6588 5b138jj7oi6ch5ijjf5mlq2spi Query : select top 1 tipodoc,regrd from td where ndoc = 39
20240728@233845.6628 5b138jj7oi6ch5ijjf5mlq2spi Query : use flama_phc
20240728@233845.6632 5b138jj7oi6ch5ijjf5mlq2spi Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20240728@233845.6675 5b138jj7oi6ch5ijjf5mlq2spi Query : use flama_phc
20240728@233845.6679 5b138jj7oi6ch5ijjf5mlq2spi Query : select szadrsstamp valor from szadrs where szadrsdesc='fnac - entrega'
20240728@233845.6730 5b138jj7oi6ch5ijjf5mlq2spi Query : use flama_phc
20240728@233845.6734 5b138jj7oi6ch5ijjf5mlq2spi Query : select 1 valor from td where ndoc = 39
20240728@233845.6750 5b138jj7oi6ch5ijjf5mlq2spi Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20240728@233845.6767 5b138jj7oi6ch5ijjf5mlq2spi Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233845.6786 5b138jj7oi6ch5ijjf5mlq2spi Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20240728@233845.6810 5b138jj7oi6ch5ijjf5mlq2spi Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233845.6828 5b138jj7oi6ch5ijjf5mlq2spi Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20240728@233845.6862 5b138jj7oi6ch5ijjf5mlq2spi Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233845.6878 5b138jj7oi6ch5ijjf5mlq2spi Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20240728@233845.6894 5b138jj7oi6ch5ijjf5mlq2spi Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240728@233845.6971 5b138jj7oi6ch5ijjf5mlq2spi Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240728@233845.6987 5b138jj7oi6ch5ijjf5mlq2spi Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233845.7006 5b138jj7oi6ch5ijjf5mlq2spi Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20240728@233845.7025 5b138jj7oi6ch5ijjf5mlq2spi Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut66a6c8168666a6c875a8' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20240728@233845.7359 5b138jj7oi6ch5ijjf5mlq2spi Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233845.7390 5b138jj7oi6ch5ijjf5mlq2spi Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20240728@233845.7434 5b138jj7oi6ch5ijjf5mlq2spi Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20240728@233845.7449 5b138jj7oi6ch5ijjf5mlq2spi Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20240728@233845.7629 5b138jj7oi6ch5ijjf5mlq2spi Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20240728@233845.7694 5b138jj7oi6ch5ijjf5mlq2spi Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20240728@233845.7708 5b138jj7oi6ch5ijjf5mlq2spi Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20240728@233845.7722 5b138jj7oi6ch5ijjf5mlq2spi Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20240728@233845.7735 5b138jj7oi6ch5ijjf5mlq2spi Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut66a6c8168666a6c875a8',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20240728@233845.8244 5b138jj7oi6ch5ijjf5mlq2spi Query : select top 1 fno valor from wsftdata order by fno desc
20240728@233845.8261 5b138jj7oi6ch5ijjf5mlq2spi Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233845.8280 5b138jj7oi6ch5ijjf5mlq2spi Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20240728@233845.8305 5b138jj7oi6ch5ijjf5mlq2spi Query : select 'normal' from dummy
20240728@233845.8321 5b138jj7oi6ch5ijjf5mlq2spi Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut66a6c8168666a6c875a8',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',36,102253,0,'2024-07-28',39,'euro',0,0,2024 ,?,?)
20240728@233845.8751 5b138jj7oi6ch5ijjf5mlq2spi Query : use flama_phc
20240728@233845.8755 5b138jj7oi6ch5ijjf5mlq2spi Query : select st.usalote valor from st where st.ref = '304.4320.00.1'
20240728@233845.8824 5b138jj7oi6ch5ijjf5mlq2spi Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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'
20240728@233845.9019 5b138jj7oi6ch5ijjf5mlq2spi Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233845.9057 5b138jj7oi6ch5ijjf5mlq2spi Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240728@233845.9108 5b138jj7oi6ch5ijjf5mlq2spi Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233845.9126 5b138jj7oi6ch5ijjf5mlq2spi Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240728@233845.9137 5b138jj7oi6ch5ijjf5mlq2spi Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240728@233845.9152 5b138jj7oi6ch5ijjf5mlq2spi Query : select sestamp valor from se where ref ='304.4320.00.1' and lote = '240897'
20240728@233845.9207 5b138jj7oi6ch5ijjf5mlq2spi Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233845.9227 5b138jj7oi6ch5ijjf5mlq2spi Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240728@233845.9243 5b138jj7oi6ch5ijjf5mlq2spi Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66a6c5922966a6c875e0','aut66a6c8168666a6c875a8' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240728@233845.9254 5b138jj7oi6ch5ijjf5mlq2spi Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233845.9274 5b138jj7oi6ch5ijjf5mlq2spi Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240728@233845.9310 5b138jj7oi6ch5ijjf5mlq2spi Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66a6c5922966a6c875e0',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',20.000 ,'aut66a6c8168666a6c875a8' ,0,0 ,2,23.00,10000,?,?,?,?,?)
20240728@233845.9600 5b138jj7oi6ch5ijjf5mlq2spi Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut66a6c8168666a6c875a8','2404965','wait',39,'adm09112754980.682000002')
20240728@233845.9682 5b138jj7oi6ch5ijjf5mlq2spi Query : use flama_phc
20240728@233845.9687 5b138jj7oi6ch5ijjf5mlq2spi Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240728@233845.9719 5b138jj7oi6ch5ijjf5mlq2spi Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1187';
20240728@233845.9745 5b138jj7oi6ch5ijjf5mlq2spi Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1187';
20240728@233845.9783 5b138jj7oi6ch5ijjf5mlq2spi Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1187';
20240728@233845.9807 5b138jj7oi6ch5ijjf5mlq2spi Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1187';
20240728@233846.3870 827ed6sa3ang123j9sbe3h26sc Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240728@233846.3990 827ed6sa3ang123j9sbe3h26sc Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240728@233846.4510 827ed6sa3ang123j9sbe3h26sc Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1188';
20240728@233846.1733 827ed6sa3ang123j9sbe3h26sc Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1188';
20240728@233846.1921 827ed6sa3ang123j9sbe3h26sc Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1188';
20240728@233846.1988 827ed6sa3ang123j9sbe3h26sc Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1188';
20240728@233846.2080 827ed6sa3ang123j9sbe3h26sc Query : use flama_phc
20240728@233846.2083 827ed6sa3ang123j9sbe3h26sc Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240728@233846.2152 827ed6sa3ang123j9sbe3h26sc Query : use flama_phc
20240728@233846.2156 827ed6sa3ang123j9sbe3h26sc Query : select no, estab,szadrsdesc from szadrs where u_coddest=8748
20240728@233846.2196 827ed6sa3ang123j9sbe3h26sc 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'
20240728@233846.2262 827ed6sa3ang123j9sbe3h26sc Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2049 and bo.obrano = 2404966 and bi.ref ='304.4320.00.1' and bi.lordem =1
20240728@233846.2653 827ed6sa3ang123j9sbe3h26sc Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.4970.00.1'
20240728@233846.2823 827ed6sa3ang123j9sbe3h26sc Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2049 and bo.obrano = 2404966 and bi.ref ='324.4970.00.1' and bi.lordem =2
20240728@233846.3159 827ed6sa3ang123j9sbe3h26sc Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.4421.00.1'
20240728@233846.3330 827ed6sa3ang123j9sbe3h26sc Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2049 and bo.obrano = 2404966 and bi.ref ='324.4421.00.1' and bi.lordem =3
20240728@233846.3689 827ed6sa3ang123j9sbe3h26sc Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.691.00.01'
20240728@233846.3863 827ed6sa3ang123j9sbe3h26sc Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2049 and bo.obrano = 2404966 and bi.ref ='324.691.00.01' and bi.lordem =4
20240728@233846.4254 827ed6sa3ang123j9sbe3h26sc Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1608.00.1'
20240728@233846.4437 827ed6sa3ang123j9sbe3h26sc Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2049 and bo.obrano = 2404966 and bi.ref ='324.1608.00.1' and bi.lordem =5
20240728@233846.4766 827ed6sa3ang123j9sbe3h26sc Query : use flama_phc
20240728@233846.4770 827ed6sa3ang123j9sbe3h26sc Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20240728@233846.4805 827ed6sa3ang123j9sbe3h26sc Query : use flama_phc
20240728@233846.4809 827ed6sa3ang123j9sbe3h26sc Query : select top 1 1 valor from td where td.ndoc = 39
20240728@233846.4844 827ed6sa3ang123j9sbe3h26sc Query : use flama_phc
20240728@233846.4847 827ed6sa3ang123j9sbe3h26sc 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')
20240728@233846.4878 827ed6sa3ang123j9sbe3h26sc 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
20240728@233846.4916 827ed6sa3ang123j9sbe3h26sc Query : use flama_phc
20240728@233846.4920 827ed6sa3ang123j9sbe3h26sc Query : select top 1 ~inactivo valor from cl where no = '102253' and estab = 0 order by inactivo desc
20240728@233846.4959 827ed6sa3ang123j9sbe3h26sc Query : use flama_phc
20240728@233846.4962 827ed6sa3ang123j9sbe3h26sc Query : select top 1 tipodoc,regrd from td where ndoc = 39
20240728@233846.4997 827ed6sa3ang123j9sbe3h26sc Query : use flama_phc
20240728@233846.5001 827ed6sa3ang123j9sbe3h26sc Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20240728@233846.5043 827ed6sa3ang123j9sbe3h26sc Query : use flama_phc
20240728@233846.5047 827ed6sa3ang123j9sbe3h26sc Query : select szadrsstamp valor from szadrs where szadrsdesc='fnac - entrega'
20240728@233846.5099 827ed6sa3ang123j9sbe3h26sc Query : use flama_phc
20240728@233846.5102 827ed6sa3ang123j9sbe3h26sc Query : select 1 valor from td where ndoc = 39
20240728@233846.5157 827ed6sa3ang123j9sbe3h26sc Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20240728@233846.5176 827ed6sa3ang123j9sbe3h26sc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233846.5195 827ed6sa3ang123j9sbe3h26sc Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20240728@233846.5218 827ed6sa3ang123j9sbe3h26sc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233846.5235 827ed6sa3ang123j9sbe3h26sc Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20240728@233846.5268 827ed6sa3ang123j9sbe3h26sc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233846.5284 827ed6sa3ang123j9sbe3h26sc Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20240728@233846.5300 827ed6sa3ang123j9sbe3h26sc Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240728@233846.5380 827ed6sa3ang123j9sbe3h26sc Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240728@233846.5397 827ed6sa3ang123j9sbe3h26sc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233846.5416 827ed6sa3ang123j9sbe3h26sc Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20240728@233846.5435 827ed6sa3ang123j9sbe3h26sc Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut66a6c9100766a6c87681' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20240728@233846.5618 827ed6sa3ang123j9sbe3h26sc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233846.5637 827ed6sa3ang123j9sbe3h26sc Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20240728@233846.5677 827ed6sa3ang123j9sbe3h26sc Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20240728@233846.5691 827ed6sa3ang123j9sbe3h26sc Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20240728@233846.5706 827ed6sa3ang123j9sbe3h26sc Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20240728@233846.5723 827ed6sa3ang123j9sbe3h26sc Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20240728@233846.5737 827ed6sa3ang123j9sbe3h26sc Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20240728@233846.5750 827ed6sa3ang123j9sbe3h26sc Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20240728@233846.5765 827ed6sa3ang123j9sbe3h26sc Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut66a6c9100766a6c87681',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20240728@233846.6016 827ed6sa3ang123j9sbe3h26sc Query : select top 1 fno valor from wsftdata order by fno desc
20240728@233846.6035 827ed6sa3ang123j9sbe3h26sc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233846.6054 827ed6sa3ang123j9sbe3h26sc Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20240728@233846.6082 827ed6sa3ang123j9sbe3h26sc Query : select 'normal' from dummy
20240728@233846.6103 827ed6sa3ang123j9sbe3h26sc Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut66a6c9100766a6c87681',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',37,102253,0,'2024-07-28',39,'euro',0,0,2024 ,?,?)
20240728@233846.6401 827ed6sa3ang123j9sbe3h26sc Query : use flama_phc
20240728@233846.6414 827ed6sa3ang123j9sbe3h26sc Query : select st.usalote valor from st where st.ref = '304.4320.00.1'
20240728@233846.6448 827ed6sa3ang123j9sbe3h26sc Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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'
20240728@233846.6466 827ed6sa3ang123j9sbe3h26sc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233846.6486 827ed6sa3ang123j9sbe3h26sc Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240728@233846.6542 827ed6sa3ang123j9sbe3h26sc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233846.6558 827ed6sa3ang123j9sbe3h26sc Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240728@233846.6570 827ed6sa3ang123j9sbe3h26sc Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240728@233846.6585 827ed6sa3ang123j9sbe3h26sc Query : select sestamp valor from se where ref ='304.4320.00.1' and lote = '240897'
20240728@233846.6602 827ed6sa3ang123j9sbe3h26sc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233846.6618 827ed6sa3ang123j9sbe3h26sc Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240728@233846.6633 827ed6sa3ang123j9sbe3h26sc Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66a6c9548166a6c876a1','aut66a6c9100766a6c87681' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240728@233846.6638 827ed6sa3ang123j9sbe3h26sc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233846.6657 827ed6sa3ang123j9sbe3h26sc Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240728@233846.6689 827ed6sa3ang123j9sbe3h26sc Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66a6c9548166a6c876a1',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',8.000 ,'aut66a6c9100766a6c87681' ,0,0 ,2,23.00,10000,?,?,?,?,?)
20240728@233846.6974 827ed6sa3ang123j9sbe3h26sc Query : use flama_phc
20240728@233846.6982 827ed6sa3ang123j9sbe3h26sc Query : select st.usalote valor from st where st.ref = '324.4970.00.1'
20240728@233846.7493 827ed6sa3ang123j9sbe3h26sc Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.4970.00.1'
20240728@233846.8312 827ed6sa3ang123j9sbe3h26sc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233846.8330 827ed6sa3ang123j9sbe3h26sc Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240728@233846.8357 827ed6sa3ang123j9sbe3h26sc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233846.8372 827ed6sa3ang123j9sbe3h26sc Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240728@233846.8381 827ed6sa3ang123j9sbe3h26sc Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240728@233846.8393 827ed6sa3ang123j9sbe3h26sc Query : select sestamp valor from se where ref ='324.4970.00.1' and lote = 'r2400205200a'
20240728@233846.8421 827ed6sa3ang123j9sbe3h26sc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233846.8435 827ed6sa3ang123j9sbe3h26sc Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240728@233846.8448 827ed6sa3ang123j9sbe3h26sc Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66a6c1048766a6c876cd','aut66a6c9100766a6c87681' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240728@233846.8458 827ed6sa3ang123j9sbe3h26sc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233846.8473 827ed6sa3ang123j9sbe3h26sc Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240728@233846.8503 827ed6sa3ang123j9sbe3h26sc Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66a6c1048766a6c876cd',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',20.000 ,'aut66a6c9100766a6c87681' ,0,0 ,2,23.00,20000,?,?,?,?,?)
20240728@233846.8768 827ed6sa3ang123j9sbe3h26sc Query : use flama_phc
20240728@233846.8772 827ed6sa3ang123j9sbe3h26sc Query : select st.usalote valor from st where st.ref = '324.4421.00.1'
20240728@233846.8796 827ed6sa3ang123j9sbe3h26sc Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.4421.00.1'
20240728@233846.8947 827ed6sa3ang123j9sbe3h26sc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233846.8966 827ed6sa3ang123j9sbe3h26sc Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240728@233846.8993 827ed6sa3ang123j9sbe3h26sc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233846.9053 827ed6sa3ang123j9sbe3h26sc Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240728@233846.9063 827ed6sa3ang123j9sbe3h26sc Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240728@233846.9077 827ed6sa3ang123j9sbe3h26sc Query : select sestamp valor from se where ref ='324.4421.00.1' and lote = 'r2100324100a'
20240728@233846.9126 827ed6sa3ang123j9sbe3h26sc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233846.9145 827ed6sa3ang123j9sbe3h26sc Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240728@233846.9160 827ed6sa3ang123j9sbe3h26sc Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66a6c3922666a6c876de','aut66a6c9100766a6c87681' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240728@233846.9164 827ed6sa3ang123j9sbe3h26sc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233846.9182 827ed6sa3ang123j9sbe3h26sc Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240728@233846.9213 827ed6sa3ang123j9sbe3h26sc Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66a6c3922666a6c876de',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',3.000 ,'aut66a6c9100766a6c87681' ,0,0 ,2,23.00,30000,?,?,?,?,?)
20240728@233846.9479 827ed6sa3ang123j9sbe3h26sc Query : use flama_phc
20240728@233846.9482 827ed6sa3ang123j9sbe3h26sc Query : select st.usalote valor from st where st.ref = '324.691.00.01'
20240728@233846.9506 827ed6sa3ang123j9sbe3h26sc Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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'
20240728@233846.9681 827ed6sa3ang123j9sbe3h26sc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233846.9702 827ed6sa3ang123j9sbe3h26sc Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240728@233846.9735 827ed6sa3ang123j9sbe3h26sc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233846.9754 827ed6sa3ang123j9sbe3h26sc Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240728@233846.9765 827ed6sa3ang123j9sbe3h26sc Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240728@233846.9783 827ed6sa3ang123j9sbe3h26sc Query : select sestamp valor from se where ref ='324.691.00.01' and lote = 'r2400209200a'
20240728@233846.9800 827ed6sa3ang123j9sbe3h26sc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233846.9826 827ed6sa3ang123j9sbe3h26sc Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240728@233846.9840 827ed6sa3ang123j9sbe3h26sc Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66a6c5609866a6c876ef','aut66a6c9100766a6c87681' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240728@233846.9845 827ed6sa3ang123j9sbe3h26sc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233846.9864 827ed6sa3ang123j9sbe3h26sc Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240728@233846.9900 827ed6sa3ang123j9sbe3h26sc Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66a6c5609866a6c876ef',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',4.000 ,'aut66a6c9100766a6c87681' ,0,0 ,2,23.00,40000,?,?,?,?,?)
20240728@233847.2240 827ed6sa3ang123j9sbe3h26sc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233847.2720 827ed6sa3ang123j9sbe3h26sc Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240728@233847.3070 827ed6sa3ang123j9sbe3h26sc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233847.3270 827ed6sa3ang123j9sbe3h26sc Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240728@233847.3380 827ed6sa3ang123j9sbe3h26sc Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240728@233847.3530 827ed6sa3ang123j9sbe3h26sc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233847.3730 827ed6sa3ang123j9sbe3h26sc Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240728@233847.3870 827ed6sa3ang123j9sbe3h26sc Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66a6c5385866a6c87708','aut66a6c9100766a6c87681' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240728@233847.3920 827ed6sa3ang123j9sbe3h26sc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233847.4110 827ed6sa3ang123j9sbe3h26sc Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240728@233847.4460 827ed6sa3ang123j9sbe3h26sc Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66a6c5385866a6c87708',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66a6c9100766a6c87681' ,0,0 ,2,23.00,50000,?,?,?)
20240728@233847.8230 827ed6sa3ang123j9sbe3h26sc Query : use flama_phc
20240728@233847.8280 827ed6sa3ang123j9sbe3h26sc Query : select st.usalote valor from st where st.ref = '324.1608.00.1'
20240728@233847.8570 827ed6sa3ang123j9sbe3h26sc Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.1608.00.1'
20240728@233847.1060 827ed6sa3ang123j9sbe3h26sc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233847.1082 827ed6sa3ang123j9sbe3h26sc Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240728@233847.1136 827ed6sa3ang123j9sbe3h26sc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233847.1158 827ed6sa3ang123j9sbe3h26sc Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240728@233847.1169 827ed6sa3ang123j9sbe3h26sc Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240728@233847.1187 827ed6sa3ang123j9sbe3h26sc Query : select sestamp valor from se where ref ='324.1608.00.1' and lote = 'r2200658200a'
20240728@233847.1224 827ed6sa3ang123j9sbe3h26sc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233847.1245 827ed6sa3ang123j9sbe3h26sc Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240728@233847.1261 827ed6sa3ang123j9sbe3h26sc Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66a6c0133866a6c8771d','aut66a6c9100766a6c87681' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240728@233847.1266 827ed6sa3ang123j9sbe3h26sc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233847.1284 827ed6sa3ang123j9sbe3h26sc Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240728@233847.1415 827ed6sa3ang123j9sbe3h26sc Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66a6c0133866a6c8771d',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',6.000 ,'aut66a6c9100766a6c87681' ,0,0 ,2,23.00,70000,?,?,?,?,?)
20240728@233847.1705 827ed6sa3ang123j9sbe3h26sc Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut66a6c9100766a6c87681','2404966','wait',39,'adm09112754980.682000002')
20240728@233847.1786 827ed6sa3ang123j9sbe3h26sc Query : use flama_phc
20240728@233847.1791 827ed6sa3ang123j9sbe3h26sc Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240728@233847.1824 827ed6sa3ang123j9sbe3h26sc Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1188';
20240728@233847.1852 827ed6sa3ang123j9sbe3h26sc Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1188';
20240728@233847.1888 827ed6sa3ang123j9sbe3h26sc Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1188';
20240728@233847.1912 827ed6sa3ang123j9sbe3h26sc Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1188';
20240728@233847.2481 tbt0e3noii13euouvluq2ta6m6 Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240728@233847.2492 tbt0e3noii13euouvluq2ta6m6 Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240728@233847.2540 tbt0e3noii13euouvluq2ta6m6 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1189';
20240728@233847.2592 tbt0e3noii13euouvluq2ta6m6 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1189';
20240728@233847.2637 tbt0e3noii13euouvluq2ta6m6 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1189';
20240728@233847.2658 tbt0e3noii13euouvluq2ta6m6 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1189';
20240728@233847.2700 tbt0e3noii13euouvluq2ta6m6 Query : use flama_phc
20240728@233847.2704 tbt0e3noii13euouvluq2ta6m6 Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240728@233847.2766 tbt0e3noii13euouvluq2ta6m6 Query : use flama_phc
20240728@233847.2770 tbt0e3noii13euouvluq2ta6m6 Query : select no, estab,szadrsdesc from szadrs where u_coddest=8748
20240728@233847.2806 tbt0e3noii13euouvluq2ta6m6 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.691.00.01'
20240728@233847.2826 tbt0e3noii13euouvluq2ta6m6 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2049 and bo.obrano = 2404967 and bi.ref ='324.691.00.01' and bi.lordem =1
20240728@233847.3163 tbt0e3noii13euouvluq2ta6m6 Query : use flama_phc
20240728@233847.3166 tbt0e3noii13euouvluq2ta6m6 Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20240728@233847.3201 tbt0e3noii13euouvluq2ta6m6 Query : use flama_phc
20240728@233847.3205 tbt0e3noii13euouvluq2ta6m6 Query : select top 1 1 valor from td where td.ndoc = 39
20240728@233847.3236 tbt0e3noii13euouvluq2ta6m6 Query : use flama_phc
20240728@233847.3242 tbt0e3noii13euouvluq2ta6m6 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')
20240728@233847.3273 tbt0e3noii13euouvluq2ta6m6 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
20240728@233847.3311 tbt0e3noii13euouvluq2ta6m6 Query : use flama_phc
20240728@233847.3314 tbt0e3noii13euouvluq2ta6m6 Query : select top 1 ~inactivo valor from cl where no = '102253' and estab = 0 order by inactivo desc
20240728@233847.3347 tbt0e3noii13euouvluq2ta6m6 Query : use flama_phc
20240728@233847.3351 tbt0e3noii13euouvluq2ta6m6 Query : select top 1 tipodoc,regrd from td where ndoc = 39
20240728@233847.3384 tbt0e3noii13euouvluq2ta6m6 Query : use flama_phc
20240728@233847.3387 tbt0e3noii13euouvluq2ta6m6 Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20240728@233847.3429 tbt0e3noii13euouvluq2ta6m6 Query : use flama_phc
20240728@233847.3433 tbt0e3noii13euouvluq2ta6m6 Query : select szadrsstamp valor from szadrs where szadrsdesc='fnac - entrega'
20240728@233847.3481 tbt0e3noii13euouvluq2ta6m6 Query : use flama_phc
20240728@233847.3483 tbt0e3noii13euouvluq2ta6m6 Query : select 1 valor from td where ndoc = 39
20240728@233847.3497 tbt0e3noii13euouvluq2ta6m6 Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20240728@233847.3513 tbt0e3noii13euouvluq2ta6m6 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233847.3531 tbt0e3noii13euouvluq2ta6m6 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20240728@233847.3553 tbt0e3noii13euouvluq2ta6m6 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233847.3570 tbt0e3noii13euouvluq2ta6m6 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20240728@233847.3604 tbt0e3noii13euouvluq2ta6m6 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233847.3619 tbt0e3noii13euouvluq2ta6m6 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20240728@233847.3633 tbt0e3noii13euouvluq2ta6m6 Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240728@233847.3713 tbt0e3noii13euouvluq2ta6m6 Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240728@233847.3728 tbt0e3noii13euouvluq2ta6m6 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233847.3747 tbt0e3noii13euouvluq2ta6m6 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20240728@233847.3765 tbt0e3noii13euouvluq2ta6m6 Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut66a6c6266466a6c87758' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20240728@233847.3950 tbt0e3noii13euouvluq2ta6m6 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233847.3969 tbt0e3noii13euouvluq2ta6m6 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20240728@233847.4006 tbt0e3noii13euouvluq2ta6m6 Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20240728@233847.5211 tbt0e3noii13euouvluq2ta6m6 Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20240728@233847.5225 tbt0e3noii13euouvluq2ta6m6 Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20240728@233847.5240 tbt0e3noii13euouvluq2ta6m6 Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20240728@233847.5257 tbt0e3noii13euouvluq2ta6m6 Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20240728@233847.5272 tbt0e3noii13euouvluq2ta6m6 Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20240728@233847.5288 tbt0e3noii13euouvluq2ta6m6 Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut66a6c6266466a6c87758',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20240728@233847.5632 tbt0e3noii13euouvluq2ta6m6 Query : select top 1 fno valor from wsftdata order by fno desc
20240728@233847.5650 tbt0e3noii13euouvluq2ta6m6 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233847.5671 tbt0e3noii13euouvluq2ta6m6 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20240728@233847.6022 tbt0e3noii13euouvluq2ta6m6 Query : select 'normal' from dummy
20240728@233847.6565 tbt0e3noii13euouvluq2ta6m6 Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut66a6c6266466a6c87758',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',38,102253,0,'2024-07-28',39,'euro',0,0,2024 ,?,?)
20240728@233847.7086 tbt0e3noii13euouvluq2ta6m6 Query : use flama_phc
20240728@233847.7090 tbt0e3noii13euouvluq2ta6m6 Query : select st.usalote valor from st where st.ref = '324.691.00.01'
20240728@233847.7114 tbt0e3noii13euouvluq2ta6m6 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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'
20240728@233847.7132 tbt0e3noii13euouvluq2ta6m6 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233847.7150 tbt0e3noii13euouvluq2ta6m6 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240728@233847.7182 tbt0e3noii13euouvluq2ta6m6 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233847.7282 tbt0e3noii13euouvluq2ta6m6 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240728@233847.7322 tbt0e3noii13euouvluq2ta6m6 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240728@233847.7339 tbt0e3noii13euouvluq2ta6m6 Query : select sestamp valor from se where ref ='324.691.00.01' and lote = 'r2400209200a'
20240728@233847.7363 tbt0e3noii13euouvluq2ta6m6 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233847.7382 tbt0e3noii13euouvluq2ta6m6 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240728@233847.7397 tbt0e3noii13euouvluq2ta6m6 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66a6c8321666a6c877b3','aut66a6c6266466a6c87758' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240728@233847.7402 tbt0e3noii13euouvluq2ta6m6 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233847.7420 tbt0e3noii13euouvluq2ta6m6 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240728@233847.7536 tbt0e3noii13euouvluq2ta6m6 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66a6c8321666a6c877b3',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',2.000 ,'aut66a6c6266466a6c87758' ,0,0 ,2,23.00,10000,?,?,?,?,?)
20240728@233847.7988 tbt0e3noii13euouvluq2ta6m6 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233847.8007 tbt0e3noii13euouvluq2ta6m6 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240728@233847.8038 tbt0e3noii13euouvluq2ta6m6 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233847.8055 tbt0e3noii13euouvluq2ta6m6 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240728@233847.8065 tbt0e3noii13euouvluq2ta6m6 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240728@233847.8078 tbt0e3noii13euouvluq2ta6m6 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233847.8094 tbt0e3noii13euouvluq2ta6m6 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240728@233847.8107 tbt0e3noii13euouvluq2ta6m6 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66a6c3432566a6c877c5','aut66a6c6266466a6c87758' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240728@233847.8112 tbt0e3noii13euouvluq2ta6m6 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233847.8128 tbt0e3noii13euouvluq2ta6m6 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240728@233847.8158 tbt0e3noii13euouvluq2ta6m6 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66a6c3432566a6c877c5',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66a6c6266466a6c87758' ,0,0 ,2,23.00,20000,?,?,?)
20240728@233847.8527 tbt0e3noii13euouvluq2ta6m6 Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut66a6c6266466a6c87758','2404967','wait',39,'adm09112754980.682000002')
20240728@233847.8596 tbt0e3noii13euouvluq2ta6m6 Query : use flama_phc
20240728@233847.8599 tbt0e3noii13euouvluq2ta6m6 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240728@233847.8630 tbt0e3noii13euouvluq2ta6m6 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1189';
20240728@233847.8654 tbt0e3noii13euouvluq2ta6m6 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1189';
20240728@233847.8730 tbt0e3noii13euouvluq2ta6m6 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1189';
20240728@233847.8789 tbt0e3noii13euouvluq2ta6m6 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1189';
20240728@233847.9426 j724dm0ii56ru2ue957urvt2tp Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240728@233847.9437 j724dm0ii56ru2ue957urvt2tp Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240728@233847.9483 j724dm0ii56ru2ue957urvt2tp Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1190';
20240728@233847.9532 j724dm0ii56ru2ue957urvt2tp Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1190';
20240728@233847.9576 j724dm0ii56ru2ue957urvt2tp Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1190';
20240728@233847.9598 j724dm0ii56ru2ue957urvt2tp Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1190';
20240728@233847.9640 j724dm0ii56ru2ue957urvt2tp Query : use flama_phc
20240728@233847.9643 j724dm0ii56ru2ue957urvt2tp Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240728@233847.9705 j724dm0ii56ru2ue957urvt2tp Query : use flama_phc
20240728@233847.9711 j724dm0ii56ru2ue957urvt2tp Query : select no, estab,szadrsdesc from szadrs where u_coddest=8748
20240728@233847.9748 j724dm0ii56ru2ue957urvt2tp Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.727.00.01'
20240728@233847.9919 j724dm0ii56ru2ue957urvt2tp Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2049 and bo.obrano = 2404968 and bi.ref ='324.727.00.01' and bi.lordem =1
20240728@233848.2540 j724dm0ii56ru2ue957urvt2tp Query : use flama_phc
20240728@233848.2580 j724dm0ii56ru2ue957urvt2tp Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20240728@233848.2940 j724dm0ii56ru2ue957urvt2tp Query : use flama_phc
20240728@233848.2980 j724dm0ii56ru2ue957urvt2tp Query : select top 1 1 valor from td where td.ndoc = 39
20240728@233848.3290 j724dm0ii56ru2ue957urvt2tp Query : use flama_phc
20240728@233848.3310 j724dm0ii56ru2ue957urvt2tp 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')
20240728@233848.3670 j724dm0ii56ru2ue957urvt2tp 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
20240728@233848.4030 j724dm0ii56ru2ue957urvt2tp Query : use flama_phc
20240728@233848.4070 j724dm0ii56ru2ue957urvt2tp Query : select top 1 ~inactivo valor from cl where no = '102253' and estab = 0 order by inactivo desc
20240728@233848.4370 j724dm0ii56ru2ue957urvt2tp Query : use flama_phc
20240728@233848.4400 j724dm0ii56ru2ue957urvt2tp Query : select top 1 tipodoc,regrd from td where ndoc = 39
20240728@233848.4740 j724dm0ii56ru2ue957urvt2tp Query : use flama_phc
20240728@233848.4780 j724dm0ii56ru2ue957urvt2tp Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20240728@233848.5190 j724dm0ii56ru2ue957urvt2tp Query : use flama_phc
20240728@233848.5220 j724dm0ii56ru2ue957urvt2tp Query : select szadrsstamp valor from szadrs where szadrsdesc='fnac - entrega'
20240728@233848.1214 j724dm0ii56ru2ue957urvt2tp Query : use flama_phc
20240728@233848.1217 j724dm0ii56ru2ue957urvt2tp Query : select 1 valor from td where ndoc = 39
20240728@233848.1232 j724dm0ii56ru2ue957urvt2tp Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20240728@233848.1248 j724dm0ii56ru2ue957urvt2tp Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233848.1264 j724dm0ii56ru2ue957urvt2tp Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20240728@233848.1284 j724dm0ii56ru2ue957urvt2tp Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233848.1299 j724dm0ii56ru2ue957urvt2tp Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20240728@233848.1331 j724dm0ii56ru2ue957urvt2tp Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233848.1346 j724dm0ii56ru2ue957urvt2tp Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20240728@233848.1360 j724dm0ii56ru2ue957urvt2tp Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240728@233848.1435 j724dm0ii56ru2ue957urvt2tp Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240728@233848.1450 j724dm0ii56ru2ue957urvt2tp Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233848.1467 j724dm0ii56ru2ue957urvt2tp Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20240728@233848.1483 j724dm0ii56ru2ue957urvt2tp Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut66a6c0281266a6c87821' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20240728@233848.1660 j724dm0ii56ru2ue957urvt2tp Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233848.1677 j724dm0ii56ru2ue957urvt2tp Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20240728@233848.1715 j724dm0ii56ru2ue957urvt2tp Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20240728@233848.1729 j724dm0ii56ru2ue957urvt2tp Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20240728@233848.1749 j724dm0ii56ru2ue957urvt2tp Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20240728@233848.1762 j724dm0ii56ru2ue957urvt2tp Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20240728@233848.1775 j724dm0ii56ru2ue957urvt2tp Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20240728@233848.1788 j724dm0ii56ru2ue957urvt2tp Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20240728@233848.1801 j724dm0ii56ru2ue957urvt2tp Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut66a6c0281266a6c87821',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20240728@233848.2060 j724dm0ii56ru2ue957urvt2tp Query : select top 1 fno valor from wsftdata order by fno desc
20240728@233848.2076 j724dm0ii56ru2ue957urvt2tp Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233848.2094 j724dm0ii56ru2ue957urvt2tp Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20240728@233848.2122 j724dm0ii56ru2ue957urvt2tp Query : select 'normal' from dummy
20240728@233848.2142 j724dm0ii56ru2ue957urvt2tp Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut66a6c0281266a6c87821',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',39,102253,0,'2024-07-28',39,'euro',0,0,2024 ,?,?)
20240728@233848.2436 j724dm0ii56ru2ue957urvt2tp Query : use flama_phc
20240728@233848.2439 j724dm0ii56ru2ue957urvt2tp Query : select st.usalote valor from st where st.ref = '324.727.00.01'
20240728@233848.2463 j724dm0ii56ru2ue957urvt2tp Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.727.00.01'
20240728@233848.3663 j724dm0ii56ru2ue957urvt2tp Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233848.3732 j724dm0ii56ru2ue957urvt2tp Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240728@233848.3765 j724dm0ii56ru2ue957urvt2tp Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233848.3783 j724dm0ii56ru2ue957urvt2tp Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240728@233848.3793 j724dm0ii56ru2ue957urvt2tp Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240728@233848.3823 j724dm0ii56ru2ue957urvt2tp Query : select sestamp valor from se where ref ='324.727.00.01' and lote = 'r2300534200a'
20240728@233848.3857 j724dm0ii56ru2ue957urvt2tp Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233848.3873 j724dm0ii56ru2ue957urvt2tp Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240728@233848.3886 j724dm0ii56ru2ue957urvt2tp Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66a6c2961266a6c8785e','aut66a6c0281266a6c87821' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240728@233848.3890 j724dm0ii56ru2ue957urvt2tp Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233848.3906 j724dm0ii56ru2ue957urvt2tp Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240728@233848.3940 j724dm0ii56ru2ue957urvt2tp Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66a6c2961266a6c8785e',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',20.000 ,'aut66a6c0281266a6c87821' ,0,0 ,2,23.00,10000,?,?,?,?,?)
20240728@233848.4230 j724dm0ii56ru2ue957urvt2tp Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233848.4249 j724dm0ii56ru2ue957urvt2tp Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240728@233848.4281 j724dm0ii56ru2ue957urvt2tp Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233848.4298 j724dm0ii56ru2ue957urvt2tp Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240728@233848.4308 j724dm0ii56ru2ue957urvt2tp Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240728@233848.4322 j724dm0ii56ru2ue957urvt2tp Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233848.4339 j724dm0ii56ru2ue957urvt2tp Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240728@233848.4353 j724dm0ii56ru2ue957urvt2tp Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66a6c1706066a6c87869','aut66a6c0281266a6c87821' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240728@233848.4358 j724dm0ii56ru2ue957urvt2tp Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233848.4374 j724dm0ii56ru2ue957urvt2tp Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240728@233848.4409 j724dm0ii56ru2ue957urvt2tp Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66a6c1706066a6c87869',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66a6c0281266a6c87821' ,0,0 ,2,23.00,20000,?,?,?)
20240728@233848.4695 j724dm0ii56ru2ue957urvt2tp Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut66a6c0281266a6c87821','2404968','wait',39,'adm09112754980.682000002')
20240728@233848.4773 j724dm0ii56ru2ue957urvt2tp Query : use flama_phc
20240728@233848.4777 j724dm0ii56ru2ue957urvt2tp Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240728@233848.4811 j724dm0ii56ru2ue957urvt2tp Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1190';
20240728@233848.4838 j724dm0ii56ru2ue957urvt2tp Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1190';
20240728@233848.4876 j724dm0ii56ru2ue957urvt2tp Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1190';
20240728@233848.4899 j724dm0ii56ru2ue957urvt2tp Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1190';
20240728@233848.5914 cgoel73mch5bbjng41kermu0oe Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240728@233848.5925 cgoel73mch5bbjng41kermu0oe Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240728@233848.5975 cgoel73mch5bbjng41kermu0oe Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1191';
20240728@233848.6028 cgoel73mch5bbjng41kermu0oe Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1191';
20240728@233848.6079 cgoel73mch5bbjng41kermu0oe Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1191';
20240728@233848.6104 cgoel73mch5bbjng41kermu0oe Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1191';
20240728@233848.6157 cgoel73mch5bbjng41kermu0oe Query : use flama_phc
20240728@233848.6161 cgoel73mch5bbjng41kermu0oe Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240728@233848.6231 cgoel73mch5bbjng41kermu0oe Query : use flama_phc
20240728@233848.6234 cgoel73mch5bbjng41kermu0oe Query : select no, estab,szadrsdesc from szadrs where u_coddest=4779
20240728@233848.6318 cgoel73mch5bbjng41kermu0oe 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'
20240728@233848.6498 cgoel73mch5bbjng41kermu0oe Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2049 and bo.obrano = 2404969 and bi.ref ='304.421.00.04' and bi.lordem =1
20240728@233848.6871 cgoel73mch5bbjng41kermu0oe 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'
20240728@233848.7066 cgoel73mch5bbjng41kermu0oe Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2049 and bo.obrano = 2404969 and bi.ref ='324.4960.00.1' and bi.lordem =2
20240728@233848.7758 cgoel73mch5bbjng41kermu0oe Query : use flama_phc
20240728@233848.7776 cgoel73mch5bbjng41kermu0oe Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20240728@233848.7818 cgoel73mch5bbjng41kermu0oe Query : use flama_phc
20240728@233848.7822 cgoel73mch5bbjng41kermu0oe Query : select top 1 1 valor from td where td.ndoc = 39
20240728@233848.7857 cgoel73mch5bbjng41kermu0oe Query : use flama_phc
20240728@233848.7860 cgoel73mch5bbjng41kermu0oe 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')
20240728@233848.7890 cgoel73mch5bbjng41kermu0oe 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
20240728@233848.7925 cgoel73mch5bbjng41kermu0oe Query : use flama_phc
20240728@233848.7928 cgoel73mch5bbjng41kermu0oe Query : select top 1 ~inactivo valor from cl where no = '101900' and estab = 0 order by inactivo desc
20240728@233848.8078 cgoel73mch5bbjng41kermu0oe Query : use flama_phc
20240728@233848.8081 cgoel73mch5bbjng41kermu0oe Query : select top 1 tipodoc,regrd from td where ndoc = 39
20240728@233848.8111 cgoel73mch5bbjng41kermu0oe Query : use flama_phc
20240728@233848.8114 cgoel73mch5bbjng41kermu0oe Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20240728@233848.8156 cgoel73mch5bbjng41kermu0oe Query : use flama_phc
20240728@233848.8159 cgoel73mch5bbjng41kermu0oe Query : select szadrsstamp valor from szadrs where szadrsdesc='101900 - pd - alcochete'
20240728@233848.8208 cgoel73mch5bbjng41kermu0oe Query : use flama_phc
20240728@233848.8211 cgoel73mch5bbjng41kermu0oe Query : select 1 valor from td where ndoc = 39
20240728@233848.8228 cgoel73mch5bbjng41kermu0oe Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20240728@233848.8242 cgoel73mch5bbjng41kermu0oe Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233848.8261 cgoel73mch5bbjng41kermu0oe Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20240728@233848.8280 cgoel73mch5bbjng41kermu0oe Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233848.8297 cgoel73mch5bbjng41kermu0oe Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20240728@233848.8328 cgoel73mch5bbjng41kermu0oe Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233848.8344 cgoel73mch5bbjng41kermu0oe Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20240728@233848.8360 cgoel73mch5bbjng41kermu0oe Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240728@233848.8451 cgoel73mch5bbjng41kermu0oe Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240728@233848.8464 cgoel73mch5bbjng41kermu0oe Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233848.8485 cgoel73mch5bbjng41kermu0oe Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20240728@233848.8501 cgoel73mch5bbjng41kermu0oe Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut66a6c4248366a6c878cc' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20240728@233848.8702 cgoel73mch5bbjng41kermu0oe Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233848.8722 cgoel73mch5bbjng41kermu0oe Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20240728@233848.8770 cgoel73mch5bbjng41kermu0oe Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20240728@233848.8782 cgoel73mch5bbjng41kermu0oe Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20240728@233848.8794 cgoel73mch5bbjng41kermu0oe Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20240728@233848.8808 cgoel73mch5bbjng41kermu0oe Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20240728@233848.8822 cgoel73mch5bbjng41kermu0oe Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20240728@233848.8835 cgoel73mch5bbjng41kermu0oe Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20240728@233848.8848 cgoel73mch5bbjng41kermu0oe Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut66a6c4248366a6c878cc',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20240728@233848.9106 cgoel73mch5bbjng41kermu0oe Query : select top 1 fno valor from wsftdata order by fno desc
20240728@233848.9125 cgoel73mch5bbjng41kermu0oe Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233848.9140 cgoel73mch5bbjng41kermu0oe Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20240728@233848.9163 cgoel73mch5bbjng41kermu0oe Query : select 'normal' from dummy
20240728@233848.9178 cgoel73mch5bbjng41kermu0oe Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut66a6c4248366a6c878cc',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',40,101900,0,'2024-07-28',39,'euro',0,0,2024 ,?,?)
20240728@233848.9492 cgoel73mch5bbjng41kermu0oe Query : use flama_phc
20240728@233848.9497 cgoel73mch5bbjng41kermu0oe Query : select st.usalote valor from st where st.ref = '304.421.00.04'
20240728@233848.9524 cgoel73mch5bbjng41kermu0oe Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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'
20240728@233848.9673 cgoel73mch5bbjng41kermu0oe Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233848.9691 cgoel73mch5bbjng41kermu0oe Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240728@233848.9719 cgoel73mch5bbjng41kermu0oe Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233848.9736 cgoel73mch5bbjng41kermu0oe Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240728@233848.9747 cgoel73mch5bbjng41kermu0oe Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240728@233848.9762 cgoel73mch5bbjng41kermu0oe Query : select sestamp valor from se where ref ='304.421.00.04' and lote = '240896'
20240728@233848.9778 cgoel73mch5bbjng41kermu0oe Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233848.9795 cgoel73mch5bbjng41kermu0oe Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240728@233848.9807 cgoel73mch5bbjng41kermu0oe Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66a6c4585966a6c878ee','aut66a6c4248366a6c878cc' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240728@233848.9811 cgoel73mch5bbjng41kermu0oe Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233848.9827 cgoel73mch5bbjng41kermu0oe Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240728@233848.9858 cgoel73mch5bbjng41kermu0oe Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66a6c4585966a6c878ee',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',20.000 ,'aut66a6c4248366a6c878cc' ,0,0 ,2,23.00,10000,?,?,?,?,?)
20240728@233849.1380 cgoel73mch5bbjng41kermu0oe Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233849.1550 cgoel73mch5bbjng41kermu0oe Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240728@233849.1860 cgoel73mch5bbjng41kermu0oe Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233849.2040 cgoel73mch5bbjng41kermu0oe Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240728@233849.2130 cgoel73mch5bbjng41kermu0oe Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240728@233849.2340 cgoel73mch5bbjng41kermu0oe Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233849.1440 cgoel73mch5bbjng41kermu0oe Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240728@233849.1524 cgoel73mch5bbjng41kermu0oe Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66a6c2802566a6c87905','aut66a6c4248366a6c878cc' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240728@233849.1528 cgoel73mch5bbjng41kermu0oe Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233849.1545 cgoel73mch5bbjng41kermu0oe Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240728@233849.1579 cgoel73mch5bbjng41kermu0oe Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66a6c2802566a6c87905',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66a6c4248366a6c878cc' ,0,0 ,2,23.00,20000,?,?,?)
20240728@233849.2319 cgoel73mch5bbjng41kermu0oe Query : use flama_phc
20240728@233849.2323 cgoel73mch5bbjng41kermu0oe Query : select st.usalote valor from st where st.ref = '324.4960.00.1'
20240728@233849.2348 cgoel73mch5bbjng41kermu0oe Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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'
20240728@233849.2518 cgoel73mch5bbjng41kermu0oe Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233849.2535 cgoel73mch5bbjng41kermu0oe Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240728@233849.2563 cgoel73mch5bbjng41kermu0oe Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233849.2579 cgoel73mch5bbjng41kermu0oe Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240728@233849.2588 cgoel73mch5bbjng41kermu0oe Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240728@233849.2602 cgoel73mch5bbjng41kermu0oe Query : select sestamp valor from se where ref ='324.4960.00.1' and lote = 'r2100754100a'
20240728@233849.2640 cgoel73mch5bbjng41kermu0oe Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233849.2658 cgoel73mch5bbjng41kermu0oe Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240728@233849.2672 cgoel73mch5bbjng41kermu0oe Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66a6c7473866a6c87940','aut66a6c4248366a6c878cc' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240728@233849.2677 cgoel73mch5bbjng41kermu0oe Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233849.2699 cgoel73mch5bbjng41kermu0oe Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240728@233849.2729 cgoel73mch5bbjng41kermu0oe Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66a6c7473866a6c87940',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',6.000 ,'aut66a6c4248366a6c878cc' ,0,0 ,2,23.00,40000,?,?,?,?,?)
20240728@233849.2996 cgoel73mch5bbjng41kermu0oe Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut66a6c4248366a6c878cc','2404969','wait',39,'adm09112754980.682000002')
20240728@233849.3072 cgoel73mch5bbjng41kermu0oe Query : use flama_phc
20240728@233849.3075 cgoel73mch5bbjng41kermu0oe Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240728@233849.3113 cgoel73mch5bbjng41kermu0oe Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1191';
20240728@233849.3139 cgoel73mch5bbjng41kermu0oe Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1191';
20240728@233849.3176 cgoel73mch5bbjng41kermu0oe Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1191';
20240728@233849.3200 cgoel73mch5bbjng41kermu0oe Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1191';
20240728@233849.3706 vlopomjgstnbkvb3qur98j0b2p Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240728@233849.3718 vlopomjgstnbkvb3qur98j0b2p Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240728@233849.3777 vlopomjgstnbkvb3qur98j0b2p Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1192';
20240728@233849.3834 vlopomjgstnbkvb3qur98j0b2p Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1192';
20240728@233849.3896 vlopomjgstnbkvb3qur98j0b2p Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1192';
20240728@233849.3923 vlopomjgstnbkvb3qur98j0b2p Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1192';
20240728@233849.3983 vlopomjgstnbkvb3qur98j0b2p Query : use flama_phc
20240728@233849.3987 vlopomjgstnbkvb3qur98j0b2p Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240728@233849.4073 vlopomjgstnbkvb3qur98j0b2p Query : use flama_phc
20240728@233849.4076 vlopomjgstnbkvb3qur98j0b2p Query : select no, estab,szadrsdesc from szadrs where u_coddest=201
20240728@233849.4167 vlopomjgstnbkvb3qur98j0b2p Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1426.00.1'
20240728@233849.4348 vlopomjgstnbkvb3qur98j0b2p Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2049 and bo.obrano = 2404973 and bi.ref ='324.1426.00.1' and bi.lordem =1
20240728@233849.4682 vlopomjgstnbkvb3qur98j0b2p Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1675.00.2'
20240728@233849.4864 vlopomjgstnbkvb3qur98j0b2p Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2049 and bo.obrano = 2404973 and bi.ref ='324.1675.00.2' and bi.lordem =2
20240728@233849.5222 vlopomjgstnbkvb3qur98j0b2p Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1675.00.2'
20240728@233849.5247 vlopomjgstnbkvb3qur98j0b2p Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2049 and bo.obrano = 2404973 and bi.ref ='324.1675.00.2' and bi.lordem =2
20240728@233849.5271 vlopomjgstnbkvb3qur98j0b2p Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '325.1675.3015'
20240728@233849.5475 vlopomjgstnbkvb3qur98j0b2p Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2049 and bo.obrano = 2404973 and bi.ref ='325.1675.3015' and bi.lordem =3
20240728@233849.5855 vlopomjgstnbkvb3qur98j0b2p Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '328.9106.00.1'
20240728@233849.6039 vlopomjgstnbkvb3qur98j0b2p Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2049 and bo.obrano = 2404973 and bi.ref ='328.9106.00.1' and bi.lordem =4
20240728@233849.6404 vlopomjgstnbkvb3qur98j0b2p Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '327.8253.00.1'
20240728@233849.6593 vlopomjgstnbkvb3qur98j0b2p Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2049 and bo.obrano = 2404973 and bi.ref ='327.8253.00.1' and bi.lordem =5
20240728@233849.6945 vlopomjgstnbkvb3qur98j0b2p Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '327.8253.00.1'
20240728@233849.6970 vlopomjgstnbkvb3qur98j0b2p Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2049 and bo.obrano = 2404973 and bi.ref ='327.8253.00.1' and bi.lordem =5
20240728@233849.6995 vlopomjgstnbkvb3qur98j0b2p 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'
20240728@233849.7022 vlopomjgstnbkvb3qur98j0b2p Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2049 and bo.obrano = 2404973 and bi.ref ='304.4320.00.1' and bi.lordem =6
20240728@233849.7376 vlopomjgstnbkvb3qur98j0b2p Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.4970.00.1'
20240728@233849.7399 vlopomjgstnbkvb3qur98j0b2p Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2049 and bo.obrano = 2404973 and bi.ref ='324.4970.00.1' and bi.lordem =7
20240728@233849.7747 vlopomjgstnbkvb3qur98j0b2p Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.2066.00.1'
20240728@233849.8519 vlopomjgstnbkvb3qur98j0b2p Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2049 and bo.obrano = 2404973 and bi.ref ='324.2066.00.1' and bi.lordem =8
20240728@233849.8888 vlopomjgstnbkvb3qur98j0b2p Query : use flama_phc
20240728@233849.8893 vlopomjgstnbkvb3qur98j0b2p Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20240728@233849.8932 vlopomjgstnbkvb3qur98j0b2p Query : use flama_phc
20240728@233849.8937 vlopomjgstnbkvb3qur98j0b2p Query : select top 1 1 valor from td where td.ndoc = 39
20240728@233849.8969 vlopomjgstnbkvb3qur98j0b2p Query : use flama_phc
20240728@233849.8972 vlopomjgstnbkvb3qur98j0b2p 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')
20240728@233849.9002 vlopomjgstnbkvb3qur98j0b2p 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
20240728@233849.9041 vlopomjgstnbkvb3qur98j0b2p Query : use flama_phc
20240728@233849.9045 vlopomjgstnbkvb3qur98j0b2p Query : select top 1 ~inactivo valor from cl where no = '100080' and estab = 0 order by inactivo desc
20240728@233849.9181 vlopomjgstnbkvb3qur98j0b2p Query : use flama_phc
20240728@233849.9184 vlopomjgstnbkvb3qur98j0b2p Query : select top 1 tipodoc,regrd from td where ndoc = 39
20240728@233849.9220 vlopomjgstnbkvb3qur98j0b2p Query : use flama_phc
20240728@233849.9224 vlopomjgstnbkvb3qur98j0b2p Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20240728@233849.9266 vlopomjgstnbkvb3qur98j0b2p Query : use flama_phc
20240728@233849.9269 vlopomjgstnbkvb3qur98j0b2p Query : select szadrsstamp valor from szadrs where szadrsdesc='sorefoz - electrod. e equipamentos, s.a.'
20240728@233849.9321 vlopomjgstnbkvb3qur98j0b2p Query : use flama_phc
20240728@233849.9323 vlopomjgstnbkvb3qur98j0b2p Query : select 1 valor from td where ndoc = 39
20240728@233849.9337 vlopomjgstnbkvb3qur98j0b2p Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20240728@233849.9358 vlopomjgstnbkvb3qur98j0b2p Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233849.9379 vlopomjgstnbkvb3qur98j0b2p Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20240728@233849.9400 vlopomjgstnbkvb3qur98j0b2p Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233849.9416 vlopomjgstnbkvb3qur98j0b2p Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20240728@233849.9450 vlopomjgstnbkvb3qur98j0b2p Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233849.9469 vlopomjgstnbkvb3qur98j0b2p Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20240728@233849.9484 vlopomjgstnbkvb3qur98j0b2p Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240728@233849.9557 vlopomjgstnbkvb3qur98j0b2p Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240728@233849.9572 vlopomjgstnbkvb3qur98j0b2p Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233849.9590 vlopomjgstnbkvb3qur98j0b2p Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20240728@233849.9608 vlopomjgstnbkvb3qur98j0b2p Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut66a6c9300766a6c879e7' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20240728@233849.9787 vlopomjgstnbkvb3qur98j0b2p Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233849.9806 vlopomjgstnbkvb3qur98j0b2p Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20240728@233849.9843 vlopomjgstnbkvb3qur98j0b2p Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20240728@233849.9858 vlopomjgstnbkvb3qur98j0b2p Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20240728@233849.9872 vlopomjgstnbkvb3qur98j0b2p Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20240728@233849.9885 vlopomjgstnbkvb3qur98j0b2p Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20240728@233849.9898 vlopomjgstnbkvb3qur98j0b2p Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20240728@233849.9913 vlopomjgstnbkvb3qur98j0b2p Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20240728@233849.9930 vlopomjgstnbkvb3qur98j0b2p Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut66a6c9300766a6c879e7',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20240728@233850.1930 vlopomjgstnbkvb3qur98j0b2p Query : select top 1 fno valor from wsftdata order by fno desc
20240728@233850.2120 vlopomjgstnbkvb3qur98j0b2p Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233850.2320 vlopomjgstnbkvb3qur98j0b2p Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20240728@233850.2610 vlopomjgstnbkvb3qur98j0b2p Query : select 'normal' from dummy
20240728@233850.2800 vlopomjgstnbkvb3qur98j0b2p Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut66a6c9300766a6c879e7',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',41,100080,0,'2024-07-28',39,'euro',0,0,2024 ,?,?)
20240728@233850.5960 vlopomjgstnbkvb3qur98j0b2p Query : use flama_phc
20240728@233850.5990 vlopomjgstnbkvb3qur98j0b2p Query : select st.usalote valor from st where st.ref = '324.1426.00.1'
20240728@233850.6250 vlopomjgstnbkvb3qur98j0b2p Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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.1426.00.1'
20240728@233850.7820 vlopomjgstnbkvb3qur98j0b2p Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233850.8120 vlopomjgstnbkvb3qur98j0b2p Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240728@233850.8450 vlopomjgstnbkvb3qur98j0b2p Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233850.8630 vlopomjgstnbkvb3qur98j0b2p Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240728@233850.8730 vlopomjgstnbkvb3qur98j0b2p Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240728@233850.8890 vlopomjgstnbkvb3qur98j0b2p Query : select sestamp valor from se where ref ='324.1426.00.1' and lote = 'r2100465200a'
20240728@233850.9400 vlopomjgstnbkvb3qur98j0b2p Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233850.9570 vlopomjgstnbkvb3qur98j0b2p Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240728@233850.9810 vlopomjgstnbkvb3qur98j0b2p Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66a6c5982766a6c87a16','aut66a6c9300766a6c879e7' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240728@233850.9860 vlopomjgstnbkvb3qur98j0b2p Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233850.1005 vlopomjgstnbkvb3qur98j0b2p Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240728@233850.1039 vlopomjgstnbkvb3qur98j0b2p Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66a6c5982766a6c87a16',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',4.000 ,'aut66a6c9300766a6c879e7' ,0,0 ,2,23.00,10000,?,?,?,?,?)
20240728@233850.1314 vlopomjgstnbkvb3qur98j0b2p Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233850.1333 vlopomjgstnbkvb3qur98j0b2p Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240728@233850.1389 vlopomjgstnbkvb3qur98j0b2p Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233850.1407 vlopomjgstnbkvb3qur98j0b2p Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240728@233850.1421 vlopomjgstnbkvb3qur98j0b2p Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240728@233850.1436 vlopomjgstnbkvb3qur98j0b2p Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233850.1453 vlopomjgstnbkvb3qur98j0b2p Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240728@233850.1467 vlopomjgstnbkvb3qur98j0b2p Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66a6c5095066a6c87a23','aut66a6c9300766a6c879e7' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240728@233850.1472 vlopomjgstnbkvb3qur98j0b2p Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233850.1490 vlopomjgstnbkvb3qur98j0b2p Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240728@233850.1533 vlopomjgstnbkvb3qur98j0b2p Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66a6c5095066a6c87a23',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66a6c9300766a6c879e7' ,0,0 ,2,23.00,20000,?,?,?)
20240728@233850.1813 vlopomjgstnbkvb3qur98j0b2p Query : use flama_phc
20240728@233850.1818 vlopomjgstnbkvb3qur98j0b2p Query : select st.usalote valor from st where st.ref = '324.1675.00.2'
20240728@233850.1842 vlopomjgstnbkvb3qur98j0b2p Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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.1675.00.2'
20240728@233850.2034 vlopomjgstnbkvb3qur98j0b2p Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233850.2053 vlopomjgstnbkvb3qur98j0b2p Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240728@233850.2083 vlopomjgstnbkvb3qur98j0b2p Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233850.2100 vlopomjgstnbkvb3qur98j0b2p Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240728@233850.2111 vlopomjgstnbkvb3qur98j0b2p Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240728@233850.2127 vlopomjgstnbkvb3qur98j0b2p Query : select sestamp valor from se where ref ='324.1675.00.2' and lote = 'r2200299200a'
20240728@233850.2174 vlopomjgstnbkvb3qur98j0b2p Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233850.2191 vlopomjgstnbkvb3qur98j0b2p Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240728@233850.2207 vlopomjgstnbkvb3qur98j0b2p Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66a6c4811566a6c87a35','aut66a6c9300766a6c879e7' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240728@233850.2212 vlopomjgstnbkvb3qur98j0b2p Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233850.2231 vlopomjgstnbkvb3qur98j0b2p Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240728@233850.2268 vlopomjgstnbkvb3qur98j0b2p Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66a6c4811566a6c87a35',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',3.000 ,'aut66a6c9300766a6c879e7' ,0,0 ,2,23.00,40000,?,?,?,?,?)
20240728@233850.2534 vlopomjgstnbkvb3qur98j0b2p Query : use flama_phc
20240728@233850.2538 vlopomjgstnbkvb3qur98j0b2p Query : select st.usalote valor from st where st.ref = '324.1675.00.2'
20240728@233850.2569 vlopomjgstnbkvb3qur98j0b2p Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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.1675.00.2'
20240728@233850.2587 vlopomjgstnbkvb3qur98j0b2p Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233850.2607 vlopomjgstnbkvb3qur98j0b2p Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240728@233850.2639 vlopomjgstnbkvb3qur98j0b2p Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233850.2658 vlopomjgstnbkvb3qur98j0b2p Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240728@233850.2671 vlopomjgstnbkvb3qur98j0b2p Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240728@233850.2685 vlopomjgstnbkvb3qur98j0b2p Query : select sestamp valor from se where ref ='324.1675.00.2' and lote = 'r2200299200a'
20240728@233850.2742 vlopomjgstnbkvb3qur98j0b2p Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233850.3337 vlopomjgstnbkvb3qur98j0b2p Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240728@233850.3351 vlopomjgstnbkvb3qur98j0b2p Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66a6c6879666a6c87a42','aut66a6c9300766a6c879e7' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240728@233850.3358 vlopomjgstnbkvb3qur98j0b2p Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233850.3379 vlopomjgstnbkvb3qur98j0b2p Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240728@233850.3414 vlopomjgstnbkvb3qur98j0b2p Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66a6c6879666a6c87a42',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',2.000 ,'aut66a6c9300766a6c879e7' ,0,0 ,2,23.00,50000,?,?,?,?,?)
20240728@233850.3682 vlopomjgstnbkvb3qur98j0b2p Query : use flama_phc
20240728@233850.3685 vlopomjgstnbkvb3qur98j0b2p Query : select st.usalote valor from st where st.ref = '325.1675.3015'
20240728@233850.3710 vlopomjgstnbkvb3qur98j0b2p Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '325.1675.3015'
20240728@233850.4013 vlopomjgstnbkvb3qur98j0b2p Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233850.4034 vlopomjgstnbkvb3qur98j0b2p Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240728@233850.4065 vlopomjgstnbkvb3qur98j0b2p Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233850.4082 vlopomjgstnbkvb3qur98j0b2p Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240728@233850.4091 vlopomjgstnbkvb3qur98j0b2p Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240728@233850.4107 vlopomjgstnbkvb3qur98j0b2p Query : select sestamp valor from se where ref ='325.1675.3015' and lote = '801'
20240728@233850.4151 vlopomjgstnbkvb3qur98j0b2p Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233850.4168 vlopomjgstnbkvb3qur98j0b2p Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240728@233850.4182 vlopomjgstnbkvb3qur98j0b2p Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66a6c9943566a6c87a65','aut66a6c9300766a6c879e7' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240728@233850.4186 vlopomjgstnbkvb3qur98j0b2p Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233850.4203 vlopomjgstnbkvb3qur98j0b2p Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240728@233850.4236 vlopomjgstnbkvb3qur98j0b2p Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66a6c9943566a6c87a65',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',6.000 ,'aut66a6c9300766a6c879e7' ,0,0 ,2,23.00,60000,?,?,?,?,?)
20240728@233850.4509 vlopomjgstnbkvb3qur98j0b2p Query : use flama_phc
20240728@233850.4512 vlopomjgstnbkvb3qur98j0b2p Query : select st.usalote valor from st where st.ref = '328.9106.00.1'
20240728@233850.4538 vlopomjgstnbkvb3qur98j0b2p Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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.9106.00.1'
20240728@233850.4743 vlopomjgstnbkvb3qur98j0b2p Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233850.4765 vlopomjgstnbkvb3qur98j0b2p Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240728@233850.4800 vlopomjgstnbkvb3qur98j0b2p Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233850.4829 vlopomjgstnbkvb3qur98j0b2p Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240728@233850.4840 vlopomjgstnbkvb3qur98j0b2p Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240728@233850.4856 vlopomjgstnbkvb3qur98j0b2p Query : select sestamp valor from se where ref ='328.9106.00.1' and lote = 'r2100770200a'
20240728@233850.4891 vlopomjgstnbkvb3qur98j0b2p Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233850.4911 vlopomjgstnbkvb3qur98j0b2p Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240728@233850.4925 vlopomjgstnbkvb3qur98j0b2p Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66a6c8319566a6c87a77','aut66a6c9300766a6c879e7' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240728@233850.4933 vlopomjgstnbkvb3qur98j0b2p Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233850.4953 vlopomjgstnbkvb3qur98j0b2p Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240728@233850.4988 vlopomjgstnbkvb3qur98j0b2p Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66a6c8319566a6c87a77',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',1.000 ,'aut66a6c9300766a6c879e7' ,0,0 ,2,23.00,70000,?,?,?,?,?)
20240728@233850.5266 vlopomjgstnbkvb3qur98j0b2p Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233850.5287 vlopomjgstnbkvb3qur98j0b2p Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240728@233850.5322 vlopomjgstnbkvb3qur98j0b2p Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233850.5341 vlopomjgstnbkvb3qur98j0b2p Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240728@233850.5352 vlopomjgstnbkvb3qur98j0b2p Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240728@233850.5370 vlopomjgstnbkvb3qur98j0b2p Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233850.5386 vlopomjgstnbkvb3qur98j0b2p Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240728@233850.5402 vlopomjgstnbkvb3qur98j0b2p Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66a6c7391466a6c87a83','aut66a6c9300766a6c879e7' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240728@233850.5408 vlopomjgstnbkvb3qur98j0b2p Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233850.5426 vlopomjgstnbkvb3qur98j0b2p Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240728@233850.5462 vlopomjgstnbkvb3qur98j0b2p Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66a6c7391466a6c87a83',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66a6c9300766a6c879e7' ,0,0 ,2,23.00,80000,?,?,?)
20240728@233850.5750 vlopomjgstnbkvb3qur98j0b2p Query : use flama_phc
20240728@233850.5755 vlopomjgstnbkvb3qur98j0b2p Query : select st.usalote valor from st where st.ref = '327.8253.00.1'
20240728@233850.5781 vlopomjgstnbkvb3qur98j0b2p Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '327.8253.00.1'
20240728@233850.7462 vlopomjgstnbkvb3qur98j0b2p Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233850.7497 vlopomjgstnbkvb3qur98j0b2p Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240728@233850.7532 vlopomjgstnbkvb3qur98j0b2p Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233850.7556 vlopomjgstnbkvb3qur98j0b2p Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240728@233850.7567 vlopomjgstnbkvb3qur98j0b2p Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240728@233850.7581 vlopomjgstnbkvb3qur98j0b2p Query : select sestamp valor from se where ref ='327.8253.00.1' and lote = 'r2400072300a'
20240728@233850.7611 vlopomjgstnbkvb3qur98j0b2p Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233850.7628 vlopomjgstnbkvb3qur98j0b2p Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240728@233850.7642 vlopomjgstnbkvb3qur98j0b2p Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66a6c7604166a6c87ab9','aut66a6c9300766a6c879e7' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240728@233850.7647 vlopomjgstnbkvb3qur98j0b2p Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233850.7737 vlopomjgstnbkvb3qur98j0b2p Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240728@233850.7782 vlopomjgstnbkvb3qur98j0b2p Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66a6c7604166a6c87ab9',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',1.000 ,'aut66a6c9300766a6c879e7' ,0,0 ,2,23.00,100000,?,?,?,?,?)
20240728@233850.8115 vlopomjgstnbkvb3qur98j0b2p Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233850.8143 vlopomjgstnbkvb3qur98j0b2p Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240728@233850.8173 vlopomjgstnbkvb3qur98j0b2p Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233850.8190 vlopomjgstnbkvb3qur98j0b2p Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240728@233850.8200 vlopomjgstnbkvb3qur98j0b2p Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240728@233850.8213 vlopomjgstnbkvb3qur98j0b2p Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233850.8235 vlopomjgstnbkvb3qur98j0b2p Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240728@233850.8249 vlopomjgstnbkvb3qur98j0b2p Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66a6c7864666a6c87ac8','aut66a6c9300766a6c879e7' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240728@233850.8253 vlopomjgstnbkvb3qur98j0b2p Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233850.8269 vlopomjgstnbkvb3qur98j0b2p Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240728@233850.8302 vlopomjgstnbkvb3qur98j0b2p Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66a6c7864666a6c87ac8',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66a6c9300766a6c879e7' ,0,0 ,2,23.00,110000,?,?,?)
20240728@233850.8579 vlopomjgstnbkvb3qur98j0b2p Query : use flama_phc
20240728@233850.8582 vlopomjgstnbkvb3qur98j0b2p Query : select st.usalote valor from st where st.ref = '327.8253.00.1'
20240728@233850.8602 vlopomjgstnbkvb3qur98j0b2p Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '327.8253.00.1'
20240728@233850.8616 vlopomjgstnbkvb3qur98j0b2p Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233850.8633 vlopomjgstnbkvb3qur98j0b2p Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240728@233850.8660 vlopomjgstnbkvb3qur98j0b2p Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233850.8674 vlopomjgstnbkvb3qur98j0b2p Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240728@233850.8686 vlopomjgstnbkvb3qur98j0b2p Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240728@233850.8699 vlopomjgstnbkvb3qur98j0b2p Query : select sestamp valor from se where ref ='327.8253.00.1' and lote = 'r2400072300a'
20240728@233850.8712 vlopomjgstnbkvb3qur98j0b2p Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233850.8727 vlopomjgstnbkvb3qur98j0b2p Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240728@233850.8739 vlopomjgstnbkvb3qur98j0b2p Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66a6c8178666a6c87ad4','aut66a6c9300766a6c879e7' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240728@233850.8744 vlopomjgstnbkvb3qur98j0b2p Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233850.8760 vlopomjgstnbkvb3qur98j0b2p Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240728@233850.8791 vlopomjgstnbkvb3qur98j0b2p Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66a6c8178666a6c87ad4',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',1.000 ,'aut66a6c9300766a6c879e7' ,0,0 ,2,23.00,130000,?,?,?,?,?)
20240728@233850.9051 vlopomjgstnbkvb3qur98j0b2p Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233850.9074 vlopomjgstnbkvb3qur98j0b2p Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240728@233850.9103 vlopomjgstnbkvb3qur98j0b2p Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233850.9121 vlopomjgstnbkvb3qur98j0b2p Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240728@233850.9131 vlopomjgstnbkvb3qur98j0b2p Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240728@233850.9145 vlopomjgstnbkvb3qur98j0b2p Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233850.9160 vlopomjgstnbkvb3qur98j0b2p Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240728@233850.9176 vlopomjgstnbkvb3qur98j0b2p Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66a6c6033566a6c87adf','aut66a6c9300766a6c879e7' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240728@233850.9181 vlopomjgstnbkvb3qur98j0b2p Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233850.9197 vlopomjgstnbkvb3qur98j0b2p Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240728@233850.9232 vlopomjgstnbkvb3qur98j0b2p Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66a6c6033566a6c87adf',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66a6c9300766a6c879e7' ,0,0 ,2,23.00,140000,?,?,?)
20240728@233850.9510 vlopomjgstnbkvb3qur98j0b2p Query : use flama_phc
20240728@233850.9513 vlopomjgstnbkvb3qur98j0b2p Query : select st.usalote valor from st where st.ref = '304.4320.00.1'
20240728@233850.9537 vlopomjgstnbkvb3qur98j0b2p Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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'
20240728@233850.9555 vlopomjgstnbkvb3qur98j0b2p Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233850.9573 vlopomjgstnbkvb3qur98j0b2p Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240728@233850.9605 vlopomjgstnbkvb3qur98j0b2p Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233850.9621 vlopomjgstnbkvb3qur98j0b2p Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240728@233850.9631 vlopomjgstnbkvb3qur98j0b2p Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240728@233850.9646 vlopomjgstnbkvb3qur98j0b2p Query : select sestamp valor from se where ref ='304.4320.00.1' and lote = '240897'
20240728@233850.9660 vlopomjgstnbkvb3qur98j0b2p Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233850.9676 vlopomjgstnbkvb3qur98j0b2p Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240728@233850.9690 vlopomjgstnbkvb3qur98j0b2p Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66a6c4578866a6c87aeb','aut66a6c9300766a6c879e7' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240728@233850.9694 vlopomjgstnbkvb3qur98j0b2p Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233850.9713 vlopomjgstnbkvb3qur98j0b2p Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240728@233850.9747 vlopomjgstnbkvb3qur98j0b2p Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66a6c4578866a6c87aeb',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',8.000 ,'aut66a6c9300766a6c879e7' ,0,0 ,2,23.00,160000,?,?,?,?,?)
20240728@233851.4700 vlopomjgstnbkvb3qur98j0b2p Query : use flama_phc
20240728@233851.5100 vlopomjgstnbkvb3qur98j0b2p Query : select st.usalote valor from st where st.ref = '324.4970.00.1'
20240728@233851.8100 vlopomjgstnbkvb3qur98j0b2p Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.4970.00.1'
20240728@233851.1000 vlopomjgstnbkvb3qur98j0b2p Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233851.1180 vlopomjgstnbkvb3qur98j0b2p Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240728@233851.1520 vlopomjgstnbkvb3qur98j0b2p Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233851.1710 vlopomjgstnbkvb3qur98j0b2p Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240728@233851.1810 vlopomjgstnbkvb3qur98j0b2p Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240728@233851.1980 vlopomjgstnbkvb3qur98j0b2p Query : select sestamp valor from se where ref ='324.4970.00.1' and lote = 'r2400205200a'
20240728@233851.2130 vlopomjgstnbkvb3qur98j0b2p Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233851.3340 vlopomjgstnbkvb3qur98j0b2p Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240728@233851.3490 vlopomjgstnbkvb3qur98j0b2p Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66a6c0800066a6c87b05','aut66a6c9300766a6c879e7' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240728@233851.3540 vlopomjgstnbkvb3qur98j0b2p Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233851.4160 vlopomjgstnbkvb3qur98j0b2p Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240728@233851.1022 vlopomjgstnbkvb3qur98j0b2p Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66a6c0800066a6c87b05',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',8.000 ,'aut66a6c9300766a6c879e7' ,0,0 ,2,23.00,170000,?,?,?,?,?)
20240728@233851.1398 vlopomjgstnbkvb3qur98j0b2p Query : use flama_phc
20240728@233851.1403 vlopomjgstnbkvb3qur98j0b2p Query : select st.usalote valor from st where st.ref = '324.2066.00.1'
20240728@233851.1427 vlopomjgstnbkvb3qur98j0b2p Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.2066.00.1'
20240728@233851.1636 vlopomjgstnbkvb3qur98j0b2p Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233851.1657 vlopomjgstnbkvb3qur98j0b2p Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240728@233851.1690 vlopomjgstnbkvb3qur98j0b2p Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233851.1714 vlopomjgstnbkvb3qur98j0b2p Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240728@233851.1726 vlopomjgstnbkvb3qur98j0b2p Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240728@233851.1740 vlopomjgstnbkvb3qur98j0b2p Query : select sestamp valor from se where ref ='324.2066.00.1' and lote = 'r2400051100a'
20240728@233851.1766 vlopomjgstnbkvb3qur98j0b2p Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233851.1784 vlopomjgstnbkvb3qur98j0b2p Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240728@233851.1798 vlopomjgstnbkvb3qur98j0b2p Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66a6c0013366a6c87b2b','aut66a6c9300766a6c879e7' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240728@233851.1803 vlopomjgstnbkvb3qur98j0b2p Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233851.1824 vlopomjgstnbkvb3qur98j0b2p Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240728@233851.1863 vlopomjgstnbkvb3qur98j0b2p Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66a6c0013366a6c87b2b',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',6.000 ,'aut66a6c9300766a6c879e7' ,0,0 ,2,23.00,180000,?,?,?,?,?)
20240728@233851.2168 vlopomjgstnbkvb3qur98j0b2p Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233851.2189 vlopomjgstnbkvb3qur98j0b2p Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240728@233851.2221 vlopomjgstnbkvb3qur98j0b2p Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233851.2238 vlopomjgstnbkvb3qur98j0b2p Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240728@233851.2254 vlopomjgstnbkvb3qur98j0b2p Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240728@233851.2270 vlopomjgstnbkvb3qur98j0b2p Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233851.2288 vlopomjgstnbkvb3qur98j0b2p Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240728@233851.2302 vlopomjgstnbkvb3qur98j0b2p Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66a6c2753066a6c87b37','aut66a6c9300766a6c879e7' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240728@233851.2308 vlopomjgstnbkvb3qur98j0b2p Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233851.2326 vlopomjgstnbkvb3qur98j0b2p Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240728@233851.2363 vlopomjgstnbkvb3qur98j0b2p Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66a6c2753066a6c87b37',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66a6c9300766a6c879e7' ,0,0 ,2,23.00,190000,?,?,?)
20240728@233851.2656 vlopomjgstnbkvb3qur98j0b2p Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut66a6c9300766a6c879e7','2404973','wait',39,'adm09112754980.682000002')
20240728@233851.2750 vlopomjgstnbkvb3qur98j0b2p Query : use flama_phc
20240728@233851.2753 vlopomjgstnbkvb3qur98j0b2p Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240728@233851.2796 vlopomjgstnbkvb3qur98j0b2p Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1192';
20240728@233851.2831 vlopomjgstnbkvb3qur98j0b2p Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1192';
20240728@233851.2871 vlopomjgstnbkvb3qur98j0b2p Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1192';
20240728@233851.2894 vlopomjgstnbkvb3qur98j0b2p Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1192';
20240728@233851.3418 q1t70g6blm3gmatgpar55qt296 Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240728@233851.3429 q1t70g6blm3gmatgpar55qt296 Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240728@233851.3481 q1t70g6blm3gmatgpar55qt296 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1193';
20240728@233851.3533 q1t70g6blm3gmatgpar55qt296 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1193';
20240728@233851.3585 q1t70g6blm3gmatgpar55qt296 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1193';
20240728@233851.3611 q1t70g6blm3gmatgpar55qt296 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1193';
20240728@233851.3656 q1t70g6blm3gmatgpar55qt296 Query : use flama_phc
20240728@233851.3660 q1t70g6blm3gmatgpar55qt296 Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240728@233851.3740 q1t70g6blm3gmatgpar55qt296 Query : use flama_phc
20240728@233851.3743 q1t70g6blm3gmatgpar55qt296 Query : select no, estab,szadrsdesc from szadrs where u_coddest=201
20240728@233851.3783 q1t70g6blm3gmatgpar55qt296 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '325.1675.3015'
20240728@233851.3805 q1t70g6blm3gmatgpar55qt296 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2049 and bo.obrano = 2404974 and bi.ref ='325.1675.3015' and bi.lordem =1
20240728@233851.4153 q1t70g6blm3gmatgpar55qt296 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1536.00.1'
20240728@233851.4327 q1t70g6blm3gmatgpar55qt296 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2049 and bo.obrano = 2404974 and bi.ref ='324.1536.00.1' and bi.lordem =2
20240728@233851.4667 q1t70g6blm3gmatgpar55qt296 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.645.00.01'
20240728@233851.4838 q1t70g6blm3gmatgpar55qt296 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2049 and bo.obrano = 2404974 and bi.ref ='324.645.00.01' and bi.lordem =3
20240728@233851.5182 q1t70g6blm3gmatgpar55qt296 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.645.00.01'
20240728@233851.5206 q1t70g6blm3gmatgpar55qt296 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2049 and bo.obrano = 2404974 and bi.ref ='324.645.00.01' and bi.lordem =3
20240728@233851.5224 q1t70g6blm3gmatgpar55qt296 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'
20240728@233851.5399 q1t70g6blm3gmatgpar55qt296 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2049 and bo.obrano = 2404974 and bi.ref ='324.646.00.01' and bi.lordem =4
20240728@233851.5833 q1t70g6blm3gmatgpar55qt296 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'
20240728@233851.5896 q1t70g6blm3gmatgpar55qt296 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2049 and bo.obrano = 2404974 and bi.ref ='324.646.00.01' and bi.lordem =4
20240728@233851.5918 q1t70g6blm3gmatgpar55qt296 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.5500.00.1'
20240728@233851.6314 q1t70g6blm3gmatgpar55qt296 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2049 and bo.obrano = 2404974 and bi.ref ='324.5500.00.1' and bi.lordem =5
20240728@233851.6737 q1t70g6blm3gmatgpar55qt296 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '304.4020.00.1'
20240728@233851.6914 q1t70g6blm3gmatgpar55qt296 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2049 and bo.obrano = 2404974 and bi.ref ='304.4020.00.1' and bi.lordem =6
20240728@233851.7377 q1t70g6blm3gmatgpar55qt296 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.4521.00.1'
20240728@233851.7567 q1t70g6blm3gmatgpar55qt296 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2049 and bo.obrano = 2404974 and bi.ref ='324.4521.00.1' and bi.lordem =7
20240728@233851.7926 q1t70g6blm3gmatgpar55qt296 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'
20240728@233851.7947 q1t70g6blm3gmatgpar55qt296 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2049 and bo.obrano = 2404974 and bi.ref ='304.4320.00.1' and bi.lordem =8
20240728@233851.8295 q1t70g6blm3gmatgpar55qt296 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'
20240728@233851.8316 q1t70g6blm3gmatgpar55qt296 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2049 and bo.obrano = 2404974 and bi.ref ='304.421.00.04' and bi.lordem =9
20240728@233851.8654 q1t70g6blm3gmatgpar55qt296 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.4906.00.1'
20240728@233851.8817 q1t70g6blm3gmatgpar55qt296 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2049 and bo.obrano = 2404974 and bi.ref ='324.4906.00.1' and bi.lordem =10
20240728@233851.9149 q1t70g6blm3gmatgpar55qt296 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1461.00.1'
20240728@233851.9322 q1t70g6blm3gmatgpar55qt296 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2049 and bo.obrano = 2404974 and bi.ref ='324.1461.00.1' and bi.lordem =11
20240728@233851.9666 q1t70g6blm3gmatgpar55qt296 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.958.00.01'
20240728@233851.9841 q1t70g6blm3gmatgpar55qt296 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2049 and bo.obrano = 2404974 and bi.ref ='324.958.00.01' and bi.lordem =12
20240728@233852.1810 q1t70g6blm3gmatgpar55qt296 Query : use flama_phc
20240728@233852.1840 q1t70g6blm3gmatgpar55qt296 Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20240728@233852.2590 q1t70g6blm3gmatgpar55qt296 Query : use flama_phc
20240728@233852.9160 q1t70g6blm3gmatgpar55qt296 Query : select top 1 1 valor from td where td.ndoc = 39
20240728@233852.9830 q1t70g6blm3gmatgpar55qt296 Query : use flama_phc
20240728@233852.9940 q1t70g6blm3gmatgpar55qt296 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')
20240728@233852.2200 q1t70g6blm3gmatgpar55qt296 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
20240728@233852.2242 q1t70g6blm3gmatgpar55qt296 Query : use flama_phc
20240728@233852.2247 q1t70g6blm3gmatgpar55qt296 Query : select top 1 ~inactivo valor from cl where no = '100080' and estab = 0 order by inactivo desc
20240728@233852.2282 q1t70g6blm3gmatgpar55qt296 Query : use flama_phc
20240728@233852.2286 q1t70g6blm3gmatgpar55qt296 Query : select top 1 tipodoc,regrd from td where ndoc = 39
20240728@233852.2324 q1t70g6blm3gmatgpar55qt296 Query : use flama_phc
20240728@233852.2329 q1t70g6blm3gmatgpar55qt296 Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20240728@233852.2375 q1t70g6blm3gmatgpar55qt296 Query : use flama_phc
20240728@233852.2380 q1t70g6blm3gmatgpar55qt296 Query : select szadrsstamp valor from szadrs where szadrsdesc='sorefoz - electrod. e equipamentos, s.a.'
20240728@233852.2439 q1t70g6blm3gmatgpar55qt296 Query : use flama_phc
20240728@233852.2442 q1t70g6blm3gmatgpar55qt296 Query : select 1 valor from td where ndoc = 39
20240728@233852.2459 q1t70g6blm3gmatgpar55qt296 Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20240728@233852.2478 q1t70g6blm3gmatgpar55qt296 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233852.2501 q1t70g6blm3gmatgpar55qt296 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20240728@233852.2527 q1t70g6blm3gmatgpar55qt296 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233852.2546 q1t70g6blm3gmatgpar55qt296 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20240728@233852.2581 q1t70g6blm3gmatgpar55qt296 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233852.2599 q1t70g6blm3gmatgpar55qt296 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20240728@233852.2616 q1t70g6blm3gmatgpar55qt296 Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240728@233852.2734 q1t70g6blm3gmatgpar55qt296 Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240728@233852.2749 q1t70g6blm3gmatgpar55qt296 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233852.2768 q1t70g6blm3gmatgpar55qt296 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20240728@233852.2790 q1t70g6blm3gmatgpar55qt296 Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut66a6c4347166a6c87c3f' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20240728@233852.3037 q1t70g6blm3gmatgpar55qt296 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233852.3059 q1t70g6blm3gmatgpar55qt296 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20240728@233852.3103 q1t70g6blm3gmatgpar55qt296 Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20240728@233852.3169 q1t70g6blm3gmatgpar55qt296 Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20240728@233852.3220 q1t70g6blm3gmatgpar55qt296 Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20240728@233852.3267 q1t70g6blm3gmatgpar55qt296 Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20240728@233852.3346 q1t70g6blm3gmatgpar55qt296 Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20240728@233852.3362 q1t70g6blm3gmatgpar55qt296 Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20240728@233852.3376 q1t70g6blm3gmatgpar55qt296 Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut66a6c4347166a6c87c3f',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20240728@233852.3704 q1t70g6blm3gmatgpar55qt296 Query : select top 1 fno valor from wsftdata order by fno desc
20240728@233852.3720 q1t70g6blm3gmatgpar55qt296 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233852.3740 q1t70g6blm3gmatgpar55qt296 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20240728@233852.3767 q1t70g6blm3gmatgpar55qt296 Query : select 'normal' from dummy
20240728@233852.3792 q1t70g6blm3gmatgpar55qt296 Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut66a6c4347166a6c87c3f',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',42,100080,0,'2024-07-28',39,'euro',0,0,2024 ,?,?)
20240728@233852.4115 q1t70g6blm3gmatgpar55qt296 Query : use flama_phc
20240728@233852.4118 q1t70g6blm3gmatgpar55qt296 Query : select st.usalote valor from st where st.ref = '325.1675.3015'
20240728@233852.4142 q1t70g6blm3gmatgpar55qt296 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '325.1675.3015'
20240728@233852.4159 q1t70g6blm3gmatgpar55qt296 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233852.4178 q1t70g6blm3gmatgpar55qt296 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240728@233852.4207 q1t70g6blm3gmatgpar55qt296 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233852.4224 q1t70g6blm3gmatgpar55qt296 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240728@233852.4234 q1t70g6blm3gmatgpar55qt296 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240728@233852.4247 q1t70g6blm3gmatgpar55qt296 Query : select sestamp valor from se where ref ='325.1675.3015' and lote = '801'
20240728@233852.4261 q1t70g6blm3gmatgpar55qt296 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233852.4277 q1t70g6blm3gmatgpar55qt296 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240728@233852.4290 q1t70g6blm3gmatgpar55qt296 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66a6c1338566a6c87c68','aut66a6c4347166a6c87c3f' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240728@233852.4295 q1t70g6blm3gmatgpar55qt296 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233852.4312 q1t70g6blm3gmatgpar55qt296 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240728@233852.4343 q1t70g6blm3gmatgpar55qt296 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66a6c1338566a6c87c68',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',3.000 ,'aut66a6c4347166a6c87c3f' ,0,0 ,2,23.00,10000,?,?,?,?,?)
20240728@233852.4624 q1t70g6blm3gmatgpar55qt296 Query : use flama_phc
20240728@233852.4627 q1t70g6blm3gmatgpar55qt296 Query : select st.usalote valor from st where st.ref = '324.1536.00.1'
20240728@233852.4650 q1t70g6blm3gmatgpar55qt296 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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.1536.00.1'
20240728@233852.4817 q1t70g6blm3gmatgpar55qt296 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233852.4835 q1t70g6blm3gmatgpar55qt296 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240728@233852.4867 q1t70g6blm3gmatgpar55qt296 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233852.4882 q1t70g6blm3gmatgpar55qt296 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240728@233852.4896 q1t70g6blm3gmatgpar55qt296 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240728@233852.4912 q1t70g6blm3gmatgpar55qt296 Query : select sestamp valor from se where ref ='324.1536.00.1' and lote = 'r2100240100a'
20240728@233852.4955 q1t70g6blm3gmatgpar55qt296 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233852.4972 q1t70g6blm3gmatgpar55qt296 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240728@233852.4986 q1t70g6blm3gmatgpar55qt296 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66a6c2741966a6c87c78','aut66a6c4347166a6c87c3f' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240728@233852.4990 q1t70g6blm3gmatgpar55qt296 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233852.5008 q1t70g6blm3gmatgpar55qt296 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240728@233852.5042 q1t70g6blm3gmatgpar55qt296 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66a6c2741966a6c87c78',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',5.000 ,'aut66a6c4347166a6c87c3f' ,0,0 ,2,23.00,20000,?,?,?,?,?)
20240728@233852.5317 q1t70g6blm3gmatgpar55qt296 Query : use flama_phc
20240728@233852.5321 q1t70g6blm3gmatgpar55qt296 Query : select st.usalote valor from st where st.ref = '324.645.00.01'
20240728@233852.5346 q1t70g6blm3gmatgpar55qt296 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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.645.00.01'
20240728@233852.5506 q1t70g6blm3gmatgpar55qt296 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233852.5526 q1t70g6blm3gmatgpar55qt296 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240728@233852.5555 q1t70g6blm3gmatgpar55qt296 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233852.5571 q1t70g6blm3gmatgpar55qt296 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240728@233852.5581 q1t70g6blm3gmatgpar55qt296 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240728@233852.5596 q1t70g6blm3gmatgpar55qt296 Query : select sestamp valor from se where ref ='324.645.00.01' and lote = 'r2400055200a'
20240728@233852.5620 q1t70g6blm3gmatgpar55qt296 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233852.5638 q1t70g6blm3gmatgpar55qt296 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240728@233852.5652 q1t70g6blm3gmatgpar55qt296 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66a6c7546866a6c87c89','aut66a6c4347166a6c87c3f' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240728@233852.5656 q1t70g6blm3gmatgpar55qt296 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233852.5674 q1t70g6blm3gmatgpar55qt296 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240728@233852.5706 q1t70g6blm3gmatgpar55qt296 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66a6c7546866a6c87c89',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',2.000 ,'aut66a6c4347166a6c87c3f' ,0,0 ,2,23.00,30000,?,?,?,?,?)
20240728@233852.5996 q1t70g6blm3gmatgpar55qt296 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233852.6016 q1t70g6blm3gmatgpar55qt296 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240728@233852.6049 q1t70g6blm3gmatgpar55qt296 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233852.6066 q1t70g6blm3gmatgpar55qt296 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240728@233852.6082 q1t70g6blm3gmatgpar55qt296 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240728@233852.6099 q1t70g6blm3gmatgpar55qt296 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233852.6117 q1t70g6blm3gmatgpar55qt296 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240728@233852.6130 q1t70g6blm3gmatgpar55qt296 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66a6c6172166a6c87c94','aut66a6c4347166a6c87c3f' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240728@233852.6136 q1t70g6blm3gmatgpar55qt296 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233852.6153 q1t70g6blm3gmatgpar55qt296 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240728@233852.6192 q1t70g6blm3gmatgpar55qt296 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66a6c6172166a6c87c94',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66a6c4347166a6c87c3f' ,0,0 ,2,23.00,40000,?,?,?)
20240728@233852.6474 q1t70g6blm3gmatgpar55qt296 Query : use flama_phc
20240728@233852.6478 q1t70g6blm3gmatgpar55qt296 Query : select st.usalote valor from st where st.ref = '324.645.00.01'
20240728@233852.6501 q1t70g6blm3gmatgpar55qt296 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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.645.00.01'
20240728@233852.6523 q1t70g6blm3gmatgpar55qt296 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233852.6542 q1t70g6blm3gmatgpar55qt296 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240728@233852.6573 q1t70g6blm3gmatgpar55qt296 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233852.6591 q1t70g6blm3gmatgpar55qt296 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240728@233852.6601 q1t70g6blm3gmatgpar55qt296 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240728@233852.6618 q1t70g6blm3gmatgpar55qt296 Query : select sestamp valor from se where ref ='324.645.00.01' and lote = 'r2400055200a'
20240728@233852.6636 q1t70g6blm3gmatgpar55qt296 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233852.6652 q1t70g6blm3gmatgpar55qt296 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240728@233852.6667 q1t70g6blm3gmatgpar55qt296 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66a6c4762566a6c87ca2','aut66a6c4347166a6c87c3f' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240728@233852.6672 q1t70g6blm3gmatgpar55qt296 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233852.6688 q1t70g6blm3gmatgpar55qt296 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240728@233852.6720 q1t70g6blm3gmatgpar55qt296 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66a6c4762566a6c87ca2',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',18.000 ,'aut66a6c4347166a6c87c3f' ,0,0 ,2,23.00,60000,?,?,?,?,?)
20240728@233852.7017 q1t70g6blm3gmatgpar55qt296 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233852.7037 q1t70g6blm3gmatgpar55qt296 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240728@233852.7070 q1t70g6blm3gmatgpar55qt296 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233852.7086 q1t70g6blm3gmatgpar55qt296 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240728@233852.7096 q1t70g6blm3gmatgpar55qt296 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240728@233852.7126 q1t70g6blm3gmatgpar55qt296 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233852.7145 q1t70g6blm3gmatgpar55qt296 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240728@233852.7160 q1t70g6blm3gmatgpar55qt296 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66a6c1491466a6c87cad','aut66a6c4347166a6c87c3f' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240728@233852.7165 q1t70g6blm3gmatgpar55qt296 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233852.7181 q1t70g6blm3gmatgpar55qt296 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240728@233852.7215 q1t70g6blm3gmatgpar55qt296 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66a6c1491466a6c87cad',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66a6c4347166a6c87c3f' ,0,0 ,2,23.00,70000,?,?,?)
20240728@233852.7519 q1t70g6blm3gmatgpar55qt296 Query : use flama_phc
20240728@233852.7522 q1t70g6blm3gmatgpar55qt296 Query : select st.usalote valor from st where st.ref = '324.646.00.01'
20240728@233852.7546 q1t70g6blm3gmatgpar55qt296 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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'
20240728@233852.7802 q1t70g6blm3gmatgpar55qt296 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233852.7821 q1t70g6blm3gmatgpar55qt296 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240728@233852.7850 q1t70g6blm3gmatgpar55qt296 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233852.7866 q1t70g6blm3gmatgpar55qt296 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240728@233852.7876 q1t70g6blm3gmatgpar55qt296 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240728@233852.7889 q1t70g6blm3gmatgpar55qt296 Query : select sestamp valor from se where ref ='324.646.00.01' and lote = 'r2400055100a'
20240728@233852.7906 q1t70g6blm3gmatgpar55qt296 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233852.7922 q1t70g6blm3gmatgpar55qt296 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240728@233852.7937 q1t70g6blm3gmatgpar55qt296 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66a6c6294266a6c87cc1','aut66a6c4347166a6c87c3f' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240728@233852.7941 q1t70g6blm3gmatgpar55qt296 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233852.7958 q1t70g6blm3gmatgpar55qt296 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240728@233852.7995 q1t70g6blm3gmatgpar55qt296 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66a6c6294266a6c87cc1',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',16.000 ,'aut66a6c4347166a6c87c3f' ,0,0 ,2,23.00,90000,?,?,?,?,?)
20240728@233852.8268 q1t70g6blm3gmatgpar55qt296 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233852.8285 q1t70g6blm3gmatgpar55qt296 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240728@233852.8312 q1t70g6blm3gmatgpar55qt296 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233852.8331 q1t70g6blm3gmatgpar55qt296 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240728@233852.8341 q1t70g6blm3gmatgpar55qt296 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240728@233852.8354 q1t70g6blm3gmatgpar55qt296 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233852.8369 q1t70g6blm3gmatgpar55qt296 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240728@233852.8381 q1t70g6blm3gmatgpar55qt296 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66a6c2386466a6c87ccb','aut66a6c4347166a6c87c3f' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240728@233852.8386 q1t70g6blm3gmatgpar55qt296 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233852.8401 q1t70g6blm3gmatgpar55qt296 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240728@233852.8433 q1t70g6blm3gmatgpar55qt296 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66a6c2386466a6c87ccb',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66a6c4347166a6c87c3f' ,0,0 ,2,23.00,100000,?,?,?)
20240728@233852.8705 q1t70g6blm3gmatgpar55qt296 Query : use flama_phc
20240728@233852.8708 q1t70g6blm3gmatgpar55qt296 Query : select st.usalote valor from st where st.ref = '324.646.00.01'
20240728@233852.8728 q1t70g6blm3gmatgpar55qt296 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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'
20240728@233852.8742 q1t70g6blm3gmatgpar55qt296 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233852.8759 q1t70g6blm3gmatgpar55qt296 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240728@233852.8785 q1t70g6blm3gmatgpar55qt296 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233852.8803 q1t70g6blm3gmatgpar55qt296 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240728@233852.8813 q1t70g6blm3gmatgpar55qt296 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240728@233852.8828 q1t70g6blm3gmatgpar55qt296 Query : select sestamp valor from se where ref ='324.646.00.01' and lote = 'r2400055100a'
20240728@233852.8840 q1t70g6blm3gmatgpar55qt296 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233852.8855 q1t70g6blm3gmatgpar55qt296 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240728@233852.8868 q1t70g6blm3gmatgpar55qt296 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66a6c7702566a6c87cd7','aut66a6c4347166a6c87c3f' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240728@233852.8879 q1t70g6blm3gmatgpar55qt296 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233852.8895 q1t70g6blm3gmatgpar55qt296 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240728@233852.8924 q1t70g6blm3gmatgpar55qt296 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66a6c7702566a6c87cd7',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',24.000 ,'aut66a6c4347166a6c87c3f' ,0,0 ,2,23.00,120000,?,?,?,?,?)
20240728@233852.9206 q1t70g6blm3gmatgpar55qt296 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233852.9222 q1t70g6blm3gmatgpar55qt296 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240728@233852.9251 q1t70g6blm3gmatgpar55qt296 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233852.9266 q1t70g6blm3gmatgpar55qt296 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240728@233852.9275 q1t70g6blm3gmatgpar55qt296 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240728@233852.9290 q1t70g6blm3gmatgpar55qt296 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233852.9306 q1t70g6blm3gmatgpar55qt296 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240728@233852.9320 q1t70g6blm3gmatgpar55qt296 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66a6c9964166a6c87ce2','aut66a6c4347166a6c87c3f' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240728@233852.9324 q1t70g6blm3gmatgpar55qt296 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233852.9956 q1t70g6blm3gmatgpar55qt296 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240728@233852.9990 q1t70g6blm3gmatgpar55qt296 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66a6c9964166a6c87ce2',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66a6c4347166a6c87c3f' ,0,0 ,2,23.00,130000,?,?,?)
20240728@233853.2690 q1t70g6blm3gmatgpar55qt296 Query : use flama_phc
20240728@233853.2730 q1t70g6blm3gmatgpar55qt296 Query : select st.usalote valor from st where st.ref = '324.5500.00.1'
20240728@233853.2960 q1t70g6blm3gmatgpar55qt296 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.5500.00.1'
20240728@233853.4510 q1t70g6blm3gmatgpar55qt296 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233853.4930 q1t70g6blm3gmatgpar55qt296 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240728@233853.5260 q1t70g6blm3gmatgpar55qt296 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233853.5450 q1t70g6blm3gmatgpar55qt296 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240728@233853.5870 q1t70g6blm3gmatgpar55qt296 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240728@233853.6060 q1t70g6blm3gmatgpar55qt296 Query : select sestamp valor from se where ref ='324.5500.00.1' and lote = 'r2301223200a'
20240728@233853.6400 q1t70g6blm3gmatgpar55qt296 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233853.6620 q1t70g6blm3gmatgpar55qt296 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240728@233853.6800 q1t70g6blm3gmatgpar55qt296 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66a6c9666566a6c87d0f','aut66a6c4347166a6c87c3f' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240728@233853.6870 q1t70g6blm3gmatgpar55qt296 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233853.7170 q1t70g6blm3gmatgpar55qt296 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240728@233853.7590 q1t70g6blm3gmatgpar55qt296 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66a6c9666566a6c87d0f',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',2.000 ,'aut66a6c4347166a6c87c3f' ,0,0 ,2,23.00,150000,?,?,?,?,?)
20240728@233853.1091 q1t70g6blm3gmatgpar55qt296 Query : use flama_phc
20240728@233853.1096 q1t70g6blm3gmatgpar55qt296 Query : select st.usalote valor from st where st.ref = '304.4020.00.1'
20240728@233853.1121 q1t70g6blm3gmatgpar55qt296 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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.4020.00.1'
20240728@233853.1287 q1t70g6blm3gmatgpar55qt296 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233853.1310 q1t70g6blm3gmatgpar55qt296 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240728@233853.1342 q1t70g6blm3gmatgpar55qt296 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233853.1365 q1t70g6blm3gmatgpar55qt296 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240728@233853.1375 q1t70g6blm3gmatgpar55qt296 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240728@233853.1391 q1t70g6blm3gmatgpar55qt296 Query : select sestamp valor from se where ref ='304.4020.00.1' and lote = '240409'
20240728@233853.1426 q1t70g6blm3gmatgpar55qt296 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233853.1443 q1t70g6blm3gmatgpar55qt296 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240728@233853.1462 q1t70g6blm3gmatgpar55qt296 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66a6c1593466a6c87d22','aut66a6c4347166a6c87c3f' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240728@233853.1467 q1t70g6blm3gmatgpar55qt296 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233853.1489 q1t70g6blm3gmatgpar55qt296 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240728@233853.1527 q1t70g6blm3gmatgpar55qt296 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66a6c1593466a6c87d22',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',20.000 ,'aut66a6c4347166a6c87c3f' ,0,0 ,2,23.00,160000,?,?,?,?,?)
20240728@233853.1889 q1t70g6blm3gmatgpar55qt296 Query : use flama_phc
20240728@233853.1893 q1t70g6blm3gmatgpar55qt296 Query : select st.usalote valor from st where st.ref = '324.4521.00.1'
20240728@233853.1919 q1t70g6blm3gmatgpar55qt296 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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.4521.00.1'
20240728@233853.2084 q1t70g6blm3gmatgpar55qt296 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233853.2104 q1t70g6blm3gmatgpar55qt296 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240728@233853.2152 q1t70g6blm3gmatgpar55qt296 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233853.2171 q1t70g6blm3gmatgpar55qt296 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240728@233853.2181 q1t70g6blm3gmatgpar55qt296 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240728@233853.2203 q1t70g6blm3gmatgpar55qt296 Query : select sestamp valor from se where ref ='324.4521.00.1' and lote = 'r2400052200a'
20240728@233853.2220 q1t70g6blm3gmatgpar55qt296 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233853.2237 q1t70g6blm3gmatgpar55qt296 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240728@233853.2252 q1t70g6blm3gmatgpar55qt296 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66a6c9254266a6c87d36','aut66a6c4347166a6c87c3f' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240728@233853.2258 q1t70g6blm3gmatgpar55qt296 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233853.2278 q1t70g6blm3gmatgpar55qt296 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240728@233853.2314 q1t70g6blm3gmatgpar55qt296 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66a6c9254266a6c87d36',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',4.000 ,'aut66a6c4347166a6c87c3f' ,0,0 ,2,23.00,170000,?,?,?,?,?)
20240728@233853.2624 q1t70g6blm3gmatgpar55qt296 Query : use flama_phc
20240728@233853.2628 q1t70g6blm3gmatgpar55qt296 Query : select st.usalote valor from st where st.ref = '304.4320.00.1'
20240728@233853.2653 q1t70g6blm3gmatgpar55qt296 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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'
20240728@233853.2669 q1t70g6blm3gmatgpar55qt296 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233853.2688 q1t70g6blm3gmatgpar55qt296 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240728@233853.2720 q1t70g6blm3gmatgpar55qt296 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233853.2739 q1t70g6blm3gmatgpar55qt296 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240728@233853.2755 q1t70g6blm3gmatgpar55qt296 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240728@233853.2773 q1t70g6blm3gmatgpar55qt296 Query : select sestamp valor from se where ref ='304.4320.00.1' and lote = '240897'
20240728@233853.2787 q1t70g6blm3gmatgpar55qt296 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233853.2805 q1t70g6blm3gmatgpar55qt296 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240728@233853.2820 q1t70g6blm3gmatgpar55qt296 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66a6c1255566a6c87d44','aut66a6c4347166a6c87c3f' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240728@233853.2826 q1t70g6blm3gmatgpar55qt296 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233853.2843 q1t70g6blm3gmatgpar55qt296 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240728@233853.2881 q1t70g6blm3gmatgpar55qt296 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66a6c1255566a6c87d44',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',8.000 ,'aut66a6c4347166a6c87c3f' ,0,0 ,2,23.00,180000,?,?,?,?,?)
20240728@233853.3151 q1t70g6blm3gmatgpar55qt296 Query : use flama_phc
20240728@233853.3154 q1t70g6blm3gmatgpar55qt296 Query : select st.usalote valor from st where st.ref = '304.421.00.04'
20240728@233853.3181 q1t70g6blm3gmatgpar55qt296 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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'
20240728@233853.3198 q1t70g6blm3gmatgpar55qt296 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233853.3712 q1t70g6blm3gmatgpar55qt296 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240728@233853.4412 q1t70g6blm3gmatgpar55qt296 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233853.4437 q1t70g6blm3gmatgpar55qt296 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240728@233853.4448 q1t70g6blm3gmatgpar55qt296 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240728@233853.4463 q1t70g6blm3gmatgpar55qt296 Query : select sestamp valor from se where ref ='304.421.00.04' and lote = '240896'
20240728@233853.4478 q1t70g6blm3gmatgpar55qt296 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233853.4494 q1t70g6blm3gmatgpar55qt296 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240728@233853.4581 q1t70g6blm3gmatgpar55qt296 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66a6c0182266a6c87d6d','aut66a6c4347166a6c87c3f' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240728@233853.4586 q1t70g6blm3gmatgpar55qt296 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233853.4604 q1t70g6blm3gmatgpar55qt296 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240728@233853.4638 q1t70g6blm3gmatgpar55qt296 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66a6c0182266a6c87d6d',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',20.000 ,'aut66a6c4347166a6c87c3f' ,0,0 ,2,23.00,190000,?,?,?,?,?)
20240728@233853.5080 q1t70g6blm3gmatgpar55qt296 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233853.5105 q1t70g6blm3gmatgpar55qt296 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240728@233853.5137 q1t70g6blm3gmatgpar55qt296 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233853.5221 q1t70g6blm3gmatgpar55qt296 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240728@233853.5268 q1t70g6blm3gmatgpar55qt296 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240728@233853.5322 q1t70g6blm3gmatgpar55qt296 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233853.5340 q1t70g6blm3gmatgpar55qt296 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
