20240728@233856.2141 243kb2n7bb7no0s70v2aeod25d INICIO DE FICHEIRO DE LOG :: /var/www/webservices/logs/website.sql.log
20240728@233856.2141 243kb2n7bb7no0s70v2aeod25d Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233856.2156 243kb2n7bb7no0s70v2aeod25d Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240728@233856.2165 243kb2n7bb7no0s70v2aeod25d Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240728@233856.2178 243kb2n7bb7no0s70v2aeod25d Query : select sestamp valor from se where ref ='324.1879.00.1' and lote = 'r2300643200a'
20240728@233856.2203 243kb2n7bb7no0s70v2aeod25d Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233856.2218 243kb2n7bb7no0s70v2aeod25d Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240728@233856.2229 243kb2n7bb7no0s70v2aeod25d Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66a6c1608366a6c88035','aut66a6c3274466a6c87fa1' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240728@233856.2233 243kb2n7bb7no0s70v2aeod25d Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233856.2248 243kb2n7bb7no0s70v2aeod25d Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240728@233856.2277 243kb2n7bb7no0s70v2aeod25d Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66a6c1608366a6c88035',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',4.000 ,'aut66a6c3274466a6c87fa1' ,0,0 ,2,23.00,100000,?,?,?,?,?)
20240728@233856.2533 243kb2n7bb7no0s70v2aeod25d Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233856.2549 243kb2n7bb7no0s70v2aeod25d Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240728@233856.2576 243kb2n7bb7no0s70v2aeod25d Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233856.2592 243kb2n7bb7no0s70v2aeod25d Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240728@233856.2601 243kb2n7bb7no0s70v2aeod25d Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240728@233856.2614 243kb2n7bb7no0s70v2aeod25d Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233856.2630 243kb2n7bb7no0s70v2aeod25d Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240728@233856.2641 243kb2n7bb7no0s70v2aeod25d Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66a6c0573666a6c8803f','aut66a6c3274466a6c87fa1' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240728@233856.2646 243kb2n7bb7no0s70v2aeod25d Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233856.2661 243kb2n7bb7no0s70v2aeod25d Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240728@233856.2690 243kb2n7bb7no0s70v2aeod25d Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66a6c0573666a6c8803f',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66a6c3274466a6c87fa1' ,0,0 ,2,23.00,110000,?,?,?)
20240728@233856.2939 243kb2n7bb7no0s70v2aeod25d Query : use flama_phc
20240728@233856.2943 243kb2n7bb7no0s70v2aeod25d Query : select st.usalote valor from st where st.ref = '324.2031.00.1'
20240728@233856.2966 243kb2n7bb7no0s70v2aeod25d Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.2031.00.1'
20240728@233856.3129 243kb2n7bb7no0s70v2aeod25d Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233856.3147 243kb2n7bb7no0s70v2aeod25d Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240728@233856.3174 243kb2n7bb7no0s70v2aeod25d Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233856.3191 243kb2n7bb7no0s70v2aeod25d Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240728@233856.3200 243kb2n7bb7no0s70v2aeod25d Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240728@233856.3213 243kb2n7bb7no0s70v2aeod25d Query : select sestamp valor from se where ref ='324.2031.00.1' and lote = 'r2100232100a'
20240728@233856.3227 243kb2n7bb7no0s70v2aeod25d Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233856.3243 243kb2n7bb7no0s70v2aeod25d Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240728@233856.3255 243kb2n7bb7no0s70v2aeod25d Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66a6c9895866a6c8804e','aut66a6c3274466a6c87fa1' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240728@233856.3259 243kb2n7bb7no0s70v2aeod25d Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233856.3275 243kb2n7bb7no0s70v2aeod25d Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240728@233856.3305 243kb2n7bb7no0s70v2aeod25d Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66a6c9895866a6c8804e',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',6.000 ,'aut66a6c3274466a6c87fa1' ,0,0 ,2,23.00,130000,?,?,?,?,?)
20240728@233856.3566 243kb2n7bb7no0s70v2aeod25d Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233856.3582 243kb2n7bb7no0s70v2aeod25d Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240728@233856.3610 243kb2n7bb7no0s70v2aeod25d Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233856.3624 243kb2n7bb7no0s70v2aeod25d Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240728@233856.3633 243kb2n7bb7no0s70v2aeod25d Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240728@233856.3647 243kb2n7bb7no0s70v2aeod25d Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233856.3661 243kb2n7bb7no0s70v2aeod25d Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240728@233856.3673 243kb2n7bb7no0s70v2aeod25d Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66a6c0906266a6c88059','aut66a6c3274466a6c87fa1' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240728@233856.3679 243kb2n7bb7no0s70v2aeod25d Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233856.3693 243kb2n7bb7no0s70v2aeod25d Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240728@233856.4852 243kb2n7bb7no0s70v2aeod25d Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66a6c0906266a6c88059',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66a6c3274466a6c87fa1' ,0,0 ,2,23.00,140000,?,?,?)
20240728@233856.5115 243kb2n7bb7no0s70v2aeod25d Query : use flama_phc
20240728@233856.5118 243kb2n7bb7no0s70v2aeod25d Query : select st.usalote valor from st where st.ref = '324.2066.00.1'
20240728@233856.5139 243kb2n7bb7no0s70v2aeod25d Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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@233856.5153 243kb2n7bb7no0s70v2aeod25d Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233856.5168 243kb2n7bb7no0s70v2aeod25d Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240728@233856.5193 243kb2n7bb7no0s70v2aeod25d Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233856.5206 243kb2n7bb7no0s70v2aeod25d Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240728@233856.5215 243kb2n7bb7no0s70v2aeod25d Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240728@233856.5226 243kb2n7bb7no0s70v2aeod25d Query : select sestamp valor from se where ref ='324.2066.00.1' and lote = 'r2400051100a'
20240728@233856.5237 243kb2n7bb7no0s70v2aeod25d Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233856.5251 243kb2n7bb7no0s70v2aeod25d Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240728@233856.5262 243kb2n7bb7no0s70v2aeod25d Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66a6c2367066a6c8807f','aut66a6c3274466a6c87fa1' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240728@233856.5266 243kb2n7bb7no0s70v2aeod25d Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233856.5279 243kb2n7bb7no0s70v2aeod25d Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240728@233856.5306 243kb2n7bb7no0s70v2aeod25d Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66a6c2367066a6c8807f',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',6.000 ,'aut66a6c3274466a6c87fa1' ,0,0 ,2,23.00,160000,?,?,?,?,?)
20240728@233856.5536 243kb2n7bb7no0s70v2aeod25d Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233856.5551 243kb2n7bb7no0s70v2aeod25d Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240728@233856.5576 243kb2n7bb7no0s70v2aeod25d Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233856.5590 243kb2n7bb7no0s70v2aeod25d Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240728@233856.5598 243kb2n7bb7no0s70v2aeod25d Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240728@233856.5610 243kb2n7bb7no0s70v2aeod25d Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233856.5623 243kb2n7bb7no0s70v2aeod25d Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240728@233856.5634 243kb2n7bb7no0s70v2aeod25d Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66a6c9164366a6c88088','aut66a6c3274466a6c87fa1' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240728@233856.5638 243kb2n7bb7no0s70v2aeod25d Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233856.5652 243kb2n7bb7no0s70v2aeod25d Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240728@233856.5679 243kb2n7bb7no0s70v2aeod25d Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66a6c9164366a6c88088',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66a6c3274466a6c87fa1' ,0,0 ,2,23.00,170000,?,?,?)
20240728@233856.5897 243kb2n7bb7no0s70v2aeod25d Query : use flama_phc
20240728@233856.5900 243kb2n7bb7no0s70v2aeod25d Query : select st.usalote valor from st where st.ref = '324.2066.00.1'
20240728@233856.5918 243kb2n7bb7no0s70v2aeod25d Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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@233856.5931 243kb2n7bb7no0s70v2aeod25d Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233856.5945 243kb2n7bb7no0s70v2aeod25d Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240728@233856.5969 243kb2n7bb7no0s70v2aeod25d Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233856.5983 243kb2n7bb7no0s70v2aeod25d Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240728@233856.5992 243kb2n7bb7no0s70v2aeod25d Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240728@233856.6003 243kb2n7bb7no0s70v2aeod25d Query : select sestamp valor from se where ref ='324.2066.00.1' and lote = 'r2400051100a'
20240728@233856.6015 243kb2n7bb7no0s70v2aeod25d Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233856.6029 243kb2n7bb7no0s70v2aeod25d Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240728@233856.6040 243kb2n7bb7no0s70v2aeod25d Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66a6c2392666a6c88092','aut66a6c3274466a6c87fa1' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240728@233856.6044 243kb2n7bb7no0s70v2aeod25d Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233856.6058 243kb2n7bb7no0s70v2aeod25d Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240728@233856.6085 243kb2n7bb7no0s70v2aeod25d Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66a6c2392666a6c88092',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',6.000 ,'aut66a6c3274466a6c87fa1' ,0,0 ,2,23.00,190000,?,?,?,?,?)
20240728@233856.6316 243kb2n7bb7no0s70v2aeod25d Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233856.6331 243kb2n7bb7no0s70v2aeod25d Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240728@233856.6356 243kb2n7bb7no0s70v2aeod25d Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233856.6369 243kb2n7bb7no0s70v2aeod25d Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240728@233856.6377 243kb2n7bb7no0s70v2aeod25d Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240728@233856.6389 243kb2n7bb7no0s70v2aeod25d Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233856.6402 243kb2n7bb7no0s70v2aeod25d Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240728@233856.6413 243kb2n7bb7no0s70v2aeod25d Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66a6c0673266a6c8809b','aut66a6c3274466a6c87fa1' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240728@233856.6417 243kb2n7bb7no0s70v2aeod25d Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233856.6432 243kb2n7bb7no0s70v2aeod25d Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240728@233856.6458 243kb2n7bb7no0s70v2aeod25d Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66a6c0673266a6c8809b',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66a6c3274466a6c87fa1' ,0,0 ,2,23.00,200000,?,?,?)
20240728@233856.6684 243kb2n7bb7no0s70v2aeod25d Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut66a6c3274466a6c87fa1','2404983','wait',39,'adm09112754980.682000002')
20240728@233856.6763 243kb2n7bb7no0s70v2aeod25d Query : use flama_phc
20240728@233856.6766 243kb2n7bb7no0s70v2aeod25d Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240728@233856.6800 243kb2n7bb7no0s70v2aeod25d Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1196';
20240728@233856.6824 243kb2n7bb7no0s70v2aeod25d Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1196';
20240728@233856.6867 243kb2n7bb7no0s70v2aeod25d Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1196';
20240728@233856.6890 243kb2n7bb7no0s70v2aeod25d Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1196';
20240728@233856.7698 nej72eteep5560g2fhc86fdklo Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240728@233856.7710 nej72eteep5560g2fhc86fdklo Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240728@233856.7780 nej72eteep5560g2fhc86fdklo Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1197';
20240728@233856.7841 nej72eteep5560g2fhc86fdklo Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1197';
20240728@233856.7932 nej72eteep5560g2fhc86fdklo Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1197';
20240728@233856.7956 nej72eteep5560g2fhc86fdklo Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1197';
20240728@233856.7999 nej72eteep5560g2fhc86fdklo Query : use flama_phc
20240728@233856.8003 nej72eteep5560g2fhc86fdklo Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240728@233856.8063 nej72eteep5560g2fhc86fdklo Query : use flama_phc
20240728@233856.8066 nej72eteep5560g2fhc86fdklo Query : select no, estab,szadrsdesc from szadrs where u_coddest=339
20240728@233856.8151 nej72eteep5560g2fhc86fdklo Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1816.00.1'
20240728@233856.8224 nej72eteep5560g2fhc86fdklo 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 = 2404985 and bi.ref ='324.1816.00.1' and bi.lordem =1
20240728@233856.8545 nej72eteep5560g2fhc86fdklo Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1816.00.1'
20240728@233856.8569 nej72eteep5560g2fhc86fdklo 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 = 2404985 and bi.ref ='324.1816.00.1' and bi.lordem =1
20240728@233856.8584 nej72eteep5560g2fhc86fdklo Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1816.00.1'
20240728@233856.8603 nej72eteep5560g2fhc86fdklo 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 = 2404985 and bi.ref ='324.1816.00.1' and bi.lordem =2
20240728@233856.8917 nej72eteep5560g2fhc86fdklo Query : use flama_phc
20240728@233856.8921 nej72eteep5560g2fhc86fdklo Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20240728@233856.8952 nej72eteep5560g2fhc86fdklo Query : use flama_phc
20240728@233856.8955 nej72eteep5560g2fhc86fdklo Query : select top 1 1 valor from td where td.ndoc = 39
20240728@233856.8984 nej72eteep5560g2fhc86fdklo Query : use flama_phc
20240728@233856.8987 nej72eteep5560g2fhc86fdklo 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@233856.9014 nej72eteep5560g2fhc86fdklo 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@233856.9051 nej72eteep5560g2fhc86fdklo Query : use flama_phc
20240728@233856.9054 nej72eteep5560g2fhc86fdklo Query : select top 1 ~inactivo valor from cl where no = '102177' and estab = 0 order by inactivo desc
20240728@233856.9181 nej72eteep5560g2fhc86fdklo Query : use flama_phc
20240728@233856.9183 nej72eteep5560g2fhc86fdklo Query : select top 1 tipodoc,regrd from td where ndoc = 39
20240728@233856.9214 nej72eteep5560g2fhc86fdklo Query : use flama_phc
20240728@233856.9217 nej72eteep5560g2fhc86fdklo Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20240728@233856.9255 nej72eteep5560g2fhc86fdklo Query : use flama_phc
20240728@233856.9258 nej72eteep5560g2fhc86fdklo Query : select szadrsstamp valor from szadrs where szadrsdesc='electrÃo, lda.'
20240728@233856.9307 nej72eteep5560g2fhc86fdklo Query : use flama_phc
20240728@233856.9310 nej72eteep5560g2fhc86fdklo Query : select 1 valor from td where ndoc = 39
20240728@233856.9322 nej72eteep5560g2fhc86fdklo Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20240728@233856.9337 nej72eteep5560g2fhc86fdklo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233856.9352 nej72eteep5560g2fhc86fdklo Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20240728@233856.9371 nej72eteep5560g2fhc86fdklo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233856.9385 nej72eteep5560g2fhc86fdklo Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20240728@233856.9414 nej72eteep5560g2fhc86fdklo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233856.9429 nej72eteep5560g2fhc86fdklo Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20240728@233856.9442 nej72eteep5560g2fhc86fdklo Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240728@233856.9513 nej72eteep5560g2fhc86fdklo Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240728@233856.9526 nej72eteep5560g2fhc86fdklo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233856.9540 nej72eteep5560g2fhc86fdklo Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20240728@233856.9559 nej72eteep5560g2fhc86fdklo Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut66a6c8195966a6c880e6' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20240728@233856.9745 nej72eteep5560g2fhc86fdklo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233856.9761 nej72eteep5560g2fhc86fdklo Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20240728@233856.9795 nej72eteep5560g2fhc86fdklo Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20240728@233856.9807 nej72eteep5560g2fhc86fdklo Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20240728@233856.9819 nej72eteep5560g2fhc86fdklo Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20240728@233856.9830 nej72eteep5560g2fhc86fdklo Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20240728@233856.9841 nej72eteep5560g2fhc86fdklo Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20240728@233856.9853 nej72eteep5560g2fhc86fdklo Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20240728@233856.9869 nej72eteep5560g2fhc86fdklo Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut66a6c8195966a6c880e6',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20240728@233857.1340 nej72eteep5560g2fhc86fdklo Query : select top 1 fno valor from wsftdata order by fno desc
20240728@233857.1510 nej72eteep5560g2fhc86fdklo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233857.1670 nej72eteep5560g2fhc86fdklo Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20240728@233857.1900 nej72eteep5560g2fhc86fdklo Query : select 'normal' from dummy
20240728@233857.2050 nej72eteep5560g2fhc86fdklo Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut66a6c8195966a6c880e6',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',46,102177,0,'2024-07-28',39,'euro',0,0,2024 ,?,?)
20240728@233857.4990 nej72eteep5560g2fhc86fdklo Query : use flama_phc
20240728@233857.5020 nej72eteep5560g2fhc86fdklo Query : select st.usalote valor from st where st.ref = '324.1816.00.1'
20240728@233857.5250 nej72eteep5560g2fhc86fdklo Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.1816.00.1'
20240728@233857.5390 nej72eteep5560g2fhc86fdklo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233857.5560 nej72eteep5560g2fhc86fdklo Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240728@233857.5820 nej72eteep5560g2fhc86fdklo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233857.5980 nej72eteep5560g2fhc86fdklo Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240728@233857.6060 nej72eteep5560g2fhc86fdklo Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240728@233857.6180 nej72eteep5560g2fhc86fdklo Query : select sestamp valor from se where ref ='324.1816.00.1' and lote = 'r2400198200a'
20240728@233857.6300 nej72eteep5560g2fhc86fdklo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233857.6440 nej72eteep5560g2fhc86fdklo Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240728@233857.6560 nej72eteep5560g2fhc86fdklo Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66a6c1090066a6c8810f','aut66a6c8195966a6c880e6' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240728@233857.6600 nej72eteep5560g2fhc86fdklo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233857.6740 nej72eteep5560g2fhc86fdklo Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240728@233857.7020 nej72eteep5560g2fhc86fdklo Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66a6c1090066a6c8810f',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',9.000 ,'aut66a6c8195966a6c880e6' ,0,0 ,2,23.00,10000,?,?,?,?,?)
20240728@233857.9600 nej72eteep5560g2fhc86fdklo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233857.9880 nej72eteep5560g2fhc86fdklo Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240728@233857.1014 nej72eteep5560g2fhc86fdklo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233857.1297 nej72eteep5560g2fhc86fdklo Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240728@233857.1307 nej72eteep5560g2fhc86fdklo Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240728@233857.1319 nej72eteep5560g2fhc86fdklo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233857.1335 nej72eteep5560g2fhc86fdklo Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240728@233857.1348 nej72eteep5560g2fhc86fdklo Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66a6c4917766a6c88120','aut66a6c8195966a6c880e6' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240728@233857.1353 nej72eteep5560g2fhc86fdklo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233857.1368 nej72eteep5560g2fhc86fdklo Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240728@233857.1396 nej72eteep5560g2fhc86fdklo Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66a6c4917766a6c88120',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66a6c8195966a6c880e6' ,0,0 ,2,23.00,20000,?,?,?)
20240728@233857.1654 nej72eteep5560g2fhc86fdklo Query : use flama_phc
20240728@233857.1657 nej72eteep5560g2fhc86fdklo Query : select st.usalote valor from st where st.ref = '324.1816.00.1'
20240728@233857.1676 nej72eteep5560g2fhc86fdklo Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.1816.00.1'
20240728@233857.1689 nej72eteep5560g2fhc86fdklo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233857.1704 nej72eteep5560g2fhc86fdklo Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240728@233857.1738 nej72eteep5560g2fhc86fdklo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233857.1752 nej72eteep5560g2fhc86fdklo Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240728@233857.1760 nej72eteep5560g2fhc86fdklo Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240728@233857.1772 nej72eteep5560g2fhc86fdklo Query : select sestamp valor from se where ref ='324.1816.00.1' and lote = 'r2400198200a'
20240728@233857.1785 nej72eteep5560g2fhc86fdklo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233857.1799 nej72eteep5560g2fhc86fdklo Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240728@233857.1810 nej72eteep5560g2fhc86fdklo Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66a6c9097666a6c8812b','aut66a6c8195966a6c880e6' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240728@233857.1814 nej72eteep5560g2fhc86fdklo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233857.1828 nej72eteep5560g2fhc86fdklo Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240728@233857.1856 nej72eteep5560g2fhc86fdklo Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66a6c9097666a6c8812b',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',3.000 ,'aut66a6c8195966a6c880e6' ,0,0 ,2,23.00,40000,?,?,?,?,?)
20240728@233857.2130 nej72eteep5560g2fhc86fdklo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233857.2149 nej72eteep5560g2fhc86fdklo Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240728@233857.2175 nej72eteep5560g2fhc86fdklo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233857.2190 nej72eteep5560g2fhc86fdklo Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240728@233857.2199 nej72eteep5560g2fhc86fdklo Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240728@233857.2211 nej72eteep5560g2fhc86fdklo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233857.2225 nej72eteep5560g2fhc86fdklo Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240728@233857.2236 nej72eteep5560g2fhc86fdklo Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66a6c0706366a6c88135','aut66a6c8195966a6c880e6' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240728@233857.2240 nej72eteep5560g2fhc86fdklo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233857.2254 nej72eteep5560g2fhc86fdklo Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240728@233857.2281 nej72eteep5560g2fhc86fdklo Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66a6c0706366a6c88135',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66a6c8195966a6c880e6' ,0,0 ,2,23.00,50000,?,?,?)
20240728@233857.2528 nej72eteep5560g2fhc86fdklo Query : use flama_phc
20240728@233857.2531 nej72eteep5560g2fhc86fdklo Query : select st.usalote valor from st where st.ref = '324.1816.00.1'
20240728@233857.2550 nej72eteep5560g2fhc86fdklo Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.1816.00.1'
20240728@233857.2564 nej72eteep5560g2fhc86fdklo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233857.2579 nej72eteep5560g2fhc86fdklo Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240728@233857.2605 nej72eteep5560g2fhc86fdklo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233857.2619 nej72eteep5560g2fhc86fdklo Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240728@233857.2627 nej72eteep5560g2fhc86fdklo Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240728@233857.2640 nej72eteep5560g2fhc86fdklo Query : select sestamp valor from se where ref ='324.1816.00.1' and lote = 'r2400198200a'
20240728@233857.2652 nej72eteep5560g2fhc86fdklo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233857.2667 nej72eteep5560g2fhc86fdklo Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240728@233857.2680 nej72eteep5560g2fhc86fdklo Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66a6c6814966a6c88140','aut66a6c8195966a6c880e6' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240728@233857.2684 nej72eteep5560g2fhc86fdklo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233857.2700 nej72eteep5560g2fhc86fdklo Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240728@233857.2875 nej72eteep5560g2fhc86fdklo Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66a6c6814966a6c88140',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',1.000 ,'aut66a6c8195966a6c880e6' ,0,0 ,2,23.00,70000,?,?,?,?,?)
20240728@233857.3161 nej72eteep5560g2fhc86fdklo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233857.3180 nej72eteep5560g2fhc86fdklo Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240728@233857.3210 nej72eteep5560g2fhc86fdklo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233857.3228 nej72eteep5560g2fhc86fdklo Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240728@233857.3238 nej72eteep5560g2fhc86fdklo Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240728@233857.3251 nej72eteep5560g2fhc86fdklo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233857.3267 nej72eteep5560g2fhc86fdklo Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240728@233857.3280 nej72eteep5560g2fhc86fdklo Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66a6c4860466a6c8814f','aut66a6c8195966a6c880e6' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240728@233857.3285 nej72eteep5560g2fhc86fdklo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233857.3300 nej72eteep5560g2fhc86fdklo Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240728@233857.3328 nej72eteep5560g2fhc86fdklo Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66a6c4860466a6c8814f',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66a6c8195966a6c880e6' ,0,0 ,2,23.00,80000,?,?,?)
20240728@233857.3579 nej72eteep5560g2fhc86fdklo Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut66a6c8195966a6c880e6','2404985','wait',39,'adm09112754980.682000002')
20240728@233857.3653 nej72eteep5560g2fhc86fdklo Query : use flama_phc
20240728@233857.3656 nej72eteep5560g2fhc86fdklo Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240728@233857.3690 nej72eteep5560g2fhc86fdklo Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1197';
20240728@233857.3715 nej72eteep5560g2fhc86fdklo Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1197';
20240728@233857.3753 nej72eteep5560g2fhc86fdklo Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1197';
20240728@233857.3777 nej72eteep5560g2fhc86fdklo Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1197';
20240728@233857.4388 67j54juaj1udfap9v5mvmc01e6 Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240728@233857.4400 67j54juaj1udfap9v5mvmc01e6 Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240728@233857.4449 67j54juaj1udfap9v5mvmc01e6 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1198';
20240728@233857.4501 67j54juaj1udfap9v5mvmc01e6 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1198';
20240728@233857.4550 67j54juaj1udfap9v5mvmc01e6 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1198';
20240728@233857.4574 67j54juaj1udfap9v5mvmc01e6 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1198';
20240728@233857.4621 67j54juaj1udfap9v5mvmc01e6 Query : use flama_phc
20240728@233857.4625 67j54juaj1udfap9v5mvmc01e6 Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240728@233857.4688 67j54juaj1udfap9v5mvmc01e6 Query : use flama_phc
20240728@233857.4691 67j54juaj1udfap9v5mvmc01e6 Query : select no, estab,szadrsdesc from szadrs where u_coddest=1152
20240728@233857.4768 67j54juaj1udfap9v5mvmc01e6 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '325.1905.0001'
20240728@233857.5991 67j54juaj1udfap9v5mvmc01e6 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 = 2404987 and bi.ref ='325.1905.0001' and bi.lordem =1
20240728@233857.6560 67j54juaj1udfap9v5mvmc01e6 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.682.00.01'
20240728@233857.6714 67j54juaj1udfap9v5mvmc01e6 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 = 2404987 and bi.ref ='324.682.00.01' and bi.lordem =2
20240728@233857.7021 67j54juaj1udfap9v5mvmc01e6 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.682.00.01'
20240728@233857.7044 67j54juaj1udfap9v5mvmc01e6 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 = 2404987 and bi.ref ='324.682.00.01' and bi.lordem =3
20240728@233857.7350 67j54juaj1udfap9v5mvmc01e6 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1824.00.1'
20240728@233857.7504 67j54juaj1udfap9v5mvmc01e6 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 = 2404987 and bi.ref ='324.1824.00.1' and bi.lordem =4
20240728@233857.7847 67j54juaj1udfap9v5mvmc01e6 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1824.00.1'
20240728@233857.7868 67j54juaj1udfap9v5mvmc01e6 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 = 2404987 and bi.ref ='324.1824.00.1' and bi.lordem =4
20240728@233857.7885 67j54juaj1udfap9v5mvmc01e6 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1824.00.1'
20240728@233857.7908 67j54juaj1udfap9v5mvmc01e6 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 = 2404987 and bi.ref ='324.1824.00.1' and bi.lordem =5
20240728@233857.8220 67j54juaj1udfap9v5mvmc01e6 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@233857.8241 67j54juaj1udfap9v5mvmc01e6 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 = 2404987 and bi.ref ='324.958.00.01' and bi.lordem =6
20240728@233857.8559 67j54juaj1udfap9v5mvmc01e6 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.2907.00.1'
20240728@233857.8711 67j54juaj1udfap9v5mvmc01e6 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 = 2404987 and bi.ref ='324.2907.00.1' and bi.lordem =7
20240728@233857.9040 67j54juaj1udfap9v5mvmc01e6 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '325.1905.0001'
20240728@233857.9061 67j54juaj1udfap9v5mvmc01e6 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 = 2404987 and bi.ref ='325.1905.0001' and bi.lordem =9
20240728@233857.9372 67j54juaj1udfap9v5mvmc01e6 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '325.1905.0001'
20240728@233857.9394 67j54juaj1udfap9v5mvmc01e6 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 = 2404987 and bi.ref ='325.1905.0001' and bi.lordem =9
20240728@233857.9411 67j54juaj1udfap9v5mvmc01e6 Query : use flama_phc
20240728@233857.9414 67j54juaj1udfap9v5mvmc01e6 Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20240728@233857.9448 67j54juaj1udfap9v5mvmc01e6 Query : use flama_phc
20240728@233857.9451 67j54juaj1udfap9v5mvmc01e6 Query : select top 1 1 valor from td where td.ndoc = 39
20240728@233857.9486 67j54juaj1udfap9v5mvmc01e6 Query : use flama_phc
20240728@233857.9490 67j54juaj1udfap9v5mvmc01e6 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@233857.9520 67j54juaj1udfap9v5mvmc01e6 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@233857.9554 67j54juaj1udfap9v5mvmc01e6 Query : use flama_phc
20240728@233857.9557 67j54juaj1udfap9v5mvmc01e6 Query : select top 1 ~inactivo valor from cl where no = '101393' and estab = 0 order by inactivo desc
20240728@233857.9700 67j54juaj1udfap9v5mvmc01e6 Query : use flama_phc
20240728@233857.9703 67j54juaj1udfap9v5mvmc01e6 Query : select top 1 tipodoc,regrd from td where ndoc = 39
20240728@233857.9739 67j54juaj1udfap9v5mvmc01e6 Query : use flama_phc
20240728@233857.9742 67j54juaj1udfap9v5mvmc01e6 Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20240728@233857.9783 67j54juaj1udfap9v5mvmc01e6 Query : use flama_phc
20240728@233857.9787 67j54juaj1udfap9v5mvmc01e6 Query : select szadrsstamp valor from szadrs where szadrsdesc='antonio solha & irmÃo, lda.'
20240728@233857.9839 67j54juaj1udfap9v5mvmc01e6 Query : use flama_phc
20240728@233857.9841 67j54juaj1udfap9v5mvmc01e6 Query : select 1 valor from td where ndoc = 39
20240728@233857.9854 67j54juaj1udfap9v5mvmc01e6 Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20240728@233857.9869 67j54juaj1udfap9v5mvmc01e6 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233857.9885 67j54juaj1udfap9v5mvmc01e6 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20240728@233857.9905 67j54juaj1udfap9v5mvmc01e6 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233857.9920 67j54juaj1udfap9v5mvmc01e6 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20240728@233857.9950 67j54juaj1udfap9v5mvmc01e6 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233857.9965 67j54juaj1udfap9v5mvmc01e6 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20240728@233857.9981 67j54juaj1udfap9v5mvmc01e6 Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240728@233858.5600 67j54juaj1udfap9v5mvmc01e6 Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240728@233858.6900 67j54juaj1udfap9v5mvmc01e6 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233858.8700 67j54juaj1udfap9v5mvmc01e6 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20240728@233858.1030 67j54juaj1udfap9v5mvmc01e6 Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut66a6c3131566a6c881f3' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20240728@233858.2840 67j54juaj1udfap9v5mvmc01e6 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233858.3010 67j54juaj1udfap9v5mvmc01e6 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20240728@233858.3350 67j54juaj1udfap9v5mvmc01e6 Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20240728@233858.3480 67j54juaj1udfap9v5mvmc01e6 Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20240728@233858.3600 67j54juaj1udfap9v5mvmc01e6 Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20240728@233858.3720 67j54juaj1udfap9v5mvmc01e6 Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20240728@233858.3830 67j54juaj1udfap9v5mvmc01e6 Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20240728@233858.3950 67j54juaj1udfap9v5mvmc01e6 Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20240728@233858.4060 67j54juaj1udfap9v5mvmc01e6 Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut66a6c3131566a6c881f3',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20240728@233858.6550 67j54juaj1udfap9v5mvmc01e6 Query : select top 1 fno valor from wsftdata order by fno desc
20240728@233858.6690 67j54juaj1udfap9v5mvmc01e6 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233858.6840 67j54juaj1udfap9v5mvmc01e6 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20240728@233858.7080 67j54juaj1udfap9v5mvmc01e6 Query : select 'normal' from dummy
20240728@233858.7230 67j54juaj1udfap9v5mvmc01e6 Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut66a6c3131566a6c881f3',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',47,101393,0,'2024-07-28',39,'euro',0,0,2024 ,?,?)
20240728@233858.1619 67j54juaj1udfap9v5mvmc01e6 Query : use flama_phc
20240728@233858.1622 67j54juaj1udfap9v5mvmc01e6 Query : select st.usalote valor from st where st.ref = '325.1905.0001'
20240728@233858.1644 67j54juaj1udfap9v5mvmc01e6 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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.1905.0001'
20240728@233858.1853 67j54juaj1udfap9v5mvmc01e6 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233858.1869 67j54juaj1udfap9v5mvmc01e6 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240728@233858.1894 67j54juaj1udfap9v5mvmc01e6 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233858.1908 67j54juaj1udfap9v5mvmc01e6 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240728@233858.1917 67j54juaj1udfap9v5mvmc01e6 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240728@233858.1928 67j54juaj1udfap9v5mvmc01e6 Query : select sestamp valor from se where ref ='325.1905.0001' and lote = 'r180073920'
20240728@233858.2227 67j54juaj1udfap9v5mvmc01e6 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233858.2244 67j54juaj1udfap9v5mvmc01e6 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240728@233858.2256 67j54juaj1udfap9v5mvmc01e6 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66a6c0526866a6c88236','aut66a6c3131566a6c881f3' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240728@233858.2266 67j54juaj1udfap9v5mvmc01e6 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233858.2280 67j54juaj1udfap9v5mvmc01e6 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240728@233858.2308 67j54juaj1udfap9v5mvmc01e6 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66a6c0526866a6c88236',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',1.000 ,'aut66a6c3131566a6c881f3' ,0,0 ,2,23.00,10000,?,?,?,?,?)
20240728@233858.2777 67j54juaj1udfap9v5mvmc01e6 Query : use flama_phc
20240728@233858.2781 67j54juaj1udfap9v5mvmc01e6 Query : select st.usalote valor from st where st.ref = '324.682.00.01'
20240728@233858.2802 67j54juaj1udfap9v5mvmc01e6 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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.682.00.01'
20240728@233858.2954 67j54juaj1udfap9v5mvmc01e6 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233858.2970 67j54juaj1udfap9v5mvmc01e6 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240728@233858.2997 67j54juaj1udfap9v5mvmc01e6 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233858.3015 67j54juaj1udfap9v5mvmc01e6 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240728@233858.3023 67j54juaj1udfap9v5mvmc01e6 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240728@233858.3035 67j54juaj1udfap9v5mvmc01e6 Query : select sestamp valor from se where ref ='324.682.00.01' and lote = 'r2301244100a'
20240728@233858.3058 67j54juaj1udfap9v5mvmc01e6 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233858.3072 67j54juaj1udfap9v5mvmc01e6 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240728@233858.3084 67j54juaj1udfap9v5mvmc01e6 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66a6c2025766a6c8824a','aut66a6c3131566a6c881f3' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240728@233858.3088 67j54juaj1udfap9v5mvmc01e6 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233858.3102 67j54juaj1udfap9v5mvmc01e6 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240728@233858.3130 67j54juaj1udfap9v5mvmc01e6 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66a6c2025766a6c8824a',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',3.000 ,'aut66a6c3131566a6c881f3' ,0,0 ,2,23.00,20000,?,?,?,?,?)
20240728@233858.3540 67j54juaj1udfap9v5mvmc01e6 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233858.3557 67j54juaj1udfap9v5mvmc01e6 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240728@233858.3586 67j54juaj1udfap9v5mvmc01e6 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233858.3601 67j54juaj1udfap9v5mvmc01e6 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240728@233858.3611 67j54juaj1udfap9v5mvmc01e6 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240728@233858.3624 67j54juaj1udfap9v5mvmc01e6 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233858.3639 67j54juaj1udfap9v5mvmc01e6 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240728@233858.3651 67j54juaj1udfap9v5mvmc01e6 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66a6c6771266a6c88258','aut66a6c3131566a6c881f3' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240728@233858.3655 67j54juaj1udfap9v5mvmc01e6 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233858.3670 67j54juaj1udfap9v5mvmc01e6 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240728@233858.3703 67j54juaj1udfap9v5mvmc01e6 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66a6c6771266a6c88258',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66a6c3131566a6c881f3' ,0,0 ,2,23.00,30000,?,?,?)
20240728@233858.3982 67j54juaj1udfap9v5mvmc01e6 Query : use flama_phc
20240728@233858.3986 67j54juaj1udfap9v5mvmc01e6 Query : select st.usalote valor from st where st.ref = '324.682.00.01'
20240728@233858.4006 67j54juaj1udfap9v5mvmc01e6 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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.682.00.01'
20240728@233858.4020 67j54juaj1udfap9v5mvmc01e6 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233858.4037 67j54juaj1udfap9v5mvmc01e6 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240728@233858.4064 67j54juaj1udfap9v5mvmc01e6 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233858.4081 67j54juaj1udfap9v5mvmc01e6 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240728@233858.4090 67j54juaj1udfap9v5mvmc01e6 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240728@233858.4103 67j54juaj1udfap9v5mvmc01e6 Query : select sestamp valor from se where ref ='324.682.00.01' and lote = 'r2301244100a'
20240728@233858.4117 67j54juaj1udfap9v5mvmc01e6 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233858.4132 67j54juaj1udfap9v5mvmc01e6 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240728@233858.4144 67j54juaj1udfap9v5mvmc01e6 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66a6c7959466a6c88264','aut66a6c3131566a6c881f3' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240728@233858.4149 67j54juaj1udfap9v5mvmc01e6 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233858.4164 67j54juaj1udfap9v5mvmc01e6 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240728@233858.4193 67j54juaj1udfap9v5mvmc01e6 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66a6c7959466a6c88264',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',1.000 ,'aut66a6c3131566a6c881f3' ,0,0 ,2,23.00,50000,?,?,?,?,?)
20240728@233858.4457 67j54juaj1udfap9v5mvmc01e6 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233858.4473 67j54juaj1udfap9v5mvmc01e6 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240728@233858.4499 67j54juaj1udfap9v5mvmc01e6 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233858.4515 67j54juaj1udfap9v5mvmc01e6 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240728@233858.4523 67j54juaj1udfap9v5mvmc01e6 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240728@233858.4536 67j54juaj1udfap9v5mvmc01e6 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233858.4551 67j54juaj1udfap9v5mvmc01e6 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240728@233858.4563 67j54juaj1udfap9v5mvmc01e6 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66a6c8336366a6c8826e','aut66a6c3131566a6c881f3' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240728@233858.4568 67j54juaj1udfap9v5mvmc01e6 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233858.4582 67j54juaj1udfap9v5mvmc01e6 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240728@233858.4612 67j54juaj1udfap9v5mvmc01e6 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66a6c8336366a6c8826e',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66a6c3131566a6c881f3' ,0,0 ,2,23.00,60000,?,?,?)
20240728@233858.4922 67j54juaj1udfap9v5mvmc01e6 Query : use flama_phc
20240728@233858.4925 67j54juaj1udfap9v5mvmc01e6 Query : select st.usalote valor from st where st.ref = '324.1824.00.1'
20240728@233858.4951 67j54juaj1udfap9v5mvmc01e6 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.1824.00.1'
20240728@233858.5213 67j54juaj1udfap9v5mvmc01e6 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233858.5231 67j54juaj1udfap9v5mvmc01e6 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240728@233858.5260 67j54juaj1udfap9v5mvmc01e6 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233858.5274 67j54juaj1udfap9v5mvmc01e6 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240728@233858.5283 67j54juaj1udfap9v5mvmc01e6 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240728@233858.5296 67j54juaj1udfap9v5mvmc01e6 Query : select sestamp valor from se where ref ='324.1824.00.1' and lote = 'r2301210200a'
20240728@233858.5318 67j54juaj1udfap9v5mvmc01e6 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233858.5382 67j54juaj1udfap9v5mvmc01e6 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240728@233858.5394 67j54juaj1udfap9v5mvmc01e6 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66a6c8679266a6c88281','aut66a6c3131566a6c881f3' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240728@233858.5398 67j54juaj1udfap9v5mvmc01e6 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233858.5412 67j54juaj1udfap9v5mvmc01e6 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240728@233858.5439 67j54juaj1udfap9v5mvmc01e6 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66a6c8679266a6c88281',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',5.000 ,'aut66a6c3131566a6c881f3' ,0,0 ,2,23.00,80000,?,?,?,?,?)
20240728@233858.5933 67j54juaj1udfap9v5mvmc01e6 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233858.5960 67j54juaj1udfap9v5mvmc01e6 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240728@233858.6044 67j54juaj1udfap9v5mvmc01e6 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233858.6060 67j54juaj1udfap9v5mvmc01e6 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240728@233858.6068 67j54juaj1udfap9v5mvmc01e6 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240728@233858.6083 67j54juaj1udfap9v5mvmc01e6 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233858.6098 67j54juaj1udfap9v5mvmc01e6 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240728@233858.6110 67j54juaj1udfap9v5mvmc01e6 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66a6c1211566a6c88294','aut66a6c3131566a6c881f3' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240728@233858.6114 67j54juaj1udfap9v5mvmc01e6 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233858.6128 67j54juaj1udfap9v5mvmc01e6 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240728@233858.6219 67j54juaj1udfap9v5mvmc01e6 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66a6c1211566a6c88294',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66a6c3131566a6c881f3' ,0,0 ,2,23.00,90000,?,?,?)
20240728@233858.6549 67j54juaj1udfap9v5mvmc01e6 Query : use flama_phc
20240728@233858.6552 67j54juaj1udfap9v5mvmc01e6 Query : select st.usalote valor from st where st.ref = '324.1824.00.1'
20240728@233858.6573 67j54juaj1udfap9v5mvmc01e6 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.1824.00.1'
20240728@233858.6587 67j54juaj1udfap9v5mvmc01e6 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233858.6603 67j54juaj1udfap9v5mvmc01e6 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240728@233858.6631 67j54juaj1udfap9v5mvmc01e6 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233858.6646 67j54juaj1udfap9v5mvmc01e6 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240728@233858.6655 67j54juaj1udfap9v5mvmc01e6 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240728@233858.6667 67j54juaj1udfap9v5mvmc01e6 Query : select sestamp valor from se where ref ='324.1824.00.1' and lote = 'r2301210200a'
20240728@233858.6680 67j54juaj1udfap9v5mvmc01e6 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233858.6773 67j54juaj1udfap9v5mvmc01e6 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240728@233858.6785 67j54juaj1udfap9v5mvmc01e6 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66a6c2939466a6c882a3','aut66a6c3131566a6c881f3' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240728@233858.6789 67j54juaj1udfap9v5mvmc01e6 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233858.6805 67j54juaj1udfap9v5mvmc01e6 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240728@233858.6832 67j54juaj1udfap9v5mvmc01e6 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66a6c2939466a6c882a3',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',5.000 ,'aut66a6c3131566a6c881f3' ,0,0 ,2,23.00,110000,?,?,?,?,?)
20240728@233858.7226 67j54juaj1udfap9v5mvmc01e6 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233858.7353 67j54juaj1udfap9v5mvmc01e6 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240728@233858.7382 67j54juaj1udfap9v5mvmc01e6 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233858.7397 67j54juaj1udfap9v5mvmc01e6 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240728@233858.7406 67j54juaj1udfap9v5mvmc01e6 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240728@233858.7418 67j54juaj1udfap9v5mvmc01e6 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233858.7435 67j54juaj1udfap9v5mvmc01e6 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240728@233858.7447 67j54juaj1udfap9v5mvmc01e6 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66a6c4038566a6c882b5','aut66a6c3131566a6c881f3' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240728@233858.7452 67j54juaj1udfap9v5mvmc01e6 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233858.7587 67j54juaj1udfap9v5mvmc01e6 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240728@233858.7621 67j54juaj1udfap9v5mvmc01e6 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66a6c4038566a6c882b5',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66a6c3131566a6c881f3' ,0,0 ,2,23.00,120000,?,?,?)
20240728@233858.7989 67j54juaj1udfap9v5mvmc01e6 Query : use flama_phc
20240728@233858.7993 67j54juaj1udfap9v5mvmc01e6 Query : select st.usalote valor from st where st.ref = '324.1824.00.1'
20240728@233858.8013 67j54juaj1udfap9v5mvmc01e6 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.1824.00.1'
20240728@233858.8027 67j54juaj1udfap9v5mvmc01e6 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233858.8043 67j54juaj1udfap9v5mvmc01e6 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240728@233858.8069 67j54juaj1udfap9v5mvmc01e6 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233858.8083 67j54juaj1udfap9v5mvmc01e6 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240728@233858.8093 67j54juaj1udfap9v5mvmc01e6 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240728@233858.8104 67j54juaj1udfap9v5mvmc01e6 Query : select sestamp valor from se where ref ='324.1824.00.1' and lote = 'r2301210200a'
20240728@233858.8116 67j54juaj1udfap9v5mvmc01e6 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233858.8135 67j54juaj1udfap9v5mvmc01e6 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240728@233858.8146 67j54juaj1udfap9v5mvmc01e6 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66a6c8105466a6c882c6','aut66a6c3131566a6c881f3' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240728@233858.8151 67j54juaj1udfap9v5mvmc01e6 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233858.8164 67j54juaj1udfap9v5mvmc01e6 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240728@233858.8193 67j54juaj1udfap9v5mvmc01e6 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66a6c8105466a6c882c6',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',1.000 ,'aut66a6c3131566a6c881f3' ,0,0 ,2,23.00,140000,?,?,?,?,?)
20240728@233858.8581 67j54juaj1udfap9v5mvmc01e6 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233858.8605 67j54juaj1udfap9v5mvmc01e6 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240728@233858.8630 67j54juaj1udfap9v5mvmc01e6 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233858.8644 67j54juaj1udfap9v5mvmc01e6 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240728@233858.8652 67j54juaj1udfap9v5mvmc01e6 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240728@233858.8664 67j54juaj1udfap9v5mvmc01e6 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233858.8680 67j54juaj1udfap9v5mvmc01e6 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240728@233858.8713 67j54juaj1udfap9v5mvmc01e6 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66a6c7542566a6c882d3','aut66a6c3131566a6c881f3' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240728@233858.8772 67j54juaj1udfap9v5mvmc01e6 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233858.8788 67j54juaj1udfap9v5mvmc01e6 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240728@233858.8818 67j54juaj1udfap9v5mvmc01e6 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66a6c7542566a6c882d3',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66a6c3131566a6c881f3' ,0,0 ,2,23.00,150000,?,?,?)
20240728@233858.9168 67j54juaj1udfap9v5mvmc01e6 Query : use flama_phc
20240728@233858.9171 67j54juaj1udfap9v5mvmc01e6 Query : select st.usalote valor from st where st.ref = '324.958.00.01'
20240728@233858.9192 67j54juaj1udfap9v5mvmc01e6 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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'
20240728@233858.9205 67j54juaj1udfap9v5mvmc01e6 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233858.9222 67j54juaj1udfap9v5mvmc01e6 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240728@233858.9245 67j54juaj1udfap9v5mvmc01e6 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233858.9260 67j54juaj1udfap9v5mvmc01e6 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240728@233858.9269 67j54juaj1udfap9v5mvmc01e6 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240728@233858.9282 67j54juaj1udfap9v5mvmc01e6 Query : select sestamp valor from se where ref ='324.958.00.01' and lote = 'r2400240200a'
20240728@233858.9294 67j54juaj1udfap9v5mvmc01e6 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233858.9309 67j54juaj1udfap9v5mvmc01e6 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240728@233858.9320 67j54juaj1udfap9v5mvmc01e6 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66a6c5939966a6c882e2','aut66a6c3131566a6c881f3' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240728@233858.9324 67j54juaj1udfap9v5mvmc01e6 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233858.9337 67j54juaj1udfap9v5mvmc01e6 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240728@233858.9366 67j54juaj1udfap9v5mvmc01e6 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66a6c5939966a6c882e2',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',4.000 ,'aut66a6c3131566a6c881f3' ,0,0 ,2,23.00,170000,?,?,?,?,?)
20240728@233858.9629 67j54juaj1udfap9v5mvmc01e6 Query : use flama_phc
20240728@233858.9632 67j54juaj1udfap9v5mvmc01e6 Query : select st.usalote valor from st where st.ref = '324.2907.00.1'
20240728@233858.9653 67j54juaj1udfap9v5mvmc01e6 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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.2907.00.1'
20240728@233858.9896 67j54juaj1udfap9v5mvmc01e6 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233858.9912 67j54juaj1udfap9v5mvmc01e6 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240728@233858.9941 67j54juaj1udfap9v5mvmc01e6 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233858.9957 67j54juaj1udfap9v5mvmc01e6 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240728@233858.9967 67j54juaj1udfap9v5mvmc01e6 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240728@233858.9980 67j54juaj1udfap9v5mvmc01e6 Query : select sestamp valor from se where ref ='324.2907.00.1' and lote = 'r2400091200a'
20240728@233859.1000 67j54juaj1udfap9v5mvmc01e6 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233859.3000 67j54juaj1udfap9v5mvmc01e6 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240728@233859.4300 67j54juaj1udfap9v5mvmc01e6 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66a6c2206966a6c88300','aut66a6c3131566a6c881f3' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240728@233859.4700 67j54juaj1udfap9v5mvmc01e6 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233859.6200 67j54juaj1udfap9v5mvmc01e6 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240728@233859.9400 67j54juaj1udfap9v5mvmc01e6 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66a6c2206966a6c88300',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',8.000 ,'aut66a6c3131566a6c881f3' ,0,0 ,2,23.00,180000,?,?,?,?,?)
20240728@233859.3650 67j54juaj1udfap9v5mvmc01e6 Query : use flama_phc
20240728@233859.3690 67j54juaj1udfap9v5mvmc01e6 Query : select st.usalote valor from st where st.ref = '325.1905.0001'
20240728@233859.3900 67j54juaj1udfap9v5mvmc01e6 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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.1905.0001'
20240728@233859.4050 67j54juaj1udfap9v5mvmc01e6 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233859.8550 67j54juaj1udfap9v5mvmc01e6 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240728@233859.1898 67j54juaj1udfap9v5mvmc01e6 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233859.1917 67j54juaj1udfap9v5mvmc01e6 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240728@233859.1927 67j54juaj1udfap9v5mvmc01e6 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240728@233859.1942 67j54juaj1udfap9v5mvmc01e6 Query : select sestamp valor from se where ref ='325.1905.0001' and lote = 'r180073920'
20240728@233859.1958 67j54juaj1udfap9v5mvmc01e6 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233859.2196 67j54juaj1udfap9v5mvmc01e6 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240728@233859.2208 67j54juaj1udfap9v5mvmc01e6 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66a6c4023066a6c8832f','aut66a6c3131566a6c881f3' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240728@233859.2213 67j54juaj1udfap9v5mvmc01e6 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233859.2231 67j54juaj1udfap9v5mvmc01e6 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240728@233859.2264 67j54juaj1udfap9v5mvmc01e6 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66a6c4023066a6c8832f',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',6.000 ,'aut66a6c3131566a6c881f3' ,0,0 ,2,23.00,190000,?,?,?,?,?)
20240728@233859.2547 67j54juaj1udfap9v5mvmc01e6 Query : use flama_phc
20240728@233859.2551 67j54juaj1udfap9v5mvmc01e6 Query : select st.usalote valor from st where st.ref = '325.1905.0001'
20240728@233859.2574 67j54juaj1udfap9v5mvmc01e6 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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.1905.0001'
20240728@233859.2591 67j54juaj1udfap9v5mvmc01e6 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233859.2609 67j54juaj1udfap9v5mvmc01e6 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240728@233859.2638 67j54juaj1udfap9v5mvmc01e6 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233859.2655 67j54juaj1udfap9v5mvmc01e6 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240728@233859.2665 67j54juaj1udfap9v5mvmc01e6 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240728@233859.2679 67j54juaj1udfap9v5mvmc01e6 Query : select sestamp valor from se where ref ='325.1905.0001' and lote = 'r180073920'
20240728@233859.2693 67j54juaj1udfap9v5mvmc01e6 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233859.2709 67j54juaj1udfap9v5mvmc01e6 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240728@233859.2723 67j54juaj1udfap9v5mvmc01e6 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66a6c3786766a6c88341','aut66a6c3131566a6c881f3' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240728@233859.2728 67j54juaj1udfap9v5mvmc01e6 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233859.2745 67j54juaj1udfap9v5mvmc01e6 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240728@233859.2777 67j54juaj1udfap9v5mvmc01e6 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66a6c3786766a6c88341',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',5.000 ,'aut66a6c3131566a6c881f3' ,0,0 ,2,23.00,200000,?,?,?,?,?)
20240728@233859.3042 67j54juaj1udfap9v5mvmc01e6 Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut66a6c3131566a6c881f3','2404987','wait',39,'adm09112754980.682000002')
20240728@233859.3211 67j54juaj1udfap9v5mvmc01e6 Query : use flama_phc
20240728@233859.3215 67j54juaj1udfap9v5mvmc01e6 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240728@233859.3369 67j54juaj1udfap9v5mvmc01e6 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1198';
20240728@233859.3397 67j54juaj1udfap9v5mvmc01e6 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1198';
20240728@233859.3472 67j54juaj1udfap9v5mvmc01e6 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1198';
20240728@233859.3497 67j54juaj1udfap9v5mvmc01e6 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1198';
20240728@233859.4138 25obfqrbvfa6egif742959rpkf Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240728@233859.4149 25obfqrbvfa6egif742959rpkf Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240728@233859.4205 25obfqrbvfa6egif742959rpkf Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1199';
20240728@233859.4260 25obfqrbvfa6egif742959rpkf Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1199';
20240728@233859.4306 25obfqrbvfa6egif742959rpkf Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1199';
20240728@233859.4329 25obfqrbvfa6egif742959rpkf Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1199';
20240728@233859.4375 25obfqrbvfa6egif742959rpkf Query : use flama_phc
20240728@233859.4380 25obfqrbvfa6egif742959rpkf Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240728@233859.4446 25obfqrbvfa6egif742959rpkf Query : use flama_phc
20240728@233859.4449 25obfqrbvfa6egif742959rpkf Query : select no, estab,szadrsdesc from szadrs where u_coddest=4774
20240728@233859.4531 25obfqrbvfa6egif742959rpkf 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@233859.4553 25obfqrbvfa6egif742959rpkf 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 = 2404988 and bi.ref ='324.1461.00.1' and bi.lordem =1
20240728@233859.4888 25obfqrbvfa6egif742959rpkf Query : use flama_phc
20240728@233859.4892 25obfqrbvfa6egif742959rpkf Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20240728@233859.4930 25obfqrbvfa6egif742959rpkf Query : use flama_phc
20240728@233859.4933 25obfqrbvfa6egif742959rpkf Query : select top 1 1 valor from td where td.ndoc = 39
20240728@233859.4966 25obfqrbvfa6egif742959rpkf Query : use flama_phc
20240728@233859.4970 25obfqrbvfa6egif742959rpkf 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@233859.5003 25obfqrbvfa6egif742959rpkf 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@233859.5040 25obfqrbvfa6egif742959rpkf Query : use flama_phc
20240728@233859.5043 25obfqrbvfa6egif742959rpkf Query : select top 1 ~inactivo valor from cl where no = '100800' and estab = 0 order by inactivo desc
20240728@233859.5176 25obfqrbvfa6egif742959rpkf Query : use flama_phc
20240728@233859.5179 25obfqrbvfa6egif742959rpkf Query : select top 1 tipodoc,regrd from td where ndoc = 39
20240728@233859.5211 25obfqrbvfa6egif742959rpkf Query : use flama_phc
20240728@233859.5214 25obfqrbvfa6egif742959rpkf Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20240728@233859.5257 25obfqrbvfa6egif742959rpkf Query : use flama_phc
20240728@233859.5261 25obfqrbvfa6egif742959rpkf Query : select szadrsstamp valor from szadrs where szadrsdesc='100800 - modelo continente hipermercados, sa'
20240728@233859.5313 25obfqrbvfa6egif742959rpkf Query : use flama_phc
20240728@233859.5317 25obfqrbvfa6egif742959rpkf Query : select 1 valor from td where ndoc = 39
20240728@233859.5332 25obfqrbvfa6egif742959rpkf Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20240728@233859.5347 25obfqrbvfa6egif742959rpkf Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233859.5365 25obfqrbvfa6egif742959rpkf Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20240728@233859.5387 25obfqrbvfa6egif742959rpkf Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233859.5403 25obfqrbvfa6egif742959rpkf Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20240728@233859.5435 25obfqrbvfa6egif742959rpkf Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233859.5452 25obfqrbvfa6egif742959rpkf Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20240728@233859.5465 25obfqrbvfa6egif742959rpkf Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240728@233859.5540 25obfqrbvfa6egif742959rpkf Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240728@233859.5555 25obfqrbvfa6egif742959rpkf Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233859.5572 25obfqrbvfa6egif742959rpkf Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20240728@233859.5590 25obfqrbvfa6egif742959rpkf Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut66a6c6781866a6c88385' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20240728@233859.5815 25obfqrbvfa6egif742959rpkf Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233859.5966 25obfqrbvfa6egif742959rpkf Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20240728@233859.6004 25obfqrbvfa6egif742959rpkf Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20240728@233859.6018 25obfqrbvfa6egif742959rpkf Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20240728@233859.6033 25obfqrbvfa6egif742959rpkf Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20240728@233859.6049 25obfqrbvfa6egif742959rpkf Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20240728@233859.6063 25obfqrbvfa6egif742959rpkf Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20240728@233859.6079 25obfqrbvfa6egif742959rpkf Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20240728@233859.6092 25obfqrbvfa6egif742959rpkf Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut66a6c6781866a6c88385',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20240728@233859.6357 25obfqrbvfa6egif742959rpkf Query : select top 1 fno valor from wsftdata order by fno desc
20240728@233859.6377 25obfqrbvfa6egif742959rpkf Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233859.6394 25obfqrbvfa6egif742959rpkf Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20240728@233859.6421 25obfqrbvfa6egif742959rpkf Query : select 'normal' from dummy
20240728@233859.6438 25obfqrbvfa6egif742959rpkf Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut66a6c6781866a6c88385',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',48,100800,0,'2024-07-28',39,'euro',0,0,2024 ,?,?)
20240728@233859.6738 25obfqrbvfa6egif742959rpkf Query : use flama_phc
20240728@233859.6742 25obfqrbvfa6egif742959rpkf Query : select st.usalote valor from st where st.ref = '324.1461.00.1'
20240728@233859.6766 25obfqrbvfa6egif742959rpkf Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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.1461.00.1'
20240728@233859.6783 25obfqrbvfa6egif742959rpkf Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233859.6804 25obfqrbvfa6egif742959rpkf Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240728@233859.6836 25obfqrbvfa6egif742959rpkf Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233859.6853 25obfqrbvfa6egif742959rpkf Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240728@233859.6862 25obfqrbvfa6egif742959rpkf Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240728@233859.6876 25obfqrbvfa6egif742959rpkf Query : select sestamp valor from se where ref ='324.1461.00.1' and lote = 'r2100463200a'
20240728@233859.6892 25obfqrbvfa6egif742959rpkf Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233859.6909 25obfqrbvfa6egif742959rpkf Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240728@233859.6922 25obfqrbvfa6egif742959rpkf Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66a6c5087566a6c883a8','aut66a6c6781866a6c88385' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240728@233859.6927 25obfqrbvfa6egif742959rpkf Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233859.6943 25obfqrbvfa6egif742959rpkf Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240728@233859.6976 25obfqrbvfa6egif742959rpkf Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66a6c5087566a6c883a8',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',1.000 ,'aut66a6c6781866a6c88385' ,0,0 ,2,23.00,10000,?,?,?,?,?)
20240728@233859.7231 25obfqrbvfa6egif742959rpkf Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut66a6c6781866a6c88385','2404988','wait',39,'adm09112754980.682000002')
20240728@233859.7304 25obfqrbvfa6egif742959rpkf Query : use flama_phc
20240728@233859.7307 25obfqrbvfa6egif742959rpkf Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240728@233859.7337 25obfqrbvfa6egif742959rpkf Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1199';
20240728@233859.7365 25obfqrbvfa6egif742959rpkf Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1199';
20240728@233859.7401 25obfqrbvfa6egif742959rpkf Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1199';
20240728@233859.7431 25obfqrbvfa6egif742959rpkf Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1199';
20240728@233859.7931 3hjgqqreoiu30caff3npuopqp0 Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240728@233859.7945 3hjgqqreoiu30caff3npuopqp0 Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240728@233859.8014 3hjgqqreoiu30caff3npuopqp0 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1200';
20240728@233859.8072 3hjgqqreoiu30caff3npuopqp0 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1200';
20240728@233859.8284 3hjgqqreoiu30caff3npuopqp0 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1200';
20240728@233859.8402 3hjgqqreoiu30caff3npuopqp0 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1200';
20240728@233859.8457 3hjgqqreoiu30caff3npuopqp0 Query : use flama_phc
20240728@233859.8461 3hjgqqreoiu30caff3npuopqp0 Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240728@233859.8525 3hjgqqreoiu30caff3npuopqp0 Query : use flama_phc
20240728@233859.8528 3hjgqqreoiu30caff3npuopqp0 Query : select no, estab,szadrsdesc from szadrs where u_coddest=4740
20240728@233859.8568 3hjgqqreoiu30caff3npuopqp0 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '326.595.00.01'
20240728@233859.8754 3hjgqqreoiu30caff3npuopqp0 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 = 2404989 and bi.ref ='326.595.00.01' and bi.lordem =1
20240728@233859.9708 3hjgqqreoiu30caff3npuopqp0 Query : use flama_phc
20240728@233859.9789 3hjgqqreoiu30caff3npuopqp0 Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20240728@233900.4390 3hjgqqreoiu30caff3npuopqp0 Query : use flama_phc
20240728@233900.4440 3hjgqqreoiu30caff3npuopqp0 Query : select top 1 1 valor from td where td.ndoc = 39
20240728@233900.4760 3hjgqqreoiu30caff3npuopqp0 Query : use flama_phc
20240728@233900.4790 3hjgqqreoiu30caff3npuopqp0 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@233900.5130 3hjgqqreoiu30caff3npuopqp0 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@233900.5490 3hjgqqreoiu30caff3npuopqp0 Query : use flama_phc
20240728@233900.5530 3hjgqqreoiu30caff3npuopqp0 Query : select top 1 ~inactivo valor from cl where no = '100810' and estab = 0 order by inactivo desc
20240728@233900.5840 3hjgqqreoiu30caff3npuopqp0 Query : use flama_phc
20240728@233900.5870 3hjgqqreoiu30caff3npuopqp0 Query : select top 1 tipodoc,regrd from td where ndoc = 39
20240728@233900.6200 3hjgqqreoiu30caff3npuopqp0 Query : use flama_phc
20240728@233900.6240 3hjgqqreoiu30caff3npuopqp0 Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20240728@233900.6660 3hjgqqreoiu30caff3npuopqp0 Query : use flama_phc
20240728@233900.6690 3hjgqqreoiu30caff3npuopqp0 Query : select szadrsstamp valor from szadrs where szadrsdesc='100810 - worten-equipamentos para o lar,sa.'
20240728@233900.7170 3hjgqqreoiu30caff3npuopqp0 Query : use flama_phc
20240728@233900.7200 3hjgqqreoiu30caff3npuopqp0 Query : select 1 valor from td where ndoc = 39
20240728@233900.7370 3hjgqqreoiu30caff3npuopqp0 Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20240728@233900.7550 3hjgqqreoiu30caff3npuopqp0 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233900.7730 3hjgqqreoiu30caff3npuopqp0 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20240728@233900.9900 3hjgqqreoiu30caff3npuopqp0 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233900.1011 3hjgqqreoiu30caff3npuopqp0 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20240728@233900.1048 3hjgqqreoiu30caff3npuopqp0 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233900.1065 3hjgqqreoiu30caff3npuopqp0 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20240728@233900.1079 3hjgqqreoiu30caff3npuopqp0 Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240728@233900.1154 3hjgqqreoiu30caff3npuopqp0 Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240728@233900.1169 3hjgqqreoiu30caff3npuopqp0 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233900.1188 3hjgqqreoiu30caff3npuopqp0 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20240728@233900.1206 3hjgqqreoiu30caff3npuopqp0 Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut66a6c9550366a6c8841a' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20240728@233900.1387 3hjgqqreoiu30caff3npuopqp0 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233900.1406 3hjgqqreoiu30caff3npuopqp0 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20240728@233900.1443 3hjgqqreoiu30caff3npuopqp0 Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20240728@233900.1458 3hjgqqreoiu30caff3npuopqp0 Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20240728@233900.1471 3hjgqqreoiu30caff3npuopqp0 Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20240728@233900.1487 3hjgqqreoiu30caff3npuopqp0 Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20240728@233900.1503 3hjgqqreoiu30caff3npuopqp0 Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20240728@233900.1518 3hjgqqreoiu30caff3npuopqp0 Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20240728@233900.1532 3hjgqqreoiu30caff3npuopqp0 Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut66a6c9550366a6c8841a',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20240728@233900.1776 3hjgqqreoiu30caff3npuopqp0 Query : select top 1 fno valor from wsftdata order by fno desc
20240728@233900.1796 3hjgqqreoiu30caff3npuopqp0 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233900.1816 3hjgqqreoiu30caff3npuopqp0 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20240728@233900.1842 3hjgqqreoiu30caff3npuopqp0 Query : select 'normal' from dummy
20240728@233900.1862 3hjgqqreoiu30caff3npuopqp0 Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut66a6c9550366a6c8841a',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',49,100810,0,'2024-07-28',39,'euro',0,0,2024 ,?,?)
20240728@233900.2220 3hjgqqreoiu30caff3npuopqp0 Query : use flama_phc
20240728@233900.2223 3hjgqqreoiu30caff3npuopqp0 Query : select st.usalote valor from st where st.ref = '326.595.00.01'
20240728@233900.2250 3hjgqqreoiu30caff3npuopqp0 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '326.595.00.01'
20240728@233900.2414 3hjgqqreoiu30caff3npuopqp0 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233900.2436 3hjgqqreoiu30caff3npuopqp0 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240728@233900.2479 3hjgqqreoiu30caff3npuopqp0 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233900.2497 3hjgqqreoiu30caff3npuopqp0 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240728@233900.2507 3hjgqqreoiu30caff3npuopqp0 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240728@233900.2522 3hjgqqreoiu30caff3npuopqp0 Query : select sestamp valor from se where ref ='326.595.00.01' and lote = 'r2301243100a'
20240728@233900.2539 3hjgqqreoiu30caff3npuopqp0 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233900.2557 3hjgqqreoiu30caff3npuopqp0 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240728@233900.2572 3hjgqqreoiu30caff3npuopqp0 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66a6c7358766a6c8843d','aut66a6c9550366a6c8841a' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240728@233900.2577 3hjgqqreoiu30caff3npuopqp0 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233900.2595 3hjgqqreoiu30caff3npuopqp0 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240728@233900.2631 3hjgqqreoiu30caff3npuopqp0 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66a6c7358766a6c8843d',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',14.000 ,'aut66a6c9550366a6c8841a' ,0,0 ,2,23.00,10000,?,?,?,?,?)
20240728@233900.2910 3hjgqqreoiu30caff3npuopqp0 Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut66a6c9550366a6c8841a','2404989','wait',39,'adm09112754980.682000002')
20240728@233900.2987 3hjgqqreoiu30caff3npuopqp0 Query : use flama_phc
20240728@233900.2992 3hjgqqreoiu30caff3npuopqp0 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240728@233900.3024 3hjgqqreoiu30caff3npuopqp0 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1200';
20240728@233900.3052 3hjgqqreoiu30caff3npuopqp0 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1200';
20240728@233900.3089 3hjgqqreoiu30caff3npuopqp0 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1200';
20240728@233900.3113 3hjgqqreoiu30caff3npuopqp0 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1200';
20240728@233900.3739 eeltdm505lo4in68re2plf39sb Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240728@233900.3751 eeltdm505lo4in68re2plf39sb Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240728@233900.3805 eeltdm505lo4in68re2plf39sb Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1201';
20240728@233900.4015 eeltdm505lo4in68re2plf39sb Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1201';
20240728@233900.4066 eeltdm505lo4in68re2plf39sb Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1201';
20240728@233900.4091 eeltdm505lo4in68re2plf39sb Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1201';
20240728@233900.4138 eeltdm505lo4in68re2plf39sb Query : use flama_phc
20240728@233900.4143 eeltdm505lo4in68re2plf39sb Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240728@233900.4210 eeltdm505lo4in68re2plf39sb Query : use flama_phc
20240728@233900.4214 eeltdm505lo4in68re2plf39sb Query : select no, estab,szadrsdesc from szadrs where u_coddest=578
20240728@233900.4303 eeltdm505lo4in68re2plf39sb Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.2031.00.1'
20240728@233900.4326 eeltdm505lo4in68re2plf39sb 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 = 2404991 and bi.ref ='324.2031.00.1' and bi.lordem =1
20240728@233900.4675 eeltdm505lo4in68re2plf39sb Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.5540.00.1'
20240728@233900.5942 eeltdm505lo4in68re2plf39sb 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 = 2404991 and bi.ref ='324.5540.00.1' and bi.lordem =2
20240728@233900.6285 eeltdm505lo4in68re2plf39sb 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'
20240728@233900.6454 eeltdm505lo4in68re2plf39sb 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 = 2404991 and bi.ref ='324.1646.00.1' and bi.lordem =3
20240728@233900.6779 eeltdm505lo4in68re2plf39sb Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1685.00.1'
20240728@233900.6945 eeltdm505lo4in68re2plf39sb 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 = 2404991 and bi.ref ='324.1685.00.1' and bi.lordem =4
20240728@233900.7287 eeltdm505lo4in68re2plf39sb Query : use flama_phc
20240728@233900.7292 eeltdm505lo4in68re2plf39sb Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20240728@233900.7330 eeltdm505lo4in68re2plf39sb Query : use flama_phc
20240728@233900.7334 eeltdm505lo4in68re2plf39sb Query : select top 1 1 valor from td where td.ndoc = 39
20240728@233900.7367 eeltdm505lo4in68re2plf39sb Query : use flama_phc
20240728@233900.7371 eeltdm505lo4in68re2plf39sb 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@233900.7424 eeltdm505lo4in68re2plf39sb 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@233900.7464 eeltdm505lo4in68re2plf39sb Query : use flama_phc
20240728@233900.7467 eeltdm505lo4in68re2plf39sb Query : select top 1 ~inactivo valor from cl where no = '100006' and estab = 0 order by inactivo desc
20240728@233900.7646 eeltdm505lo4in68re2plf39sb Query : use flama_phc
20240728@233900.7649 eeltdm505lo4in68re2plf39sb Query : select top 1 tipodoc,regrd from td where ndoc = 39
20240728@233900.7685 eeltdm505lo4in68re2plf39sb Query : use flama_phc
20240728@233900.7689 eeltdm505lo4in68re2plf39sb Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20240728@233900.7737 eeltdm505lo4in68re2plf39sb Query : use flama_phc
20240728@233900.7741 eeltdm505lo4in68re2plf39sb Query : select szadrsstamp valor from szadrs where szadrsdesc='antonio barata gaspar, lda.'
20240728@233900.7797 eeltdm505lo4in68re2plf39sb Query : use flama_phc
20240728@233900.7801 eeltdm505lo4in68re2plf39sb Query : select 1 valor from td where ndoc = 39
20240728@233900.7819 eeltdm505lo4in68re2plf39sb Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20240728@233900.7838 eeltdm505lo4in68re2plf39sb Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233900.7861 eeltdm505lo4in68re2plf39sb Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20240728@233900.7884 eeltdm505lo4in68re2plf39sb Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233900.7925 eeltdm505lo4in68re2plf39sb Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20240728@233900.8084 eeltdm505lo4in68re2plf39sb Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233900.8105 eeltdm505lo4in68re2plf39sb Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20240728@233900.8122 eeltdm505lo4in68re2plf39sb Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240728@233900.8206 eeltdm505lo4in68re2plf39sb Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240728@233900.8233 eeltdm505lo4in68re2plf39sb Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233900.8286 eeltdm505lo4in68re2plf39sb Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20240728@233900.8305 eeltdm505lo4in68re2plf39sb Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut66a6c3771366a6c884c6' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20240728@233900.8500 eeltdm505lo4in68re2plf39sb Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233900.8520 eeltdm505lo4in68re2plf39sb Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20240728@233900.8560 eeltdm505lo4in68re2plf39sb Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20240728@233900.8576 eeltdm505lo4in68re2plf39sb Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20240728@233900.8589 eeltdm505lo4in68re2plf39sb Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20240728@233900.8603 eeltdm505lo4in68re2plf39sb Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20240728@233900.8617 eeltdm505lo4in68re2plf39sb Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20240728@233900.8630 eeltdm505lo4in68re2plf39sb Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20240728@233900.8643 eeltdm505lo4in68re2plf39sb Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut66a6c3771366a6c884c6',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20240728@233900.8952 eeltdm505lo4in68re2plf39sb Query : select top 1 fno valor from wsftdata order by fno desc
20240728@233900.8969 eeltdm505lo4in68re2plf39sb Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233900.8986 eeltdm505lo4in68re2plf39sb Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20240728@233900.9011 eeltdm505lo4in68re2plf39sb Query : select 'normal' from dummy
20240728@233900.9030 eeltdm505lo4in68re2plf39sb Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut66a6c3771366a6c884c6',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',50,100006,0,'2024-07-28',39,'euro',0,0,2024 ,?,?)
20240728@233900.9397 eeltdm505lo4in68re2plf39sb Query : use flama_phc
20240728@233900.9400 eeltdm505lo4in68re2plf39sb Query : select st.usalote valor from st where st.ref = '324.2031.00.1'
20240728@233900.9424 eeltdm505lo4in68re2plf39sb Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.2031.00.1'
20240728@233900.9440 eeltdm505lo4in68re2plf39sb Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233900.9459 eeltdm505lo4in68re2plf39sb Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240728@233900.9490 eeltdm505lo4in68re2plf39sb Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233900.9507 eeltdm505lo4in68re2plf39sb Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240728@233900.9518 eeltdm505lo4in68re2plf39sb Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240728@233900.9531 eeltdm505lo4in68re2plf39sb Query : select sestamp valor from se where ref ='324.2031.00.1' and lote = 'r2100232100a'
20240728@233900.9546 eeltdm505lo4in68re2plf39sb Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233900.9563 eeltdm505lo4in68re2plf39sb Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240728@233900.9578 eeltdm505lo4in68re2plf39sb Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66a6c1704766a6c884e9','aut66a6c3771366a6c884c6' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240728@233900.9583 eeltdm505lo4in68re2plf39sb Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233900.9602 eeltdm505lo4in68re2plf39sb Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240728@233900.9637 eeltdm505lo4in68re2plf39sb Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66a6c1704766a6c884e9',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',6.000 ,'aut66a6c3771366a6c884c6' ,0,0 ,2,23.00,10000,?,?,?,?,?)
20240728@233901.9730 eeltdm505lo4in68re2plf39sb Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233901.9930 eeltdm505lo4in68re2plf39sb Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240728@233901.1024 eeltdm505lo4in68re2plf39sb Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233901.1041 eeltdm505lo4in68re2plf39sb Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240728@233901.1053 eeltdm505lo4in68re2plf39sb Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240728@233901.1068 eeltdm505lo4in68re2plf39sb Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233901.1086 eeltdm505lo4in68re2plf39sb Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240728@233901.1100 eeltdm505lo4in68re2plf39sb Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66a6c7107766a6c8851a','aut66a6c3771366a6c884c6' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240728@233901.1105 eeltdm505lo4in68re2plf39sb Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233901.1122 eeltdm505lo4in68re2plf39sb Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240728@233901.1155 eeltdm505lo4in68re2plf39sb Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66a6c7107766a6c8851a',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66a6c3771366a6c884c6' ,0,0 ,2,23.00,20000,?,?,?)
20240728@233901.1447 eeltdm505lo4in68re2plf39sb Query : use flama_phc
20240728@233901.1451 eeltdm505lo4in68re2plf39sb Query : select st.usalote valor from st where st.ref = '324.5540.00.1'
20240728@233901.1475 eeltdm505lo4in68re2plf39sb Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.5540.00.1'
20240728@233901.1643 eeltdm505lo4in68re2plf39sb Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233901.1665 eeltdm505lo4in68re2plf39sb Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240728@233901.1698 eeltdm505lo4in68re2plf39sb Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233901.1716 eeltdm505lo4in68re2plf39sb Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240728@233901.1725 eeltdm505lo4in68re2plf39sb Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240728@233901.1740 eeltdm505lo4in68re2plf39sb Query : select sestamp valor from se where ref ='324.5540.00.1' and lote = 'r2300830100a'
20240728@233901.1768 eeltdm505lo4in68re2plf39sb Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233901.1786 eeltdm505lo4in68re2plf39sb Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240728@233901.1799 eeltdm505lo4in68re2plf39sb Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66a6c7941066a6c8852b','aut66a6c3771366a6c884c6' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240728@233901.1804 eeltdm505lo4in68re2plf39sb Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233901.1822 eeltdm505lo4in68re2plf39sb Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240728@233901.1858 eeltdm505lo4in68re2plf39sb Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66a6c7941066a6c8852b',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',2.000 ,'aut66a6c3771366a6c884c6' ,0,0 ,2,23.00,40000,?,?,?,?,?)
20240728@233901.2132 eeltdm505lo4in68re2plf39sb Query : use flama_phc
20240728@233901.2136 eeltdm505lo4in68re2plf39sb Query : select st.usalote valor from st where st.ref = '324.1646.00.1'
20240728@233901.2163 eeltdm505lo4in68re2plf39sb Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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'
20240728@233901.2363 eeltdm505lo4in68re2plf39sb Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233901.2381 eeltdm505lo4in68re2plf39sb Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240728@233901.2412 eeltdm505lo4in68re2plf39sb Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233901.2431 eeltdm505lo4in68re2plf39sb Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240728@233901.2441 eeltdm505lo4in68re2plf39sb Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240728@233901.2458 eeltdm505lo4in68re2plf39sb Query : select sestamp valor from se where ref ='324.1646.00.1' and lote = 'r2101259200a'
20240728@233901.2499 eeltdm505lo4in68re2plf39sb Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233901.2517 eeltdm505lo4in68re2plf39sb Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240728@233901.2531 eeltdm505lo4in68re2plf39sb Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66a6c2505666a6c8853d','aut66a6c3771366a6c884c6' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240728@233901.2537 eeltdm505lo4in68re2plf39sb Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233901.2556 eeltdm505lo4in68re2plf39sb Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240728@233901.2592 eeltdm505lo4in68re2plf39sb Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66a6c2505666a6c8853d',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',2.000 ,'aut66a6c3771366a6c884c6' ,0,0 ,2,23.00,50000,?,?,?,?,?)
20240728@233901.2879 eeltdm505lo4in68re2plf39sb Query : use flama_phc
20240728@233901.2883 eeltdm505lo4in68re2plf39sb Query : select st.usalote valor from st where st.ref = '324.1685.00.1'
20240728@233901.2912 eeltdm505lo4in68re2plf39sb Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.1685.00.1'
20240728@233901.3129 eeltdm505lo4in68re2plf39sb Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233901.3147 eeltdm505lo4in68re2plf39sb Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240728@233901.3178 eeltdm505lo4in68re2plf39sb Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233901.3196 eeltdm505lo4in68re2plf39sb Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240728@233901.3205 eeltdm505lo4in68re2plf39sb Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240728@233901.3219 eeltdm505lo4in68re2plf39sb Query : select sestamp valor from se where ref ='324.1685.00.1' and lote = 'r2400173100a'
20240728@233901.3249 eeltdm505lo4in68re2plf39sb Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233901.3267 eeltdm505lo4in68re2plf39sb Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240728@233901.3281 eeltdm505lo4in68re2plf39sb Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66a6c3482366a6c8854f','aut66a6c3771366a6c884c6' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240728@233901.3285 eeltdm505lo4in68re2plf39sb Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233901.3302 eeltdm505lo4in68re2plf39sb Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240728@233901.3335 eeltdm505lo4in68re2plf39sb Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66a6c3482366a6c8854f',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',2.000 ,'aut66a6c3771366a6c884c6' ,0,0 ,2,23.00,60000,?,?,?,?,?)
20240728@233901.3627 eeltdm505lo4in68re2plf39sb Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut66a6c3771366a6c884c6','2404991','wait',39,'adm09112754980.682000002')
20240728@233901.3705 eeltdm505lo4in68re2plf39sb Query : use flama_phc
20240728@233901.3710 eeltdm505lo4in68re2plf39sb Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240728@233901.3745 eeltdm505lo4in68re2plf39sb Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1201';
20240728@233901.3774 eeltdm505lo4in68re2plf39sb Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1201';
20240728@233901.3814 eeltdm505lo4in68re2plf39sb Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1201';
20240728@233901.3841 eeltdm505lo4in68re2plf39sb Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1201';
20240728@233901.4427 tr6jvsjn82qsm0ruua8fjomk50 Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240728@233901.4439 tr6jvsjn82qsm0ruua8fjomk50 Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240728@233901.4493 tr6jvsjn82qsm0ruua8fjomk50 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1202';
20240728@233901.4552 tr6jvsjn82qsm0ruua8fjomk50 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1202';
20240728@233901.4602 tr6jvsjn82qsm0ruua8fjomk50 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1202';
20240728@233901.4625 tr6jvsjn82qsm0ruua8fjomk50 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1202';
20240728@233901.4675 tr6jvsjn82qsm0ruua8fjomk50 Query : use flama_phc
20240728@233901.4679 tr6jvsjn82qsm0ruua8fjomk50 Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240728@233901.4750 tr6jvsjn82qsm0ruua8fjomk50 Query : use flama_phc
20240728@233901.4758 tr6jvsjn82qsm0ruua8fjomk50 Query : select no, estab,szadrsdesc from szadrs where u_coddest=1761
20240728@233901.4922 tr6jvsjn82qsm0ruua8fjomk50 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1824.00.1'
20240728@233901.4951 tr6jvsjn82qsm0ruua8fjomk50 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 = 2404995 and bi.ref ='324.1824.00.1' and bi.lordem =1
20240728@233901.5335 tr6jvsjn82qsm0ruua8fjomk50 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1824.00.1'
20240728@233901.5360 tr6jvsjn82qsm0ruua8fjomk50 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 = 2404995 and bi.ref ='324.1824.00.1' and bi.lordem =2
20240728@233901.5813 tr6jvsjn82qsm0ruua8fjomk50 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'
20240728@233901.6010 tr6jvsjn82qsm0ruua8fjomk50 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 = 2404995 and bi.ref ='324.1831.00.2' and bi.lordem =3
20240728@233901.6451 tr6jvsjn82qsm0ruua8fjomk50 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'
20240728@233901.6479 tr6jvsjn82qsm0ruua8fjomk50 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 = 2404995 and bi.ref ='324.1831.00.2' and bi.lordem =4
20240728@233901.7001 tr6jvsjn82qsm0ruua8fjomk50 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1832.00.2'
20240728@233901.7248 tr6jvsjn82qsm0ruua8fjomk50 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 = 2404995 and bi.ref ='324.1832.00.2' and bi.lordem =5
20240728@233901.7653 tr6jvsjn82qsm0ruua8fjomk50 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1832.00.2'
20240728@233901.7679 tr6jvsjn82qsm0ruua8fjomk50 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 = 2404995 and bi.ref ='324.1832.00.2' and bi.lordem =5
20240728@233901.7700 tr6jvsjn82qsm0ruua8fjomk50 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '328.9075.00.1'
20240728@233901.7904 tr6jvsjn82qsm0ruua8fjomk50 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 = 2404995 and bi.ref ='328.9075.00.1' and bi.lordem =6
20240728@233901.9150 tr6jvsjn82qsm0ruua8fjomk50 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '328.9075.00.1'
20240728@233901.9173 tr6jvsjn82qsm0ruua8fjomk50 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 = 2404995 and bi.ref ='328.9075.00.1' and bi.lordem =7
20240728@233902.6710 tr6jvsjn82qsm0ruua8fjomk50 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '328.9036.00.1'
20240728@233902.8560 tr6jvsjn82qsm0ruua8fjomk50 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 = 2404995 and bi.ref ='328.9036.00.1' and bi.lordem =8
20240728@233902.1230 tr6jvsjn82qsm0ruua8fjomk50 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '328.9036.00.1'
20240728@233902.1253 tr6jvsjn82qsm0ruua8fjomk50 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 = 2404995 and bi.ref ='328.9036.00.1' and bi.lordem =9
20240728@233902.1624 tr6jvsjn82qsm0ruua8fjomk50 Query : use flama_phc
20240728@233902.1628 tr6jvsjn82qsm0ruua8fjomk50 Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20240728@233902.1665 tr6jvsjn82qsm0ruua8fjomk50 Query : use flama_phc
20240728@233902.1668 tr6jvsjn82qsm0ruua8fjomk50 Query : select top 1 1 valor from td where td.ndoc = 39
20240728@233902.1705 tr6jvsjn82qsm0ruua8fjomk50 Query : use flama_phc
20240728@233902.1708 tr6jvsjn82qsm0ruua8fjomk50 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@233902.1746 tr6jvsjn82qsm0ruua8fjomk50 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@233902.1785 tr6jvsjn82qsm0ruua8fjomk50 Query : use flama_phc
20240728@233902.1789 tr6jvsjn82qsm0ruua8fjomk50 Query : select top 1 ~inactivo valor from cl where no = '101828' and estab = 0 order by inactivo desc
20240728@233902.1936 tr6jvsjn82qsm0ruua8fjomk50 Query : use flama_phc
20240728@233902.1940 tr6jvsjn82qsm0ruua8fjomk50 Query : select top 1 tipodoc,regrd from td where ndoc = 39
20240728@233902.1974 tr6jvsjn82qsm0ruua8fjomk50 Query : use flama_phc
20240728@233902.1977 tr6jvsjn82qsm0ruua8fjomk50 Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20240728@233902.2030 tr6jvsjn82qsm0ruua8fjomk50 Query : use flama_phc
20240728@233902.2035 tr6jvsjn82qsm0ruua8fjomk50 Query : select szadrsstamp valor from szadrs where szadrsdesc='electrocortes, lda'
20240728@233902.2090 tr6jvsjn82qsm0ruua8fjomk50 Query : use flama_phc
20240728@233902.2093 tr6jvsjn82qsm0ruua8fjomk50 Query : select 1 valor from td where ndoc = 39
20240728@233902.2108 tr6jvsjn82qsm0ruua8fjomk50 Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20240728@233902.2125 tr6jvsjn82qsm0ruua8fjomk50 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233902.2146 tr6jvsjn82qsm0ruua8fjomk50 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20240728@233902.2169 tr6jvsjn82qsm0ruua8fjomk50 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233902.2188 tr6jvsjn82qsm0ruua8fjomk50 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20240728@233902.2228 tr6jvsjn82qsm0ruua8fjomk50 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233902.2247 tr6jvsjn82qsm0ruua8fjomk50 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20240728@233902.2262 tr6jvsjn82qsm0ruua8fjomk50 Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240728@233902.2340 tr6jvsjn82qsm0ruua8fjomk50 Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240728@233902.2357 tr6jvsjn82qsm0ruua8fjomk50 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233902.2376 tr6jvsjn82qsm0ruua8fjomk50 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20240728@233902.2396 tr6jvsjn82qsm0ruua8fjomk50 Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut66a6c1800566a6c88637' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20240728@233902.2614 tr6jvsjn82qsm0ruua8fjomk50 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233902.2635 tr6jvsjn82qsm0ruua8fjomk50 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20240728@233902.2675 tr6jvsjn82qsm0ruua8fjomk50 Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20240728@233902.2689 tr6jvsjn82qsm0ruua8fjomk50 Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20240728@233902.2704 tr6jvsjn82qsm0ruua8fjomk50 Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20240728@233902.2721 tr6jvsjn82qsm0ruua8fjomk50 Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20240728@233902.2736 tr6jvsjn82qsm0ruua8fjomk50 Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20240728@233902.2750 tr6jvsjn82qsm0ruua8fjomk50 Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20240728@233902.2764 tr6jvsjn82qsm0ruua8fjomk50 Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut66a6c1800566a6c88637',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20240728@233902.3067 tr6jvsjn82qsm0ruua8fjomk50 Query : select top 1 fno valor from wsftdata order by fno desc
20240728@233902.3085 tr6jvsjn82qsm0ruua8fjomk50 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233902.3105 tr6jvsjn82qsm0ruua8fjomk50 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20240728@233902.3133 tr6jvsjn82qsm0ruua8fjomk50 Query : select 'normal' from dummy
20240728@233902.3151 tr6jvsjn82qsm0ruua8fjomk50 Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut66a6c1800566a6c88637',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',51,101828,0,'2024-07-28',39,'euro',0,0,2024 ,?,?)
20240728@233902.3505 tr6jvsjn82qsm0ruua8fjomk50 Query : use flama_phc
20240728@233902.3508 tr6jvsjn82qsm0ruua8fjomk50 Query : select st.usalote valor from st where st.ref = '324.1824.00.1'
20240728@233902.3533 tr6jvsjn82qsm0ruua8fjomk50 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.1824.00.1'
20240728@233902.3552 tr6jvsjn82qsm0ruua8fjomk50 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233902.3574 tr6jvsjn82qsm0ruua8fjomk50 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240728@233902.3610 tr6jvsjn82qsm0ruua8fjomk50 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233902.3628 tr6jvsjn82qsm0ruua8fjomk50 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240728@233902.3639 tr6jvsjn82qsm0ruua8fjomk50 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240728@233902.3655 tr6jvsjn82qsm0ruua8fjomk50 Query : select sestamp valor from se where ref ='324.1824.00.1' and lote = 'r2301210200a'
20240728@233902.3671 tr6jvsjn82qsm0ruua8fjomk50 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233902.3695 tr6jvsjn82qsm0ruua8fjomk50 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240728@233902.3712 tr6jvsjn82qsm0ruua8fjomk50 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66a6c7475066a6c88659','aut66a6c1800566a6c88637' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240728@233902.3719 tr6jvsjn82qsm0ruua8fjomk50 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233902.3742 tr6jvsjn82qsm0ruua8fjomk50 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240728@233902.3781 tr6jvsjn82qsm0ruua8fjomk50 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66a6c7475066a6c88659',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',14.000 ,'aut66a6c1800566a6c88637' ,0,0 ,2,23.00,10000,?,?,?,?,?)
20240728@233902.4117 tr6jvsjn82qsm0ruua8fjomk50 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233902.4167 tr6jvsjn82qsm0ruua8fjomk50 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240728@233902.4202 tr6jvsjn82qsm0ruua8fjomk50 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233902.4397 tr6jvsjn82qsm0ruua8fjomk50 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240728@233902.6516 tr6jvsjn82qsm0ruua8fjomk50 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240728@233902.6532 tr6jvsjn82qsm0ruua8fjomk50 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233902.6551 tr6jvsjn82qsm0ruua8fjomk50 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240728@233902.6565 tr6jvsjn82qsm0ruua8fjomk50 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66a6c5920666a6c8869f','aut66a6c1800566a6c88637' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240728@233902.6570 tr6jvsjn82qsm0ruua8fjomk50 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233902.6588 tr6jvsjn82qsm0ruua8fjomk50 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240728@233902.6624 tr6jvsjn82qsm0ruua8fjomk50 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66a6c5920666a6c8869f',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66a6c1800566a6c88637' ,0,0 ,2,23.00,20000,?,?,?)
20240728@233902.6948 tr6jvsjn82qsm0ruua8fjomk50 Query : use flama_phc
20240728@233902.6953 tr6jvsjn82qsm0ruua8fjomk50 Query : select st.usalote valor from st where st.ref = '324.1824.00.1'
20240728@233902.6978 tr6jvsjn82qsm0ruua8fjomk50 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.1824.00.1'
20240728@233902.6998 tr6jvsjn82qsm0ruua8fjomk50 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233902.7019 tr6jvsjn82qsm0ruua8fjomk50 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240728@233902.7054 tr6jvsjn82qsm0ruua8fjomk50 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233902.7075 tr6jvsjn82qsm0ruua8fjomk50 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240728@233902.7085 tr6jvsjn82qsm0ruua8fjomk50 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240728@233902.7100 tr6jvsjn82qsm0ruua8fjomk50 Query : select sestamp valor from se where ref ='324.1824.00.1' and lote = 'r2301210200a'
20240728@233902.7119 tr6jvsjn82qsm0ruua8fjomk50 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233902.7139 tr6jvsjn82qsm0ruua8fjomk50 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240728@233902.7153 tr6jvsjn82qsm0ruua8fjomk50 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66a6c0074966a6c886ad','aut66a6c1800566a6c88637' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240728@233902.7159 tr6jvsjn82qsm0ruua8fjomk50 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233902.7177 tr6jvsjn82qsm0ruua8fjomk50 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240728@233902.7211 tr6jvsjn82qsm0ruua8fjomk50 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66a6c0074966a6c886ad',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',2.000 ,'aut66a6c1800566a6c88637' ,0,0 ,2,23.00,40000,?,?,?,?,?)
20240728@233902.7559 tr6jvsjn82qsm0ruua8fjomk50 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233902.7580 tr6jvsjn82qsm0ruua8fjomk50 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240728@233902.7616 tr6jvsjn82qsm0ruua8fjomk50 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233902.7635 tr6jvsjn82qsm0ruua8fjomk50 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240728@233902.7646 tr6jvsjn82qsm0ruua8fjomk50 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240728@233902.7664 tr6jvsjn82qsm0ruua8fjomk50 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233902.7683 tr6jvsjn82qsm0ruua8fjomk50 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240728@233902.7701 tr6jvsjn82qsm0ruua8fjomk50 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66a6c6155166a6c886bb','aut66a6c1800566a6c88637' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240728@233902.7707 tr6jvsjn82qsm0ruua8fjomk50 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233902.7726 tr6jvsjn82qsm0ruua8fjomk50 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240728@233902.7763 tr6jvsjn82qsm0ruua8fjomk50 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66a6c6155166a6c886bb',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66a6c1800566a6c88637' ,0,0 ,2,23.00,50000,?,?,?)
20240728@233902.8065 tr6jvsjn82qsm0ruua8fjomk50 Query : use flama_phc
20240728@233902.8069 tr6jvsjn82qsm0ruua8fjomk50 Query : select st.usalote valor from st where st.ref = '324.1831.00.2'
20240728@233902.8096 tr6jvsjn82qsm0ruua8fjomk50 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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'
20240728@233902.8277 tr6jvsjn82qsm0ruua8fjomk50 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233902.8298 tr6jvsjn82qsm0ruua8fjomk50 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240728@233902.8330 tr6jvsjn82qsm0ruua8fjomk50 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233902.8347 tr6jvsjn82qsm0ruua8fjomk50 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240728@233902.8358 tr6jvsjn82qsm0ruua8fjomk50 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240728@233902.8661 tr6jvsjn82qsm0ruua8fjomk50 Query : select sestamp valor from se where ref ='324.1831.00.2' and lote = 'r2301271200a'
20240728@233902.9317 tr6jvsjn82qsm0ruua8fjomk50 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233902.9587 tr6jvsjn82qsm0ruua8fjomk50 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240728@233902.9601 tr6jvsjn82qsm0ruua8fjomk50 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66a6c1395566a6c886e3','aut66a6c1800566a6c88637' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240728@233902.9606 tr6jvsjn82qsm0ruua8fjomk50 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233902.9625 tr6jvsjn82qsm0ruua8fjomk50 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240728@233902.9657 tr6jvsjn82qsm0ruua8fjomk50 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66a6c1395566a6c886e3',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',3.000 ,'aut66a6c1800566a6c88637' ,0,0 ,2,23.00,70000,?,?,?,?,?)
20240728@233902.9950 tr6jvsjn82qsm0ruua8fjomk50 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233902.9979 tr6jvsjn82qsm0ruua8fjomk50 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240728@233903.2300 tr6jvsjn82qsm0ruua8fjomk50 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233903.4400 tr6jvsjn82qsm0ruua8fjomk50 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240728@233903.5700 tr6jvsjn82qsm0ruua8fjomk50 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240728@233903.7300 tr6jvsjn82qsm0ruua8fjomk50 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233903.9200 tr6jvsjn82qsm0ruua8fjomk50 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240728@233903.1070 tr6jvsjn82qsm0ruua8fjomk50 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66a6c1135266a6c88701','aut66a6c1800566a6c88637' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240728@233903.1120 tr6jvsjn82qsm0ruua8fjomk50 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233903.1320 tr6jvsjn82qsm0ruua8fjomk50 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240728@233903.1700 tr6jvsjn82qsm0ruua8fjomk50 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66a6c1135266a6c88701',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66a6c1800566a6c88637' ,0,0 ,2,23.00,80000,?,?,?)
20240728@233903.7680 tr6jvsjn82qsm0ruua8fjomk50 Query : use flama_phc
20240728@233903.7740 tr6jvsjn82qsm0ruua8fjomk50 Query : select st.usalote valor from st where st.ref = '324.1831.00.2'
20240728@233903.7980 tr6jvsjn82qsm0ruua8fjomk50 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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'
20240728@233903.8170 tr6jvsjn82qsm0ruua8fjomk50 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233903.8370 tr6jvsjn82qsm0ruua8fjomk50 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240728@233903.8680 tr6jvsjn82qsm0ruua8fjomk50 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233903.8830 tr6jvsjn82qsm0ruua8fjomk50 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240728@233903.8910 tr6jvsjn82qsm0ruua8fjomk50 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240728@233903.9150 tr6jvsjn82qsm0ruua8fjomk50 Query : select sestamp valor from se where ref ='324.1831.00.2' and lote = 'r2301271200a'
20240728@233903.9270 tr6jvsjn82qsm0ruua8fjomk50 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233903.9430 tr6jvsjn82qsm0ruua8fjomk50 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240728@233903.9550 tr6jvsjn82qsm0ruua8fjomk50 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66a6c5550466a6c88716','aut66a6c1800566a6c88637' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240728@233903.9600 tr6jvsjn82qsm0ruua8fjomk50 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233903.9790 tr6jvsjn82qsm0ruua8fjomk50 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240728@233903.1010 tr6jvsjn82qsm0ruua8fjomk50 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66a6c5550466a6c88716',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',1.000 ,'aut66a6c1800566a6c88637' ,0,0 ,2,23.00,100000,?,?,?,?,?)
20240728@233903.1279 tr6jvsjn82qsm0ruua8fjomk50 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233903.1297 tr6jvsjn82qsm0ruua8fjomk50 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240728@233903.1325 tr6jvsjn82qsm0ruua8fjomk50 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233903.1340 tr6jvsjn82qsm0ruua8fjomk50 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240728@233903.1349 tr6jvsjn82qsm0ruua8fjomk50 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240728@233903.1363 tr6jvsjn82qsm0ruua8fjomk50 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233903.1378 tr6jvsjn82qsm0ruua8fjomk50 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240728@233903.1390 tr6jvsjn82qsm0ruua8fjomk50 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66a6c5177966a6c88721','aut66a6c1800566a6c88637' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240728@233903.1394 tr6jvsjn82qsm0ruua8fjomk50 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233903.1410 tr6jvsjn82qsm0ruua8fjomk50 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240728@233903.1439 tr6jvsjn82qsm0ruua8fjomk50 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66a6c5177966a6c88721',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66a6c1800566a6c88637' ,0,0 ,2,23.00,110000,?,?,?)
20240728@233903.1681 tr6jvsjn82qsm0ruua8fjomk50 Query : use flama_phc
20240728@233903.1684 tr6jvsjn82qsm0ruua8fjomk50 Query : select st.usalote valor from st where st.ref = '324.1832.00.2'
20240728@233903.1704 tr6jvsjn82qsm0ruua8fjomk50 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.1832.00.2'
20240728@233903.1851 tr6jvsjn82qsm0ruua8fjomk50 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233903.1867 tr6jvsjn82qsm0ruua8fjomk50 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240728@233903.1895 tr6jvsjn82qsm0ruua8fjomk50 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233903.1910 tr6jvsjn82qsm0ruua8fjomk50 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240728@233903.1918 tr6jvsjn82qsm0ruua8fjomk50 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240728@233903.1930 tr6jvsjn82qsm0ruua8fjomk50 Query : select sestamp valor from se where ref ='324.1832.00.2' and lote = 'r2301271100a'
20240728@233903.1945 tr6jvsjn82qsm0ruua8fjomk50 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233903.1960 tr6jvsjn82qsm0ruua8fjomk50 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240728@233903.1971 tr6jvsjn82qsm0ruua8fjomk50 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66a6c0873866a6c8872f','aut66a6c1800566a6c88637' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240728@233903.1975 tr6jvsjn82qsm0ruua8fjomk50 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233903.1990 tr6jvsjn82qsm0ruua8fjomk50 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240728@233903.2019 tr6jvsjn82qsm0ruua8fjomk50 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66a6c0873866a6c8872f',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',3.000 ,'aut66a6c1800566a6c88637' ,0,0 ,2,23.00,130000,?,?,?,?,?)
20240728@233903.2259 tr6jvsjn82qsm0ruua8fjomk50 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233903.2275 tr6jvsjn82qsm0ruua8fjomk50 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240728@233903.2301 tr6jvsjn82qsm0ruua8fjomk50 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233903.2315 tr6jvsjn82qsm0ruua8fjomk50 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240728@233903.2325 tr6jvsjn82qsm0ruua8fjomk50 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240728@233903.2339 tr6jvsjn82qsm0ruua8fjomk50 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233903.2353 tr6jvsjn82qsm0ruua8fjomk50 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240728@233903.2366 tr6jvsjn82qsm0ruua8fjomk50 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66a6c3758866a6c88739','aut66a6c1800566a6c88637' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240728@233903.2369 tr6jvsjn82qsm0ruua8fjomk50 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233903.2384 tr6jvsjn82qsm0ruua8fjomk50 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240728@233903.2412 tr6jvsjn82qsm0ruua8fjomk50 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66a6c3758866a6c88739',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66a6c1800566a6c88637' ,0,0 ,2,23.00,140000,?,?,?)
20240728@233903.2644 tr6jvsjn82qsm0ruua8fjomk50 Query : use flama_phc
20240728@233903.2648 tr6jvsjn82qsm0ruua8fjomk50 Query : select st.usalote valor from st where st.ref = '324.1832.00.2'
20240728@233903.2668 tr6jvsjn82qsm0ruua8fjomk50 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.1832.00.2'
20240728@233903.2682 tr6jvsjn82qsm0ruua8fjomk50 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233903.2699 tr6jvsjn82qsm0ruua8fjomk50 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240728@233903.2726 tr6jvsjn82qsm0ruua8fjomk50 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233903.2741 tr6jvsjn82qsm0ruua8fjomk50 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240728@233903.2751 tr6jvsjn82qsm0ruua8fjomk50 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240728@233903.2764 tr6jvsjn82qsm0ruua8fjomk50 Query : select sestamp valor from se where ref ='324.1832.00.2' and lote = 'r2301271100a'
20240728@233903.2777 tr6jvsjn82qsm0ruua8fjomk50 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233903.2792 tr6jvsjn82qsm0ruua8fjomk50 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240728@233903.2803 tr6jvsjn82qsm0ruua8fjomk50 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66a6c5543766a6c88743','aut66a6c1800566a6c88637' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240728@233903.2807 tr6jvsjn82qsm0ruua8fjomk50 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233903.2822 tr6jvsjn82qsm0ruua8fjomk50 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240728@233903.2852 tr6jvsjn82qsm0ruua8fjomk50 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66a6c5543766a6c88743',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',1.000 ,'aut66a6c1800566a6c88637' ,0,0 ,2,23.00,160000,?,?,?,?,?)
20240728@233903.3087 tr6jvsjn82qsm0ruua8fjomk50 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233903.3103 tr6jvsjn82qsm0ruua8fjomk50 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240728@233903.3132 tr6jvsjn82qsm0ruua8fjomk50 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233903.3147 tr6jvsjn82qsm0ruua8fjomk50 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240728@233903.3157 tr6jvsjn82qsm0ruua8fjomk50 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240728@233903.3169 tr6jvsjn82qsm0ruua8fjomk50 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233903.3184 tr6jvsjn82qsm0ruua8fjomk50 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240728@233903.3196 tr6jvsjn82qsm0ruua8fjomk50 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66a6c1995466a6c8874d','aut66a6c1800566a6c88637' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240728@233903.3200 tr6jvsjn82qsm0ruua8fjomk50 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233903.3216 tr6jvsjn82qsm0ruua8fjomk50 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240728@233903.3244 tr6jvsjn82qsm0ruua8fjomk50 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66a6c1995466a6c8874d',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66a6c1800566a6c88637' ,0,0 ,2,23.00,170000,?,?,?)
20240728@233903.3496 tr6jvsjn82qsm0ruua8fjomk50 Query : use flama_phc
20240728@233903.3499 tr6jvsjn82qsm0ruua8fjomk50 Query : select st.usalote valor from st where st.ref = '328.9075.00.1'
20240728@233903.3520 tr6jvsjn82qsm0ruua8fjomk50 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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.9075.00.1'
20240728@233903.3663 tr6jvsjn82qsm0ruua8fjomk50 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233903.3683 tr6jvsjn82qsm0ruua8fjomk50 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240728@233903.3711 tr6jvsjn82qsm0ruua8fjomk50 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233903.3730 tr6jvsjn82qsm0ruua8fjomk50 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240728@233903.3740 tr6jvsjn82qsm0ruua8fjomk50 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240728@233903.3753 tr6jvsjn82qsm0ruua8fjomk50 Query : select sestamp valor from se where ref ='328.9075.00.1' and lote = 'r2400212150a'
20240728@233903.3768 tr6jvsjn82qsm0ruua8fjomk50 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233903.3783 tr6jvsjn82qsm0ruua8fjomk50 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240728@233903.3795 tr6jvsjn82qsm0ruua8fjomk50 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66a6c0499466a6c8875b','aut66a6c1800566a6c88637' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240728@233903.3800 tr6jvsjn82qsm0ruua8fjomk50 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233903.3815 tr6jvsjn82qsm0ruua8fjomk50 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240728@233903.3844 tr6jvsjn82qsm0ruua8fjomk50 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66a6c0499466a6c8875b',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',9.000 ,'aut66a6c1800566a6c88637' ,0,0 ,2,23.00,190000,?,?,?,?,?)
20240728@233903.4127 tr6jvsjn82qsm0ruua8fjomk50 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233903.4145 tr6jvsjn82qsm0ruua8fjomk50 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240728@233903.4175 tr6jvsjn82qsm0ruua8fjomk50 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233903.4191 tr6jvsjn82qsm0ruua8fjomk50 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240728@233903.4201 tr6jvsjn82qsm0ruua8fjomk50 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240728@233903.4216 tr6jvsjn82qsm0ruua8fjomk50 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233903.4232 tr6jvsjn82qsm0ruua8fjomk50 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240728@233903.4245 tr6jvsjn82qsm0ruua8fjomk50 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66a6c9208366a6c88766','aut66a6c1800566a6c88637' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240728@233903.4250 tr6jvsjn82qsm0ruua8fjomk50 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233903.4267 tr6jvsjn82qsm0ruua8fjomk50 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240728@233903.4301 tr6jvsjn82qsm0ruua8fjomk50 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66a6c9208366a6c88766',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66a6c1800566a6c88637' ,0,0 ,2,23.00,200000,?,?,?)
20240728@233903.4559 tr6jvsjn82qsm0ruua8fjomk50 Query : use flama_phc
20240728@233903.4562 tr6jvsjn82qsm0ruua8fjomk50 Query : select st.usalote valor from st where st.ref = '328.9075.00.1'
20240728@233903.4585 tr6jvsjn82qsm0ruua8fjomk50 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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.9075.00.1'
20240728@233903.4600 tr6jvsjn82qsm0ruua8fjomk50 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233903.4618 tr6jvsjn82qsm0ruua8fjomk50 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240728@233903.4649 tr6jvsjn82qsm0ruua8fjomk50 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233903.4666 tr6jvsjn82qsm0ruua8fjomk50 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240728@233903.4676 tr6jvsjn82qsm0ruua8fjomk50 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240728@233903.4689 tr6jvsjn82qsm0ruua8fjomk50 Query : select sestamp valor from se where ref ='328.9075.00.1' and lote = 'r2400212150a'
20240728@233903.4703 tr6jvsjn82qsm0ruua8fjomk50 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233903.4719 tr6jvsjn82qsm0ruua8fjomk50 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240728@233903.4733 tr6jvsjn82qsm0ruua8fjomk50 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66a6c3451566a6c88772','aut66a6c1800566a6c88637' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240728@233903.4738 tr6jvsjn82qsm0ruua8fjomk50 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233903.4754 tr6jvsjn82qsm0ruua8fjomk50 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240728@233903.4788 tr6jvsjn82qsm0ruua8fjomk50 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66a6c3451566a6c88772',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',1.000 ,'aut66a6c1800566a6c88637' ,0,0 ,2,23.00,220000,?,?,?,?,?)
20240728@233903.5458 tr6jvsjn82qsm0ruua8fjomk50 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233903.6978 tr6jvsjn82qsm0ruua8fjomk50 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240728@233903.7055 tr6jvsjn82qsm0ruua8fjomk50 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233903.7128 tr6jvsjn82qsm0ruua8fjomk50 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240728@233903.7138 tr6jvsjn82qsm0ruua8fjomk50 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240728@233903.7152 tr6jvsjn82qsm0ruua8fjomk50 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233903.7217 tr6jvsjn82qsm0ruua8fjomk50 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240728@233903.7231 tr6jvsjn82qsm0ruua8fjomk50 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66a6c8076566a6c887ae','aut66a6c1800566a6c88637' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240728@233903.7236 tr6jvsjn82qsm0ruua8fjomk50 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233903.7252 tr6jvsjn82qsm0ruua8fjomk50 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240728@233903.7282 tr6jvsjn82qsm0ruua8fjomk50 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66a6c8076566a6c887ae',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66a6c1800566a6c88637' ,0,0 ,2,23.00,230000,?,?,?)
20240728@233903.8139 tr6jvsjn82qsm0ruua8fjomk50 Query : use flama_phc
20240728@233903.9125 tr6jvsjn82qsm0ruua8fjomk50 Query : select st.usalote valor from st where st.ref = '328.9036.00.1'
20240728@233903.9152 tr6jvsjn82qsm0ruua8fjomk50 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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.9036.00.1'
20240728@233903.9310 tr6jvsjn82qsm0ruua8fjomk50 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233903.9326 tr6jvsjn82qsm0ruua8fjomk50 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240728@233903.9351 tr6jvsjn82qsm0ruua8fjomk50 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233903.9366 tr6jvsjn82qsm0ruua8fjomk50 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240728@233903.9375 tr6jvsjn82qsm0ruua8fjomk50 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240728@233903.9386 tr6jvsjn82qsm0ruua8fjomk50 Query : select sestamp valor from se where ref ='328.9036.00.1' and lote = 'r2400212120a'
20240728@233903.9400 tr6jvsjn82qsm0ruua8fjomk50 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233903.9415 tr6jvsjn82qsm0ruua8fjomk50 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240728@233903.9426 tr6jvsjn82qsm0ruua8fjomk50 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66a6c6726266a6c887e5','aut66a6c1800566a6c88637' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240728@233903.9430 tr6jvsjn82qsm0ruua8fjomk50 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233903.9444 tr6jvsjn82qsm0ruua8fjomk50 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240728@233903.9473 tr6jvsjn82qsm0ruua8fjomk50 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66a6c6726266a6c887e5',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',9.000 ,'aut66a6c1800566a6c88637' ,0,0 ,2,23.00,250000,?,?,?,?,?)
20240728@233903.9746 tr6jvsjn82qsm0ruua8fjomk50 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233903.9765 tr6jvsjn82qsm0ruua8fjomk50 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240728@233903.9793 tr6jvsjn82qsm0ruua8fjomk50 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233903.9808 tr6jvsjn82qsm0ruua8fjomk50 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240728@233903.9817 tr6jvsjn82qsm0ruua8fjomk50 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240728@233903.9829 tr6jvsjn82qsm0ruua8fjomk50 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233903.9843 tr6jvsjn82qsm0ruua8fjomk50 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240728@233903.9855 tr6jvsjn82qsm0ruua8fjomk50 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66a6c1767066a6c887ef','aut66a6c1800566a6c88637' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240728@233903.9859 tr6jvsjn82qsm0ruua8fjomk50 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233903.9873 tr6jvsjn82qsm0ruua8fjomk50 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240728@233903.9901 tr6jvsjn82qsm0ruua8fjomk50 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66a6c1767066a6c887ef',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66a6c1800566a6c88637' ,0,0 ,2,23.00,260000,?,?,?)
20240728@233904.1790 tr6jvsjn82qsm0ruua8fjomk50 Query : use flama_phc
20240728@233904.1840 tr6jvsjn82qsm0ruua8fjomk50 Query : select st.usalote valor from st where st.ref = '328.9036.00.1'
20240728@233904.2070 tr6jvsjn82qsm0ruua8fjomk50 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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.9036.00.1'
20240728@233904.2230 tr6jvsjn82qsm0ruua8fjomk50 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233904.2410 tr6jvsjn82qsm0ruua8fjomk50 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240728@233904.2700 tr6jvsjn82qsm0ruua8fjomk50 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233904.2840 tr6jvsjn82qsm0ruua8fjomk50 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240728@233904.2930 tr6jvsjn82qsm0ruua8fjomk50 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240728@233904.3050 tr6jvsjn82qsm0ruua8fjomk50 Query : select sestamp valor from se where ref ='328.9036.00.1' and lote = 'r2400212120a'
20240728@233904.3180 tr6jvsjn82qsm0ruua8fjomk50 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233904.3330 tr6jvsjn82qsm0ruua8fjomk50 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240728@233904.3450 tr6jvsjn82qsm0ruua8fjomk50 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66a6c6726766a6c88807','aut66a6c1800566a6c88637' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240728@233904.3490 tr6jvsjn82qsm0ruua8fjomk50 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233904.3640 tr6jvsjn82qsm0ruua8fjomk50 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240728@233904.3930 tr6jvsjn82qsm0ruua8fjomk50 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66a6c6726766a6c88807',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',1.000 ,'aut66a6c1800566a6c88637' ,0,0 ,2,23.00,280000,?,?,?,?,?)
20240728@233904.6410 tr6jvsjn82qsm0ruua8fjomk50 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233904.6560 tr6jvsjn82qsm0ruua8fjomk50 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240728@233904.6830 tr6jvsjn82qsm0ruua8fjomk50 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233904.7020 tr6jvsjn82qsm0ruua8fjomk50 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240728@233904.7100 tr6jvsjn82qsm0ruua8fjomk50 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240728@233904.7230 tr6jvsjn82qsm0ruua8fjomk50 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233904.7380 tr6jvsjn82qsm0ruua8fjomk50 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240728@233904.7500 tr6jvsjn82qsm0ruua8fjomk50 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66a6c4671566a6c88811','aut66a6c1800566a6c88637' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240728@233904.7550 tr6jvsjn82qsm0ruua8fjomk50 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233904.7700 tr6jvsjn82qsm0ruua8fjomk50 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240728@233904.8000 tr6jvsjn82qsm0ruua8fjomk50 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66a6c4671566a6c88811',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66a6c1800566a6c88637' ,0,0 ,2,23.00,290000,?,?,?)
20240728@233904.1357 tr6jvsjn82qsm0ruua8fjomk50 Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut66a6c1800566a6c88637','2404995','wait',39,'adm09112754980.682000002')
20240728@233904.1429 tr6jvsjn82qsm0ruua8fjomk50 Query : use flama_phc
20240728@233904.1432 tr6jvsjn82qsm0ruua8fjomk50 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240728@233904.1461 tr6jvsjn82qsm0ruua8fjomk50 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1202';
20240728@233904.1485 tr6jvsjn82qsm0ruua8fjomk50 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1202';
20240728@233904.1519 tr6jvsjn82qsm0ruua8fjomk50 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1202';
20240728@233904.1541 tr6jvsjn82qsm0ruua8fjomk50 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1202';
20240728@233904.2187 pf3h8roa2ais8d1gktkt5tafmj Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240728@233904.2199 pf3h8roa2ais8d1gktkt5tafmj Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240728@233904.2249 pf3h8roa2ais8d1gktkt5tafmj Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1203';
20240728@233904.2302 pf3h8roa2ais8d1gktkt5tafmj Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1203';
20240728@233904.2353 pf3h8roa2ais8d1gktkt5tafmj Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1203';
20240728@233904.2377 pf3h8roa2ais8d1gktkt5tafmj Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1203';
20240728@233904.2423 pf3h8roa2ais8d1gktkt5tafmj Query : use flama_phc
20240728@233904.2427 pf3h8roa2ais8d1gktkt5tafmj Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240728@233904.2494 pf3h8roa2ais8d1gktkt5tafmj Query : use flama_phc
20240728@233904.2497 pf3h8roa2ais8d1gktkt5tafmj Query : select no, estab,szadrsdesc from szadrs where u_coddest=4740
20240728@233904.2535 pf3h8roa2ais8d1gktkt5tafmj Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.5347.00.1'
20240728@233904.2699 pf3h8roa2ais8d1gktkt5tafmj 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 = 2404996 and bi.ref ='324.5347.00.1' and bi.lordem =1
20240728@233904.3008 pf3h8roa2ais8d1gktkt5tafmj Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.5347.00.1'
20240728@233904.3029 pf3h8roa2ais8d1gktkt5tafmj 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 = 2404996 and bi.ref ='324.5347.00.1' and bi.lordem =1
20240728@233904.3046 pf3h8roa2ais8d1gktkt5tafmj Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.5342.00.1'
20240728@233904.3065 pf3h8roa2ais8d1gktkt5tafmj 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 = 2404996 and bi.ref ='324.5342.00.1' and bi.lordem =2
20240728@233904.3682 pf3h8roa2ais8d1gktkt5tafmj Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '325.1670.3015'
20240728@233904.3945 pf3h8roa2ais8d1gktkt5tafmj 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 = 2404996 and bi.ref ='325.1670.3015' and bi.lordem =3
20240728@233904.4282 pf3h8roa2ais8d1gktkt5tafmj 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@233904.4304 pf3h8roa2ais8d1gktkt5tafmj 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 = 2404996 and bi.ref ='325.1675.3015' and bi.lordem =4
20240728@233904.4604 pf3h8roa2ais8d1gktkt5tafmj 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@233904.4627 pf3h8roa2ais8d1gktkt5tafmj 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 = 2404996 and bi.ref ='324.5500.00.1' and bi.lordem =5
20240728@233904.4932 pf3h8roa2ais8d1gktkt5tafmj Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.5396.00.1'
20240728@233904.5090 pf3h8roa2ais8d1gktkt5tafmj 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 = 2404996 and bi.ref ='324.5396.00.1' and bi.lordem =6
20240728@233904.5394 pf3h8roa2ais8d1gktkt5tafmj Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.5396.00.1'
20240728@233904.5425 pf3h8roa2ais8d1gktkt5tafmj 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 = 2404996 and bi.ref ='324.5396.00.1' and bi.lordem =6
20240728@233904.5443 pf3h8roa2ais8d1gktkt5tafmj Query : use flama_phc
20240728@233904.5446 pf3h8roa2ais8d1gktkt5tafmj Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20240728@233904.6691 pf3h8roa2ais8d1gktkt5tafmj Query : use flama_phc
20240728@233904.6695 pf3h8roa2ais8d1gktkt5tafmj Query : select top 1 1 valor from td where td.ndoc = 39
20240728@233904.6727 pf3h8roa2ais8d1gktkt5tafmj Query : use flama_phc
20240728@233904.6730 pf3h8roa2ais8d1gktkt5tafmj 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@233904.6758 pf3h8roa2ais8d1gktkt5tafmj 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@233904.6798 pf3h8roa2ais8d1gktkt5tafmj Query : use flama_phc
20240728@233904.6801 pf3h8roa2ais8d1gktkt5tafmj Query : select top 1 ~inactivo valor from cl where no = '100810' and estab = 0 order by inactivo desc
20240728@233904.6830 pf3h8roa2ais8d1gktkt5tafmj Query : use flama_phc
20240728@233904.6833 pf3h8roa2ais8d1gktkt5tafmj Query : select top 1 tipodoc,regrd from td where ndoc = 39
20240728@233904.6865 pf3h8roa2ais8d1gktkt5tafmj Query : use flama_phc
20240728@233904.6868 pf3h8roa2ais8d1gktkt5tafmj Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20240728@233904.6910 pf3h8roa2ais8d1gktkt5tafmj Query : use flama_phc
20240728@233904.6913 pf3h8roa2ais8d1gktkt5tafmj Query : select szadrsstamp valor from szadrs where szadrsdesc='100810 - worten-equipamentos para o lar,sa.'
20240728@233904.6962 pf3h8roa2ais8d1gktkt5tafmj Query : use flama_phc
20240728@233904.6965 pf3h8roa2ais8d1gktkt5tafmj Query : select 1 valor from td where ndoc = 39
20240728@233904.6988 pf3h8roa2ais8d1gktkt5tafmj Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20240728@233904.7084 pf3h8roa2ais8d1gktkt5tafmj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233904.7102 pf3h8roa2ais8d1gktkt5tafmj Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20240728@233904.7122 pf3h8roa2ais8d1gktkt5tafmj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233904.7136 pf3h8roa2ais8d1gktkt5tafmj Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20240728@233904.7165 pf3h8roa2ais8d1gktkt5tafmj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233904.7179 pf3h8roa2ais8d1gktkt5tafmj Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20240728@233904.7191 pf3h8roa2ais8d1gktkt5tafmj Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240728@233904.7262 pf3h8roa2ais8d1gktkt5tafmj Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240728@233904.7275 pf3h8roa2ais8d1gktkt5tafmj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233904.7291 pf3h8roa2ais8d1gktkt5tafmj Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20240728@233904.7307 pf3h8roa2ais8d1gktkt5tafmj Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut66a6c8872966a6c888af' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20240728@233904.7490 pf3h8roa2ais8d1gktkt5tafmj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233904.7509 pf3h8roa2ais8d1gktkt5tafmj Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20240728@233904.7543 pf3h8roa2ais8d1gktkt5tafmj Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20240728@233904.7554 pf3h8roa2ais8d1gktkt5tafmj Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20240728@233904.7569 pf3h8roa2ais8d1gktkt5tafmj Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20240728@233904.7582 pf3h8roa2ais8d1gktkt5tafmj Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20240728@233904.7594 pf3h8roa2ais8d1gktkt5tafmj Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20240728@233904.7607 pf3h8roa2ais8d1gktkt5tafmj Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20240728@233904.7619 pf3h8roa2ais8d1gktkt5tafmj Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut66a6c8872966a6c888af',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20240728@233904.7862 pf3h8roa2ais8d1gktkt5tafmj Query : select top 1 fno valor from wsftdata order by fno desc
20240728@233904.7877 pf3h8roa2ais8d1gktkt5tafmj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233904.7893 pf3h8roa2ais8d1gktkt5tafmj Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20240728@233904.7918 pf3h8roa2ais8d1gktkt5tafmj Query : select 'normal' from dummy
20240728@233904.7933 pf3h8roa2ais8d1gktkt5tafmj Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut66a6c8872966a6c888af',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',52,100810,0,'2024-07-28',39,'euro',0,0,2024 ,?,?)
20240728@233904.8212 pf3h8roa2ais8d1gktkt5tafmj Query : use flama_phc
20240728@233904.8215 pf3h8roa2ais8d1gktkt5tafmj Query : select st.usalote valor from st where st.ref = '324.5347.00.1'
20240728@233904.8237 pf3h8roa2ais8d1gktkt5tafmj Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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.5347.00.1'
20240728@233904.8408 pf3h8roa2ais8d1gktkt5tafmj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233904.8426 pf3h8roa2ais8d1gktkt5tafmj Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240728@233904.8455 pf3h8roa2ais8d1gktkt5tafmj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233904.8471 pf3h8roa2ais8d1gktkt5tafmj Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240728@233904.8480 pf3h8roa2ais8d1gktkt5tafmj Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240728@233904.8493 pf3h8roa2ais8d1gktkt5tafmj Query : select sestamp valor from se where ref ='324.5347.00.1' and lote = 'r2300915100a'
20240728@233904.8508 pf3h8roa2ais8d1gktkt5tafmj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233904.8525 pf3h8roa2ais8d1gktkt5tafmj Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240728@233904.8538 pf3h8roa2ais8d1gktkt5tafmj Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66a6c9787166a6c888cf','aut66a6c8872966a6c888af' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240728@233904.8542 pf3h8roa2ais8d1gktkt5tafmj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233904.8558 pf3h8roa2ais8d1gktkt5tafmj Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240728@233905.5420 pf3h8roa2ais8d1gktkt5tafmj Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66a6c9787166a6c888cf',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',108.000 ,'aut66a6c8872966a6c888af' ,0,0 ,2,23.00,10000,?,?,?,?,?)
20240728@233905.9290 pf3h8roa2ais8d1gktkt5tafmj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233905.9480 pf3h8roa2ais8d1gktkt5tafmj Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240728@233905.9890 pf3h8roa2ais8d1gktkt5tafmj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233905.1007 pf3h8roa2ais8d1gktkt5tafmj Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240728@233905.1020 pf3h8roa2ais8d1gktkt5tafmj Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240728@233905.1035 pf3h8roa2ais8d1gktkt5tafmj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233905.1050 pf3h8roa2ais8d1gktkt5tafmj Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240728@233905.1062 pf3h8roa2ais8d1gktkt5tafmj Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66a6c0962666a6c88919','aut66a6c8872966a6c888af' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240728@233905.1067 pf3h8roa2ais8d1gktkt5tafmj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233905.1202 pf3h8roa2ais8d1gktkt5tafmj Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240728@233905.1545 pf3h8roa2ais8d1gktkt5tafmj Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66a6c0962666a6c88919',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66a6c8872966a6c888af' ,0,0 ,2,23.00,20000,?,?,?)
20240728@233905.1838 pf3h8roa2ais8d1gktkt5tafmj Query : use flama_phc
20240728@233905.1841 pf3h8roa2ais8d1gktkt5tafmj Query : select st.usalote valor from st where st.ref = '324.5347.00.1'
20240728@233905.1860 pf3h8roa2ais8d1gktkt5tafmj Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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.5347.00.1'
20240728@233905.1874 pf3h8roa2ais8d1gktkt5tafmj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233905.1889 pf3h8roa2ais8d1gktkt5tafmj Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240728@233905.1913 pf3h8roa2ais8d1gktkt5tafmj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233905.1926 pf3h8roa2ais8d1gktkt5tafmj Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240728@233905.1934 pf3h8roa2ais8d1gktkt5tafmj Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240728@233905.1945 pf3h8roa2ais8d1gktkt5tafmj Query : select sestamp valor from se where ref ='324.5347.00.1' and lote = 'r2300915100a'
20240728@233905.1957 pf3h8roa2ais8d1gktkt5tafmj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233905.1971 pf3h8roa2ais8d1gktkt5tafmj Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240728@233905.1982 pf3h8roa2ais8d1gktkt5tafmj Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66a6c9387766a6c8892f','aut66a6c8872966a6c888af' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240728@233905.1986 pf3h8roa2ais8d1gktkt5tafmj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233905.2000 pf3h8roa2ais8d1gktkt5tafmj Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240728@233905.2027 pf3h8roa2ais8d1gktkt5tafmj Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66a6c9387766a6c8892f',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',192.000 ,'aut66a6c8872966a6c888af' ,0,0 ,2,23.00,40000,?,?,?,?,?)
20240728@233905.2301 pf3h8roa2ais8d1gktkt5tafmj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233905.2316 pf3h8roa2ais8d1gktkt5tafmj Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240728@233905.2340 pf3h8roa2ais8d1gktkt5tafmj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233905.2353 pf3h8roa2ais8d1gktkt5tafmj Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240728@233905.2361 pf3h8roa2ais8d1gktkt5tafmj Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240728@233905.2374 pf3h8roa2ais8d1gktkt5tafmj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233905.2388 pf3h8roa2ais8d1gktkt5tafmj Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240728@233905.2399 pf3h8roa2ais8d1gktkt5tafmj Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66a6c9165466a6c88939','aut66a6c8872966a6c888af' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240728@233905.2403 pf3h8roa2ais8d1gktkt5tafmj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233905.2419 pf3h8roa2ais8d1gktkt5tafmj Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240728@233905.2449 pf3h8roa2ais8d1gktkt5tafmj Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66a6c9165466a6c88939',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66a6c8872966a6c888af' ,0,0 ,2,23.00,50000,?,?,?)
20240728@233905.2683 pf3h8roa2ais8d1gktkt5tafmj Query : use flama_phc
20240728@233905.2685 pf3h8roa2ais8d1gktkt5tafmj Query : select st.usalote valor from st where st.ref = '324.5342.00.1'
20240728@233905.2704 pf3h8roa2ais8d1gktkt5tafmj Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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.5342.00.1'
20240728@233905.2717 pf3h8roa2ais8d1gktkt5tafmj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233905.2732 pf3h8roa2ais8d1gktkt5tafmj Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240728@233905.2757 pf3h8roa2ais8d1gktkt5tafmj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233905.2771 pf3h8roa2ais8d1gktkt5tafmj Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240728@233905.2779 pf3h8roa2ais8d1gktkt5tafmj Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240728@233905.2791 pf3h8roa2ais8d1gktkt5tafmj Query : select sestamp valor from se where ref ='324.5342.00.1' and lote = 'r2300915100a'
20240728@233905.2802 pf3h8roa2ais8d1gktkt5tafmj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233905.2816 pf3h8roa2ais8d1gktkt5tafmj Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240728@233905.2827 pf3h8roa2ais8d1gktkt5tafmj Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66a6c1370466a6c88944','aut66a6c8872966a6c888af' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240728@233905.2831 pf3h8roa2ais8d1gktkt5tafmj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233905.2845 pf3h8roa2ais8d1gktkt5tafmj Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240728@233905.2874 pf3h8roa2ais8d1gktkt5tafmj Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66a6c1370466a6c88944',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',60.000 ,'aut66a6c8872966a6c888af' ,0,0 ,2,23.00,70000,?,?,?,?,?)
20240728@233905.3103 pf3h8roa2ais8d1gktkt5tafmj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233905.3118 pf3h8roa2ais8d1gktkt5tafmj Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240728@233905.3143 pf3h8roa2ais8d1gktkt5tafmj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233905.3156 pf3h8roa2ais8d1gktkt5tafmj Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240728@233905.3169 pf3h8roa2ais8d1gktkt5tafmj Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240728@233905.3181 pf3h8roa2ais8d1gktkt5tafmj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233905.3194 pf3h8roa2ais8d1gktkt5tafmj Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240728@233905.3205 pf3h8roa2ais8d1gktkt5tafmj Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66a6c1416666a6c8894d','aut66a6c8872966a6c888af' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240728@233905.3209 pf3h8roa2ais8d1gktkt5tafmj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233905.3223 pf3h8roa2ais8d1gktkt5tafmj Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240728@233905.3250 pf3h8roa2ais8d1gktkt5tafmj Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66a6c1416666a6c8894d',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66a6c8872966a6c888af' ,0,0 ,2,23.00,80000,?,?,?)
20240728@233905.3473 pf3h8roa2ais8d1gktkt5tafmj Query : use flama_phc
20240728@233905.3476 pf3h8roa2ais8d1gktkt5tafmj Query : select st.usalote valor from st where st.ref = '325.1670.3015'
20240728@233905.3497 pf3h8roa2ais8d1gktkt5tafmj Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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.1670.3015'
20240728@233905.3644 pf3h8roa2ais8d1gktkt5tafmj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233905.3659 pf3h8roa2ais8d1gktkt5tafmj Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240728@233905.3686 pf3h8roa2ais8d1gktkt5tafmj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233905.3700 pf3h8roa2ais8d1gktkt5tafmj Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240728@233905.3709 pf3h8roa2ais8d1gktkt5tafmj Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240728@233905.3720 pf3h8roa2ais8d1gktkt5tafmj Query : select sestamp valor from se where ref ='325.1670.3015' and lote = 'r2301133100a'
20240728@233905.3748 pf3h8roa2ais8d1gktkt5tafmj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233905.3762 pf3h8roa2ais8d1gktkt5tafmj Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240728@233905.3773 pf3h8roa2ais8d1gktkt5tafmj Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66a6c5469866a6c8895b','aut66a6c8872966a6c888af' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240728@233905.3778 pf3h8roa2ais8d1gktkt5tafmj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233905.3792 pf3h8roa2ais8d1gktkt5tafmj Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240728@233905.3819 pf3h8roa2ais8d1gktkt5tafmj Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66a6c5469866a6c8895b',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',3.000 ,'aut66a6c8872966a6c888af' ,0,0 ,2,23.00,100000,?,?,?,?,?)
20240728@233905.4080 pf3h8roa2ais8d1gktkt5tafmj Query : use flama_phc
20240728@233905.4083 pf3h8roa2ais8d1gktkt5tafmj Query : select st.usalote valor from st where st.ref = '325.1675.3015'
20240728@233905.4103 pf3h8roa2ais8d1gktkt5tafmj Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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@233905.4116 pf3h8roa2ais8d1gktkt5tafmj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233905.4132 pf3h8roa2ais8d1gktkt5tafmj Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240728@233905.4157 pf3h8roa2ais8d1gktkt5tafmj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233905.4171 pf3h8roa2ais8d1gktkt5tafmj Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240728@233905.4179 pf3h8roa2ais8d1gktkt5tafmj Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240728@233905.4191 pf3h8roa2ais8d1gktkt5tafmj Query : select sestamp valor from se where ref ='325.1675.3015' and lote = '801'
20240728@233905.4203 pf3h8roa2ais8d1gktkt5tafmj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233905.4217 pf3h8roa2ais8d1gktkt5tafmj Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240728@233905.4228 pf3h8roa2ais8d1gktkt5tafmj Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66a6c1166966a6c88966','aut66a6c8872966a6c888af' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240728@233905.4232 pf3h8roa2ais8d1gktkt5tafmj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233905.4246 pf3h8roa2ais8d1gktkt5tafmj Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240728@233905.4274 pf3h8roa2ais8d1gktkt5tafmj Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66a6c1166966a6c88966',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',3.000 ,'aut66a6c8872966a6c888af' ,0,0 ,2,23.00,110000,?,?,?,?,?)
20240728@233905.4509 pf3h8roa2ais8d1gktkt5tafmj Query : use flama_phc
20240728@233905.4511 pf3h8roa2ais8d1gktkt5tafmj Query : select st.usalote valor from st where st.ref = '324.5500.00.1'
20240728@233905.4529 pf3h8roa2ais8d1gktkt5tafmj Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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@233905.4542 pf3h8roa2ais8d1gktkt5tafmj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233905.4558 pf3h8roa2ais8d1gktkt5tafmj Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240728@233905.4584 pf3h8roa2ais8d1gktkt5tafmj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233905.4598 pf3h8roa2ais8d1gktkt5tafmj Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240728@233905.4606 pf3h8roa2ais8d1gktkt5tafmj Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240728@233905.4618 pf3h8roa2ais8d1gktkt5tafmj Query : select sestamp valor from se where ref ='324.5500.00.1' and lote = 'r2301223200a'
20240728@233905.4631 pf3h8roa2ais8d1gktkt5tafmj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233905.4645 pf3h8roa2ais8d1gktkt5tafmj Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240728@233905.4656 pf3h8roa2ais8d1gktkt5tafmj Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66a6c0585866a6c88971','aut66a6c8872966a6c888af' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240728@233905.4660 pf3h8roa2ais8d1gktkt5tafmj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233905.4675 pf3h8roa2ais8d1gktkt5tafmj Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240728@233905.4702 pf3h8roa2ais8d1gktkt5tafmj Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66a6c0585866a6c88971',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',5.000 ,'aut66a6c8872966a6c888af' ,0,0 ,2,23.00,120000,?,?,?,?,?)
20240728@233905.5027 pf3h8roa2ais8d1gktkt5tafmj Query : use flama_phc
20240728@233905.5030 pf3h8roa2ais8d1gktkt5tafmj Query : select st.usalote valor from st where st.ref = '324.5396.00.1'
20240728@233905.5049 pf3h8roa2ais8d1gktkt5tafmj Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.5396.00.1'
20240728@233905.5197 pf3h8roa2ais8d1gktkt5tafmj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233905.5213 pf3h8roa2ais8d1gktkt5tafmj Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240728@233905.5239 pf3h8roa2ais8d1gktkt5tafmj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233905.5253 pf3h8roa2ais8d1gktkt5tafmj Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240728@233905.5264 pf3h8roa2ais8d1gktkt5tafmj Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240728@233905.5275 pf3h8roa2ais8d1gktkt5tafmj Query : select sestamp valor from se where ref ='324.5396.00.1' and lote = 'r2300840100a'
20240728@233905.5298 pf3h8roa2ais8d1gktkt5tafmj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233905.5359 pf3h8roa2ais8d1gktkt5tafmj Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240728@233905.5659 pf3h8roa2ais8d1gktkt5tafmj Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66a6c6399066a6c88981','aut66a6c8872966a6c888af' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240728@233905.5664 pf3h8roa2ais8d1gktkt5tafmj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233905.5680 pf3h8roa2ais8d1gktkt5tafmj Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240728@233905.5985 pf3h8roa2ais8d1gktkt5tafmj Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66a6c6399066a6c88981',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',12.000 ,'aut66a6c8872966a6c888af' ,0,0 ,2,23.00,130000,?,?,?,?,?)
20240728@233905.6372 pf3h8roa2ais8d1gktkt5tafmj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233905.6474 pf3h8roa2ais8d1gktkt5tafmj Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240728@233905.6499 pf3h8roa2ais8d1gktkt5tafmj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233905.6523 pf3h8roa2ais8d1gktkt5tafmj Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240728@233905.6532 pf3h8roa2ais8d1gktkt5tafmj Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240728@233905.6544 pf3h8roa2ais8d1gktkt5tafmj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233905.6830 pf3h8roa2ais8d1gktkt5tafmj Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240728@233905.6841 pf3h8roa2ais8d1gktkt5tafmj Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66a6c9659566a6c8899f','aut66a6c8872966a6c888af' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240728@233905.6846 pf3h8roa2ais8d1gktkt5tafmj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233905.6861 pf3h8roa2ais8d1gktkt5tafmj Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240728@233905.6888 pf3h8roa2ais8d1gktkt5tafmj Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66a6c9659566a6c8899f',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66a6c8872966a6c888af' ,0,0 ,2,23.00,140000,?,?,?)
20240728@233905.7300 pf3h8roa2ais8d1gktkt5tafmj Query : use flama_phc
20240728@233905.7304 pf3h8roa2ais8d1gktkt5tafmj Query : select st.usalote valor from st where st.ref = '324.5396.00.1'
20240728@233905.7322 pf3h8roa2ais8d1gktkt5tafmj Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.5396.00.1'
20240728@233905.7337 pf3h8roa2ais8d1gktkt5tafmj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233905.7354 pf3h8roa2ais8d1gktkt5tafmj Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240728@233905.7459 pf3h8roa2ais8d1gktkt5tafmj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233905.7475 pf3h8roa2ais8d1gktkt5tafmj Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240728@233905.7633 pf3h8roa2ais8d1gktkt5tafmj Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240728@233905.9108 pf3h8roa2ais8d1gktkt5tafmj Query : select sestamp valor from se where ref ='324.5396.00.1' and lote = 'r2300840100a'
20240728@233905.9123 pf3h8roa2ais8d1gktkt5tafmj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233905.9142 pf3h8roa2ais8d1gktkt5tafmj Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240728@233905.9155 pf3h8roa2ais8d1gktkt5tafmj Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66a6c8062166a6c889de','aut66a6c8872966a6c888af' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240728@233905.9160 pf3h8roa2ais8d1gktkt5tafmj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233905.9207 pf3h8roa2ais8d1gktkt5tafmj Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240728@233905.9343 pf3h8roa2ais8d1gktkt5tafmj Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66a6c8062166a6c889de',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',96.000 ,'aut66a6c8872966a6c888af' ,0,0 ,2,23.00,160000,?,?,?,?,?)
20240728@233905.9676 pf3h8roa2ais8d1gktkt5tafmj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233905.9696 pf3h8roa2ais8d1gktkt5tafmj Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240728@233905.9727 pf3h8roa2ais8d1gktkt5tafmj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233905.9744 pf3h8roa2ais8d1gktkt5tafmj Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240728@233905.9753 pf3h8roa2ais8d1gktkt5tafmj Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240728@233905.9768 pf3h8roa2ais8d1gktkt5tafmj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233905.9784 pf3h8roa2ais8d1gktkt5tafmj Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240728@233905.9797 pf3h8roa2ais8d1gktkt5tafmj Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66a6c9927966a6c889ee','aut66a6c8872966a6c888af' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240728@233905.9801 pf3h8roa2ais8d1gktkt5tafmj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233905.9818 pf3h8roa2ais8d1gktkt5tafmj Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240728@233905.9852 pf3h8roa2ais8d1gktkt5tafmj Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66a6c9927966a6c889ee',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66a6c8872966a6c888af' ,0,0 ,2,23.00,170000,?,?,?)
20240728@233906.1210 pf3h8roa2ais8d1gktkt5tafmj Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut66a6c8872966a6c888af','2404996','wait',39,'adm09112754980.682000002')
20240728@233906.2040 pf3h8roa2ais8d1gktkt5tafmj Query : use flama_phc
20240728@233906.2090 pf3h8roa2ais8d1gktkt5tafmj Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240728@233906.2420 pf3h8roa2ais8d1gktkt5tafmj Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1203';
20240728@233906.2690 pf3h8roa2ais8d1gktkt5tafmj Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1203';
20240728@233906.3070 pf3h8roa2ais8d1gktkt5tafmj Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1203';
20240728@233906.3540 pf3h8roa2ais8d1gktkt5tafmj Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1203';
20240728@233906.9840 4rk716e01vfg9p0q4u8fesm562 Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240728@233906.9950 4rk716e01vfg9p0q4u8fesm562 Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240728@233906.1330 4rk716e01vfg9p0q4u8fesm562 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1204';
20240728@233906.1383 4rk716e01vfg9p0q4u8fesm562 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1204';
20240728@233906.1434 4rk716e01vfg9p0q4u8fesm562 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1204';
20240728@233906.1461 4rk716e01vfg9p0q4u8fesm562 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1204';
20240728@233906.1512 4rk716e01vfg9p0q4u8fesm562 Query : use flama_phc
20240728@233906.1515 4rk716e01vfg9p0q4u8fesm562 Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240728@233906.1586 4rk716e01vfg9p0q4u8fesm562 Query : use flama_phc
20240728@233906.1589 4rk716e01vfg9p0q4u8fesm562 Query : select no, estab,szadrsdesc from szadrs where u_coddest=4740
20240728@233906.1710 4rk716e01vfg9p0q4u8fesm562 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.5540.00.1'
20240728@233906.1736 4rk716e01vfg9p0q4u8fesm562 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 = 2404997 and bi.ref ='324.5540.00.1' and bi.lordem =1
20240728@233906.2153 4rk716e01vfg9p0q4u8fesm562 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.5540.00.1'
20240728@233906.2175 4rk716e01vfg9p0q4u8fesm562 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 = 2404997 and bi.ref ='324.5540.00.1' and bi.lordem =1
20240728@233906.2193 4rk716e01vfg9p0q4u8fesm562 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.5540.00.1'
20240728@233906.2213 4rk716e01vfg9p0q4u8fesm562 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 = 2404997 and bi.ref ='324.5540.00.1' and bi.lordem =1
20240728@233906.2232 4rk716e01vfg9p0q4u8fesm562 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.5501.00.1'
20240728@233906.2382 4rk716e01vfg9p0q4u8fesm562 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 = 2404997 and bi.ref ='324.5501.00.1' and bi.lordem =2
20240728@233906.2685 4rk716e01vfg9p0q4u8fesm562 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.5501.00.1'
20240728@233906.2705 4rk716e01vfg9p0q4u8fesm562 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 = 2404997 and bi.ref ='324.5501.00.1' and bi.lordem =2
20240728@233906.2723 4rk716e01vfg9p0q4u8fesm562 Query : use flama_phc
20240728@233906.2726 4rk716e01vfg9p0q4u8fesm562 Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20240728@233906.2757 4rk716e01vfg9p0q4u8fesm562 Query : use flama_phc
20240728@233906.2760 4rk716e01vfg9p0q4u8fesm562 Query : select top 1 1 valor from td where td.ndoc = 39
20240728@233906.2790 4rk716e01vfg9p0q4u8fesm562 Query : use flama_phc
20240728@233906.2792 4rk716e01vfg9p0q4u8fesm562 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@233906.4946 4rk716e01vfg9p0q4u8fesm562 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@233906.4986 4rk716e01vfg9p0q4u8fesm562 Query : use flama_phc
20240728@233906.4989 4rk716e01vfg9p0q4u8fesm562 Query : select top 1 ~inactivo valor from cl where no = '100810' and estab = 0 order by inactivo desc
20240728@233906.5021 4rk716e01vfg9p0q4u8fesm562 Query : use flama_phc
20240728@233906.5023 4rk716e01vfg9p0q4u8fesm562 Query : select top 1 tipodoc,regrd from td where ndoc = 39
20240728@233906.5051 4rk716e01vfg9p0q4u8fesm562 Query : use flama_phc
20240728@233906.5054 4rk716e01vfg9p0q4u8fesm562 Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20240728@233906.5092 4rk716e01vfg9p0q4u8fesm562 Query : use flama_phc
20240728@233906.5095 4rk716e01vfg9p0q4u8fesm562 Query : select szadrsstamp valor from szadrs where szadrsdesc='100810 - worten-equipamentos para o lar,sa.'
20240728@233906.5374 4rk716e01vfg9p0q4u8fesm562 Query : use flama_phc
20240728@233906.5378 4rk716e01vfg9p0q4u8fesm562 Query : select 1 valor from td where ndoc = 39
20240728@233906.5390 4rk716e01vfg9p0q4u8fesm562 Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20240728@233906.5404 4rk716e01vfg9p0q4u8fesm562 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233906.5422 4rk716e01vfg9p0q4u8fesm562 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20240728@233906.5442 4rk716e01vfg9p0q4u8fesm562 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233906.5459 4rk716e01vfg9p0q4u8fesm562 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20240728@233906.5490 4rk716e01vfg9p0q4u8fesm562 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233906.5505 4rk716e01vfg9p0q4u8fesm562 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20240728@233906.5518 4rk716e01vfg9p0q4u8fesm562 Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240728@233906.5684 4rk716e01vfg9p0q4u8fesm562 Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240728@233906.5698 4rk716e01vfg9p0q4u8fesm562 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233906.5716 4rk716e01vfg9p0q4u8fesm562 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20240728@233906.5733 4rk716e01vfg9p0q4u8fesm562 Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut66a6c1942166a6c88a86' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20240728@233906.5908 4rk716e01vfg9p0q4u8fesm562 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233906.5924 4rk716e01vfg9p0q4u8fesm562 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20240728@233906.5958 4rk716e01vfg9p0q4u8fesm562 Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20240728@233906.5971 4rk716e01vfg9p0q4u8fesm562 Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20240728@233906.5984 4rk716e01vfg9p0q4u8fesm562 Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20240728@233906.5997 4rk716e01vfg9p0q4u8fesm562 Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20240728@233906.6010 4rk716e01vfg9p0q4u8fesm562 Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20240728@233906.6023 4rk716e01vfg9p0q4u8fesm562 Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20240728@233906.6035 4rk716e01vfg9p0q4u8fesm562 Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut66a6c1942166a6c88a86',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20240728@233906.6268 4rk716e01vfg9p0q4u8fesm562 Query : select top 1 fno valor from wsftdata order by fno desc
20240728@233906.6283 4rk716e01vfg9p0q4u8fesm562 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233906.6298 4rk716e01vfg9p0q4u8fesm562 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20240728@233906.6331 4rk716e01vfg9p0q4u8fesm562 Query : select 'normal' from dummy
20240728@233906.6345 4rk716e01vfg9p0q4u8fesm562 Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut66a6c1942166a6c88a86',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',53,100810,0,'2024-07-28',39,'euro',0,0,2024 ,?,?)
20240728@233906.6654 4rk716e01vfg9p0q4u8fesm562 Query : use flama_phc
20240728@233906.6658 4rk716e01vfg9p0q4u8fesm562 Query : select st.usalote valor from st where st.ref = '324.5540.00.1'
20240728@233906.6678 4rk716e01vfg9p0q4u8fesm562 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.5540.00.1'
20240728@233906.6691 4rk716e01vfg9p0q4u8fesm562 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233906.6707 4rk716e01vfg9p0q4u8fesm562 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240728@233906.6731 4rk716e01vfg9p0q4u8fesm562 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233906.6746 4rk716e01vfg9p0q4u8fesm562 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240728@233906.6754 4rk716e01vfg9p0q4u8fesm562 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240728@233906.6766 4rk716e01vfg9p0q4u8fesm562 Query : select sestamp valor from se where ref ='324.5540.00.1' and lote = 'r2300830100a'
20240728@233906.6778 4rk716e01vfg9p0q4u8fesm562 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233906.6791 4rk716e01vfg9p0q4u8fesm562 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240728@233906.6802 4rk716e01vfg9p0q4u8fesm562 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66a6c6738966a6c88aa5','aut66a6c1942166a6c88a86' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240728@233906.6806 4rk716e01vfg9p0q4u8fesm562 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233906.6820 4rk716e01vfg9p0q4u8fesm562 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240728@233906.6847 4rk716e01vfg9p0q4u8fesm562 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66a6c6738966a6c88aa5',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',17.000 ,'aut66a6c1942166a6c88a86' ,0,0 ,2,23.00,10000,?,?,?,?,?)
20240728@233906.7097 4rk716e01vfg9p0q4u8fesm562 Query : use flama_phc
20240728@233906.7100 4rk716e01vfg9p0q4u8fesm562 Query : select st.usalote valor from st where st.ref = '324.5540.00.1'
20240728@233906.7119 4rk716e01vfg9p0q4u8fesm562 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.5540.00.1'
20240728@233906.7132 4rk716e01vfg9p0q4u8fesm562 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233906.7149 4rk716e01vfg9p0q4u8fesm562 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240728@233906.7173 4rk716e01vfg9p0q4u8fesm562 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233906.7188 4rk716e01vfg9p0q4u8fesm562 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240728@233906.7196 4rk716e01vfg9p0q4u8fesm562 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240728@233906.7208 4rk716e01vfg9p0q4u8fesm562 Query : select sestamp valor from se where ref ='324.5540.00.1' and lote = 'r2300830100a'
20240728@233906.7220 4rk716e01vfg9p0q4u8fesm562 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233906.7234 4rk716e01vfg9p0q4u8fesm562 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240728@233906.7245 4rk716e01vfg9p0q4u8fesm562 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66a6c5460666a6c88ab0','aut66a6c1942166a6c88a86' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240728@233906.7249 4rk716e01vfg9p0q4u8fesm562 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233906.7263 4rk716e01vfg9p0q4u8fesm562 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240728@233906.7291 4rk716e01vfg9p0q4u8fesm562 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66a6c5460666a6c88ab0',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',24.000 ,'aut66a6c1942166a6c88a86' ,0,0 ,2,23.00,20000,?,?,?,?,?)
20240728@233906.7532 4rk716e01vfg9p0q4u8fesm562 Query : use flama_phc
20240728@233906.7535 4rk716e01vfg9p0q4u8fesm562 Query : select st.usalote valor from st where st.ref = '324.5540.00.1'
20240728@233906.7554 4rk716e01vfg9p0q4u8fesm562 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.5540.00.1'
20240728@233906.7567 4rk716e01vfg9p0q4u8fesm562 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233906.7583 4rk716e01vfg9p0q4u8fesm562 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240728@233906.7608 4rk716e01vfg9p0q4u8fesm562 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233906.7623 4rk716e01vfg9p0q4u8fesm562 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240728@233906.7631 4rk716e01vfg9p0q4u8fesm562 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240728@233906.7642 4rk716e01vfg9p0q4u8fesm562 Query : select sestamp valor from se where ref ='324.5540.00.1' and lote = 'r2300830100a'
20240728@233906.7655 4rk716e01vfg9p0q4u8fesm562 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233906.7669 4rk716e01vfg9p0q4u8fesm562 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240728@233906.7680 4rk716e01vfg9p0q4u8fesm562 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66a6c4449366a6c88aba','aut66a6c1942166a6c88a86' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240728@233906.7684 4rk716e01vfg9p0q4u8fesm562 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233906.7699 4rk716e01vfg9p0q4u8fesm562 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240728@233906.7727 4rk716e01vfg9p0q4u8fesm562 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66a6c4449366a6c88aba',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',24.000 ,'aut66a6c1942166a6c88a86' ,0,0 ,2,23.00,30000,?,?,?,?,?)
20240728@233906.7991 4rk716e01vfg9p0q4u8fesm562 Query : use flama_phc
20240728@233906.8028 4rk716e01vfg9p0q4u8fesm562 Query : select st.usalote valor from st where st.ref = '324.5501.00.1'
20240728@233906.8220 4rk716e01vfg9p0q4u8fesm562 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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.5501.00.1'
20240728@233906.8538 4rk716e01vfg9p0q4u8fesm562 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233906.8706 4rk716e01vfg9p0q4u8fesm562 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240728@233906.9309 4rk716e01vfg9p0q4u8fesm562 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233906.9327 4rk716e01vfg9p0q4u8fesm562 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240728@233906.9337 4rk716e01vfg9p0q4u8fesm562 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240728@233906.9350 4rk716e01vfg9p0q4u8fesm562 Query : select sestamp valor from se where ref ='324.5501.00.1' and lote = 'r2300908100a'
20240728@233906.9389 4rk716e01vfg9p0q4u8fesm562 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233906.9405 4rk716e01vfg9p0q4u8fesm562 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240728@233906.9419 4rk716e01vfg9p0q4u8fesm562 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66a6c6729566a6c88ae5','aut66a6c1942166a6c88a86' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240728@233906.9425 4rk716e01vfg9p0q4u8fesm562 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233906.9439 4rk716e01vfg9p0q4u8fesm562 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240728@233906.9467 4rk716e01vfg9p0q4u8fesm562 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66a6c6729566a6c88ae5',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',20.000 ,'aut66a6c1942166a6c88a86' ,0,0 ,2,23.00,40000,?,?,?,?,?)
20240728@233906.9875 4rk716e01vfg9p0q4u8fesm562 Query : use flama_phc
20240728@233906.9879 4rk716e01vfg9p0q4u8fesm562 Query : select st.usalote valor from st where st.ref = '324.5501.00.1'
20240728@233906.9898 4rk716e01vfg9p0q4u8fesm562 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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.5501.00.1'
20240728@233906.9911 4rk716e01vfg9p0q4u8fesm562 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233906.9926 4rk716e01vfg9p0q4u8fesm562 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240728@233906.9952 4rk716e01vfg9p0q4u8fesm562 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233906.9968 4rk716e01vfg9p0q4u8fesm562 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240728@233906.9977 4rk716e01vfg9p0q4u8fesm562 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240728@233906.9991 4rk716e01vfg9p0q4u8fesm562 Query : select sestamp valor from se where ref ='324.5501.00.1' and lote = 'r2300908100a'
20240728@233907.4000 4rk716e01vfg9p0q4u8fesm562 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233907.2200 4rk716e01vfg9p0q4u8fesm562 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240728@233907.3400 4rk716e01vfg9p0q4u8fesm562 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66a6c8416066a6c88b00','aut66a6c1942166a6c88a86' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240728@233907.3900 4rk716e01vfg9p0q4u8fesm562 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233907.5300 4rk716e01vfg9p0q4u8fesm562 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240728@233907.8200 4rk716e01vfg9p0q4u8fesm562 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66a6c8416066a6c88b00',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',20.000 ,'aut66a6c1942166a6c88a86' ,0,0 ,2,23.00,50000,?,?,?,?,?)
20240728@233907.4030 4rk716e01vfg9p0q4u8fesm562 Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut66a6c1942166a6c88a86','2404997','wait',39,'adm09112754980.682000002')
20240728@233907.4870 4rk716e01vfg9p0q4u8fesm562 Query : use flama_phc
20240728@233907.4910 4rk716e01vfg9p0q4u8fesm562 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240728@233907.5310 4rk716e01vfg9p0q4u8fesm562 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1204';
20240728@233907.5580 4rk716e01vfg9p0q4u8fesm562 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1204';
20240728@233907.5940 4rk716e01vfg9p0q4u8fesm562 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1204';
20240728@233907.6150 4rk716e01vfg9p0q4u8fesm562 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1204';
20240728@233907.2083 ifte21f6rera7ge543rlgm1hjb Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240728@233907.2095 ifte21f6rera7ge543rlgm1hjb Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240728@233907.2144 ifte21f6rera7ge543rlgm1hjb Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1205';
20240728@233907.2308 ifte21f6rera7ge543rlgm1hjb Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1205';
20240728@233907.2359 ifte21f6rera7ge543rlgm1hjb Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1205';
20240728@233907.2382 ifte21f6rera7ge543rlgm1hjb Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1205';
20240728@233907.2489 ifte21f6rera7ge543rlgm1hjb Query : use flama_phc
20240728@233907.2493 ifte21f6rera7ge543rlgm1hjb Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240728@233907.2598 ifte21f6rera7ge543rlgm1hjb Query : use flama_phc
20240728@233907.2651 ifte21f6rera7ge543rlgm1hjb Query : select no, estab,szadrsdesc from szadrs where u_coddest=3674
20240728@233907.2896 ifte21f6rera7ge543rlgm1hjb Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.5501.00.1'
20240728@233907.2916 ifte21f6rera7ge543rlgm1hjb Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2050 and bo.obrano = 2405004 and bi.ref ='324.5501.00.1' and bi.lordem =1
20240728@233907.3302 ifte21f6rera7ge543rlgm1hjb Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.5501.00.1'
20240728@233907.3324 ifte21f6rera7ge543rlgm1hjb Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2050 and bo.obrano = 2405004 and bi.ref ='324.5501.00.1' and bi.lordem =1
20240728@233907.3342 ifte21f6rera7ge543rlgm1hjb Query : use flama_phc
20240728@233907.3345 ifte21f6rera7ge543rlgm1hjb Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20240728@233907.3378 ifte21f6rera7ge543rlgm1hjb Query : use flama_phc
20240728@233907.3380 ifte21f6rera7ge543rlgm1hjb Query : select top 1 1 valor from td where td.ndoc = 39
20240728@233907.3410 ifte21f6rera7ge543rlgm1hjb Query : use flama_phc
20240728@233907.3413 ifte21f6rera7ge543rlgm1hjb 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@233907.3441 ifte21f6rera7ge543rlgm1hjb 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@233907.3478 ifte21f6rera7ge543rlgm1hjb Query : use flama_phc
20240728@233907.3482 ifte21f6rera7ge543rlgm1hjb Query : select top 1 ~inactivo valor from cl where no = '199524' and estab = 0 order by inactivo desc
20240728@233907.3603 ifte21f6rera7ge543rlgm1hjb Query : use flama_phc
20240728@233907.3606 ifte21f6rera7ge543rlgm1hjb Query : select top 1 tipodoc,regrd from td where ndoc = 39
20240728@233907.3635 ifte21f6rera7ge543rlgm1hjb Query : use flama_phc
20240728@233907.3638 ifte21f6rera7ge543rlgm1hjb Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20240728@233907.3682 ifte21f6rera7ge543rlgm1hjb Query : use flama_phc
20240728@233907.3685 ifte21f6rera7ge543rlgm1hjb Query : select szadrsstamp valor from szadrs where szadrsdesc='worten-equipamentos para o lar,sa.- az'
20240728@233907.3833 ifte21f6rera7ge543rlgm1hjb Query : use flama_phc
20240728@233907.3836 ifte21f6rera7ge543rlgm1hjb Query : select 1 valor from td where ndoc = 39
20240728@233907.3849 ifte21f6rera7ge543rlgm1hjb Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20240728@233907.3864 ifte21f6rera7ge543rlgm1hjb Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233907.3882 ifte21f6rera7ge543rlgm1hjb Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20240728@233907.3903 ifte21f6rera7ge543rlgm1hjb Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233907.3918 ifte21f6rera7ge543rlgm1hjb Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20240728@233907.3946 ifte21f6rera7ge543rlgm1hjb Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233907.3961 ifte21f6rera7ge543rlgm1hjb Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20240728@233907.3976 ifte21f6rera7ge543rlgm1hjb Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240728@233907.4048 ifte21f6rera7ge543rlgm1hjb Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240728@233907.4063 ifte21f6rera7ge543rlgm1hjb Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233907.5255 ifte21f6rera7ge543rlgm1hjb Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20240728@233907.5273 ifte21f6rera7ge543rlgm1hjb Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut66a6c5076666a6c88b61' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20240728@233907.5477 ifte21f6rera7ge543rlgm1hjb Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233907.7644 ifte21f6rera7ge543rlgm1hjb Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20240728@233907.7681 ifte21f6rera7ge543rlgm1hjb Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20240728@233907.7693 ifte21f6rera7ge543rlgm1hjb Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20240728@233907.7705 ifte21f6rera7ge543rlgm1hjb Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20240728@233907.7727 ifte21f6rera7ge543rlgm1hjb Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20240728@233907.8256 ifte21f6rera7ge543rlgm1hjb Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20240728@233907.8270 ifte21f6rera7ge543rlgm1hjb Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20240728@233907.8282 ifte21f6rera7ge543rlgm1hjb Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut66a6c5076666a6c88b61',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20240728@233907.8531 ifte21f6rera7ge543rlgm1hjb Query : select top 1 fno valor from wsftdata order by fno desc
20240728@233907.8546 ifte21f6rera7ge543rlgm1hjb Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233907.8564 ifte21f6rera7ge543rlgm1hjb Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20240728@233907.8590 ifte21f6rera7ge543rlgm1hjb Query : select 'normal' from dummy
20240728@233907.8606 ifte21f6rera7ge543rlgm1hjb Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut66a6c5076666a6c88b61',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',54,199524,0,'2024-07-28',39,'euro',0,0,2024 ,?,?)
20240728@233907.8993 ifte21f6rera7ge543rlgm1hjb Query : use flama_phc
20240728@233907.8996 ifte21f6rera7ge543rlgm1hjb Query : select st.usalote valor from st where st.ref = '324.5501.00.1'
20240728@233907.9022 ifte21f6rera7ge543rlgm1hjb Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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.5501.00.1'
20240728@233907.9038 ifte21f6rera7ge543rlgm1hjb Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233907.9056 ifte21f6rera7ge543rlgm1hjb Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240728@233907.9086 ifte21f6rera7ge543rlgm1hjb Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233907.9101 ifte21f6rera7ge543rlgm1hjb Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240728@233907.9111 ifte21f6rera7ge543rlgm1hjb Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240728@233907.9124 ifte21f6rera7ge543rlgm1hjb Query : select sestamp valor from se where ref ='324.5501.00.1' and lote = 'r2300908100a'
20240728@233907.9137 ifte21f6rera7ge543rlgm1hjb Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233907.9153 ifte21f6rera7ge543rlgm1hjb Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240728@233907.9166 ifte21f6rera7ge543rlgm1hjb Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66a6c9897466a6c88bdf','aut66a6c5076666a6c88b61' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240728@233907.9171 ifte21f6rera7ge543rlgm1hjb Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233907.9187 ifte21f6rera7ge543rlgm1hjb Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240728@233907.9218 ifte21f6rera7ge543rlgm1hjb Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66a6c9897466a6c88bdf',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',4.000 ,'aut66a6c5076666a6c88b61' ,0,0 ,2,23.00,10000,?,?,?,?,?)
20240728@233907.9481 ifte21f6rera7ge543rlgm1hjb Query : use flama_phc
20240728@233907.9485 ifte21f6rera7ge543rlgm1hjb Query : select st.usalote valor from st where st.ref = '324.5501.00.1'
20240728@233907.9506 ifte21f6rera7ge543rlgm1hjb Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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.5501.00.1'
20240728@233907.9522 ifte21f6rera7ge543rlgm1hjb Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233907.9538 ifte21f6rera7ge543rlgm1hjb Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240728@233907.9568 ifte21f6rera7ge543rlgm1hjb Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233907.9585 ifte21f6rera7ge543rlgm1hjb Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240728@233907.9595 ifte21f6rera7ge543rlgm1hjb Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240728@233907.9609 ifte21f6rera7ge543rlgm1hjb Query : select sestamp valor from se where ref ='324.5501.00.1' and lote = 'r2300908100a'
20240728@233907.9624 ifte21f6rera7ge543rlgm1hjb Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233907.9639 ifte21f6rera7ge543rlgm1hjb Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240728@233907.9652 ifte21f6rera7ge543rlgm1hjb Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66a6c9840466a6c88bea','aut66a6c5076666a6c88b61' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240728@233907.9657 ifte21f6rera7ge543rlgm1hjb Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240728@233907.9672 ifte21f6rera7ge543rlgm1hjb Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240728@233907.9704 ifte21f6rera7ge543rlgm1hjb Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66a6c9840466a6c88bea',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',14.000 ,'aut66a6c5076666a6c88b61' ,0,0 ,2,23.00,20000,?,?,?,?,?)
20240728@233907.9982 ifte21f6rera7ge543rlgm1hjb Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut66a6c5076666a6c88b61','2405004','wait',39,'adm09112754980.682000002')
20240728@233908.6000 ifte21f6rera7ge543rlgm1hjb Query : use flama_phc
20240728@233908.6400 ifte21f6rera7ge543rlgm1hjb Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240728@233908.9600 ifte21f6rera7ge543rlgm1hjb Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1205';
20240728@233908.1240 ifte21f6rera7ge543rlgm1hjb Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1205';
20240728@233908.1630 ifte21f6rera7ge543rlgm1hjb Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1205';
20240728@233908.2100 ifte21f6rera7ge543rlgm1hjb Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1205';
20240729@071916.9516 40c9v56i403rkhjto5k6968s0q Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240729@071916.9538 40c9v56i403rkhjto5k6968s0q Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240729@071916.9614 40c9v56i403rkhjto5k6968s0q Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1206';
20240729@071916.9898 40c9v56i403rkhjto5k6968s0q Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1206';
20240729@071917.5600 40c9v56i403rkhjto5k6968s0q Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1206';
20240729@071917.8300 40c9v56i403rkhjto5k6968s0q Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1206';
20240729@071917.1250 40c9v56i403rkhjto5k6968s0q Query : use flama_phc
20240729@071917.1290 40c9v56i403rkhjto5k6968s0q Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240729@071917.2370 40c9v56i403rkhjto5k6968s0q Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.682.00.01'
20240729@071917.3790 40c9v56i403rkhjto5k6968s0q 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 = 2400223 and bi.ref ='324.682.00.01' and bi.lordem =10000
20240729@071917.7460 40c9v56i403rkhjto5k6968s0q 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 = 'cps24022844756,247000003 ' 
20240729@071917.1066 40c9v56i403rkhjto5k6968s0q Query : use flama_phc
20240729@071917.1070 40c9v56i403rkhjto5k6968s0q Query : select top 1 1 valor from ts where ts.ndos = 61
20240729@071917.1379 40c9v56i403rkhjto5k6968s0q Query : use flama_phc
20240729@071917.1384 40c9v56i403rkhjto5k6968s0q 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')
20240729@071917.1459 40c9v56i403rkhjto5k6968s0q 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
20240729@071917.1624 40c9v56i403rkhjto5k6968s0q Query : use flama_phc
20240729@071917.1628 40c9v56i403rkhjto5k6968s0q Query : select top 1 ~inactivo valor from fl where no = '202090' and estab = 00 order by inactivo desc
20240729@071917.1756 40c9v56i403rkhjto5k6968s0q Query : use flama_phc
20240729@071917.1760 40c9v56i403rkhjto5k6968s0q Query : select 1 valor from ts where ndos = 61
20240729@071917.1833 40c9v56i403rkhjto5k6968s0q Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240729@071917.2111 40c9v56i403rkhjto5k6968s0q Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bo' and documentnumber = 61
20240729@071917.2149 40c9v56i403rkhjto5k6968s0q Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240729@071917.2165 40c9v56i403rkhjto5k6968s0q Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bo2' and documentnumber = 61
20240729@071917.2176 40c9v56i403rkhjto5k6968s0q Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240729@071917.2198 40c9v56i403rkhjto5k6968s0q Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bo3' and documentnumber = 61
20240729@071917.2209 40c9v56i403rkhjto5k6968s0q 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
20240729@071917.2335 40c9v56i403rkhjto5k6968s0q Query : select top 1 bo.obrano valor from bo bo where bo.ndos = 61 and boano=2024 order by obrano desc
20240729@071917.2436 40c9v56i403rkhjto5k6968s0q Query : select top 1 bo.obrano valor from bo bo where bo.ndos = 61 and boano=2024 order by obrano desc
20240729@071917.2498 40c9v56i403rkhjto5k6968s0q Query : use flama_phc
20240729@071917.2506 40c9v56i403rkhjto5k6968s0q Query : select top 1 no,estab,nome, morada, local,codpost,ncont,pncont,pais,inactivo,motiseimp,codmotiseimp from fl where no='202090' and estab=00
20240729@071917.2606 40c9v56i403rkhjto5k6968s0q Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240729@071917.2628 40c9v56i403rkhjto5k6968s0q Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bo3' and documentnumber = 61
20240729@071917.2665 40c9v56i403rkhjto5k6968s0q Query : insert into bo3 (bo3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66a732526766a734653c',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut')
20240729@071917.2756 40c9v56i403rkhjto5k6968s0q Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240729@071917.2776 40c9v56i403rkhjto5k6968s0q Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bo2' and documentnumber = 61
20240729@071917.2791 40c9v56i403rkhjto5k6968s0q Query : insert into bo2 (bo2stamp, tiposaft, idserie,cambio,cambiofixo,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66a732526766a734653c','--','bo',7.8031578947368421052 ,1,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut')
20240729@071917.2988 40c9v56i403rkhjto5k6968s0q Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240729@071917.3005 40c9v56i403rkhjto5k6968s0q Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bo' and documentnumber = 61
20240729@071917.3021 40c9v56i403rkhjto5k6968s0q 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 ('aut66a732526766a734653c','guia r. fornecedor','2024-07-29',61,2402237,?,?,?,?,?,?,?,?,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')
20240729@071917.5209 40c9v56i403rkhjto5k6968s0q Query : use flama_phc
20240729@071917.5214 40c9v56i403rkhjto5k6968s0q Query : select st.usalote valor from st where st.ref = '324.682.00.01'
20240729@071917.5361 40c9v56i403rkhjto5k6968s0q Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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.682.00.01'
20240729@071917.5587 40c9v56i403rkhjto5k6968s0q Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240729@071917.5606 40c9v56i403rkhjto5k6968s0q Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 61
20240729@071917.5644 40c9v56i403rkhjto5k6968s0q Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240729@071917.5671 40c9v56i403rkhjto5k6968s0q Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 61
20240729@071917.5843 40c9v56i403rkhjto5k6968s0q Query : select sestamp valor from se where ref ='324.682.00.01' and lote = 'r2400223100a'
20240729@071917.6246 40c9v56i403rkhjto5k6968s0q Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240729@071917.8235 40c9v56i403rkhjto5k6968s0q Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'se' and documentnumber = 0
20240729@071917.9370 40c9v56i403rkhjto5k6968s0q Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240729@071918.1580 40c9v56i403rkhjto5k6968s0q Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'se' and documentnumber = 0
20240729@071918.1823 40c9v56i403rkhjto5k6968s0q Query : insert into se (sestamp,ref, lote, data,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66a730699266a73465e4',?,?,'20240729',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut;','aut;')
20240729@071918.3062 40c9v56i403rkhjto5k6968s0q Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240729@071918.3513 40c9v56i403rkhjto5k6968s0q Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240729@071918.3630 40c9v56i403rkhjto5k6968s0q Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 61
20240729@071918.4095 40c9v56i403rkhjto5k6968s0q Query : insert into bi2 (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut66a736513266a7346655','aut66a732526766a734653c',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 = 'aut66a732526766a734653c'
20240729@071918.4328 40c9v56i403rkhjto5k6968s0q Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240729@071918.4567 40c9v56i403rkhjto5k6968s0q Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 61
20240729@071918.4778 40c9v56i403rkhjto5k6968s0q 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 'aut66a736513266a7346655',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut',bo.obrano, 1030, 1030*.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 ,19,19*200.48,19,19*200.48 ,0,0,'un ',' ' ,bo.marcada,1 ,19*1030,19*1030*200.48 ,24.707000,24.707000*200.48 ,24.707000,24.707000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,19,19*200.48,19*1030,19*1030*200.48,'cps24022844756,247000003 ',148.26,148.26*1030,148.26,148.26*1030,?,?,?,4 from bo bo where bo.bostamp = 'aut66a732526766a734653c'
20240729@071918.8002 40c9v56i403rkhjto5k6968s0q Query : use flama_phc
20240729@071918.8007 40c9v56i403rkhjto5k6968s0q Query : declare @bostamp varchar(25) = 'aut66a732526766a734653c' ,@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 
20240729@071919.2950 40c9v56i403rkhjto5k6968s0q Query : use flama_phc
20240729@071919.2990 40c9v56i403rkhjto5k6968s0q Query : select 1 valor from bo where bo.bostamp = 'aut66a732526766a734653c'
20240729@071919.4100 40c9v56i403rkhjto5k6968s0q 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) = 'aut66a732526766a734653c' 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 
20240729@071919.2711 40c9v56i403rkhjto5k6968s0q Query : use flama_phc
20240729@071919.2715 40c9v56i403rkhjto5k6968s0q Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240729@071919.2835 40c9v56i403rkhjto5k6968s0q Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1206';
20240729@071919.2867 40c9v56i403rkhjto5k6968s0q Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1206';

20240729@091417.9790 qav1ln7it4crjqitgh2fa8jf3u Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1207';
20240729@091417.9845 qav1ln7it4crjqitgh2fa8jf3u Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1207';
20240729@091417.9869 qav1ln7it4crjqitgh2fa8jf3u Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1207';
20240729@091417.9917 qav1ln7it4crjqitgh2fa8jf3u Query : use flama_phc
20240729@091417.9920 qav1ln7it4crjqitgh2fa8jf3u Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240729@091418.1600 qav1ln7it4crjqitgh2fa8jf3u Query : use flama_phc
20240729@091418.3100 qav1ln7it4crjqitgh2fa8jf3u Query : select no, estab,szadrsdesc from szadrs where u_coddest=4740
20240729@091418.1430 qav1ln7it4crjqitgh2fa8jf3u Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1684.00.1'
20240729@091418.3730 qav1ln7it4crjqitgh2fa8jf3u 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 = 2404980 and bi.ref ='324.1684.00.1' and bi.lordem =1
20240729@091418.7800 qav1ln7it4crjqitgh2fa8jf3u Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1578.00.1'
20240729@091418.1088 qav1ln7it4crjqitgh2fa8jf3u 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 = 2404980 and bi.ref ='324.1578.00.1' and bi.lordem =2
20240729@091418.1527 qav1ln7it4crjqitgh2fa8jf3u Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.698.00.01'
20240729@091418.2162 qav1ln7it4crjqitgh2fa8jf3u 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 = 2404980 and bi.ref ='324.698.00.01' and bi.lordem =4
20240729@091418.2564 qav1ln7it4crjqitgh2fa8jf3u Query : use flama_phc
20240729@091418.2567 qav1ln7it4crjqitgh2fa8jf3u Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20240729@091418.2849 qav1ln7it4crjqitgh2fa8jf3u Query : use flama_phc
20240729@091418.2916 qav1ln7it4crjqitgh2fa8jf3u Query : select top 1 1 valor from td where td.ndoc = 39
20240729@091418.4428 qav1ln7it4crjqitgh2fa8jf3u Query : use flama_phc
20240729@091418.4431 qav1ln7it4crjqitgh2fa8jf3u 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')
20240729@091418.4466 qav1ln7it4crjqitgh2fa8jf3u 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
20240729@091418.4620 qav1ln7it4crjqitgh2fa8jf3u Query : use flama_phc
20240729@091418.4622 qav1ln7it4crjqitgh2fa8jf3u Query : select top 1 ~inactivo valor from cl where no = '100810' and estab = 0 order by inactivo desc
20240729@091418.4749 qav1ln7it4crjqitgh2fa8jf3u Query : use flama_phc
20240729@091418.4752 qav1ln7it4crjqitgh2fa8jf3u Query : select top 1 tipodoc,regrd from td where ndoc = 39
20240729@091418.5048 qav1ln7it4crjqitgh2fa8jf3u Query : use flama_phc
20240729@091418.5091 qav1ln7it4crjqitgh2fa8jf3u Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20240729@091418.5236 qav1ln7it4crjqitgh2fa8jf3u Query : use flama_phc
20240729@091418.5239 qav1ln7it4crjqitgh2fa8jf3u Query : select szadrsstamp valor from szadrs where szadrsdesc='100810 - worten-equipamentos para o lar,sa.'
20240729@091418.5289 qav1ln7it4crjqitgh2fa8jf3u Query : use flama_phc
20240729@091418.5293 qav1ln7it4crjqitgh2fa8jf3u Query : select 1 valor from td where ndoc = 39
20240729@091418.5377 qav1ln7it4crjqitgh2fa8jf3u Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20240729@091418.5444 qav1ln7it4crjqitgh2fa8jf3u Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240729@091418.5472 qav1ln7it4crjqitgh2fa8jf3u Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20240729@091418.5524 qav1ln7it4crjqitgh2fa8jf3u Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240729@091418.5551 qav1ln7it4crjqitgh2fa8jf3u Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20240729@091418.5587 qav1ln7it4crjqitgh2fa8jf3u Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240729@091418.5604 qav1ln7it4crjqitgh2fa8jf3u Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20240729@091418.5618 qav1ln7it4crjqitgh2fa8jf3u Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240729@091418.5839 qav1ln7it4crjqitgh2fa8jf3u Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240729@091418.5968 qav1ln7it4crjqitgh2fa8jf3u Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240729@091418.6019 qav1ln7it4crjqitgh2fa8jf3u Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20240729@091418.6046 qav1ln7it4crjqitgh2fa8jf3u Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut66a746576166a74f5a89' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20240729@091418.6377 qav1ln7it4crjqitgh2fa8jf3u Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240729@091418.6396 qav1ln7it4crjqitgh2fa8jf3u Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20240729@091418.6433 qav1ln7it4crjqitgh2fa8jf3u Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20240729@091418.6535 qav1ln7it4crjqitgh2fa8jf3u Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20240729@091418.6623 qav1ln7it4crjqitgh2fa8jf3u Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20240729@091418.6748 qav1ln7it4crjqitgh2fa8jf3u Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20240729@091418.7145 qav1ln7it4crjqitgh2fa8jf3u Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20240729@091418.7312 qav1ln7it4crjqitgh2fa8jf3u Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20240729@091418.7470 qav1ln7it4crjqitgh2fa8jf3u Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut66a746576166a74f5a89',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20240729@091418.8376 qav1ln7it4crjqitgh2fa8jf3u Query : select top 1 fno valor from wsftdata order by fno desc
20240729@091418.8473 qav1ln7it4crjqitgh2fa8jf3u Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240729@091418.8492 qav1ln7it4crjqitgh2fa8jf3u Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20240729@091418.8521 qav1ln7it4crjqitgh2fa8jf3u Query : select 'normal' from dummy
20240729@091418.8575 qav1ln7it4crjqitgh2fa8jf3u Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut66a746576166a74f5a89',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',55,100810,0,'2024-07-29',39,'euro',0,0,2024 ,?,?)
20240729@091418.9304 qav1ln7it4crjqitgh2fa8jf3u Query : use flama_phc
20240729@091418.9308 qav1ln7it4crjqitgh2fa8jf3u Query : select st.usalote valor from st where st.ref = '324.1684.00.1'
20240729@091418.9345 qav1ln7it4crjqitgh2fa8jf3u Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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.1684.00.1'
20240729@091418.9519 qav1ln7it4crjqitgh2fa8jf3u Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240729@091418.9537 qav1ln7it4crjqitgh2fa8jf3u Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240729@091418.9565 qav1ln7it4crjqitgh2fa8jf3u Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240729@091418.9581 qav1ln7it4crjqitgh2fa8jf3u Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240729@091418.9592 qav1ln7it4crjqitgh2fa8jf3u Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240729@091418.9606 qav1ln7it4crjqitgh2fa8jf3u Query : select sestamp valor from se where ref ='324.1684.00.1' and lote = 'r2301217200a'
20240729@091418.9628 qav1ln7it4crjqitgh2fa8jf3u Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240729@091418.9672 qav1ln7it4crjqitgh2fa8jf3u Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240729@091418.9688 qav1ln7it4crjqitgh2fa8jf3u Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66a748409166a74f5aeb','aut66a746576166a74f5a89' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240729@091418.9764 qav1ln7it4crjqitgh2fa8jf3u Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240729@091418.9790 qav1ln7it4crjqitgh2fa8jf3u Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240729@091418.9824 qav1ln7it4crjqitgh2fa8jf3u Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66a748409166a74f5aeb',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',2.000 ,'aut66a746576166a74f5a89' ,0,0 ,2,23.00,10000,?,?,?,?,?)
20240729@091419.2950 qav1ln7it4crjqitgh2fa8jf3u Query : use flama_phc
20240729@091419.3010 qav1ln7it4crjqitgh2fa8jf3u Query : select st.usalote valor from st where st.ref = '324.1578.00.1'
20240729@091419.3290 qav1ln7it4crjqitgh2fa8jf3u Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.1578.00.1'
20240729@091419.5040 qav1ln7it4crjqitgh2fa8jf3u Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240729@091419.5250 qav1ln7it4crjqitgh2fa8jf3u Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240729@091419.5560 qav1ln7it4crjqitgh2fa8jf3u Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240729@091419.5740 qav1ln7it4crjqitgh2fa8jf3u Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240729@091419.5840 qav1ln7it4crjqitgh2fa8jf3u Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240729@091419.5990 qav1ln7it4crjqitgh2fa8jf3u Query : select sestamp valor from se where ref ='324.1578.00.1' and lote = 'r2100121100a'
20240729@091419.6250 qav1ln7it4crjqitgh2fa8jf3u Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240729@091419.6410 qav1ln7it4crjqitgh2fa8jf3u Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240729@091419.6540 qav1ln7it4crjqitgh2fa8jf3u Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66a744323766a74f5b0f','aut66a746576166a74f5a89' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240729@091419.6590 qav1ln7it4crjqitgh2fa8jf3u Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240729@091419.6750 qav1ln7it4crjqitgh2fa8jf3u Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240729@091419.7080 qav1ln7it4crjqitgh2fa8jf3u Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66a744323766a74f5b0f',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',2.000 ,'aut66a746576166a74f5a89' ,0,0 ,2,23.00,20000,?,?,?,?,?)
20240729@091419.1201 qav1ln7it4crjqitgh2fa8jf3u Query : use flama_phc
20240729@091419.1243 qav1ln7it4crjqitgh2fa8jf3u Query : select st.usalote valor from st where st.ref = '324.698.00.01'
20240729@091419.1400 qav1ln7it4crjqitgh2fa8jf3u Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.698.00.01'
20240729@091419.1596 qav1ln7it4crjqitgh2fa8jf3u Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240729@091419.1612 qav1ln7it4crjqitgh2fa8jf3u Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240729@091419.1643 qav1ln7it4crjqitgh2fa8jf3u Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240729@091419.1660 qav1ln7it4crjqitgh2fa8jf3u Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240729@091419.1672 qav1ln7it4crjqitgh2fa8jf3u Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240729@091419.1686 qav1ln7it4crjqitgh2fa8jf3u Query : select sestamp valor from se where ref ='324.698.00.01' and lote = 'r2301182200a'
20240729@091419.1704 qav1ln7it4crjqitgh2fa8jf3u Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240729@091419.1720 qav1ln7it4crjqitgh2fa8jf3u Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240729@091419.1738 qav1ln7it4crjqitgh2fa8jf3u Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66a742434766a74f5b29','aut66a746576166a74f5a89' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240729@091419.1745 qav1ln7it4crjqitgh2fa8jf3u Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240729@091419.1767 qav1ln7it4crjqitgh2fa8jf3u Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240729@091419.1825 qav1ln7it4crjqitgh2fa8jf3u Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66a742434766a74f5b29',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',1.000 ,'aut66a746576166a74f5a89' ,0,0 ,2,23.00,30000,?,?,?,?,?)
20240729@091419.2120 qav1ln7it4crjqitgh2fa8jf3u Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240729@091419.2138 qav1ln7it4crjqitgh2fa8jf3u Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240729@091419.2163 qav1ln7it4crjqitgh2fa8jf3u Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240729@091419.2197 qav1ln7it4crjqitgh2fa8jf3u Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240729@091419.2206 qav1ln7it4crjqitgh2fa8jf3u Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240729@091419.2218 qav1ln7it4crjqitgh2fa8jf3u Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240729@091419.2233 qav1ln7it4crjqitgh2fa8jf3u Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240729@091419.2245 qav1ln7it4crjqitgh2fa8jf3u Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66a744951066a74f5b36','aut66a746576166a74f5a89' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240729@091419.2249 qav1ln7it4crjqitgh2fa8jf3u Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240729@091419.2265 qav1ln7it4crjqitgh2fa8jf3u Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240729@091419.2292 qav1ln7it4crjqitgh2fa8jf3u Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66a744951066a74f5b36',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66a746576166a74f5a89' ,0,0 ,2,23.00,40000,?,?,?)
20240729@091419.2592 qav1ln7it4crjqitgh2fa8jf3u Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut66a746576166a74f5a89','2404980','wait',39,'adm09112754980.682000002')
20240729@091419.2694 qav1ln7it4crjqitgh2fa8jf3u Query : use flama_phc
20240729@091419.2697 qav1ln7it4crjqitgh2fa8jf3u Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240729@091419.2819 qav1ln7it4crjqitgh2fa8jf3u Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1207';
20240729@091419.2867 qav1ln7it4crjqitgh2fa8jf3u Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1207';
20240729@091419.3110 qav1ln7it4crjqitgh2fa8jf3u Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1207';
20240729@091419.3187 qav1ln7it4crjqitgh2fa8jf3u Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1207';

20240729@115220.1824 gi380ub118q67afai2odtua4i6 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1208';
20240729@115220.2690 gi380ub118q67afai2odtua4i6 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1208';
20240729@115220.3616 gi380ub118q67afai2odtua4i6 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1208';
20240729@115220.3739 gi380ub118q67afai2odtua4i6 Query : use flama_phc
20240729@115220.3744 gi380ub118q67afai2odtua4i6 Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240729@115220.4511 gi380ub118q67afai2odtua4i6 Query : use flama_phc
20240729@115220.4517 gi380ub118q67afai2odtua4i6 Query : select no, estab,szadrsdesc from szadrs where u_coddest=7254
20240729@115220.4627 gi380ub118q67afai2odtua4i6 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'
20240729@115220.4865 gi380ub118q67afai2odtua4i6 Query : use flama_phc
20240729@115220.4870 gi380ub118q67afai2odtua4i6 Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20240729@115220.4914 gi380ub118q67afai2odtua4i6 Query : use flama_phc
20240729@115220.4919 gi380ub118q67afai2odtua4i6 Query : select top 1 1 valor from td where td.ndoc = 39
20240729@115220.4986 gi380ub118q67afai2odtua4i6 Query : use flama_phc
20240729@115220.4991 gi380ub118q67afai2odtua4i6 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')
20240729@115220.5124 gi380ub118q67afai2odtua4i6 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
20240729@115220.5253 gi380ub118q67afai2odtua4i6 Query : use flama_phc
20240729@115220.5258 gi380ub118q67afai2odtua4i6 Query : select top 1 ~inactivo valor from cl where no = '101621' and estab = 0 order by inactivo desc
20240729@115220.5532 gi380ub118q67afai2odtua4i6 Query : use flama_phc
20240729@115220.5537 gi380ub118q67afai2odtua4i6 Query : select top 1 tipodoc,regrd from td where ndoc = 39
20240729@115220.5608 gi380ub118q67afai2odtua4i6 Query : use flama_phc
20240729@115220.5613 gi380ub118q67afai2odtua4i6 Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20240729@115220.5724 gi380ub118q67afai2odtua4i6 Query : use flama_phc
20240729@115220.5729 gi380ub118q67afai2odtua4i6 Query : select szadrsstamp valor from szadrs where szadrsdesc='j.o.m alverca'
20240729@115220.5809 gi380ub118q67afai2odtua4i6 Query : use flama_phc
20240729@115220.5813 gi380ub118q67afai2odtua4i6 Query : select 1 valor from td where ndoc = 39
20240729@115220.5832 gi380ub118q67afai2odtua4i6 Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20240729@115220.5865 gi380ub118q67afai2odtua4i6 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240729@115220.6271 gi380ub118q67afai2odtua4i6 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20240729@115220.6329 gi380ub118q67afai2odtua4i6 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240729@115220.6347 gi380ub118q67afai2odtua4i6 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20240729@115220.6391 gi380ub118q67afai2odtua4i6 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240729@115220.6416 gi380ub118q67afai2odtua4i6 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20240729@115220.6432 gi380ub118q67afai2odtua4i6 Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240729@115220.6520 gi380ub118q67afai2odtua4i6 Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240729@115220.6548 gi380ub118q67afai2odtua4i6 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240729@115220.6567 gi380ub118q67afai2odtua4i6 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20240729@115220.6599 gi380ub118q67afai2odtua4i6 Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut66a772486166a774649d' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20240729@115220.7145 gi380ub118q67afai2odtua4i6 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240729@115220.7167 gi380ub118q67afai2odtua4i6 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20240729@115220.7212 gi380ub118q67afai2odtua4i6 Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20240729@115220.7229 gi380ub118q67afai2odtua4i6 Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20240729@115220.7244 gi380ub118q67afai2odtua4i6 Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20240729@115220.7259 gi380ub118q67afai2odtua4i6 Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20240729@115220.7275 gi380ub118q67afai2odtua4i6 Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20240729@115220.7290 gi380ub118q67afai2odtua4i6 Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20240729@115220.7305 gi380ub118q67afai2odtua4i6 Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut66a772486166a774649d',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20240729@115220.8445 gi380ub118q67afai2odtua4i6 Query : select top 1 fno valor from wsftdata order by fno desc
20240729@115220.8595 gi380ub118q67afai2odtua4i6 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240729@115220.8637 gi380ub118q67afai2odtua4i6 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20240729@115220.8702 gi380ub118q67afai2odtua4i6 Query : select 'normal' from dummy
20240729@115220.8742 gi380ub118q67afai2odtua4i6 Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut66a772486166a774649d',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',56,101621,0,'2024-07-29',39,'euro',0,0,2024 ,?,?)
20240729@115220.9371 gi380ub118q67afai2odtua4i6 Query : use flama_phc
20240729@115220.9375 gi380ub118q67afai2odtua4i6 Query : select st.usalote valor from st where st.ref = '327.8253.00.1'
20240729@115220.9410 gi380ub118q67afai2odtua4i6 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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'
20240729@115220.9595 gi380ub118q67afai2odtua4i6 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240729@115220.9617 gi380ub118q67afai2odtua4i6 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240729@115220.9653 gi380ub118q67afai2odtua4i6 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240729@115220.9672 gi380ub118q67afai2odtua4i6 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240729@115220.9682 gi380ub118q67afai2odtua4i6 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240729@115220.9736 gi380ub118q67afai2odtua4i6 Query : select sestamp valor from se where ref ='327.8253.00.1' and lote = 'r2400072300a'
20240729@115220.9766 gi380ub118q67afai2odtua4i6 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240729@115220.9784 gi380ub118q67afai2odtua4i6 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240729@115220.9798 gi380ub118q67afai2odtua4i6 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66a777181066a77464ee','aut66a772486166a774649d' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240729@115220.9826 gi380ub118q67afai2odtua4i6 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240729@115220.9843 gi380ub118q67afai2odtua4i6 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240729@115220.9883 gi380ub118q67afai2odtua4i6 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem) values ('aut66a777181066a77464ee',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',1.000 ,'aut66a772486166a774649d' ,0,0 ,2,23.00,10000,?,?,?,?)
20240729@115221.4040 gi380ub118q67afai2odtua4i6 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240729@115221.4410 gi380ub118q67afai2odtua4i6 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240729@115221.4850 gi380ub118q67afai2odtua4i6 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240729@115221.5000 gi380ub118q67afai2odtua4i6 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240729@115221.5120 gi380ub118q67afai2odtua4i6 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240729@115221.5280 gi380ub118q67afai2odtua4i6 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240729@115221.5500 gi380ub118q67afai2odtua4i6 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240729@115221.5640 gi380ub118q67afai2odtua4i6 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66a771232666a774650c','aut66a772486166a774649d' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240729@115221.5700 gi380ub118q67afai2odtua4i6 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240729@115221.5960 gi380ub118q67afai2odtua4i6 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240729@115221.6290 gi380ub118q67afai2odtua4i6 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66a771232666a774650c',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66a772486166a774649d' ,0,0 ,2,23.00,20000,?,?,?)
20240729@115221.9340 gi380ub118q67afai2odtua4i6 Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut66a772486166a774649d','2405003','wait',39,'adm09112754980.682000002')
20240729@115221.1028 gi380ub118q67afai2odtua4i6 Query : use flama_phc
20240729@115221.1032 gi380ub118q67afai2odtua4i6 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240729@115221.1070 gi380ub118q67afai2odtua4i6 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1208';
20240729@115221.1099 gi380ub118q67afai2odtua4i6 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1208';
20240729@115221.1150 gi380ub118q67afai2odtua4i6 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1208';
20240729@115221.1180 gi380ub118q67afai2odtua4i6 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1208';

20240729@154243.6333 n0019mdlu022lchilir78agbu2 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1209';
20240729@154243.6396 n0019mdlu022lchilir78agbu2 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1209';
20240729@154243.6422 n0019mdlu022lchilir78agbu2 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1209';
20240729@154243.6461 n0019mdlu022lchilir78agbu2 Query : use flama_phc
20240729@154243.6465 n0019mdlu022lchilir78agbu2 Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240729@154243.6573 n0019mdlu022lchilir78agbu2 Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.1816.00.1'
20240729@154243.6699 n0019mdlu022lchilir78agbu2 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 = 2400284 and bi.ref ='324.1816.00.1' and bi.lordem =20000
20240729@154243.7334 n0019mdlu022lchilir78agbu2 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 = 'cps24031433743,966000002 ' 
20240729@154243.7714 n0019mdlu022lchilir78agbu2 Query : use flama_phc
20240729@154243.7718 n0019mdlu022lchilir78agbu2 Query : select top 1 1 valor from ts where ts.ndos = 61
20240729@154243.7830 n0019mdlu022lchilir78agbu2 Query : use flama_phc
20240729@154243.7834 n0019mdlu022lchilir78agbu2 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')
20240729@154243.7917 n0019mdlu022lchilir78agbu2 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
20240729@154243.8086 n0019mdlu022lchilir78agbu2 Query : use flama_phc
20240729@154243.8090 n0019mdlu022lchilir78agbu2 Query : select top 1 ~inactivo valor from fl where no = '202133' and estab = 00 order by inactivo desc
20240729@154243.8241 n0019mdlu022lchilir78agbu2 Query : use flama_phc
20240729@154243.8245 n0019mdlu022lchilir78agbu2 Query : select 1 valor from ts where ndos = 61
20240729@154243.8334 n0019mdlu022lchilir78agbu2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240729@154243.8629 n0019mdlu022lchilir78agbu2 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bo' and documentnumber = 61
20240729@154243.8695 n0019mdlu022lchilir78agbu2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240729@154243.8716 n0019mdlu022lchilir78agbu2 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bo2' and documentnumber = 61
20240729@154243.8730 n0019mdlu022lchilir78agbu2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240729@154243.8748 n0019mdlu022lchilir78agbu2 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bo3' and documentnumber = 61
20240729@154243.8760 n0019mdlu022lchilir78agbu2 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
20240729@154243.8928 n0019mdlu022lchilir78agbu2 Query : select top 1 bo.obrano valor from bo bo where bo.ndos = 61 and boano=2024 order by obrano desc
20240729@154243.9039 n0019mdlu022lchilir78agbu2 Query : select top 1 bo.obrano valor from bo bo where bo.ndos = 61 and boano=2024 order by obrano desc
20240729@154243.9063 n0019mdlu022lchilir78agbu2 Query : use flama_phc
20240729@154243.9072 n0019mdlu022lchilir78agbu2 Query : select top 1 no,estab,nome, morada, local,codpost,ncont,pncont,pais,inactivo,motiseimp,codmotiseimp from fl where no='202133' and estab=00
20240729@154243.9172 n0019mdlu022lchilir78agbu2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240729@154243.9193 n0019mdlu022lchilir78agbu2 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bo3' and documentnumber = 61
20240729@154243.9231 n0019mdlu022lchilir78agbu2 Query : insert into bo3 (bo3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66a7a3312466a7aa63dd',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut')
20240729@154243.9289 n0019mdlu022lchilir78agbu2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240729@154243.9307 n0019mdlu022lchilir78agbu2 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bo2' and documentnumber = 61
20240729@154243.9321 n0019mdlu022lchilir78agbu2 Query : insert into bo2 (bo2stamp, tiposaft, idserie,cambio,cambiofixo,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66a7a3312466a7aa63dd','--','bo',7.8635437881873727087 ,1,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut')
20240729@154243.9512 n0019mdlu022lchilir78agbu2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240729@154243.9533 n0019mdlu022lchilir78agbu2 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bo' and documentnumber = 61
20240729@154243.9547 n0019mdlu022lchilir78agbu2 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 ('aut66a7a3312466a7aa63dd','guia r. fornecedor','2024-07-29',61,2402248,?,?,?,?,?,?,?,?,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')
20240729@154244.4100 n0019mdlu022lchilir78agbu2 Query : use flama_phc
20240729@154244.4140 n0019mdlu022lchilir78agbu2 Query : select st.usalote valor from st where st.ref = '324.1816.00.1'
20240729@154244.5430 n0019mdlu022lchilir78agbu2 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.1816.00.1'
20240729@154244.6800 n0019mdlu022lchilir78agbu2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240729@154244.6970 n0019mdlu022lchilir78agbu2 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 61
20240729@154244.7120 n0019mdlu022lchilir78agbu2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240729@154244.7290 n0019mdlu022lchilir78agbu2 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 61
20240729@154244.7390 n0019mdlu022lchilir78agbu2 Query : select sestamp valor from se where ref ='324.1816.00.1' and lote = 'r2400284200a'
20240729@154244.1081 n0019mdlu022lchilir78agbu2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240729@154244.1194 n0019mdlu022lchilir78agbu2 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'se' and documentnumber = 0
20240729@154244.1205 n0019mdlu022lchilir78agbu2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240729@154244.1221 n0019mdlu022lchilir78agbu2 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'se' and documentnumber = 0
20240729@154244.1234 n0019mdlu022lchilir78agbu2 Query : insert into se (sestamp,ref, lote, data,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66a7a5337666a7aa641d',?,?,'20240729',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut;','aut;')
20240729@154244.2091 n0019mdlu022lchilir78agbu2 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240729@154244.2302 n0019mdlu022lchilir78agbu2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240729@154244.2321 n0019mdlu022lchilir78agbu2 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 61
20240729@154244.2334 n0019mdlu022lchilir78agbu2 Query : insert into bi2 (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut66a7a9852966a7aa6438','aut66a7a3312466a7aa63dd',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 = 'aut66a7a3312466a7aa63dd'
20240729@154244.2521 n0019mdlu022lchilir78agbu2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240729@154244.2543 n0019mdlu022lchilir78agbu2 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 61
20240729@154244.2566 n0019mdlu022lchilir78agbu2 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 'aut66a7a9852966a7aa6438',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut',bo.obrano, 1404, 1404*.0000000 ,bo.no, bo.estab,bo.nmdos ,bo.ndos, bo.obranome,bo.fechada, bo.dataobra ,bo.dataobra ,bo.dataopen,bo.datafecho,bo.local, bo.morada ,bo.codpost, bo.nome,bo.bostamp,10000 ,24.55,24.55*200.48,24.55,24.55*200.48 ,0,0,'un ','' ,bo.marcada,1 ,24.55*1404,24.55*1404*200.48 ,26.215000,26.215000*200.48 ,26.215000,26.215000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,24.55,24.55*200.48,24.55*1404,24.55*1404*200.48,'cps24031433743,966000002 ',193.05,193.05*1404,193.05,193.05*1404,?,?,?,4 from bo bo where bo.bostamp = 'aut66a7a3312466a7aa63dd'
20240729@154250.1625 n0019mdlu022lchilir78agbu2 Query : use flama_phc
20240729@154250.1648 n0019mdlu022lchilir78agbu2 Query : declare @bostamp varchar(25) = 'aut66a7a3312466a7aa63dd' ,@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 
20240729@154302.5432 n0019mdlu022lchilir78agbu2 Query : use flama_phc
20240729@154302.5435 n0019mdlu022lchilir78agbu2 Query : select 1 valor from bo where bo.bostamp = 'aut66a7a3312466a7aa63dd'
20240729@154302.5702 n0019mdlu022lchilir78agbu2 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) = 'aut66a7a3312466a7aa63dd' 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 
20240729@154302.8238 n0019mdlu022lchilir78agbu2 Query : use flama_phc
20240729@154302.8242 n0019mdlu022lchilir78agbu2 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240729@154302.8298 n0019mdlu022lchilir78agbu2 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1209';
20240729@154302.8324 n0019mdlu022lchilir78agbu2 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1209';

20240729@182924.2171 lktif50152t7afdus9f71bi2v5 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1210';
20240729@182924.2241 lktif50152t7afdus9f71bi2v5 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1210';
20240729@182924.2326 lktif50152t7afdus9f71bi2v5 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1210';
20240729@182924.2525 lktif50152t7afdus9f71bi2v5 Query : use flama_phc
20240729@182924.2529 lktif50152t7afdus9f71bi2v5 Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240729@182924.2615 lktif50152t7afdus9f71bi2v5 Query : use flama_phc
20240729@182924.2618 lktif50152t7afdus9f71bi2v5 Query : select no, estab,szadrsdesc from szadrs where u_coddest=8748
20240729@182924.2705 lktif50152t7afdus9f71bi2v5 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'
20240729@182924.2898 lktif50152t7afdus9f71bi2v5 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 = 2404975 and bi.ref ='304.4320.00.1' and bi.lordem =1
20240729@182924.3229 lktif50152t7afdus9f71bi2v5 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'
20240729@182924.3402 lktif50152t7afdus9f71bi2v5 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 = 2404975 and bi.ref ='324.4421.00.1' and bi.lordem =2
20240729@182924.3937 lktif50152t7afdus9f71bi2v5 Query : use flama_phc
20240729@182924.3940 lktif50152t7afdus9f71bi2v5 Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20240729@182924.4154 lktif50152t7afdus9f71bi2v5 Query : use flama_phc
20240729@182924.4158 lktif50152t7afdus9f71bi2v5 Query : select top 1 1 valor from td where td.ndoc = 39
20240729@182924.4262 lktif50152t7afdus9f71bi2v5 Query : use flama_phc
20240729@182924.4265 lktif50152t7afdus9f71bi2v5 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')
20240729@182924.4305 lktif50152t7afdus9f71bi2v5 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
20240729@182924.4447 lktif50152t7afdus9f71bi2v5 Query : use flama_phc
20240729@182924.4450 lktif50152t7afdus9f71bi2v5 Query : select top 1 ~inactivo valor from cl where no = '102253' and estab = 0 order by inactivo desc
20240729@182924.4578 lktif50152t7afdus9f71bi2v5 Query : use flama_phc
20240729@182924.4583 lktif50152t7afdus9f71bi2v5 Query : select top 1 tipodoc,regrd from td where ndoc = 39
20240729@182924.4683 lktif50152t7afdus9f71bi2v5 Query : use flama_phc
20240729@182924.4688 lktif50152t7afdus9f71bi2v5 Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20240729@182924.4778 lktif50152t7afdus9f71bi2v5 Query : use flama_phc
20240729@182924.4782 lktif50152t7afdus9f71bi2v5 Query : select szadrsstamp valor from szadrs where szadrsdesc='fnac - entrega'
20240729@182924.4851 lktif50152t7afdus9f71bi2v5 Query : use flama_phc
20240729@182924.4855 lktif50152t7afdus9f71bi2v5 Query : select 1 valor from td where ndoc = 39
20240729@182924.4937 lktif50152t7afdus9f71bi2v5 Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20240729@182924.5083 lktif50152t7afdus9f71bi2v5 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240729@182924.5227 lktif50152t7afdus9f71bi2v5 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20240729@182924.5265 lktif50152t7afdus9f71bi2v5 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240729@182924.5286 lktif50152t7afdus9f71bi2v5 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20240729@182924.5327 lktif50152t7afdus9f71bi2v5 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240729@182924.5346 lktif50152t7afdus9f71bi2v5 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20240729@182924.5364 lktif50152t7afdus9f71bi2v5 Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240729@182924.5644 lktif50152t7afdus9f71bi2v5 Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240729@182924.5767 lktif50152t7afdus9f71bi2v5 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240729@182924.5788 lktif50152t7afdus9f71bi2v5 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20240729@182924.5829 lktif50152t7afdus9f71bi2v5 Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut66a7d7760266a7d17482' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20240729@182924.6173 lktif50152t7afdus9f71bi2v5 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240729@182924.6194 lktif50152t7afdus9f71bi2v5 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20240729@182924.6237 lktif50152t7afdus9f71bi2v5 Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20240729@182924.6349 lktif50152t7afdus9f71bi2v5 Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20240729@182924.6438 lktif50152t7afdus9f71bi2v5 Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20240729@182924.6531 lktif50152t7afdus9f71bi2v5 Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20240729@182924.6615 lktif50152t7afdus9f71bi2v5 Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20240729@182924.6698 lktif50152t7afdus9f71bi2v5 Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20240729@182924.6777 lktif50152t7afdus9f71bi2v5 Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut66a7d7760266a7d17482',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20240729@182924.7296 lktif50152t7afdus9f71bi2v5 Query : select top 1 fno valor from wsftdata order by fno desc
20240729@182924.7389 lktif50152t7afdus9f71bi2v5 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240729@182924.7409 lktif50152t7afdus9f71bi2v5 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20240729@182924.7440 lktif50152t7afdus9f71bi2v5 Query : select 'normal' from dummy
20240729@182924.7490 lktif50152t7afdus9f71bi2v5 Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut66a7d7760266a7d17482',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',57,102253,0,'2024-07-29',39,'euro',0,0,2024 ,?,?)
20240729@182924.9263 lktif50152t7afdus9f71bi2v5 Query : use flama_phc
20240729@182924.9267 lktif50152t7afdus9f71bi2v5 Query : select st.usalote valor from st where st.ref = '304.4320.00.1'
20240729@182924.9298 lktif50152t7afdus9f71bi2v5 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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'
20240729@182924.9474 lktif50152t7afdus9f71bi2v5 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240729@182924.9491 lktif50152t7afdus9f71bi2v5 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240729@182924.9526 lktif50152t7afdus9f71bi2v5 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240729@182924.9540 lktif50152t7afdus9f71bi2v5 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240729@182924.9594 lktif50152t7afdus9f71bi2v5 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240729@182924.9613 lktif50152t7afdus9f71bi2v5 Query : select sestamp valor from se where ref ='304.4320.00.1' and lote = '240897'
20240729@182924.9636 lktif50152t7afdus9f71bi2v5 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240729@182924.9653 lktif50152t7afdus9f71bi2v5 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240729@182924.9666 lktif50152t7afdus9f71bi2v5 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66a7d9345566a7d174eb','aut66a7d7760266a7d17482' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240729@182924.9801 lktif50152t7afdus9f71bi2v5 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240729@182924.9829 lktif50152t7afdus9f71bi2v5 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240729@182924.9866 lktif50152t7afdus9f71bi2v5 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66a7d9345566a7d174eb',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',12.000 ,'aut66a7d7760266a7d17482' ,0,0 ,2,23.00,10000,?,?,?,?,?)
20240729@182925.1404 lktif50152t7afdus9f71bi2v5 Query : use flama_phc
20240729@182925.1408 lktif50152t7afdus9f71bi2v5 Query : select st.usalote valor from st where st.ref = '324.4421.00.1'
20240729@182925.1432 lktif50152t7afdus9f71bi2v5 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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'
20240729@182925.1595 lktif50152t7afdus9f71bi2v5 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240729@182925.1613 lktif50152t7afdus9f71bi2v5 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240729@182925.1643 lktif50152t7afdus9f71bi2v5 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240729@182925.1663 lktif50152t7afdus9f71bi2v5 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240729@182925.1672 lktif50152t7afdus9f71bi2v5 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240729@182925.1686 lktif50152t7afdus9f71bi2v5 Query : select sestamp valor from se where ref ='324.4421.00.1' and lote = 'r2100324100a'
20240729@182925.1709 lktif50152t7afdus9f71bi2v5 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240729@182925.1725 lktif50152t7afdus9f71bi2v5 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240729@182925.1740 lktif50152t7afdus9f71bi2v5 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66a7d5543966a7d17529','aut66a7d7760266a7d17482' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240729@182925.1745 lktif50152t7afdus9f71bi2v5 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240729@182925.1762 lktif50152t7afdus9f71bi2v5 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240729@182925.1797 lktif50152t7afdus9f71bi2v5 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66a7d5543966a7d17529',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',3.000 ,'aut66a7d7760266a7d17482' ,0,0 ,2,23.00,20000,?,?,?,?,?)
20240729@182925.2078 lktif50152t7afdus9f71bi2v5 Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut66a7d7760266a7d17482','2404975','wait',39,'adm09112754980.682000002')
20240729@182925.2178 lktif50152t7afdus9f71bi2v5 Query : use flama_phc
20240729@182925.2183 lktif50152t7afdus9f71bi2v5 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240729@182925.2214 lktif50152t7afdus9f71bi2v5 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1210';
20240729@182925.2241 lktif50152t7afdus9f71bi2v5 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1210';
20240729@182925.2276 lktif50152t7afdus9f71bi2v5 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1210';
20240729@182925.2300 lktif50152t7afdus9f71bi2v5 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1210';
20240729@182925.2888 j7thmlvji82rruqjr8o8nk6ap6 Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240729@182925.2901 j7thmlvji82rruqjr8o8nk6ap6 Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240729@182925.2954 j7thmlvji82rruqjr8o8nk6ap6 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1211';
20240729@182925.3023 j7thmlvji82rruqjr8o8nk6ap6 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1211';
20240729@182925.3075 j7thmlvji82rruqjr8o8nk6ap6 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1211';
20240729@182925.3099 j7thmlvji82rruqjr8o8nk6ap6 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1211';
20240729@182925.3150 j7thmlvji82rruqjr8o8nk6ap6 Query : use flama_phc
20240729@182925.3153 j7thmlvji82rruqjr8o8nk6ap6 Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240729@182925.3230 j7thmlvji82rruqjr8o8nk6ap6 Query : use flama_phc
20240729@182925.3233 j7thmlvji82rruqjr8o8nk6ap6 Query : select no, estab,szadrsdesc from szadrs where u_coddest=8748
20240729@182925.3274 j7thmlvji82rruqjr8o8nk6ap6 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.4990.00.1'
20240729@182925.3438 j7thmlvji82rruqjr8o8nk6ap6 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 = 2404976 and bi.ref ='324.4990.00.1' and bi.lordem =1
20240729@182925.3755 j7thmlvji82rruqjr8o8nk6ap6 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'
20240729@182925.3778 j7thmlvji82rruqjr8o8nk6ap6 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 = 2404976 and bi.ref ='324.4421.00.1' and bi.lordem =2
20240729@182925.4112 j7thmlvji82rruqjr8o8nk6ap6 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.4902.00.1'
20240729@182925.4282 j7thmlvji82rruqjr8o8nk6ap6 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 = 2404976 and bi.ref ='324.4902.00.1' and bi.lordem =3
20240729@182925.4608 j7thmlvji82rruqjr8o8nk6ap6 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'
20240729@182925.4769 j7thmlvji82rruqjr8o8nk6ap6 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 = 2404976 and bi.ref ='324.4960.00.1' and bi.lordem =4
20240729@182925.5103 j7thmlvji82rruqjr8o8nk6ap6 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'
20240729@182925.5264 j7thmlvji82rruqjr8o8nk6ap6 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 = 2404976 and bi.ref ='324.4906.00.1' and bi.lordem =5
20240729@182925.7063 j7thmlvji82rruqjr8o8nk6ap6 Query : use flama_phc
20240729@182925.7067 j7thmlvji82rruqjr8o8nk6ap6 Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20240729@182925.7107 j7thmlvji82rruqjr8o8nk6ap6 Query : use flama_phc
20240729@182925.7113 j7thmlvji82rruqjr8o8nk6ap6 Query : select top 1 1 valor from td where td.ndoc = 39
20240729@182925.7150 j7thmlvji82rruqjr8o8nk6ap6 Query : use flama_phc
20240729@182925.7154 j7thmlvji82rruqjr8o8nk6ap6 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')
20240729@182925.7187 j7thmlvji82rruqjr8o8nk6ap6 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
20240729@182925.7227 j7thmlvji82rruqjr8o8nk6ap6 Query : use flama_phc
20240729@182925.7232 j7thmlvji82rruqjr8o8nk6ap6 Query : select top 1 ~inactivo valor from cl where no = '102253' and estab = 0 order by inactivo desc
20240729@182925.7265 j7thmlvji82rruqjr8o8nk6ap6 Query : use flama_phc
20240729@182925.7269 j7thmlvji82rruqjr8o8nk6ap6 Query : select top 1 tipodoc,regrd from td where ndoc = 39
20240729@182925.7309 j7thmlvji82rruqjr8o8nk6ap6 Query : use flama_phc
20240729@182925.7314 j7thmlvji82rruqjr8o8nk6ap6 Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20240729@182925.7367 j7thmlvji82rruqjr8o8nk6ap6 Query : use flama_phc
20240729@182925.7370 j7thmlvji82rruqjr8o8nk6ap6 Query : select szadrsstamp valor from szadrs where szadrsdesc='fnac - entrega'
20240729@182925.7426 j7thmlvji82rruqjr8o8nk6ap6 Query : use flama_phc
20240729@182925.7429 j7thmlvji82rruqjr8o8nk6ap6 Query : select 1 valor from td where ndoc = 39
20240729@182925.7446 j7thmlvji82rruqjr8o8nk6ap6 Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20240729@182925.7466 j7thmlvji82rruqjr8o8nk6ap6 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240729@182925.7486 j7thmlvji82rruqjr8o8nk6ap6 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20240729@182925.7509 j7thmlvji82rruqjr8o8nk6ap6 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240729@182925.7529 j7thmlvji82rruqjr8o8nk6ap6 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20240729@182926.1530 j7thmlvji82rruqjr8o8nk6ap6 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240729@182926.1690 j7thmlvji82rruqjr8o8nk6ap6 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20240729@182926.1830 j7thmlvji82rruqjr8o8nk6ap6 Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240729@182926.2590 j7thmlvji82rruqjr8o8nk6ap6 Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240729@182926.2730 j7thmlvji82rruqjr8o8nk6ap6 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240729@182926.2890 j7thmlvji82rruqjr8o8nk6ap6 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20240729@182926.3050 j7thmlvji82rruqjr8o8nk6ap6 Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut66a7d3687666a7d17604' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20240729@182926.4740 j7thmlvji82rruqjr8o8nk6ap6 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240729@182926.4920 j7thmlvji82rruqjr8o8nk6ap6 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20240729@182926.5270 j7thmlvji82rruqjr8o8nk6ap6 Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20240729@182926.5400 j7thmlvji82rruqjr8o8nk6ap6 Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20240729@182926.5530 j7thmlvji82rruqjr8o8nk6ap6 Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20240729@182926.5680 j7thmlvji82rruqjr8o8nk6ap6 Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20240729@182926.5820 j7thmlvji82rruqjr8o8nk6ap6 Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20240729@182926.5960 j7thmlvji82rruqjr8o8nk6ap6 Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20240729@182926.6130 j7thmlvji82rruqjr8o8nk6ap6 Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut66a7d3687666a7d17604',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20240729@182926.8550 j7thmlvji82rruqjr8o8nk6ap6 Query : select top 1 fno valor from wsftdata order by fno desc
20240729@182926.8730 j7thmlvji82rruqjr8o8nk6ap6 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240729@182926.8900 j7thmlvji82rruqjr8o8nk6ap6 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20240729@182926.9140 j7thmlvji82rruqjr8o8nk6ap6 Query : select 'normal' from dummy
20240729@182926.9300 j7thmlvji82rruqjr8o8nk6ap6 Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut66a7d3687666a7d17604',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',58,102253,0,'2024-07-29',39,'euro',0,0,2024 ,?,?)
20240729@182926.1221 j7thmlvji82rruqjr8o8nk6ap6 Query : use flama_phc
20240729@182926.1225 j7thmlvji82rruqjr8o8nk6ap6 Query : select st.usalote valor from st where st.ref = '324.4990.00.1'
20240729@182926.1247 j7thmlvji82rruqjr8o8nk6ap6 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.4990.00.1'
20240729@182926.1398 j7thmlvji82rruqjr8o8nk6ap6 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240729@182926.1415 j7thmlvji82rruqjr8o8nk6ap6 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240729@182926.1443 j7thmlvji82rruqjr8o8nk6ap6 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240729@182926.1459 j7thmlvji82rruqjr8o8nk6ap6 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240729@182926.1469 j7thmlvji82rruqjr8o8nk6ap6 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240729@182926.1485 j7thmlvji82rruqjr8o8nk6ap6 Query : select sestamp valor from se where ref ='324.4990.00.1' and lote = 'r2100189200a'
20240729@182926.1509 j7thmlvji82rruqjr8o8nk6ap6 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240729@182926.1532 j7thmlvji82rruqjr8o8nk6ap6 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240729@182926.1545 j7thmlvji82rruqjr8o8nk6ap6 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66a7d3806966a7d17624','aut66a7d3687666a7d17604' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240729@182926.1549 j7thmlvji82rruqjr8o8nk6ap6 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240729@182926.1564 j7thmlvji82rruqjr8o8nk6ap6 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240729@182926.1598 j7thmlvji82rruqjr8o8nk6ap6 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66a7d3806966a7d17624',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',2.000 ,'aut66a7d3687666a7d17604' ,0,0 ,2,23.00,10000,?,?,?,?,?)
20240729@182926.1885 j7thmlvji82rruqjr8o8nk6ap6 Query : use flama_phc
20240729@182926.1888 j7thmlvji82rruqjr8o8nk6ap6 Query : select st.usalote valor from st where st.ref = '324.4421.00.1'
20240729@182926.1908 j7thmlvji82rruqjr8o8nk6ap6 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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'
20240729@182926.1922 j7thmlvji82rruqjr8o8nk6ap6 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240729@182926.1939 j7thmlvji82rruqjr8o8nk6ap6 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240729@182926.1967 j7thmlvji82rruqjr8o8nk6ap6 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240729@182926.1984 j7thmlvji82rruqjr8o8nk6ap6 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240729@182926.1994 j7thmlvji82rruqjr8o8nk6ap6 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240729@182926.2008 j7thmlvji82rruqjr8o8nk6ap6 Query : select sestamp valor from se where ref ='324.4421.00.1' and lote = 'r2100324100a'
20240729@182926.2023 j7thmlvji82rruqjr8o8nk6ap6 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240729@182926.2040 j7thmlvji82rruqjr8o8nk6ap6 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240729@182926.2053 j7thmlvji82rruqjr8o8nk6ap6 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66a7d5445666a7d17631','aut66a7d3687666a7d17604' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240729@182926.2058 j7thmlvji82rruqjr8o8nk6ap6 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240729@182926.2072 j7thmlvji82rruqjr8o8nk6ap6 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240729@182926.2107 j7thmlvji82rruqjr8o8nk6ap6 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66a7d5445666a7d17631',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',3.000 ,'aut66a7d3687666a7d17604' ,0,0 ,2,23.00,20000,?,?,?,?,?)
