20240729@183002.1512 mebnro8fvubhbpb7k4d2gu83pj Query : use flama_phc
20240729@183002.1524 mebnro8fvubhbpb7k4d2gu83pj Query : select st.usalote valor from st where st.ref = '324.1879.00.1'
20240729@183002.1554 mebnro8fvubhbpb7k4d2gu83pj Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.1879.00.1'
20240729@183002.1573 mebnro8fvubhbpb7k4d2gu83pj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240729@183002.1598 mebnro8fvubhbpb7k4d2gu83pj Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240729@183002.1640 mebnro8fvubhbpb7k4d2gu83pj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240729@183002.1665 mebnro8fvubhbpb7k4d2gu83pj Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240729@183002.1679 mebnro8fvubhbpb7k4d2gu83pj Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240729@183002.1699 mebnro8fvubhbpb7k4d2gu83pj Query : select sestamp valor from se where ref ='324.1879.00.1' and lote = 'r2300643200a'
20240729@183002.1728 mebnro8fvubhbpb7k4d2gu83pj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240729@183002.1756 mebnro8fvubhbpb7k4d2gu83pj Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240729@183002.1792 mebnro8fvubhbpb7k4d2gu83pj Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66a7d6265266a7d19a2a','aut66a7d4909766a7d199aa' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240729@183002.1799 mebnro8fvubhbpb7k4d2gu83pj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240729@183002.1833 mebnro8fvubhbpb7k4d2gu83pj Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240729@183002.1893 mebnro8fvubhbpb7k4d2gu83pj Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66a7d6265266a7d19a2a',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',8.000 ,'aut66a7d4909766a7d199aa' ,0,0 ,2,23.00,40000,?,?,?,?,?)
20240729@183002.2294 mebnro8fvubhbpb7k4d2gu83pj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240729@183002.2332 mebnro8fvubhbpb7k4d2gu83pj Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240729@183002.2410 mebnro8fvubhbpb7k4d2gu83pj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240729@183002.2450 mebnro8fvubhbpb7k4d2gu83pj Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240729@183002.2462 mebnro8fvubhbpb7k4d2gu83pj Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240729@183002.2484 mebnro8fvubhbpb7k4d2gu83pj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240729@183002.2915 mebnro8fvubhbpb7k4d2gu83pj Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240729@183002.2960 mebnro8fvubhbpb7k4d2gu83pj Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66a7d1612766a7d19a3c','aut66a7d4909766a7d199aa' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240729@183002.2966 mebnro8fvubhbpb7k4d2gu83pj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240729@183002.3094 mebnro8fvubhbpb7k4d2gu83pj Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240729@183002.4355 mebnro8fvubhbpb7k4d2gu83pj Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66a7d1612766a7d19a3c',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66a7d4909766a7d199aa' ,0,0 ,2,23.00,50000,?,?,?)
20240729@183002.4802 mebnro8fvubhbpb7k4d2gu83pj Query : use flama_phc
20240729@183002.4808 mebnro8fvubhbpb7k4d2gu83pj Query : select st.usalote valor from st where st.ref = '324.1847.00.1'
20240729@183002.4841 mebnro8fvubhbpb7k4d2gu83pj Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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.1847.00.1'
20240729@183002.4860 mebnro8fvubhbpb7k4d2gu83pj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240729@183002.4898 mebnro8fvubhbpb7k4d2gu83pj Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240729@183002.4946 mebnro8fvubhbpb7k4d2gu83pj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240729@183002.4986 mebnro8fvubhbpb7k4d2gu83pj Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240729@183002.5004 mebnro8fvubhbpb7k4d2gu83pj Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240729@183002.5023 mebnro8fvubhbpb7k4d2gu83pj Query : select sestamp valor from se where ref ='324.1847.00.1' and lote = 'r2400288100a'
20240729@183002.5051 mebnro8fvubhbpb7k4d2gu83pj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240729@183002.5085 mebnro8fvubhbpb7k4d2gu83pj Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240729@183002.5101 mebnro8fvubhbpb7k4d2gu83pj Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66a7d3260966a7d19a7b','aut66a7d4909766a7d199aa' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240729@183002.5106 mebnro8fvubhbpb7k4d2gu83pj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240729@183002.5129 mebnro8fvubhbpb7k4d2gu83pj Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240729@183002.5181 mebnro8fvubhbpb7k4d2gu83pj Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66a7d3260966a7d19a7b',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',5.000 ,'aut66a7d4909766a7d199aa' ,0,0 ,2,23.00,70000,?,?,?,?,?)
20240729@183002.5544 mebnro8fvubhbpb7k4d2gu83pj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240729@183002.5566 mebnro8fvubhbpb7k4d2gu83pj Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240729@183002.5610 mebnro8fvubhbpb7k4d2gu83pj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240729@183002.5633 mebnro8fvubhbpb7k4d2gu83pj Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240729@183002.5643 mebnro8fvubhbpb7k4d2gu83pj Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240729@183002.5671 mebnro8fvubhbpb7k4d2gu83pj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240729@183002.5699 mebnro8fvubhbpb7k4d2gu83pj Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240729@183002.5718 mebnro8fvubhbpb7k4d2gu83pj Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66a7d9639166a7d19a8a','aut66a7d4909766a7d199aa' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240729@183002.5723 mebnro8fvubhbpb7k4d2gu83pj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240729@183002.5748 mebnro8fvubhbpb7k4d2gu83pj Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240729@183002.5799 mebnro8fvubhbpb7k4d2gu83pj Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66a7d9639166a7d19a8a',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66a7d4909766a7d199aa' ,0,0 ,2,23.00,80000,?,?,?)
20240729@183002.6100 mebnro8fvubhbpb7k4d2gu83pj Query : use flama_phc
20240729@183002.6109 mebnro8fvubhbpb7k4d2gu83pj Query : select st.usalote valor from st where st.ref = '324.1805.00.1'
20240729@183002.6129 mebnro8fvubhbpb7k4d2gu83pj Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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.1805.00.1'
20240729@183002.6314 mebnro8fvubhbpb7k4d2gu83pj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240729@183002.6347 mebnro8fvubhbpb7k4d2gu83pj Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240729@183002.6398 mebnro8fvubhbpb7k4d2gu83pj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240729@183002.6422 mebnro8fvubhbpb7k4d2gu83pj Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240729@183002.6440 mebnro8fvubhbpb7k4d2gu83pj Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240729@183002.6459 mebnro8fvubhbpb7k4d2gu83pj Query : select sestamp valor from se where ref ='324.1805.00.1' and lote = 'r2400290200a'
20240729@183002.6478 mebnro8fvubhbpb7k4d2gu83pj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240729@183002.6504 mebnro8fvubhbpb7k4d2gu83pj Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240729@183002.6524 mebnro8fvubhbpb7k4d2gu83pj Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66a7d3587366a7d19a9e','aut66a7d4909766a7d199aa' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240729@183002.6528 mebnro8fvubhbpb7k4d2gu83pj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240729@183002.6552 mebnro8fvubhbpb7k4d2gu83pj Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240729@183002.6598 mebnro8fvubhbpb7k4d2gu83pj Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66a7d3587366a7d19a9e',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',5.000 ,'aut66a7d4909766a7d199aa' ,0,0 ,2,23.00,100000,?,?,?,?,?)
20240729@183002.6928 mebnro8fvubhbpb7k4d2gu83pj Query : use flama_phc
20240729@183002.6934 mebnro8fvubhbpb7k4d2gu83pj Query : select st.usalote valor from st where st.ref = '324.1879.00.1'
20240729@183002.6967 mebnro8fvubhbpb7k4d2gu83pj Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.1879.00.1'
20240729@183002.6988 mebnro8fvubhbpb7k4d2gu83pj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240729@183002.7017 mebnro8fvubhbpb7k4d2gu83pj Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240729@183002.7067 mebnro8fvubhbpb7k4d2gu83pj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240729@183002.7087 mebnro8fvubhbpb7k4d2gu83pj Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240729@183002.7103 mebnro8fvubhbpb7k4d2gu83pj Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240729@183002.7132 mebnro8fvubhbpb7k4d2gu83pj Query : select sestamp valor from se where ref ='324.1879.00.1' and lote = 'r2300643200a'
20240729@183002.7160 mebnro8fvubhbpb7k4d2gu83pj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240729@183002.7228 mebnro8fvubhbpb7k4d2gu83pj Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240729@183002.7246 mebnro8fvubhbpb7k4d2gu83pj Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66a7d6680366a7d19aae','aut66a7d4909766a7d199aa' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240729@183002.7253 mebnro8fvubhbpb7k4d2gu83pj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240729@183002.7329 mebnro8fvubhbpb7k4d2gu83pj Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240729@183002.7382 mebnro8fvubhbpb7k4d2gu83pj Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66a7d6680366a7d19aae',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',2.000 ,'aut66a7d4909766a7d199aa' ,0,0 ,2,23.00,110000,?,?,?,?,?)
20240729@183002.7730 mebnro8fvubhbpb7k4d2gu83pj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240729@183002.7752 mebnro8fvubhbpb7k4d2gu83pj Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240729@183002.7799 mebnro8fvubhbpb7k4d2gu83pj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240729@183002.7822 mebnro8fvubhbpb7k4d2gu83pj Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240729@183002.7834 mebnro8fvubhbpb7k4d2gu83pj Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240729@183002.7861 mebnro8fvubhbpb7k4d2gu83pj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240729@183002.7884 mebnro8fvubhbpb7k4d2gu83pj Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240729@183002.7900 mebnro8fvubhbpb7k4d2gu83pj Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66a7d5240866a7d19abf','aut66a7d4909766a7d199aa' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240729@183002.7905 mebnro8fvubhbpb7k4d2gu83pj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240729@183002.7925 mebnro8fvubhbpb7k4d2gu83pj Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240729@183002.7976 mebnro8fvubhbpb7k4d2gu83pj Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66a7d5240866a7d19abf',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66a7d4909766a7d199aa' ,0,0 ,2,23.00,120000,?,?,?)
20240729@183002.8314 mebnro8fvubhbpb7k4d2gu83pj Query : use flama_phc
20240729@183002.8320 mebnro8fvubhbpb7k4d2gu83pj Query : select st.usalote valor from st where st.ref = '324.728.00.01'
20240729@183002.8355 mebnro8fvubhbpb7k4d2gu83pj Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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.728.00.01'
20240729@183002.8545 mebnro8fvubhbpb7k4d2gu83pj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240729@183002.8573 mebnro8fvubhbpb7k4d2gu83pj Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240729@183002.8621 mebnro8fvubhbpb7k4d2gu83pj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240729@183002.8653 mebnro8fvubhbpb7k4d2gu83pj Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240729@183002.8672 mebnro8fvubhbpb7k4d2gu83pj Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240729@183002.8722 mebnro8fvubhbpb7k4d2gu83pj Query : select sestamp valor from se where ref ='324.728.00.01' and lote = 'r2400238200a'
20240729@183002.8742 mebnro8fvubhbpb7k4d2gu83pj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240729@183002.8769 mebnro8fvubhbpb7k4d2gu83pj Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240729@183002.8788 mebnro8fvubhbpb7k4d2gu83pj Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66a7d4259266a7d19ad5','aut66a7d4909766a7d199aa' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240729@183002.8794 mebnro8fvubhbpb7k4d2gu83pj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240729@183002.8816 mebnro8fvubhbpb7k4d2gu83pj Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240729@183002.8876 mebnro8fvubhbpb7k4d2gu83pj Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66a7d4259266a7d19ad5',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',4.000 ,'aut66a7d4909766a7d199aa' ,0,0 ,2,23.00,140000,?,?,?,?,?)
20240729@183002.9254 mebnro8fvubhbpb7k4d2gu83pj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240729@183002.9273 mebnro8fvubhbpb7k4d2gu83pj Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240729@183002.9326 mebnro8fvubhbpb7k4d2gu83pj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240729@183002.9344 mebnro8fvubhbpb7k4d2gu83pj Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240729@183002.9362 mebnro8fvubhbpb7k4d2gu83pj Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240729@183002.9382 mebnro8fvubhbpb7k4d2gu83pj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240729@183002.9405 mebnro8fvubhbpb7k4d2gu83pj Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240729@183002.9422 mebnro8fvubhbpb7k4d2gu83pj Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66a7d3757666a7d19ae5','aut66a7d4909766a7d199aa' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240729@183002.9426 mebnro8fvubhbpb7k4d2gu83pj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240729@183002.9444 mebnro8fvubhbpb7k4d2gu83pj Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240729@183002.9482 mebnro8fvubhbpb7k4d2gu83pj Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66a7d3757666a7d19ae5',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66a7d4909766a7d199aa' ,0,0 ,2,23.00,150000,?,?,?)
20240729@183002.9802 mebnro8fvubhbpb7k4d2gu83pj Query : use flama_phc
20240729@183002.9806 mebnro8fvubhbpb7k4d2gu83pj Query : select st.usalote valor from st where st.ref = '324.729.00.01'
20240729@183002.9832 mebnro8fvubhbpb7k4d2gu83pj Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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.729.00.01'
20240729@183003.4400 mebnro8fvubhbpb7k4d2gu83pj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240729@183003.9000 mebnro8fvubhbpb7k4d2gu83pj Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240729@183003.1380 mebnro8fvubhbpb7k4d2gu83pj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240729@183003.1590 mebnro8fvubhbpb7k4d2gu83pj Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240729@183003.1690 mebnro8fvubhbpb7k4d2gu83pj Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240729@183003.1860 mebnro8fvubhbpb7k4d2gu83pj Query : select sestamp valor from se where ref ='324.729.00.01' and lote = 'r2400238100a'
20240729@183003.2050 mebnro8fvubhbpb7k4d2gu83pj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240729@183003.2270 mebnro8fvubhbpb7k4d2gu83pj Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240729@183003.2600 mebnro8fvubhbpb7k4d2gu83pj Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66a7d0671066a7d19b05','aut66a7d4909766a7d199aa' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240729@183003.2660 mebnro8fvubhbpb7k4d2gu83pj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240729@183003.2880 mebnro8fvubhbpb7k4d2gu83pj Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240729@183003.1680 mebnro8fvubhbpb7k4d2gu83pj Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66a7d0671066a7d19b05',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',4.000 ,'aut66a7d4909766a7d199aa' ,0,0 ,2,23.00,170000,?,?,?,?,?)
20240729@183003.2001 mebnro8fvubhbpb7k4d2gu83pj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240729@183003.2022 mebnro8fvubhbpb7k4d2gu83pj Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240729@183003.2070 mebnro8fvubhbpb7k4d2gu83pj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240729@183003.2093 mebnro8fvubhbpb7k4d2gu83pj Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240729@183003.2105 mebnro8fvubhbpb7k4d2gu83pj Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240729@183003.2129 mebnro8fvubhbpb7k4d2gu83pj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240729@183003.2146 mebnro8fvubhbpb7k4d2gu83pj Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240729@183003.2165 mebnro8fvubhbpb7k4d2gu83pj Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66a7d6190766a7d19b33','aut66a7d4909766a7d199aa' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240729@183003.2169 mebnro8fvubhbpb7k4d2gu83pj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240729@183003.2192 mebnro8fvubhbpb7k4d2gu83pj Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240729@183003.2232 mebnro8fvubhbpb7k4d2gu83pj Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66a7d6190766a7d19b33',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66a7d4909766a7d199aa' ,0,0 ,2,23.00,180000,?,?,?)
20240729@183003.2559 mebnro8fvubhbpb7k4d2gu83pj Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut66a7d4909766a7d199aa','2405064','wait',39,'adm09112754980.682000002')
20240729@183003.2644 mebnro8fvubhbpb7k4d2gu83pj Query : use flama_phc
20240729@183003.2650 mebnro8fvubhbpb7k4d2gu83pj Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240729@183003.2682 mebnro8fvubhbpb7k4d2gu83pj Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1248';
20240729@183003.3037 mebnro8fvubhbpb7k4d2gu83pj Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1248';
20240729@183003.5331 mebnro8fvubhbpb7k4d2gu83pj Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1248';
20240729@183003.5401 mebnro8fvubhbpb7k4d2gu83pj Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1248';
20240729@183003.6101 5c2jpk3bbesdarn458k47d43qk Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240729@183003.6113 5c2jpk3bbesdarn458k47d43qk Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240729@183003.6180 5c2jpk3bbesdarn458k47d43qk Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1249';
20240729@183003.6239 5c2jpk3bbesdarn458k47d43qk Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1249';
20240729@183003.6310 5c2jpk3bbesdarn458k47d43qk Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1249';
20240729@183003.6376 5c2jpk3bbesdarn458k47d43qk Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1249';
20240729@183003.6706 5c2jpk3bbesdarn458k47d43qk Query : use flama_phc
20240729@183003.6714 5c2jpk3bbesdarn458k47d43qk Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240729@183003.6814 5c2jpk3bbesdarn458k47d43qk Query : use flama_phc
20240729@183003.6827 5c2jpk3bbesdarn458k47d43qk Query : select no, estab,szadrsdesc from szadrs where u_coddest=2138
20240729@183003.6887 5c2jpk3bbesdarn458k47d43qk Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.686.00.01'
20240729@183003.7102 5c2jpk3bbesdarn458k47d43qk 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 = 2405065 and bi.ref ='324.686.00.01' and bi.lordem =1
20240729@183003.7539 5c2jpk3bbesdarn458k47d43qk Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.679.00.01'
20240729@183003.7753 5c2jpk3bbesdarn458k47d43qk 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 = 2405065 and bi.ref ='324.679.00.01' and bi.lordem =2
20240729@183003.8425 5c2jpk3bbesdarn458k47d43qk Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1705.00.1'
20240729@183003.8625 5c2jpk3bbesdarn458k47d43qk 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 = 2405065 and bi.ref ='324.1705.00.1' and bi.lordem =3
20240729@183003.9028 5c2jpk3bbesdarn458k47d43qk Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.649.00.01'
20240729@183003.9231 5c2jpk3bbesdarn458k47d43qk 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 = 2405065 and bi.ref ='324.649.00.01' and bi.lordem =4
20240729@183003.9673 5c2jpk3bbesdarn458k47d43qk Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.675.00.01'
20240729@183003.9865 5c2jpk3bbesdarn458k47d43qk 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 = 2405065 and bi.ref ='324.675.00.01' and bi.lordem =5
20240729@183004.2580 5c2jpk3bbesdarn458k47d43qk 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'
20240729@183004.4780 5c2jpk3bbesdarn458k47d43qk 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 = 2405065 and bi.ref ='324.1461.00.1' and bi.lordem =6
20240729@183004.9890 5c2jpk3bbesdarn458k47d43qk Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.728.00.01'
20240729@183004.1019 5c2jpk3bbesdarn458k47d43qk 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 = 2405065 and bi.ref ='324.728.00.01' and bi.lordem =7
20240729@183004.1980 5c2jpk3bbesdarn458k47d43qk Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.729.00.01'
20240729@183004.2472 5c2jpk3bbesdarn458k47d43qk 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 = 2405065 and bi.ref ='324.729.00.01' and bi.lordem =8
20240729@183004.3073 5c2jpk3bbesdarn458k47d43qk Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.4970.00.1'
20240729@183004.3096 5c2jpk3bbesdarn458k47d43qk 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 = 2405065 and bi.ref ='324.4970.00.1' and bi.lordem =9
20240729@183004.3520 5c2jpk3bbesdarn458k47d43qk Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.649.00.01'
20240729@183004.3551 5c2jpk3bbesdarn458k47d43qk 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 = 2405065 and bi.ref ='324.649.00.01' and bi.lordem =10
20240729@183004.4069 5c2jpk3bbesdarn458k47d43qk Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.728.00.01'
20240729@183004.4106 5c2jpk3bbesdarn458k47d43qk 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 = 2405065 and bi.ref ='324.728.00.01' and bi.lordem =11
20240729@183004.4843 5c2jpk3bbesdarn458k47d43qk Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.729.00.01'
20240729@183004.4877 5c2jpk3bbesdarn458k47d43qk 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 = 2405065 and bi.ref ='324.729.00.01' and bi.lordem =12
20240729@183004.5293 5c2jpk3bbesdarn458k47d43qk Query : use flama_phc
20240729@183004.5298 5c2jpk3bbesdarn458k47d43qk Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20240729@183004.5370 5c2jpk3bbesdarn458k47d43qk Query : use flama_phc
20240729@183004.5376 5c2jpk3bbesdarn458k47d43qk Query : select top 1 1 valor from td where td.ndoc = 39
20240729@183004.5414 5c2jpk3bbesdarn458k47d43qk Query : use flama_phc
20240729@183004.5417 5c2jpk3bbesdarn458k47d43qk 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@183004.5455 5c2jpk3bbesdarn458k47d43qk 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@183004.5513 5c2jpk3bbesdarn458k47d43qk Query : use flama_phc
20240729@183004.5574 5c2jpk3bbesdarn458k47d43qk Query : select top 1 ~inactivo valor from cl where no = '100404' and estab = 0 order by inactivo desc
20240729@183004.5630 5c2jpk3bbesdarn458k47d43qk Query : use flama_phc
20240729@183004.5635 5c2jpk3bbesdarn458k47d43qk Query : select top 1 tipodoc,regrd from td where ndoc = 39
20240729@183004.5690 5c2jpk3bbesdarn458k47d43qk Query : use flama_phc
20240729@183004.5692 5c2jpk3bbesdarn458k47d43qk Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20240729@183004.5746 5c2jpk3bbesdarn458k47d43qk Query : use flama_phc
20240729@183004.5750 5c2jpk3bbesdarn458k47d43qk Query : select szadrsstamp valor from szadrs where szadrsdesc='bitranlis, agentes transitára'
20240729@183004.5854 5c2jpk3bbesdarn458k47d43qk Query : use flama_phc
20240729@183004.5948 5c2jpk3bbesdarn458k47d43qk Query : select 1 valor from td where ndoc = 39
20240729@183004.5975 5c2jpk3bbesdarn458k47d43qk Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20240729@183004.5992 5c2jpk3bbesdarn458k47d43qk Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240729@183004.6020 5c2jpk3bbesdarn458k47d43qk Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20240729@183004.6053 5c2jpk3bbesdarn458k47d43qk Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240729@183004.6078 5c2jpk3bbesdarn458k47d43qk Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20240729@183004.6112 5c2jpk3bbesdarn458k47d43qk Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240729@183004.6132 5c2jpk3bbesdarn458k47d43qk Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20240729@183004.6149 5c2jpk3bbesdarn458k47d43qk Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240729@183004.6240 5c2jpk3bbesdarn458k47d43qk Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240729@183004.6256 5c2jpk3bbesdarn458k47d43qk Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240729@183004.6276 5c2jpk3bbesdarn458k47d43qk Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20240729@183004.6294 5c2jpk3bbesdarn458k47d43qk Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut66a7d9959566a7d19c96' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20240729@183004.6496 5c2jpk3bbesdarn458k47d43qk Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240729@183004.6515 5c2jpk3bbesdarn458k47d43qk Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20240729@183004.6558 5c2jpk3bbesdarn458k47d43qk Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20240729@183004.6579 5c2jpk3bbesdarn458k47d43qk Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20240729@183004.6592 5c2jpk3bbesdarn458k47d43qk Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20240729@183004.6606 5c2jpk3bbesdarn458k47d43qk Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20240729@183004.6619 5c2jpk3bbesdarn458k47d43qk Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20240729@183004.6633 5c2jpk3bbesdarn458k47d43qk Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20240729@183004.6646 5c2jpk3bbesdarn458k47d43qk Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut66a7d9959566a7d19c96',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20240729@183004.6935 5c2jpk3bbesdarn458k47d43qk Query : select top 1 fno valor from wsftdata order by fno desc
20240729@183004.6962 5c2jpk3bbesdarn458k47d43qk Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240729@183004.6981 5c2jpk3bbesdarn458k47d43qk Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20240729@183004.7273 5c2jpk3bbesdarn458k47d43qk Query : select 'normal' from dummy
20240729@183004.7291 5c2jpk3bbesdarn458k47d43qk Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut66a7d9959566a7d19c96',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',92,100404,0,'2024-07-29',39,'euro',0,0,2024 ,?,?)
20240729@183004.7633 5c2jpk3bbesdarn458k47d43qk Query : use flama_phc
20240729@183004.7636 5c2jpk3bbesdarn458k47d43qk Query : select st.usalote valor from st where st.ref = '324.686.00.01'
20240729@183004.7661 5c2jpk3bbesdarn458k47d43qk Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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.686.00.01'
20240729@183004.7831 5c2jpk3bbesdarn458k47d43qk Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240729@183004.7850 5c2jpk3bbesdarn458k47d43qk Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240729@183004.7892 5c2jpk3bbesdarn458k47d43qk Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240729@183004.7911 5c2jpk3bbesdarn458k47d43qk Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240729@183004.7922 5c2jpk3bbesdarn458k47d43qk Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240729@183004.7941 5c2jpk3bbesdarn458k47d43qk Query : select sestamp valor from se where ref ='324.686.00.01' and lote = 'r2400127100a'
20240729@183004.7957 5c2jpk3bbesdarn458k47d43qk Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240729@183004.7982 5c2jpk3bbesdarn458k47d43qk Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240729@183004.7999 5c2jpk3bbesdarn458k47d43qk Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66a7d1643566a7d19cc2','aut66a7d9959566a7d19c96' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240729@183004.8004 5c2jpk3bbesdarn458k47d43qk Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240729@183004.8021 5c2jpk3bbesdarn458k47d43qk Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240729@183004.8058 5c2jpk3bbesdarn458k47d43qk Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66a7d1643566a7d19cc2',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',1.000 ,'aut66a7d9959566a7d19c96' ,0,0 ,2,23.00,10000,?,?,?,?,?)
20240729@183004.8709 5c2jpk3bbesdarn458k47d43qk Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240729@183004.8734 5c2jpk3bbesdarn458k47d43qk Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240729@183004.8764 5c2jpk3bbesdarn458k47d43qk Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240729@183004.8783 5c2jpk3bbesdarn458k47d43qk Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240729@183004.8795 5c2jpk3bbesdarn458k47d43qk Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240729@183004.8809 5c2jpk3bbesdarn458k47d43qk Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240729@183004.8830 5c2jpk3bbesdarn458k47d43qk Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240729@183004.8842 5c2jpk3bbesdarn458k47d43qk Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66a7d0449166a7d19cd7','aut66a7d9959566a7d19c96' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240729@183004.8847 5c2jpk3bbesdarn458k47d43qk Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240729@183004.8905 5c2jpk3bbesdarn458k47d43qk Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240729@183004.8976 5c2jpk3bbesdarn458k47d43qk Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66a7d0449166a7d19cd7',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66a7d9959566a7d19c96' ,0,0 ,2,23.00,20000,?,?,?)
20240729@183004.9368 5c2jpk3bbesdarn458k47d43qk Query : use flama_phc
20240729@183004.9375 5c2jpk3bbesdarn458k47d43qk Query : select st.usalote valor from st where st.ref = '324.679.00.01'
20240729@183004.9405 5c2jpk3bbesdarn458k47d43qk Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.679.00.01'
20240729@183004.9582 5c2jpk3bbesdarn458k47d43qk Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240729@183004.9607 5c2jpk3bbesdarn458k47d43qk Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240729@183004.9653 5c2jpk3bbesdarn458k47d43qk Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240729@183004.9671 5c2jpk3bbesdarn458k47d43qk Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240729@183004.9690 5c2jpk3bbesdarn458k47d43qk Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240729@183004.9706 5c2jpk3bbesdarn458k47d43qk Query : select sestamp valor from se where ref ='324.679.00.01' and lote = 'r2400282100a'
20240729@183004.9722 5c2jpk3bbesdarn458k47d43qk Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240729@183004.9833 5c2jpk3bbesdarn458k47d43qk Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240729@183004.9851 5c2jpk3bbesdarn458k47d43qk Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66a7d5465166a7d19ced','aut66a7d9959566a7d19c96' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240729@183004.9856 5c2jpk3bbesdarn458k47d43qk Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240729@183004.9904 5c2jpk3bbesdarn458k47d43qk Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240729@183004.9947 5c2jpk3bbesdarn458k47d43qk Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66a7d5465166a7d19ced',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',1.000 ,'aut66a7d9959566a7d19c96' ,0,0 ,2,23.00,40000,?,?,?,?,?)
20240729@183005.2650 5c2jpk3bbesdarn458k47d43qk Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240729@183005.2860 5c2jpk3bbesdarn458k47d43qk Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240729@183005.3210 5c2jpk3bbesdarn458k47d43qk Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240729@183005.3490 5c2jpk3bbesdarn458k47d43qk Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240729@183005.4240 5c2jpk3bbesdarn458k47d43qk Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240729@183005.4440 5c2jpk3bbesdarn458k47d43qk Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240729@183005.4680 5c2jpk3bbesdarn458k47d43qk Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240729@183005.4830 5c2jpk3bbesdarn458k47d43qk Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66a7d7427466a7d19d0a','aut66a7d9959566a7d19c96' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240729@183005.4880 5c2jpk3bbesdarn458k47d43qk Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240729@183005.5070 5c2jpk3bbesdarn458k47d43qk Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240729@183005.5490 5c2jpk3bbesdarn458k47d43qk Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66a7d7427466a7d19d0a',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66a7d9959566a7d19c96' ,0,0 ,2,23.00,50000,?,?,?)
20240729@183005.8640 5c2jpk3bbesdarn458k47d43qk Query : use flama_phc
20240729@183005.8680 5c2jpk3bbesdarn458k47d43qk Query : select st.usalote valor from st where st.ref = '324.1705.00.1'
20240729@183005.8930 5c2jpk3bbesdarn458k47d43qk Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.1705.00.1'
20240729@183005.1072 5c2jpk3bbesdarn458k47d43qk Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240729@183005.1093 5c2jpk3bbesdarn458k47d43qk Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240729@183005.1131 5c2jpk3bbesdarn458k47d43qk Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240729@183005.1151 5c2jpk3bbesdarn458k47d43qk Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240729@183005.1353 5c2jpk3bbesdarn458k47d43qk Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240729@183005.1373 5c2jpk3bbesdarn458k47d43qk Query : select sestamp valor from se where ref ='324.1705.00.1' and lote = 'r2400050500a'
20240729@183005.1425 5c2jpk3bbesdarn458k47d43qk Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240729@183005.1444 5c2jpk3bbesdarn458k47d43qk Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240729@183005.1457 5c2jpk3bbesdarn458k47d43qk Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66a7d6478266a7d19d22','aut66a7d9959566a7d19c96' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240729@183005.1463 5c2jpk3bbesdarn458k47d43qk Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240729@183005.1484 5c2jpk3bbesdarn458k47d43qk Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240729@183005.1530 5c2jpk3bbesdarn458k47d43qk Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66a7d6478266a7d19d22',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',4.000 ,'aut66a7d9959566a7d19c96' ,0,0 ,2,23.00,70000,?,?,?,?,?)
20240729@183005.1848 5c2jpk3bbesdarn458k47d43qk Query : use flama_phc
20240729@183005.1852 5c2jpk3bbesdarn458k47d43qk Query : select st.usalote valor from st where st.ref = '324.649.00.01'
20240729@183005.1878 5c2jpk3bbesdarn458k47d43qk Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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.649.00.01'
20240729@183005.2130 5c2jpk3bbesdarn458k47d43qk Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240729@183005.2149 5c2jpk3bbesdarn458k47d43qk Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240729@183005.2185 5c2jpk3bbesdarn458k47d43qk Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240729@183005.2205 5c2jpk3bbesdarn458k47d43qk Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240729@183005.2222 5c2jpk3bbesdarn458k47d43qk Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240729@183005.2239 5c2jpk3bbesdarn458k47d43qk Query : select sestamp valor from se where ref ='324.649.00.01' and lote = 'r2400277200a'
20240729@183005.2254 5c2jpk3bbesdarn458k47d43qk Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240729@183005.2278 5c2jpk3bbesdarn458k47d43qk Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240729@183005.2292 5c2jpk3bbesdarn458k47d43qk Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66a7d2524066a7d19d37','aut66a7d9959566a7d19c96' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240729@183005.2297 5c2jpk3bbesdarn458k47d43qk Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240729@183005.2313 5c2jpk3bbesdarn458k47d43qk Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240729@183005.2376 5c2jpk3bbesdarn458k47d43qk Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66a7d2524066a7d19d37',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',1.000 ,'aut66a7d9959566a7d19c96' ,0,0 ,2,23.00,80000,?,?,?,?,?)
20240729@183005.2661 5c2jpk3bbesdarn458k47d43qk Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240729@183005.2683 5c2jpk3bbesdarn458k47d43qk Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240729@183005.2722 5c2jpk3bbesdarn458k47d43qk Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240729@183005.2746 5c2jpk3bbesdarn458k47d43qk Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240729@183005.2760 5c2jpk3bbesdarn458k47d43qk Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240729@183005.2778 5c2jpk3bbesdarn458k47d43qk Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240729@183005.2800 5c2jpk3bbesdarn458k47d43qk Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240729@183005.2820 5c2jpk3bbesdarn458k47d43qk Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66a7d6262366a7d19d43','aut66a7d9959566a7d19c96' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240729@183005.2826 5c2jpk3bbesdarn458k47d43qk Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240729@183005.2846 5c2jpk3bbesdarn458k47d43qk Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240729@183005.2884 5c2jpk3bbesdarn458k47d43qk Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66a7d6262366a7d19d43',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66a7d9959566a7d19c96' ,0,0 ,2,23.00,90000,?,?,?)
20240729@183005.3179 5c2jpk3bbesdarn458k47d43qk Query : use flama_phc
20240729@183005.3183 5c2jpk3bbesdarn458k47d43qk Query : select st.usalote valor from st where st.ref = '324.675.00.01'
20240729@183005.3213 5c2jpk3bbesdarn458k47d43qk Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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.675.00.01'
20240729@183005.3402 5c2jpk3bbesdarn458k47d43qk Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240729@183005.3423 5c2jpk3bbesdarn458k47d43qk Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240729@183005.3457 5c2jpk3bbesdarn458k47d43qk Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240729@183005.3482 5c2jpk3bbesdarn458k47d43qk Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240729@183005.3495 5c2jpk3bbesdarn458k47d43qk Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240729@183005.3513 5c2jpk3bbesdarn458k47d43qk Query : select sestamp valor from se where ref ='324.675.00.01' and lote = 'r2400282200a'
20240729@183005.3535 5c2jpk3bbesdarn458k47d43qk Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240729@183005.3556 5c2jpk3bbesdarn458k47d43qk Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240729@183005.3572 5c2jpk3bbesdarn458k47d43qk Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66a7d3187266a7d19d56','aut66a7d9959566a7d19c96' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240729@183005.3577 5c2jpk3bbesdarn458k47d43qk Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240729@183005.3593 5c2jpk3bbesdarn458k47d43qk Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240729@183005.3633 5c2jpk3bbesdarn458k47d43qk Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66a7d3187266a7d19d56',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',1.000 ,'aut66a7d9959566a7d19c96' ,0,0 ,2,23.00,110000,?,?,?,?,?)
20240729@183005.3944 5c2jpk3bbesdarn458k47d43qk Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240729@183005.3965 5c2jpk3bbesdarn458k47d43qk Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240729@183005.4007 5c2jpk3bbesdarn458k47d43qk Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240729@183005.4030 5c2jpk3bbesdarn458k47d43qk Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240729@183005.4043 5c2jpk3bbesdarn458k47d43qk Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240729@183005.4061 5c2jpk3bbesdarn458k47d43qk Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240729@183005.4078 5c2jpk3bbesdarn458k47d43qk Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240729@183005.4092 5c2jpk3bbesdarn458k47d43qk Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66a7d3668866a7d19d63','aut66a7d9959566a7d19c96' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240729@183005.4097 5c2jpk3bbesdarn458k47d43qk Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240729@183005.4117 5c2jpk3bbesdarn458k47d43qk Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240729@183005.4150 5c2jpk3bbesdarn458k47d43qk Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66a7d3668866a7d19d63',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66a7d9959566a7d19c96' ,0,0 ,2,23.00,120000,?,?,?)
20240729@183005.4447 5c2jpk3bbesdarn458k47d43qk Query : use flama_phc
20240729@183005.4452 5c2jpk3bbesdarn458k47d43qk Query : select st.usalote valor from st where st.ref = '324.1461.00.1'
20240729@183005.4539 5c2jpk3bbesdarn458k47d43qk Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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'
20240729@183005.4719 5c2jpk3bbesdarn458k47d43qk Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240729@183005.4748 5c2jpk3bbesdarn458k47d43qk Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240729@183005.4819 5c2jpk3bbesdarn458k47d43qk Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240729@183005.4867 5c2jpk3bbesdarn458k47d43qk Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240729@183005.4899 5c2jpk3bbesdarn458k47d43qk Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240729@183005.4938 5c2jpk3bbesdarn458k47d43qk Query : select sestamp valor from se where ref ='324.1461.00.1' and lote = 'r2100463200a'
20240729@183005.4971 5c2jpk3bbesdarn458k47d43qk Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240729@183005.5018 5c2jpk3bbesdarn458k47d43qk Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240729@183005.5065 5c2jpk3bbesdarn458k47d43qk Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66a7d9682866a7d19d79','aut66a7d9959566a7d19c96' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240729@183005.5071 5c2jpk3bbesdarn458k47d43qk Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240729@183005.5209 5c2jpk3bbesdarn458k47d43qk Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240729@183005.5298 5c2jpk3bbesdarn458k47d43qk Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66a7d9682866a7d19d79',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',1.000 ,'aut66a7d9959566a7d19c96' ,0,0 ,2,23.00,140000,?,?,?,?,?)
20240729@183005.6968 5c2jpk3bbesdarn458k47d43qk Query : use flama_phc
20240729@183005.6985 5c2jpk3bbesdarn458k47d43qk Query : select st.usalote valor from st where st.ref = '324.728.00.01'
20240729@183005.7027 5c2jpk3bbesdarn458k47d43qk Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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.728.00.01'
20240729@183005.7051 5c2jpk3bbesdarn458k47d43qk Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240729@183005.7081 5c2jpk3bbesdarn458k47d43qk Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240729@183005.7153 5c2jpk3bbesdarn458k47d43qk Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240729@183005.7185 5c2jpk3bbesdarn458k47d43qk Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240729@183005.7203 5c2jpk3bbesdarn458k47d43qk Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240729@183005.7249 5c2jpk3bbesdarn458k47d43qk Query : select sestamp valor from se where ref ='324.728.00.01' and lote = 'r2400238200a'
20240729@183005.7277 5c2jpk3bbesdarn458k47d43qk Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240729@183005.7305 5c2jpk3bbesdarn458k47d43qk Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240729@183005.7331 5c2jpk3bbesdarn458k47d43qk Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66a7d1789766a7d19db1','aut66a7d9959566a7d19c96' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240729@183005.7341 5c2jpk3bbesdarn458k47d43qk Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240729@183005.7369 5c2jpk3bbesdarn458k47d43qk Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240729@183005.7437 5c2jpk3bbesdarn458k47d43qk Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66a7d1789766a7d19db1',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',4.000 ,'aut66a7d9959566a7d19c96' ,0,0 ,2,23.00,150000,?,?,?,?,?)
20240729@183005.7832 5c2jpk3bbesdarn458k47d43qk Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240729@183005.7928 5c2jpk3bbesdarn458k47d43qk Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240729@183005.8107 5c2jpk3bbesdarn458k47d43qk Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240729@183005.8283 5c2jpk3bbesdarn458k47d43qk Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240729@183005.8301 5c2jpk3bbesdarn458k47d43qk Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240729@183005.8320 5c2jpk3bbesdarn458k47d43qk Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240729@183005.8345 5c2jpk3bbesdarn458k47d43qk Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240729@183005.8366 5c2jpk3bbesdarn458k47d43qk Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66a7d6960466a7d19dcb','aut66a7d9959566a7d19c96' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240729@183005.8371 5c2jpk3bbesdarn458k47d43qk Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240729@183005.8397 5c2jpk3bbesdarn458k47d43qk Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240729@183005.8448 5c2jpk3bbesdarn458k47d43qk Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66a7d6960466a7d19dcb',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66a7d9959566a7d19c96' ,0,0 ,2,23.00,160000,?,?,?)
20240729@183005.8732 5c2jpk3bbesdarn458k47d43qk Query : use flama_phc
20240729@183005.8736 5c2jpk3bbesdarn458k47d43qk Query : select st.usalote valor from st where st.ref = '324.729.00.01'
20240729@183005.8773 5c2jpk3bbesdarn458k47d43qk Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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.729.00.01'
20240729@183005.8805 5c2jpk3bbesdarn458k47d43qk Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240729@183005.8837 5c2jpk3bbesdarn458k47d43qk Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240729@183005.8910 5c2jpk3bbesdarn458k47d43qk Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240729@183005.9435 5c2jpk3bbesdarn458k47d43qk Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240729@183006.9070 5c2jpk3bbesdarn458k47d43qk Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240729@183006.9350 5c2jpk3bbesdarn458k47d43qk Query : select sestamp valor from se where ref ='324.729.00.01' and lote = 'r2400238100a'
20240729@183006.9600 5c2jpk3bbesdarn458k47d43qk Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240729@183006.9980 5c2jpk3bbesdarn458k47d43qk Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240729@183006.1036 5c2jpk3bbesdarn458k47d43qk Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66a7d3947766a7d19e17','aut66a7d9959566a7d19c96' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240729@183006.1043 5c2jpk3bbesdarn458k47d43qk Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240729@183006.1072 5c2jpk3bbesdarn458k47d43qk Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240729@183006.1146 5c2jpk3bbesdarn458k47d43qk Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66a7d3947766a7d19e17',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',4.000 ,'aut66a7d9959566a7d19c96' ,0,0 ,2,23.00,180000,?,?,?,?,?)
20240729@183006.1464 5c2jpk3bbesdarn458k47d43qk Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240729@183006.1504 5c2jpk3bbesdarn458k47d43qk Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240729@183006.1647 5c2jpk3bbesdarn458k47d43qk Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240729@183006.1852 5c2jpk3bbesdarn458k47d43qk Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240729@183006.1875 5c2jpk3bbesdarn458k47d43qk Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240729@183006.1909 5c2jpk3bbesdarn458k47d43qk Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240729@183006.1952 5c2jpk3bbesdarn458k47d43qk Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240729@183006.1975 5c2jpk3bbesdarn458k47d43qk Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66a7d3182566a7d19e2e','aut66a7d9959566a7d19c96' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240729@183006.1988 5c2jpk3bbesdarn458k47d43qk Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240729@183006.2018 5c2jpk3bbesdarn458k47d43qk Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240729@183006.2095 5c2jpk3bbesdarn458k47d43qk Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66a7d3182566a7d19e2e',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66a7d9959566a7d19c96' ,0,0 ,2,23.00,190000,?,?,?)
20240729@183006.2419 5c2jpk3bbesdarn458k47d43qk Query : use flama_phc
20240729@183006.2429 5c2jpk3bbesdarn458k47d43qk Query : select st.usalote valor from st where st.ref = '324.4970.00.1'
20240729@183006.2473 5c2jpk3bbesdarn458k47d43qk Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.4970.00.1'
20240729@183006.2672 5c2jpk3bbesdarn458k47d43qk Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240729@183006.2699 5c2jpk3bbesdarn458k47d43qk Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240729@183006.2755 5c2jpk3bbesdarn458k47d43qk Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240729@183006.2803 5c2jpk3bbesdarn458k47d43qk Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240729@183006.2821 5c2jpk3bbesdarn458k47d43qk Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240729@183006.2849 5c2jpk3bbesdarn458k47d43qk Query : select sestamp valor from se where ref ='324.4970.00.1' and lote = 'r2400205200a'
20240729@183006.2889 5c2jpk3bbesdarn458k47d43qk Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240729@183006.2924 5c2jpk3bbesdarn458k47d43qk Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240729@183006.2951 5c2jpk3bbesdarn458k47d43qk Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66a7d6634066a7d19e46','aut66a7d9959566a7d19c96' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240729@183006.2956 5c2jpk3bbesdarn458k47d43qk Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240729@183006.3035 5c2jpk3bbesdarn458k47d43qk Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240729@183006.3102 5c2jpk3bbesdarn458k47d43qk Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66a7d6634066a7d19e46',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',4.000 ,'aut66a7d9959566a7d19c96' ,0,0 ,2,23.00,210000,?,?,?,?,?)
20240729@183006.3403 5c2jpk3bbesdarn458k47d43qk Query : use flama_phc
20240729@183006.3407 5c2jpk3bbesdarn458k47d43qk Query : select st.usalote valor from st where st.ref = '324.649.00.01'
20240729@183006.3446 5c2jpk3bbesdarn458k47d43qk Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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.649.00.01'
20240729@183006.3474 5c2jpk3bbesdarn458k47d43qk Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240729@183006.3499 5c2jpk3bbesdarn458k47d43qk Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240729@183006.3627 5c2jpk3bbesdarn458k47d43qk Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240729@183006.3667 5c2jpk3bbesdarn458k47d43qk Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240729@183006.3683 5c2jpk3bbesdarn458k47d43qk Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240729@183006.3706 5c2jpk3bbesdarn458k47d43qk Query : select sestamp valor from se where ref ='324.649.00.01' and lote = 'r2400277200a'
20240729@183006.3736 5c2jpk3bbesdarn458k47d43qk Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240729@183006.3760 5c2jpk3bbesdarn458k47d43qk Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240729@183006.3793 5c2jpk3bbesdarn458k47d43qk Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66a7d1083866a7d19e5b','aut66a7d9959566a7d19c96' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240729@183006.3803 5c2jpk3bbesdarn458k47d43qk Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240729@183006.3838 5c2jpk3bbesdarn458k47d43qk Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240729@183006.3894 5c2jpk3bbesdarn458k47d43qk Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66a7d1083866a7d19e5b',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',1.000 ,'aut66a7d9959566a7d19c96' ,0,0 ,2,23.00,220000,?,?,?,?,?)
20240729@183006.4211 5c2jpk3bbesdarn458k47d43qk Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240729@183006.4238 5c2jpk3bbesdarn458k47d43qk Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240729@183006.4286 5c2jpk3bbesdarn458k47d43qk Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240729@183006.4315 5c2jpk3bbesdarn458k47d43qk Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240729@183006.4335 5c2jpk3bbesdarn458k47d43qk Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240729@183006.4369 5c2jpk3bbesdarn458k47d43qk Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240729@183006.4404 5c2jpk3bbesdarn458k47d43qk Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240729@183006.4425 5c2jpk3bbesdarn458k47d43qk Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66a7d0718366a7d19e6a','aut66a7d9959566a7d19c96' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240729@183006.4435 5c2jpk3bbesdarn458k47d43qk Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240729@183006.4466 5c2jpk3bbesdarn458k47d43qk Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240729@183006.4529 5c2jpk3bbesdarn458k47d43qk Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66a7d0718366a7d19e6a',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66a7d9959566a7d19c96' ,0,0 ,2,23.00,230000,?,?,?)
20240729@183006.4851 5c2jpk3bbesdarn458k47d43qk Query : use flama_phc
20240729@183006.4854 5c2jpk3bbesdarn458k47d43qk Query : select st.usalote valor from st where st.ref = '324.728.00.01'
20240729@183006.4876 5c2jpk3bbesdarn458k47d43qk Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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.728.00.01'
20240729@183006.4890 5c2jpk3bbesdarn458k47d43qk Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240729@183006.4911 5c2jpk3bbesdarn458k47d43qk Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240729@183006.4954 5c2jpk3bbesdarn458k47d43qk Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240729@183006.4970 5c2jpk3bbesdarn458k47d43qk Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240729@183006.4979 5c2jpk3bbesdarn458k47d43qk Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240729@183006.5001 5c2jpk3bbesdarn458k47d43qk Query : select sestamp valor from se where ref ='324.728.00.01' and lote = 'r2400238200a'
20240729@183006.5021 5c2jpk3bbesdarn458k47d43qk Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240729@183006.5040 5c2jpk3bbesdarn458k47d43qk Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240729@183006.5060 5c2jpk3bbesdarn458k47d43qk Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66a7d6732566a7d19e7a','aut66a7d9959566a7d19c96' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240729@183006.5065 5c2jpk3bbesdarn458k47d43qk Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240729@183006.5082 5c2jpk3bbesdarn458k47d43qk Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240729@183006.5125 5c2jpk3bbesdarn458k47d43qk Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66a7d6732566a7d19e7a',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',4.000 ,'aut66a7d9959566a7d19c96' ,0,0 ,2,23.00,250000,?,?,?,?,?)
20240729@183006.5407 5c2jpk3bbesdarn458k47d43qk Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240729@183006.5432 5c2jpk3bbesdarn458k47d43qk Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240729@183006.5477 5c2jpk3bbesdarn458k47d43qk Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240729@183006.5515 5c2jpk3bbesdarn458k47d43qk Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240729@183006.5524 5c2jpk3bbesdarn458k47d43qk Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240729@183006.5549 5c2jpk3bbesdarn458k47d43qk Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240729@183006.5566 5c2jpk3bbesdarn458k47d43qk Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240729@183006.5578 5c2jpk3bbesdarn458k47d43qk Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66a7d9155466a7d19e87','aut66a7d9959566a7d19c96' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240729@183006.5600 5c2jpk3bbesdarn458k47d43qk Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240729@183006.5623 5c2jpk3bbesdarn458k47d43qk Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240729@183006.5654 5c2jpk3bbesdarn458k47d43qk Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66a7d9155466a7d19e87',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66a7d9959566a7d19c96' ,0,0 ,2,23.00,260000,?,?,?)
20240729@183006.5938 5c2jpk3bbesdarn458k47d43qk Query : use flama_phc
20240729@183006.5941 5c2jpk3bbesdarn458k47d43qk Query : select st.usalote valor from st where st.ref = '324.729.00.01'
20240729@183006.5979 5c2jpk3bbesdarn458k47d43qk Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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.729.00.01'
20240729@183006.6012 5c2jpk3bbesdarn458k47d43qk Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240729@183006.6047 5c2jpk3bbesdarn458k47d43qk Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240729@183006.6080 5c2jpk3bbesdarn458k47d43qk Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240729@183006.6123 5c2jpk3bbesdarn458k47d43qk Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240729@183006.6133 5c2jpk3bbesdarn458k47d43qk Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240729@183006.6147 5c2jpk3bbesdarn458k47d43qk Query : select sestamp valor from se where ref ='324.729.00.01' and lote = 'r2400238100a'
20240729@183006.6162 5c2jpk3bbesdarn458k47d43qk Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240729@183006.6201 5c2jpk3bbesdarn458k47d43qk Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240729@183006.6238 5c2jpk3bbesdarn458k47d43qk Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66a7d3128666a7d19e96','aut66a7d9959566a7d19c96' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240729@183006.6243 5c2jpk3bbesdarn458k47d43qk Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240729@183006.6258 5c2jpk3bbesdarn458k47d43qk Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240729@183006.6308 5c2jpk3bbesdarn458k47d43qk Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66a7d3128666a7d19e96',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',4.000 ,'aut66a7d9959566a7d19c96' ,0,0 ,2,23.00,280000,?,?,?,?,?)
20240729@183006.6606 5c2jpk3bbesdarn458k47d43qk Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240729@183006.6628 5c2jpk3bbesdarn458k47d43qk Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240729@183006.6656 5c2jpk3bbesdarn458k47d43qk Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240729@183006.6675 5c2jpk3bbesdarn458k47d43qk Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240729@183006.6708 5c2jpk3bbesdarn458k47d43qk Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240729@183006.6730 5c2jpk3bbesdarn458k47d43qk Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240729@183006.6745 5c2jpk3bbesdarn458k47d43qk Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240729@183006.6768 5c2jpk3bbesdarn458k47d43qk Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66a7d1902666a7d19ea4','aut66a7d9959566a7d19c96' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240729@183006.6800 5c2jpk3bbesdarn458k47d43qk Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240729@183006.6834 5c2jpk3bbesdarn458k47d43qk Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240729@183006.6882 5c2jpk3bbesdarn458k47d43qk Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66a7d1902666a7d19ea4',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66a7d9959566a7d19c96' ,0,0 ,2,23.00,290000,?,?,?)
20240729@183006.7491 5c2jpk3bbesdarn458k47d43qk Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut66a7d9959566a7d19c96','2405065','wait',39,'adm09112754980.682000002')
20240729@183006.8569 5c2jpk3bbesdarn458k47d43qk Query : use flama_phc
20240729@183006.8574 5c2jpk3bbesdarn458k47d43qk Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240729@183006.8611 5c2jpk3bbesdarn458k47d43qk Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1249';
20240729@183006.8661 5c2jpk3bbesdarn458k47d43qk Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1249';
20240729@183006.8701 5c2jpk3bbesdarn458k47d43qk Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1249';
20240729@183006.8764 5c2jpk3bbesdarn458k47d43qk Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1249';
20240729@183006.9877 gmgnkb0abp507gbunin575fkpq Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240729@183006.9889 gmgnkb0abp507gbunin575fkpq Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240729@183006.9964 gmgnkb0abp507gbunin575fkpq Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1250';
20240729@183007.1900 gmgnkb0abp507gbunin575fkpq Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1250';
20240729@183007.7800 gmgnkb0abp507gbunin575fkpq Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1250';
20240729@183007.1280 gmgnkb0abp507gbunin575fkpq Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1250';
20240729@183007.1860 gmgnkb0abp507gbunin575fkpq Query : use flama_phc
20240729@183007.1940 gmgnkb0abp507gbunin575fkpq Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240729@183007.2930 gmgnkb0abp507gbunin575fkpq Query : use flama_phc
20240729@183007.2960 gmgnkb0abp507gbunin575fkpq Query : select no, estab,szadrsdesc from szadrs where u_coddest=2138
20240729@183007.3370 gmgnkb0abp507gbunin575fkpq Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1705.00.1'
20240729@183007.3720 gmgnkb0abp507gbunin575fkpq 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 = 2405066 and bi.ref ='324.1705.00.1' and bi.lordem =1
20240729@183007.7530 gmgnkb0abp507gbunin575fkpq Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1834.00.1'
20240729@183007.7880 gmgnkb0abp507gbunin575fkpq 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 = 2405066 and bi.ref ='324.1834.00.1' and bi.lordem =2
20240729@183007.1117 gmgnkb0abp507gbunin575fkpq 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'
20240729@183007.1283 gmgnkb0abp507gbunin575fkpq 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 = 2405066 and bi.ref ='324.5347.00.1' and bi.lordem =3
20240729@183007.1621 gmgnkb0abp507gbunin575fkpq Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.4723.00.2'
20240729@183007.2019 gmgnkb0abp507gbunin575fkpq 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 = 2405066 and bi.ref ='324.4723.00.2' and bi.lordem =4
20240729@183007.2398 gmgnkb0abp507gbunin575fkpq 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@183007.2434 gmgnkb0abp507gbunin575fkpq 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 = 2405066 and bi.ref ='324.4902.00.1' and bi.lordem =5
20240729@183007.2834 gmgnkb0abp507gbunin575fkpq Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.727.00.01'
20240729@183007.2911 gmgnkb0abp507gbunin575fkpq 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 = 2405066 and bi.ref ='324.727.00.01' and bi.lordem =6
20240729@183007.3359 gmgnkb0abp507gbunin575fkpq Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.4980.00.1'
20240729@183007.3600 gmgnkb0abp507gbunin575fkpq 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 = 2405066 and bi.ref ='324.4980.00.1' and bi.lordem =7
20240729@183007.4247 gmgnkb0abp507gbunin575fkpq Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.4910.00.1'
20240729@183007.4782 gmgnkb0abp507gbunin575fkpq 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 = 2405066 and bi.ref ='324.4910.00.1' and bi.lordem =8
20240729@183007.5888 gmgnkb0abp507gbunin575fkpq Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1847.00.1'
20240729@183007.6596 gmgnkb0abp507gbunin575fkpq 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 = 2405066 and bi.ref ='324.1847.00.1' and bi.lordem =9
20240729@183007.6942 gmgnkb0abp507gbunin575fkpq Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.657.00.01'
20240729@183007.7145 gmgnkb0abp507gbunin575fkpq 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 = 2405066 and bi.ref ='324.657.00.01' and bi.lordem =10
20240729@183007.7489 gmgnkb0abp507gbunin575fkpq Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.728.00.01'
20240729@183007.7583 gmgnkb0abp507gbunin575fkpq 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 = 2405066 and bi.ref ='324.728.00.01' and bi.lordem =11
20240729@183007.7991 gmgnkb0abp507gbunin575fkpq Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.729.00.01'
20240729@183007.8083 gmgnkb0abp507gbunin575fkpq 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 = 2405066 and bi.ref ='324.729.00.01' and bi.lordem =12
20240729@183007.8578 gmgnkb0abp507gbunin575fkpq Query : use flama_phc
20240729@183007.8584 gmgnkb0abp507gbunin575fkpq Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20240729@183007.8671 gmgnkb0abp507gbunin575fkpq Query : use flama_phc
20240729@183007.8675 gmgnkb0abp507gbunin575fkpq Query : select top 1 1 valor from td where td.ndoc = 39
20240729@183007.8716 gmgnkb0abp507gbunin575fkpq Query : use flama_phc
20240729@183007.8743 gmgnkb0abp507gbunin575fkpq 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@183007.8843 gmgnkb0abp507gbunin575fkpq 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@183007.8908 gmgnkb0abp507gbunin575fkpq Query : use flama_phc
20240729@183007.8914 gmgnkb0abp507gbunin575fkpq Query : select top 1 ~inactivo valor from cl where no = '100404' and estab = 0 order by inactivo desc
20240729@183007.9082 gmgnkb0abp507gbunin575fkpq Query : use flama_phc
20240729@183007.9090 gmgnkb0abp507gbunin575fkpq Query : select top 1 tipodoc,regrd from td where ndoc = 39
20240729@183007.9135 gmgnkb0abp507gbunin575fkpq Query : use flama_phc
20240729@183007.9144 gmgnkb0abp507gbunin575fkpq Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20240729@183007.9245 gmgnkb0abp507gbunin575fkpq Query : use flama_phc
20240729@183007.9264 gmgnkb0abp507gbunin575fkpq Query : select szadrsstamp valor from szadrs where szadrsdesc='bitranlis, agentes transitára'
20240729@183007.9434 gmgnkb0abp507gbunin575fkpq Query : use flama_phc
20240729@183007.9461 gmgnkb0abp507gbunin575fkpq Query : select 1 valor from td where ndoc = 39
20240729@183007.9560 gmgnkb0abp507gbunin575fkpq Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20240729@183007.9924 gmgnkb0abp507gbunin575fkpq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240729@183008.2520 gmgnkb0abp507gbunin575fkpq Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20240729@183008.7630 gmgnkb0abp507gbunin575fkpq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240729@183008.8420 gmgnkb0abp507gbunin575fkpq Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20240729@183008.9370 gmgnkb0abp507gbunin575fkpq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240729@183008.9670 gmgnkb0abp507gbunin575fkpq Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20240729@183008.1026 gmgnkb0abp507gbunin575fkpq Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240729@183008.1114 gmgnkb0abp507gbunin575fkpq Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240729@183008.1143 gmgnkb0abp507gbunin575fkpq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240729@183008.1172 gmgnkb0abp507gbunin575fkpq Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20240729@183008.1205 gmgnkb0abp507gbunin575fkpq Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut66a7d7353766a7d1a019' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20240729@183008.1417 gmgnkb0abp507gbunin575fkpq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240729@183008.1449 gmgnkb0abp507gbunin575fkpq Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20240729@183008.1532 gmgnkb0abp507gbunin575fkpq Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20240729@183008.1558 gmgnkb0abp507gbunin575fkpq Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20240729@183008.1654 gmgnkb0abp507gbunin575fkpq Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20240729@183008.1696 gmgnkb0abp507gbunin575fkpq Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20240729@183008.1752 gmgnkb0abp507gbunin575fkpq Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20240729@183008.1805 gmgnkb0abp507gbunin575fkpq Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20240729@183008.1862 gmgnkb0abp507gbunin575fkpq Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut66a7d7353766a7d1a019',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20240729@183008.2215 gmgnkb0abp507gbunin575fkpq Query : select top 1 fno valor from wsftdata order by fno desc
20240729@183008.2255 gmgnkb0abp507gbunin575fkpq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240729@183008.2305 gmgnkb0abp507gbunin575fkpq Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20240729@183008.2356 gmgnkb0abp507gbunin575fkpq Query : select 'normal' from dummy
20240729@183008.2423 gmgnkb0abp507gbunin575fkpq Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut66a7d7353766a7d1a019',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',93,100404,0,'2024-07-29',39,'euro',0,0,2024 ,?,?)
20240729@183008.2783 gmgnkb0abp507gbunin575fkpq Query : use flama_phc
20240729@183008.2788 gmgnkb0abp507gbunin575fkpq Query : select st.usalote valor from st where st.ref = '324.1705.00.1'
20240729@183008.2850 gmgnkb0abp507gbunin575fkpq Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.1705.00.1'
20240729@183008.2897 gmgnkb0abp507gbunin575fkpq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240729@183008.2955 gmgnkb0abp507gbunin575fkpq Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240729@183008.3050 gmgnkb0abp507gbunin575fkpq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240729@183008.3384 gmgnkb0abp507gbunin575fkpq Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240729@183008.3417 gmgnkb0abp507gbunin575fkpq Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240729@183008.3436 gmgnkb0abp507gbunin575fkpq Query : select sestamp valor from se where ref ='324.1705.00.1' and lote = 'r2400050500a'
20240729@183008.3457 gmgnkb0abp507gbunin575fkpq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240729@183008.3486 gmgnkb0abp507gbunin575fkpq Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240729@183008.3508 gmgnkb0abp507gbunin575fkpq Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66a7d5599366a7d1a054','aut66a7d7353766a7d1a019' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240729@183008.3516 gmgnkb0abp507gbunin575fkpq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240729@183008.3547 gmgnkb0abp507gbunin575fkpq Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240729@183008.3653 gmgnkb0abp507gbunin575fkpq Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66a7d5599366a7d1a054',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',4.000 ,'aut66a7d7353766a7d1a019' ,0,0 ,2,23.00,10000,?,?,?,?,?)
20240729@183008.3960 gmgnkb0abp507gbunin575fkpq Query : use flama_phc
20240729@183008.3966 gmgnkb0abp507gbunin575fkpq Query : select st.usalote valor from st where st.ref = '324.1834.00.1'
20240729@183008.4050 gmgnkb0abp507gbunin575fkpq Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.1834.00.1'
20240729@183008.4106 gmgnkb0abp507gbunin575fkpq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240729@183008.4191 gmgnkb0abp507gbunin575fkpq Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240729@183008.4282 gmgnkb0abp507gbunin575fkpq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240729@183008.4350 gmgnkb0abp507gbunin575fkpq Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240729@183008.4387 gmgnkb0abp507gbunin575fkpq Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240729@183008.4453 gmgnkb0abp507gbunin575fkpq Query : select sestamp valor from se where ref ='324.1834.00.1' and lote = 'r2301209100a'
20240729@183008.4480 gmgnkb0abp507gbunin575fkpq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240729@183008.4522 gmgnkb0abp507gbunin575fkpq Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240729@183008.4556 gmgnkb0abp507gbunin575fkpq Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66a7d7710166a7d1a06d','aut66a7d7353766a7d1a019' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240729@183008.4563 gmgnkb0abp507gbunin575fkpq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240729@183008.4609 gmgnkb0abp507gbunin575fkpq Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240729@183008.4691 gmgnkb0abp507gbunin575fkpq Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66a7d7710166a7d1a06d',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',1.000 ,'aut66a7d7353766a7d1a019' ,0,0 ,2,23.00,20000,?,?,?,?,?)
20240729@183008.5062 gmgnkb0abp507gbunin575fkpq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240729@183008.5114 gmgnkb0abp507gbunin575fkpq Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240729@183008.5251 gmgnkb0abp507gbunin575fkpq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240729@183008.5288 gmgnkb0abp507gbunin575fkpq Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240729@183008.5336 gmgnkb0abp507gbunin575fkpq Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240729@183008.5403 gmgnkb0abp507gbunin575fkpq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240729@183008.5430 gmgnkb0abp507gbunin575fkpq Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240729@183008.5446 gmgnkb0abp507gbunin575fkpq Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66a7d9492366a7d1a083','aut66a7d7353766a7d1a019' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240729@183008.5451 gmgnkb0abp507gbunin575fkpq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240729@183008.5468 gmgnkb0abp507gbunin575fkpq Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240729@183008.5503 gmgnkb0abp507gbunin575fkpq Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66a7d9492366a7d1a083',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66a7d7353766a7d1a019' ,0,0 ,2,23.00,30000,?,?,?)
20240729@183008.5864 gmgnkb0abp507gbunin575fkpq Query : use flama_phc
20240729@183008.5870 gmgnkb0abp507gbunin575fkpq Query : select st.usalote valor from st where st.ref = '324.5347.00.1'
20240729@183008.5943 gmgnkb0abp507gbunin575fkpq Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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'
20240729@183008.6221 gmgnkb0abp507gbunin575fkpq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240729@183008.6312 gmgnkb0abp507gbunin575fkpq Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240729@183008.6415 gmgnkb0abp507gbunin575fkpq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240729@183008.6450 gmgnkb0abp507gbunin575fkpq Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240729@183008.6471 gmgnkb0abp507gbunin575fkpq Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240729@183008.6506 gmgnkb0abp507gbunin575fkpq Query : select sestamp valor from se where ref ='324.5347.00.1' and lote = 'r2300915100a'
20240729@183008.6537 gmgnkb0abp507gbunin575fkpq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240729@183008.6586 gmgnkb0abp507gbunin575fkpq Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240729@183008.6599 gmgnkb0abp507gbunin575fkpq Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66a7d4832866a7d1a09f','aut66a7d7353766a7d1a019' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240729@183008.6603 gmgnkb0abp507gbunin575fkpq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240729@183008.6621 gmgnkb0abp507gbunin575fkpq Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240729@183008.6661 gmgnkb0abp507gbunin575fkpq Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66a7d4832866a7d1a09f',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',6.000 ,'aut66a7d7353766a7d1a019' ,0,0 ,2,23.00,50000,?,?,?,?,?)
20240729@183008.6981 gmgnkb0abp507gbunin575fkpq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240729@183008.7008 gmgnkb0abp507gbunin575fkpq Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240729@183008.7062 gmgnkb0abp507gbunin575fkpq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240729@183008.7093 gmgnkb0abp507gbunin575fkpq Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240729@183008.7137 gmgnkb0abp507gbunin575fkpq Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240729@183008.7172 gmgnkb0abp507gbunin575fkpq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240729@183008.7218 gmgnkb0abp507gbunin575fkpq Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240729@183008.7232 gmgnkb0abp507gbunin575fkpq Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66a7d2647166a7d1a0af','aut66a7d7353766a7d1a019' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240729@183008.7237 gmgnkb0abp507gbunin575fkpq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240729@183008.7267 gmgnkb0abp507gbunin575fkpq Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240729@183008.7302 gmgnkb0abp507gbunin575fkpq Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66a7d2647166a7d1a0af',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66a7d7353766a7d1a019' ,0,0 ,2,23.00,60000,?,?,?)
20240729@183008.7631 gmgnkb0abp507gbunin575fkpq Query : use flama_phc
20240729@183008.7637 gmgnkb0abp507gbunin575fkpq Query : select st.usalote valor from st where st.ref = '324.4723.00.2'
20240729@183008.7679 gmgnkb0abp507gbunin575fkpq Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.4723.00.2'
20240729@183008.7873 gmgnkb0abp507gbunin575fkpq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240729@183008.7913 gmgnkb0abp507gbunin575fkpq Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240729@183008.8024 gmgnkb0abp507gbunin575fkpq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240729@183008.8067 gmgnkb0abp507gbunin575fkpq Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240729@183008.8094 gmgnkb0abp507gbunin575fkpq Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240729@183008.8176 gmgnkb0abp507gbunin575fkpq Query : select sestamp valor from se where ref ='324.4723.00.2' and lote = 'r2200682200a'
20240729@183008.8239 gmgnkb0abp507gbunin575fkpq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240729@183008.8322 gmgnkb0abp507gbunin575fkpq Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240729@183008.8347 gmgnkb0abp507gbunin575fkpq Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66a7d8144366a7d1a0c9','aut66a7d7353766a7d1a019' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240729@183008.8354 gmgnkb0abp507gbunin575fkpq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240729@183008.8411 gmgnkb0abp507gbunin575fkpq Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240729@183008.8506 gmgnkb0abp507gbunin575fkpq Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66a7d8144366a7d1a0c9',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',3.000 ,'aut66a7d7353766a7d1a019' ,0,0 ,2,23.00,80000,?,?,?,?,?)
20240729@183008.8821 gmgnkb0abp507gbunin575fkpq Query : use flama_phc
20240729@183008.8827 gmgnkb0abp507gbunin575fkpq Query : select st.usalote valor from st where st.ref = '324.4902.00.1'
20240729@183008.8883 gmgnkb0abp507gbunin575fkpq Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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.4902.00.1'
20240729@183008.8925 gmgnkb0abp507gbunin575fkpq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240729@183008.8973 gmgnkb0abp507gbunin575fkpq Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240729@183008.9022 gmgnkb0abp507gbunin575fkpq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240729@183008.9042 gmgnkb0abp507gbunin575fkpq Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240729@183008.9061 gmgnkb0abp507gbunin575fkpq Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240729@183008.9082 gmgnkb0abp507gbunin575fkpq Query : select sestamp valor from se where ref ='324.4902.00.1' and lote = 'r2400145200a'
20240729@183008.9098 gmgnkb0abp507gbunin575fkpq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240729@183008.9126 gmgnkb0abp507gbunin575fkpq Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240729@183008.9164 gmgnkb0abp507gbunin575fkpq Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66a7d0076766a7d1a0de','aut66a7d7353766a7d1a019' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240729@183008.9171 gmgnkb0abp507gbunin575fkpq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240729@183008.9250 gmgnkb0abp507gbunin575fkpq Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240729@183008.9332 gmgnkb0abp507gbunin575fkpq Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66a7d0076766a7d1a0de',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',4.000 ,'aut66a7d7353766a7d1a019' ,0,0 ,2,23.00,90000,?,?,?,?,?)
20240729@183008.9895 gmgnkb0abp507gbunin575fkpq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240729@183008.9935 gmgnkb0abp507gbunin575fkpq Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240729@183009.1090 gmgnkb0abp507gbunin575fkpq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240729@183009.1990 gmgnkb0abp507gbunin575fkpq Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240729@183009.2170 gmgnkb0abp507gbunin575fkpq Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240729@183009.3790 gmgnkb0abp507gbunin575fkpq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240729@183009.6200 gmgnkb0abp507gbunin575fkpq Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240729@183009.7480 gmgnkb0abp507gbunin575fkpq Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66a7d1935966a7d1a109','aut66a7d7353766a7d1a019' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240729@183009.7560 gmgnkb0abp507gbunin575fkpq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240729@183009.8140 gmgnkb0abp507gbunin575fkpq Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240729@183009.9340 gmgnkb0abp507gbunin575fkpq Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66a7d1935966a7d1a109',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66a7d7353766a7d1a019' ,0,0 ,2,23.00,100000,?,?,?)
20240729@183009.1249 gmgnkb0abp507gbunin575fkpq Query : use flama_phc
20240729@183009.1257 gmgnkb0abp507gbunin575fkpq Query : select st.usalote valor from st where st.ref = '324.727.00.01'
20240729@183009.1297 gmgnkb0abp507gbunin575fkpq Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.727.00.01'
20240729@183009.1477 gmgnkb0abp507gbunin575fkpq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240729@183009.1589 gmgnkb0abp507gbunin575fkpq Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240729@183009.1626 gmgnkb0abp507gbunin575fkpq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240729@183009.1689 gmgnkb0abp507gbunin575fkpq Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240729@183009.1697 gmgnkb0abp507gbunin575fkpq Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240729@183009.1709 gmgnkb0abp507gbunin575fkpq Query : select sestamp valor from se where ref ='324.727.00.01' and lote = 'r2300534200a'
20240729@183009.1756 gmgnkb0abp507gbunin575fkpq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240729@183009.1775 gmgnkb0abp507gbunin575fkpq Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240729@183009.1788 gmgnkb0abp507gbunin575fkpq Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66a7d2964166a7d1a12a','aut66a7d7353766a7d1a019' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240729@183009.1792 gmgnkb0abp507gbunin575fkpq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240729@183009.1809 gmgnkb0abp507gbunin575fkpq Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240729@183009.1838 gmgnkb0abp507gbunin575fkpq Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66a7d2964166a7d1a12a',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',8.000 ,'aut66a7d7353766a7d1a019' ,0,0 ,2,23.00,120000,?,?,?,?,?)
20240729@183009.2117 gmgnkb0abp507gbunin575fkpq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240729@183009.2183 gmgnkb0abp507gbunin575fkpq Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240729@183009.2262 gmgnkb0abp507gbunin575fkpq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240729@183009.2309 gmgnkb0abp507gbunin575fkpq Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240729@183009.2322 gmgnkb0abp507gbunin575fkpq Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240729@183009.2338 gmgnkb0abp507gbunin575fkpq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240729@183009.2359 gmgnkb0abp507gbunin575fkpq Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240729@183009.2405 gmgnkb0abp507gbunin575fkpq Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66a7d3254366a7d1a139','aut66a7d7353766a7d1a019' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240729@183009.2415 gmgnkb0abp507gbunin575fkpq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240729@183009.2454 gmgnkb0abp507gbunin575fkpq Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240729@183009.2636 gmgnkb0abp507gbunin575fkpq Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66a7d3254366a7d1a139',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66a7d7353766a7d1a019' ,0,0 ,2,23.00,130000,?,?,?)
20240729@183009.2952 gmgnkb0abp507gbunin575fkpq Query : use flama_phc
20240729@183009.2958 gmgnkb0abp507gbunin575fkpq Query : select st.usalote valor from st where st.ref = '324.4980.00.1'
20240729@183009.3044 gmgnkb0abp507gbunin575fkpq Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.4980.00.1'
20240729@183009.3244 gmgnkb0abp507gbunin575fkpq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240729@183009.3278 gmgnkb0abp507gbunin575fkpq Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240729@183009.3339 gmgnkb0abp507gbunin575fkpq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240729@183009.3367 gmgnkb0abp507gbunin575fkpq Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240729@183009.3390 gmgnkb0abp507gbunin575fkpq Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240729@183009.3404 gmgnkb0abp507gbunin575fkpq Query : select sestamp valor from se where ref ='324.4980.00.1' and lote = 'r2301092100a'
20240729@183009.3422 gmgnkb0abp507gbunin575fkpq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240729@183009.3792 gmgnkb0abp507gbunin575fkpq Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240729@183009.3808 gmgnkb0abp507gbunin575fkpq Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66a7d7520966a7d1a153','aut66a7d7353766a7d1a019' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240729@183009.3813 gmgnkb0abp507gbunin575fkpq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240729@183009.3829 gmgnkb0abp507gbunin575fkpq Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240729@183009.3877 gmgnkb0abp507gbunin575fkpq Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66a7d7520966a7d1a153',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',4.000 ,'aut66a7d7353766a7d1a019' ,0,0 ,2,23.00,150000,?,?,?,?,?)
20240729@183009.4194 gmgnkb0abp507gbunin575fkpq Query : use flama_phc
20240729@183009.4199 gmgnkb0abp507gbunin575fkpq Query : select st.usalote valor from st where st.ref = '324.4910.00.1'
20240729@183009.4288 gmgnkb0abp507gbunin575fkpq Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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.4910.00.1'
20240729@183009.4514 gmgnkb0abp507gbunin575fkpq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240729@183009.4539 gmgnkb0abp507gbunin575fkpq Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240729@183009.4605 gmgnkb0abp507gbunin575fkpq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240729@183009.4624 gmgnkb0abp507gbunin575fkpq Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240729@183009.4634 gmgnkb0abp507gbunin575fkpq Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240729@183009.4647 gmgnkb0abp507gbunin575fkpq Query : select sestamp valor from se where ref ='324.4910.00.1' and lote = 'r2100754100a'
20240729@183009.4662 gmgnkb0abp507gbunin575fkpq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240729@183009.4679 gmgnkb0abp507gbunin575fkpq Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240729@183009.4693 gmgnkb0abp507gbunin575fkpq Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66a7d8533866a7d1a171','aut66a7d7353766a7d1a019' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240729@183009.4698 gmgnkb0abp507gbunin575fkpq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240729@183009.4716 gmgnkb0abp507gbunin575fkpq Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240729@183009.4750 gmgnkb0abp507gbunin575fkpq Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66a7d8533866a7d1a171',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',6.000 ,'aut66a7d7353766a7d1a019' ,0,0 ,2,23.00,160000,?,?,?,?,?)
20240729@183009.5023 gmgnkb0abp507gbunin575fkpq Query : use flama_phc
20240729@183009.5026 gmgnkb0abp507gbunin575fkpq Query : select st.usalote valor from st where st.ref = '324.1847.00.1'
20240729@183009.5050 gmgnkb0abp507gbunin575fkpq Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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.1847.00.1'
20240729@183009.5074 gmgnkb0abp507gbunin575fkpq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240729@183009.5178 gmgnkb0abp507gbunin575fkpq Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240729@183009.5216 gmgnkb0abp507gbunin575fkpq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240729@183009.5236 gmgnkb0abp507gbunin575fkpq Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240729@183009.5271 gmgnkb0abp507gbunin575fkpq Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240729@183009.5290 gmgnkb0abp507gbunin575fkpq Query : select sestamp valor from se where ref ='324.1847.00.1' and lote = 'r2400288100a'
20240729@183009.5530 gmgnkb0abp507gbunin575fkpq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240729@183009.5560 gmgnkb0abp507gbunin575fkpq Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240729@183009.5581 gmgnkb0abp507gbunin575fkpq Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66a7d5867966a7d1a187','aut66a7d7353766a7d1a019' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240729@183009.5586 gmgnkb0abp507gbunin575fkpq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240729@183009.5603 gmgnkb0abp507gbunin575fkpq Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240729@183009.5636 gmgnkb0abp507gbunin575fkpq Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66a7d5867966a7d1a187',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',3.000 ,'aut66a7d7353766a7d1a019' ,0,0 ,2,23.00,170000,?,?,?,?,?)
20240729@183009.5957 gmgnkb0abp507gbunin575fkpq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240729@183009.5974 gmgnkb0abp507gbunin575fkpq Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240729@183009.6067 gmgnkb0abp507gbunin575fkpq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240729@183009.6085 gmgnkb0abp507gbunin575fkpq Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240729@183009.6097 gmgnkb0abp507gbunin575fkpq Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240729@183009.6113 gmgnkb0abp507gbunin575fkpq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240729@183009.6130 gmgnkb0abp507gbunin575fkpq Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240729@183009.6146 gmgnkb0abp507gbunin575fkpq Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66a7d0713866a7d1a195','aut66a7d7353766a7d1a019' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240729@183009.6152 gmgnkb0abp507gbunin575fkpq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240729@183009.6174 gmgnkb0abp507gbunin575fkpq Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240729@183009.6204 gmgnkb0abp507gbunin575fkpq Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66a7d0713866a7d1a195',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66a7d7353766a7d1a019' ,0,0 ,2,23.00,180000,?,?,?)
20240729@183009.6489 gmgnkb0abp507gbunin575fkpq Query : use flama_phc
20240729@183009.6493 gmgnkb0abp507gbunin575fkpq Query : select st.usalote valor from st where st.ref = '324.657.00.01'
20240729@183009.6515 gmgnkb0abp507gbunin575fkpq Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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.657.00.01'
20240729@183009.6688 gmgnkb0abp507gbunin575fkpq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240729@183009.6718 gmgnkb0abp507gbunin575fkpq Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240729@183009.6744 gmgnkb0abp507gbunin575fkpq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240729@183009.6860 gmgnkb0abp507gbunin575fkpq Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240729@183009.6871 gmgnkb0abp507gbunin575fkpq Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240729@183009.6884 gmgnkb0abp507gbunin575fkpq Query : select sestamp valor from se where ref ='324.657.00.01' and lote = 'r2301178100a'
20240729@183009.6901 gmgnkb0abp507gbunin575fkpq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240729@183009.6918 gmgnkb0abp507gbunin575fkpq Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240729@183009.6930 gmgnkb0abp507gbunin575fkpq Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66a7d5545466a7d1a1a8','aut66a7d7353766a7d1a019' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240729@183009.6934 gmgnkb0abp507gbunin575fkpq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240729@183009.6967 gmgnkb0abp507gbunin575fkpq Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240729@183009.6996 gmgnkb0abp507gbunin575fkpq Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66a7d5545466a7d1a1a8',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',3.000 ,'aut66a7d7353766a7d1a019' ,0,0 ,2,23.00,200000,?,?,?,?,?)
20240729@183009.7283 gmgnkb0abp507gbunin575fkpq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240729@183009.7303 gmgnkb0abp507gbunin575fkpq Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240729@183009.7333 gmgnkb0abp507gbunin575fkpq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240729@183009.7351 gmgnkb0abp507gbunin575fkpq Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240729@183009.7360 gmgnkb0abp507gbunin575fkpq Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240729@183009.7374 gmgnkb0abp507gbunin575fkpq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240729@183009.7393 gmgnkb0abp507gbunin575fkpq Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240729@183009.7419 gmgnkb0abp507gbunin575fkpq Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66a7d3850566a7d1a1b4','aut66a7d7353766a7d1a019' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240729@183009.7424 gmgnkb0abp507gbunin575fkpq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240729@183009.7440 gmgnkb0abp507gbunin575fkpq Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240729@183009.7471 gmgnkb0abp507gbunin575fkpq Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66a7d3850566a7d1a1b4',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66a7d7353766a7d1a019' ,0,0 ,2,23.00,210000,?,?,?)
20240729@183009.7734 gmgnkb0abp507gbunin575fkpq Query : use flama_phc
20240729@183009.7742 gmgnkb0abp507gbunin575fkpq Query : select st.usalote valor from st where st.ref = '324.728.00.01'
20240729@183009.7767 gmgnkb0abp507gbunin575fkpq Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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.728.00.01'
20240729@183009.7784 gmgnkb0abp507gbunin575fkpq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240729@183009.7802 gmgnkb0abp507gbunin575fkpq Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240729@183009.7837 gmgnkb0abp507gbunin575fkpq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240729@183009.7853 gmgnkb0abp507gbunin575fkpq Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240729@183009.7863 gmgnkb0abp507gbunin575fkpq Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240729@183009.7877 gmgnkb0abp507gbunin575fkpq Query : select sestamp valor from se where ref ='324.728.00.01' and lote = 'r2400238200a'
20240729@183009.7891 gmgnkb0abp507gbunin575fkpq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240729@183009.7907 gmgnkb0abp507gbunin575fkpq Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240729@183009.7920 gmgnkb0abp507gbunin575fkpq Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66a7d6170166a7d1a1c0','aut66a7d7353766a7d1a019' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240729@183009.7925 gmgnkb0abp507gbunin575fkpq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240729@183009.7941 gmgnkb0abp507gbunin575fkpq Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240729@183009.7974 gmgnkb0abp507gbunin575fkpq Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66a7d6170166a7d1a1c0',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',4.000 ,'aut66a7d7353766a7d1a019' ,0,0 ,2,23.00,230000,?,?,?,?,?)
20240729@183009.8506 gmgnkb0abp507gbunin575fkpq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240729@183009.8525 gmgnkb0abp507gbunin575fkpq Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240729@183009.8649 gmgnkb0abp507gbunin575fkpq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240729@183009.8667 gmgnkb0abp507gbunin575fkpq Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240729@183009.8762 gmgnkb0abp507gbunin575fkpq Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240729@183009.8778 gmgnkb0abp507gbunin575fkpq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240729@183009.8795 gmgnkb0abp507gbunin575fkpq Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240729@183009.8809 gmgnkb0abp507gbunin575fkpq Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66a7d8142366a7d1a1d6','aut66a7d7353766a7d1a019' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240729@183009.8815 gmgnkb0abp507gbunin575fkpq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240729@183009.8830 gmgnkb0abp507gbunin575fkpq Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240729@183009.8861 gmgnkb0abp507gbunin575fkpq Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66a7d8142366a7d1a1d6',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66a7d7353766a7d1a019' ,0,0 ,2,23.00,240000,?,?,?)
20240729@183009.9117 gmgnkb0abp507gbunin575fkpq Query : use flama_phc
20240729@183009.9121 gmgnkb0abp507gbunin575fkpq Query : select st.usalote valor from st where st.ref = '324.729.00.01'
20240729@183009.9142 gmgnkb0abp507gbunin575fkpq Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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.729.00.01'
20240729@183009.9155 gmgnkb0abp507gbunin575fkpq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240729@183009.9172 gmgnkb0abp507gbunin575fkpq Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240729@183009.9198 gmgnkb0abp507gbunin575fkpq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240729@183009.9213 gmgnkb0abp507gbunin575fkpq Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240729@183009.9221 gmgnkb0abp507gbunin575fkpq Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240729@183009.9234 gmgnkb0abp507gbunin575fkpq Query : select sestamp valor from se where ref ='324.729.00.01' and lote = 'r2400238100a'
20240729@183009.9248 gmgnkb0abp507gbunin575fkpq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240729@183009.9262 gmgnkb0abp507gbunin575fkpq Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240729@183009.9275 gmgnkb0abp507gbunin575fkpq Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66a7d1386166a7d1a1e1','aut66a7d7353766a7d1a019' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240729@183009.9280 gmgnkb0abp507gbunin575fkpq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240729@183009.9297 gmgnkb0abp507gbunin575fkpq Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240729@183009.9326 gmgnkb0abp507gbunin575fkpq Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66a7d1386166a7d1a1e1',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',4.000 ,'aut66a7d7353766a7d1a019' ,0,0 ,2,23.00,260000,?,?,?,?,?)
20240729@183009.9596 gmgnkb0abp507gbunin575fkpq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240729@183009.9613 gmgnkb0abp507gbunin575fkpq Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240729@183009.9638 gmgnkb0abp507gbunin575fkpq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240729@183009.9652 gmgnkb0abp507gbunin575fkpq Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240729@183009.9661 gmgnkb0abp507gbunin575fkpq Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240729@183009.9672 gmgnkb0abp507gbunin575fkpq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240729@183009.9686 gmgnkb0abp507gbunin575fkpq Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240729@183009.9698 gmgnkb0abp507gbunin575fkpq Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66a7d7897466a7d1a1ec','aut66a7d7353766a7d1a019' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240729@183009.9703 gmgnkb0abp507gbunin575fkpq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240729@183009.9717 gmgnkb0abp507gbunin575fkpq Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240729@183009.9744 gmgnkb0abp507gbunin575fkpq Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66a7d7897466a7d1a1ec',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66a7d7353766a7d1a019' ,0,0 ,2,23.00,270000,?,?,?)
20240729@183010.0000 gmgnkb0abp507gbunin575fkpq Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut66a7d7353766a7d1a019','2405066','wait',39,'adm09112754980.682000002')
20240729@183010.8100 gmgnkb0abp507gbunin575fkpq Query : use flama_phc
20240729@183010.8400 gmgnkb0abp507gbunin575fkpq Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240729@183010.1140 gmgnkb0abp507gbunin575fkpq Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1250';
20240729@183010.1360 gmgnkb0abp507gbunin575fkpq Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1250';
20240729@183010.1730 gmgnkb0abp507gbunin575fkpq Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1250';
20240729@183010.2010 gmgnkb0abp507gbunin575fkpq Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1250';
20240729@183010.1246 7ugopr5a87p1e4k17a15aivjlf Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240729@183010.1259 7ugopr5a87p1e4k17a15aivjlf Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240729@183010.1315 7ugopr5a87p1e4k17a15aivjlf Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1251';
20240729@183010.1369 7ugopr5a87p1e4k17a15aivjlf Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1251';
20240729@183010.1416 7ugopr5a87p1e4k17a15aivjlf Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1251';
20240729@183010.1440 7ugopr5a87p1e4k17a15aivjlf Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1251';
20240729@183010.1500 7ugopr5a87p1e4k17a15aivjlf Query : use flama_phc
20240729@183010.1503 7ugopr5a87p1e4k17a15aivjlf Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240729@183010.1568 7ugopr5a87p1e4k17a15aivjlf Query : use flama_phc
20240729@183010.1571 7ugopr5a87p1e4k17a15aivjlf Query : select no, estab,szadrsdesc from szadrs where u_coddest=8817
20240729@183010.1652 7ugopr5a87p1e4k17a15aivjlf Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '323.318.09.00'
20240729@183010.1680 7ugopr5a87p1e4k17a15aivjlf Query : use flama_phc
20240729@183010.1683 7ugopr5a87p1e4k17a15aivjlf Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20240729@183010.1715 7ugopr5a87p1e4k17a15aivjlf Query : use flama_phc
20240729@183010.1718 7ugopr5a87p1e4k17a15aivjlf Query : select top 1 1 valor from td where td.ndoc = 39
20240729@183010.1750 7ugopr5a87p1e4k17a15aivjlf Query : use flama_phc
20240729@183010.1753 7ugopr5a87p1e4k17a15aivjlf 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@183010.1785 7ugopr5a87p1e4k17a15aivjlf 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@183010.1822 7ugopr5a87p1e4k17a15aivjlf Query : use flama_phc
20240729@183010.1825 7ugopr5a87p1e4k17a15aivjlf Query : select top 1 ~inactivo valor from cl where no = '102939' and estab = 0 order by inactivo desc
20240729@183010.1952 7ugopr5a87p1e4k17a15aivjlf Query : use flama_phc
20240729@183010.1955 7ugopr5a87p1e4k17a15aivjlf Query : select top 1 tipodoc,regrd from td where ndoc = 39
20240729@183010.1986 7ugopr5a87p1e4k17a15aivjlf Query : use flama_phc
20240729@183010.1989 7ugopr5a87p1e4k17a15aivjlf Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20240729@183010.2031 7ugopr5a87p1e4k17a15aivjlf Query : use flama_phc
20240729@183010.2034 7ugopr5a87p1e4k17a15aivjlf Query : select szadrsstamp valor from szadrs where szadrsdesc='rui manuel dias alves'
20240729@183010.2082 7ugopr5a87p1e4k17a15aivjlf Query : use flama_phc
20240729@183010.2085 7ugopr5a87p1e4k17a15aivjlf Query : select 1 valor from td where ndoc = 39
20240729@183010.2099 7ugopr5a87p1e4k17a15aivjlf Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20240729@183010.2115 7ugopr5a87p1e4k17a15aivjlf Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240729@183010.2133 7ugopr5a87p1e4k17a15aivjlf Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20240729@183010.2163 7ugopr5a87p1e4k17a15aivjlf Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240729@183010.2180 7ugopr5a87p1e4k17a15aivjlf Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20240729@183010.2214 7ugopr5a87p1e4k17a15aivjlf Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240729@183010.2232 7ugopr5a87p1e4k17a15aivjlf Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20240729@183010.2246 7ugopr5a87p1e4k17a15aivjlf Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240729@183010.2378 7ugopr5a87p1e4k17a15aivjlf Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240729@183010.2394 7ugopr5a87p1e4k17a15aivjlf Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240729@183010.2413 7ugopr5a87p1e4k17a15aivjlf Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20240729@183010.2432 7ugopr5a87p1e4k17a15aivjlf Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut66a7d4290866a7d1a236' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20240729@183010.2610 7ugopr5a87p1e4k17a15aivjlf Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240729@183010.2630 7ugopr5a87p1e4k17a15aivjlf Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20240729@183010.2671 7ugopr5a87p1e4k17a15aivjlf Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20240729@183010.2685 7ugopr5a87p1e4k17a15aivjlf Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20240729@183010.2710 7ugopr5a87p1e4k17a15aivjlf Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20240729@183010.2723 7ugopr5a87p1e4k17a15aivjlf Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20240729@183010.2738 7ugopr5a87p1e4k17a15aivjlf Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20240729@183010.2750 7ugopr5a87p1e4k17a15aivjlf Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20240729@183010.2763 7ugopr5a87p1e4k17a15aivjlf Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut66a7d4290866a7d1a236',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20240729@183010.3057 7ugopr5a87p1e4k17a15aivjlf Query : select top 1 fno valor from wsftdata order by fno desc
20240729@183010.3079 7ugopr5a87p1e4k17a15aivjlf Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240729@183010.3097 7ugopr5a87p1e4k17a15aivjlf Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20240729@183010.3122 7ugopr5a87p1e4k17a15aivjlf Query : select 'normal' from dummy
20240729@183010.3139 7ugopr5a87p1e4k17a15aivjlf Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut66a7d4290866a7d1a236',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',94,102939,0,'2024-07-29',39,'euro',0,0,2024 ,?,?)
20240729@183010.3445 7ugopr5a87p1e4k17a15aivjlf Query : use flama_phc
20240729@183010.3449 7ugopr5a87p1e4k17a15aivjlf Query : select st.usalote valor from st where st.ref = '323.318.09.00'
20240729@183010.3476 7ugopr5a87p1e4k17a15aivjlf Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '323.318.09.00'
20240729@183010.3490 7ugopr5a87p1e4k17a15aivjlf Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240729@183010.3509 7ugopr5a87p1e4k17a15aivjlf Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240729@183010.3537 7ugopr5a87p1e4k17a15aivjlf Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240729@183010.3553 7ugopr5a87p1e4k17a15aivjlf Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240729@183010.3563 7ugopr5a87p1e4k17a15aivjlf Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240729@183010.3576 7ugopr5a87p1e4k17a15aivjlf Query : select sestamp valor from se where ref ='323.318.09.00' and lote = 'r2400053200a'
20240729@183010.3617 7ugopr5a87p1e4k17a15aivjlf Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240729@183010.3636 7ugopr5a87p1e4k17a15aivjlf Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240729@183010.3650 7ugopr5a87p1e4k17a15aivjlf Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66a7d0345766a7d1a258','aut66a7d4290866a7d1a236' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240729@183010.3654 7ugopr5a87p1e4k17a15aivjlf Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240729@183010.3671 7ugopr5a87p1e4k17a15aivjlf Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240729@183010.3714 7ugopr5a87p1e4k17a15aivjlf Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem) values ('aut66a7d0345766a7d1a258',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',3.000 ,'aut66a7d4290866a7d1a236' ,0,0 ,2,23.00,10000,?,?,?,?)
20240729@183010.3988 7ugopr5a87p1e4k17a15aivjlf Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut66a7d4290866a7d1a236','2405029','wait',39,'adm09112754980.682000002')
20240729@183010.4067 7ugopr5a87p1e4k17a15aivjlf Query : use flama_phc
20240729@183010.4070 7ugopr5a87p1e4k17a15aivjlf Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240729@183010.4125 7ugopr5a87p1e4k17a15aivjlf Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1251';
20240729@183010.4153 7ugopr5a87p1e4k17a15aivjlf Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1251';
20240729@183010.4193 7ugopr5a87p1e4k17a15aivjlf Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1251';
20240729@183010.4218 7ugopr5a87p1e4k17a15aivjlf Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1251';
20240729@183010.4694 criccpp113577rmqidqjeb18b6 Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240729@183010.4705 criccpp113577rmqidqjeb18b6 Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240729@183010.4754 criccpp113577rmqidqjeb18b6 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1252';
20240729@183010.4804 criccpp113577rmqidqjeb18b6 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1252';
20240729@183010.4853 criccpp113577rmqidqjeb18b6 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1252';
20240729@183010.4878 criccpp113577rmqidqjeb18b6 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1252';
20240729@183010.4928 criccpp113577rmqidqjeb18b6 Query : use flama_phc
20240729@183010.4931 criccpp113577rmqidqjeb18b6 Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240729@183010.4999 criccpp113577rmqidqjeb18b6 Query : use flama_phc
20240729@183010.5002 criccpp113577rmqidqjeb18b6 Query : select no, estab,szadrsdesc from szadrs where u_coddest=6802
20240729@183010.5085 criccpp113577rmqidqjeb18b6 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@183010.5249 criccpp113577rmqidqjeb18b6 Query : use flama_phc
20240729@183010.5252 criccpp113577rmqidqjeb18b6 Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20240729@183010.5290 criccpp113577rmqidqjeb18b6 Query : use flama_phc
20240729@183010.5293 criccpp113577rmqidqjeb18b6 Query : select top 1 1 valor from td where td.ndoc = 39
20240729@183010.5325 criccpp113577rmqidqjeb18b6 Query : use flama_phc
20240729@183010.5327 criccpp113577rmqidqjeb18b6 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@183010.5355 criccpp113577rmqidqjeb18b6 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@183010.5399 criccpp113577rmqidqjeb18b6 Query : use flama_phc
20240729@183010.5402 criccpp113577rmqidqjeb18b6 Query : select top 1 ~inactivo valor from cl where no = '101621' and estab = 0 order by inactivo desc
20240729@183010.5432 criccpp113577rmqidqjeb18b6 Query : use flama_phc
20240729@183010.5435 criccpp113577rmqidqjeb18b6 Query : select top 1 tipodoc,regrd from td where ndoc = 39
20240729@183010.5495 criccpp113577rmqidqjeb18b6 Query : use flama_phc
20240729@183010.5498 criccpp113577rmqidqjeb18b6 Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20240729@183010.5539 criccpp113577rmqidqjeb18b6 Query : use flama_phc
20240729@183010.5542 criccpp113577rmqidqjeb18b6 Query : select szadrsstamp valor from szadrs where szadrsdesc='j.o.m., lda - sintra'
20240729@183010.5625 criccpp113577rmqidqjeb18b6 Query : use flama_phc
20240729@183010.5629 criccpp113577rmqidqjeb18b6 Query : select 1 valor from td where ndoc = 39
20240729@183010.5758 criccpp113577rmqidqjeb18b6 Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20240729@183010.5933 criccpp113577rmqidqjeb18b6 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240729@183010.5949 criccpp113577rmqidqjeb18b6 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20240729@183010.5977 criccpp113577rmqidqjeb18b6 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240729@183010.5995 criccpp113577rmqidqjeb18b6 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20240729@183010.6030 criccpp113577rmqidqjeb18b6 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240729@183010.6045 criccpp113577rmqidqjeb18b6 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20240729@183010.6058 criccpp113577rmqidqjeb18b6 Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240729@183010.6146 criccpp113577rmqidqjeb18b6 Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240729@183010.6158 criccpp113577rmqidqjeb18b6 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240729@183010.6175 criccpp113577rmqidqjeb18b6 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20240729@183010.6190 criccpp113577rmqidqjeb18b6 Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut66a7d1056866a7d1a293' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20240729@183010.6364 criccpp113577rmqidqjeb18b6 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240729@183010.6383 criccpp113577rmqidqjeb18b6 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20240729@183010.6419 criccpp113577rmqidqjeb18b6 Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20240729@183010.6458 criccpp113577rmqidqjeb18b6 Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20240729@183010.6471 criccpp113577rmqidqjeb18b6 Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20240729@183010.6484 criccpp113577rmqidqjeb18b6 Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20240729@183010.6498 criccpp113577rmqidqjeb18b6 Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20240729@183010.6523 criccpp113577rmqidqjeb18b6 Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20240729@183010.6535 criccpp113577rmqidqjeb18b6 Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut66a7d1056866a7d1a293',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20240729@183010.6820 criccpp113577rmqidqjeb18b6 Query : select top 1 fno valor from wsftdata order by fno desc
20240729@183010.6837 criccpp113577rmqidqjeb18b6 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240729@183010.6933 criccpp113577rmqidqjeb18b6 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20240729@183010.7796 criccpp113577rmqidqjeb18b6 Query : select 'normal' from dummy
20240729@183010.8189 criccpp113577rmqidqjeb18b6 Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut66a7d1056866a7d1a293',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',95,101621,0,'2024-07-29',39,'euro',0,0,2024 ,?,?)
20240729@183010.8523 criccpp113577rmqidqjeb18b6 Query : use flama_phc
20240729@183010.8528 criccpp113577rmqidqjeb18b6 Query : select st.usalote valor from st where st.ref = '327.8253.00.1'
20240729@183010.8555 criccpp113577rmqidqjeb18b6 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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@183010.8712 criccpp113577rmqidqjeb18b6 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240729@183010.8730 criccpp113577rmqidqjeb18b6 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240729@183010.8760 criccpp113577rmqidqjeb18b6 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240729@183010.8778 criccpp113577rmqidqjeb18b6 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240729@183010.8788 criccpp113577rmqidqjeb18b6 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240729@183010.8801 criccpp113577rmqidqjeb18b6 Query : select sestamp valor from se where ref ='327.8253.00.1' and lote = 'r2400072300a'
20240729@183010.8816 criccpp113577rmqidqjeb18b6 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240729@183010.8832 criccpp113577rmqidqjeb18b6 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240729@183010.8847 criccpp113577rmqidqjeb18b6 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66a7d1643066a7d1a2d7','aut66a7d1056866a7d1a293' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240729@183010.8851 criccpp113577rmqidqjeb18b6 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240729@183010.8869 criccpp113577rmqidqjeb18b6 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240729@183010.8900 criccpp113577rmqidqjeb18b6 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem) values ('aut66a7d1643066a7d1a2d7',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',1.000 ,'aut66a7d1056866a7d1a293' ,0,0 ,2,23.00,10000,?,?,?,?)
20240729@183010.9185 criccpp113577rmqidqjeb18b6 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240729@183010.9204 criccpp113577rmqidqjeb18b6 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240729@183010.9236 criccpp113577rmqidqjeb18b6 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240729@183010.9254 criccpp113577rmqidqjeb18b6 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240729@183010.9263 criccpp113577rmqidqjeb18b6 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240729@183010.9279 criccpp113577rmqidqjeb18b6 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240729@183010.9296 criccpp113577rmqidqjeb18b6 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240729@183010.9316 criccpp113577rmqidqjeb18b6 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66a7d4579566a7d1a2e2','aut66a7d1056866a7d1a293' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240729@183010.9322 criccpp113577rmqidqjeb18b6 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240729@183010.9341 criccpp113577rmqidqjeb18b6 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240729@183010.9374 criccpp113577rmqidqjeb18b6 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66a7d4579566a7d1a2e2',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66a7d1056866a7d1a293' ,0,0 ,2,23.00,20000,?,?,?)
20240729@183010.9693 criccpp113577rmqidqjeb18b6 Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut66a7d1056866a7d1a293','2405054','wait',39,'adm09112754980.682000002')
20240729@183010.9784 criccpp113577rmqidqjeb18b6 Query : use flama_phc
20240729@183010.9787 criccpp113577rmqidqjeb18b6 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240729@183010.9844 criccpp113577rmqidqjeb18b6 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1252';
20240729@183010.9871 criccpp113577rmqidqjeb18b6 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1252';
20240729@183010.9908 criccpp113577rmqidqjeb18b6 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1252';
20240729@183010.9940 criccpp113577rmqidqjeb18b6 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1252';
20240729@183011.4920 m0b2psk10qcj1r5i7faiiif6gt Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240729@183011.5030 m0b2psk10qcj1r5i7faiiif6gt Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240729@183011.5630 m0b2psk10qcj1r5i7faiiif6gt Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1253';
20240729@183011.6160 m0b2psk10qcj1r5i7faiiif6gt Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1253';
20240729@183011.6660 m0b2psk10qcj1r5i7faiiif6gt Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1253';
20240729@183011.6960 m0b2psk10qcj1r5i7faiiif6gt Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1253';
20240729@183011.7430 m0b2psk10qcj1r5i7faiiif6gt Query : use flama_phc
20240729@183011.7460 m0b2psk10qcj1r5i7faiiif6gt Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240729@183011.8540 m0b2psk10qcj1r5i7faiiif6gt Query : use flama_phc
20240729@183011.8580 m0b2psk10qcj1r5i7faiiif6gt Query : select no, estab,szadrsdesc from szadrs where u_coddest=7254
20240729@183011.9380 m0b2psk10qcj1r5i7faiiif6gt Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.691.00.01'
20240729@183011.9580 m0b2psk10qcj1r5i7faiiif6gt Query : use flama_phc
20240729@183011.9610 m0b2psk10qcj1r5i7faiiif6gt Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20240729@183011.9930 m0b2psk10qcj1r5i7faiiif6gt Query : use flama_phc
20240729@183011.9960 m0b2psk10qcj1r5i7faiiif6gt Query : select top 1 1 valor from td where td.ndoc = 39
20240729@183011.1031 m0b2psk10qcj1r5i7faiiif6gt Query : use flama_phc
20240729@183011.1034 m0b2psk10qcj1r5i7faiiif6gt 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@183011.1062 m0b2psk10qcj1r5i7faiiif6gt 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@183011.1149 m0b2psk10qcj1r5i7faiiif6gt Query : use flama_phc
20240729@183011.1152 m0b2psk10qcj1r5i7faiiif6gt Query : select top 1 ~inactivo valor from cl where no = '101621' and estab = 0 order by inactivo desc
20240729@183011.1199 m0b2psk10qcj1r5i7faiiif6gt Query : use flama_phc
20240729@183011.1202 m0b2psk10qcj1r5i7faiiif6gt Query : select top 1 tipodoc,regrd from td where ndoc = 39
20240729@183011.1233 m0b2psk10qcj1r5i7faiiif6gt Query : use flama_phc
20240729@183011.1236 m0b2psk10qcj1r5i7faiiif6gt Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20240729@183011.1275 m0b2psk10qcj1r5i7faiiif6gt Query : use flama_phc
20240729@183011.1278 m0b2psk10qcj1r5i7faiiif6gt Query : select szadrsstamp valor from szadrs where szadrsdesc='j.o.m alverca'
20240729@183011.1326 m0b2psk10qcj1r5i7faiiif6gt Query : use flama_phc
20240729@183011.1328 m0b2psk10qcj1r5i7faiiif6gt Query : select 1 valor from td where ndoc = 39
20240729@183011.1341 m0b2psk10qcj1r5i7faiiif6gt Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20240729@183011.1355 m0b2psk10qcj1r5i7faiiif6gt Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240729@183011.1377 m0b2psk10qcj1r5i7faiiif6gt Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20240729@183011.1396 m0b2psk10qcj1r5i7faiiif6gt Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240729@183011.1416 m0b2psk10qcj1r5i7faiiif6gt Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20240729@183011.1451 m0b2psk10qcj1r5i7faiiif6gt Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240729@183011.1468 m0b2psk10qcj1r5i7faiiif6gt Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20240729@183011.1483 m0b2psk10qcj1r5i7faiiif6gt Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240729@183011.1556 m0b2psk10qcj1r5i7faiiif6gt Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240729@183011.1570 m0b2psk10qcj1r5i7faiiif6gt Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240729@183011.1649 m0b2psk10qcj1r5i7faiiif6gt Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20240729@183011.1666 m0b2psk10qcj1r5i7faiiif6gt Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut66a7d5186066a7d1a324' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20240729@183011.1850 m0b2psk10qcj1r5i7faiiif6gt Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240729@183011.1868 m0b2psk10qcj1r5i7faiiif6gt Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20240729@183011.1901 m0b2psk10qcj1r5i7faiiif6gt Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20240729@183011.1913 m0b2psk10qcj1r5i7faiiif6gt Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20240729@183011.2917 m0b2psk10qcj1r5i7faiiif6gt Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20240729@183011.3208 m0b2psk10qcj1r5i7faiiif6gt Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20240729@183011.4214 m0b2psk10qcj1r5i7faiiif6gt Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20240729@183011.4228 m0b2psk10qcj1r5i7faiiif6gt Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20240729@183011.4241 m0b2psk10qcj1r5i7faiiif6gt Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut66a7d5186066a7d1a324',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20240729@183011.4512 m0b2psk10qcj1r5i7faiiif6gt Query : select top 1 fno valor from wsftdata order by fno desc
20240729@183011.4529 m0b2psk10qcj1r5i7faiiif6gt Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240729@183011.4547 m0b2psk10qcj1r5i7faiiif6gt Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20240729@183011.4573 m0b2psk10qcj1r5i7faiiif6gt Query : select 'normal' from dummy
20240729@183011.4591 m0b2psk10qcj1r5i7faiiif6gt Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut66a7d5186066a7d1a324',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',96,101621,0,'2024-07-29',39,'euro',0,0,2024 ,?,?)
20240729@183011.4961 m0b2psk10qcj1r5i7faiiif6gt Query : use flama_phc
20240729@183011.4965 m0b2psk10qcj1r5i7faiiif6gt Query : select st.usalote valor from st where st.ref = '324.691.00.01'
20240729@183011.4993 m0b2psk10qcj1r5i7faiiif6gt Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.691.00.01'
20240729@183011.5009 m0b2psk10qcj1r5i7faiiif6gt Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240729@183011.5029 m0b2psk10qcj1r5i7faiiif6gt Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240729@183011.5059 m0b2psk10qcj1r5i7faiiif6gt Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240729@183011.5078 m0b2psk10qcj1r5i7faiiif6gt Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240729@183011.5090 m0b2psk10qcj1r5i7faiiif6gt Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240729@183011.5107 m0b2psk10qcj1r5i7faiiif6gt Query : select sestamp valor from se where ref ='324.691.00.01' and lote = 'r2400209200a'
20240729@183011.5122 m0b2psk10qcj1r5i7faiiif6gt Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240729@183011.5140 m0b2psk10qcj1r5i7faiiif6gt Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240729@183011.5153 m0b2psk10qcj1r5i7faiiif6gt Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66a7d9819466a7d1a37d','aut66a7d5186066a7d1a324' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240729@183011.5159 m0b2psk10qcj1r5i7faiiif6gt Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240729@183011.5192 m0b2psk10qcj1r5i7faiiif6gt Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240729@183011.5232 m0b2psk10qcj1r5i7faiiif6gt Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem) values ('aut66a7d9819466a7d1a37d',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',4.000 ,'aut66a7d5186066a7d1a324' ,0,0 ,2,23.00,10000,?,?,?,?)
20240729@183011.6113 m0b2psk10qcj1r5i7faiiif6gt Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240729@183011.6510 m0b2psk10qcj1r5i7faiiif6gt Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240729@183012.3932 m0b2psk10qcj1r5i7faiiif6gt Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240729@183012.4275 m0b2psk10qcj1r5i7faiiif6gt Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240729@183012.5526 m0b2psk10qcj1r5i7faiiif6gt Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240729@183012.5554 m0b2psk10qcj1r5i7faiiif6gt Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240729@183012.5719 m0b2psk10qcj1r5i7faiiif6gt Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240729@183012.5752 m0b2psk10qcj1r5i7faiiif6gt Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66a7d7243866a7d1a487','aut66a7d5186066a7d1a324' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240729@183012.5765 m0b2psk10qcj1r5i7faiiif6gt Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240729@183012.5859 m0b2psk10qcj1r5i7faiiif6gt Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240729@183012.6394 m0b2psk10qcj1r5i7faiiif6gt Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66a7d7243866a7d1a487',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66a7d5186066a7d1a324' ,0,0 ,2,23.00,20000,?,?,?)
20240729@183012.6893 m0b2psk10qcj1r5i7faiiif6gt Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut66a7d5186066a7d1a324','2405059','wait',39,'adm09112754980.682000002')
20240729@183012.7218 m0b2psk10qcj1r5i7faiiif6gt Query : use flama_phc
20240729@183012.7222 m0b2psk10qcj1r5i7faiiif6gt Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240729@183012.7259 m0b2psk10qcj1r5i7faiiif6gt Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1253';
20240729@183012.7286 m0b2psk10qcj1r5i7faiiif6gt Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1253';
20240729@183012.7325 m0b2psk10qcj1r5i7faiiif6gt Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1253';
20240729@183012.7348 m0b2psk10qcj1r5i7faiiif6gt Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1253';

20240730@093630.9168 h00t6r17190afaprqh8vqk1rp0 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1254';
20240730@093630.9226 h00t6r17190afaprqh8vqk1rp0 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1254';
20240730@093630.9251 h00t6r17190afaprqh8vqk1rp0 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1254';
20240730@093630.9308 h00t6r17190afaprqh8vqk1rp0 Query : use flama_phc
20240730@093630.9312 h00t6r17190afaprqh8vqk1rp0 Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240730@093630.9434 h00t6r17190afaprqh8vqk1rp0 Query : use flama_phc
20240730@093630.9437 h00t6r17190afaprqh8vqk1rp0 Query : select no, estab,szadrsdesc from szadrs where u_coddest=8939
20240730@093630.9521 h00t6r17190afaprqh8vqk1rp0 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '323.318.09.00'
20240730@093630.9689 h00t6r17190afaprqh8vqk1rp0 Query : use flama_phc
20240730@093630.9693 h00t6r17190afaprqh8vqk1rp0 Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20240730@093630.9964 h00t6r17190afaprqh8vqk1rp0 Query : use flama_phc
20240730@093630.9968 h00t6r17190afaprqh8vqk1rp0 Query : select top 1 1 valor from td where td.ndoc = 39
20240730@093631.1160 h00t6r17190afaprqh8vqk1rp0 Query : use flama_phc
20240730@093631.1200 h00t6r17190afaprqh8vqk1rp0 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')
20240730@093631.2060 h00t6r17190afaprqh8vqk1rp0 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
20240730@093631.3740 h00t6r17190afaprqh8vqk1rp0 Query : use flama_phc
20240730@093631.3790 h00t6r17190afaprqh8vqk1rp0 Query : select top 1 ~inactivo valor from cl where no = '102939' and estab = 0 order by inactivo desc
20240730@093631.5190 h00t6r17190afaprqh8vqk1rp0 Query : use flama_phc
20240730@093631.5230 h00t6r17190afaprqh8vqk1rp0 Query : select top 1 tipodoc,regrd from td where ndoc = 39
20240730@093631.6310 h00t6r17190afaprqh8vqk1rp0 Query : use flama_phc
20240730@093631.6350 h00t6r17190afaprqh8vqk1rp0 Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20240730@093631.7130 h00t6r17190afaprqh8vqk1rp0 Query : use flama_phc
20240730@093631.7160 h00t6r17190afaprqh8vqk1rp0 Query : select szadrsstamp valor from szadrs where szadrsdesc='ana cristina.'
20240730@093631.7640 h00t6r17190afaprqh8vqk1rp0 Query : use flama_phc
20240730@093631.7680 h00t6r17190afaprqh8vqk1rp0 Query : select 1 valor from td where ndoc = 39
20240730@093631.8530 h00t6r17190afaprqh8vqk1rp0 Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20240730@093631.9300 h00t6r17190afaprqh8vqk1rp0 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240730@093631.1228 h00t6r17190afaprqh8vqk1rp0 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20240730@093631.1378 h00t6r17190afaprqh8vqk1rp0 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240730@093631.1399 h00t6r17190afaprqh8vqk1rp0 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20240730@093631.1768 h00t6r17190afaprqh8vqk1rp0 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240730@093631.2030 h00t6r17190afaprqh8vqk1rp0 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20240730@093631.2290 h00t6r17190afaprqh8vqk1rp0 Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240730@093631.3420 h00t6r17190afaprqh8vqk1rp0 Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240730@093631.4205 h00t6r17190afaprqh8vqk1rp0 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240730@093631.4510 h00t6r17190afaprqh8vqk1rp0 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20240730@093631.4965 h00t6r17190afaprqh8vqk1rp0 Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut66a8a1171866a8a60f37' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20240730@093631.6114 h00t6r17190afaprqh8vqk1rp0 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240730@093631.6384 h00t6r17190afaprqh8vqk1rp0 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20240730@093631.7089 h00t6r17190afaprqh8vqk1rp0 Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20240730@093631.8898 h00t6r17190afaprqh8vqk1rp0 Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20240730@093631.9108 h00t6r17190afaprqh8vqk1rp0 Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20240730@093631.9275 h00t6r17190afaprqh8vqk1rp0 Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20240730@093631.9379 h00t6r17190afaprqh8vqk1rp0 Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20240730@093631.9474 h00t6r17190afaprqh8vqk1rp0 Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20240730@093631.9569 h00t6r17190afaprqh8vqk1rp0 Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut66a8a1171866a8a60f37',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20240730@093632.7500 h00t6r17190afaprqh8vqk1rp0 Query : select top 1 fno valor from wsftdata order by fno desc
20240730@093632.1680 h00t6r17190afaprqh8vqk1rp0 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240730@093632.1940 h00t6r17190afaprqh8vqk1rp0 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20240730@093632.2200 h00t6r17190afaprqh8vqk1rp0 Query : select 'normal' from dummy
20240730@093632.2700 h00t6r17190afaprqh8vqk1rp0 Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut66a8a1171866a8a60f37',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',97,102939,0,'2024-07-30',39,'euro',0,0,2024 ,?,?)
20240730@093632.9910 h00t6r17190afaprqh8vqk1rp0 Query : use flama_phc
20240730@093632.9950 h00t6r17190afaprqh8vqk1rp0 Query : select st.usalote valor from st where st.ref = '323.318.09.00'
20240730@093632.1023 h00t6r17190afaprqh8vqk1rp0 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '323.318.09.00'
20240730@093632.1180 h00t6r17190afaprqh8vqk1rp0 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240730@093632.1198 h00t6r17190afaprqh8vqk1rp0 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240730@093632.1229 h00t6r17190afaprqh8vqk1rp0 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240730@093632.1253 h00t6r17190afaprqh8vqk1rp0 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240730@093632.1263 h00t6r17190afaprqh8vqk1rp0 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240730@093632.1309 h00t6r17190afaprqh8vqk1rp0 Query : select sestamp valor from se where ref ='323.318.09.00' and lote = 'r2400053200a'
20240730@093632.1334 h00t6r17190afaprqh8vqk1rp0 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240730@093632.1354 h00t6r17190afaprqh8vqk1rp0 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240730@093632.1369 h00t6r17190afaprqh8vqk1rp0 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66a8a1910266a8a61020','aut66a8a1171866a8a60f37' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240730@093632.1431 h00t6r17190afaprqh8vqk1rp0 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240730@093632.1450 h00t6r17190afaprqh8vqk1rp0 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240730@093632.1483 h00t6r17190afaprqh8vqk1rp0 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem) values ('aut66a8a1910266a8a61020',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',1.000 ,'aut66a8a1171866a8a60f37' ,0,0 ,2,23.00,10000,?,?,?,?)
20240730@093632.1996 h00t6r17190afaprqh8vqk1rp0 Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut66a8a1171866a8a60f37','2405028','wait',39,'adm09112754980.682000002')
20240730@093632.2105 h00t6r17190afaprqh8vqk1rp0 Query : use flama_phc
20240730@093632.2109 h00t6r17190afaprqh8vqk1rp0 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240730@093632.2170 h00t6r17190afaprqh8vqk1rp0 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1254';
20240730@093632.2201 h00t6r17190afaprqh8vqk1rp0 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1254';
20240730@093632.2250 h00t6r17190afaprqh8vqk1rp0 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1254';
20240730@093632.2273 h00t6r17190afaprqh8vqk1rp0 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1254';
20240730@095131.1830 tk0fkoi44cqdoru6gdjcd1goi8 Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240730@095131.1841 tk0fkoi44cqdoru6gdjcd1goi8 Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240730@095131.1887 tk0fkoi44cqdoru6gdjcd1goi8 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1255';
20240730@095131.1958 tk0fkoi44cqdoru6gdjcd1goi8 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1255';
20240730@095131.2014 tk0fkoi44cqdoru6gdjcd1goi8 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1255';
20240730@095131.3887 tk0fkoi44cqdoru6gdjcd1goi8 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1255';
20240730@095131.3940 tk0fkoi44cqdoru6gdjcd1goi8 Query : use flama_phc
20240730@095131.3944 tk0fkoi44cqdoru6gdjcd1goi8 Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240730@095131.4013 tk0fkoi44cqdoru6gdjcd1goi8 Query : use flama_phc
20240730@095131.4016 tk0fkoi44cqdoru6gdjcd1goi8 Query : select no, estab,szadrsdesc from szadrs where u_coddest=8923
20240730@095131.4178 tk0fkoi44cqdoru6gdjcd1goi8 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1833.00.2'
20240730@095131.4357 tk0fkoi44cqdoru6gdjcd1goi8 Query : use flama_phc
20240730@095131.4360 tk0fkoi44cqdoru6gdjcd1goi8 Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20240730@095131.4405 tk0fkoi44cqdoru6gdjcd1goi8 Query : use flama_phc
20240730@095131.4408 tk0fkoi44cqdoru6gdjcd1goi8 Query : select top 1 1 valor from td where td.ndoc = 39
20240730@095131.4437 tk0fkoi44cqdoru6gdjcd1goi8 Query : use flama_phc
20240730@095131.4440 tk0fkoi44cqdoru6gdjcd1goi8 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')
20240730@095131.4606 tk0fkoi44cqdoru6gdjcd1goi8 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
20240730@095131.4707 tk0fkoi44cqdoru6gdjcd1goi8 Query : use flama_phc
20240730@095131.4711 tk0fkoi44cqdoru6gdjcd1goi8 Query : select top 1 ~inactivo valor from cl where no = '101621' and estab = 0 order by inactivo desc
20240730@095131.5182 tk0fkoi44cqdoru6gdjcd1goi8 Query : use flama_phc
20240730@095131.5188 tk0fkoi44cqdoru6gdjcd1goi8 Query : select top 1 tipodoc,regrd from td where ndoc = 39
20240730@095131.5263 tk0fkoi44cqdoru6gdjcd1goi8 Query : use flama_phc
20240730@095131.5267 tk0fkoi44cqdoru6gdjcd1goi8 Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20240730@095131.5322 tk0fkoi44cqdoru6gdjcd1goi8 Query : use flama_phc
20240730@095131.5327 tk0fkoi44cqdoru6gdjcd1goi8 Query : select szadrsstamp valor from szadrs where szadrsdesc='jom- gondomar'
20240730@095131.5373 tk0fkoi44cqdoru6gdjcd1goi8 Query : use flama_phc
20240730@095131.5376 tk0fkoi44cqdoru6gdjcd1goi8 Query : select 1 valor from td where ndoc = 39
20240730@095131.5390 tk0fkoi44cqdoru6gdjcd1goi8 Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20240730@095131.5404 tk0fkoi44cqdoru6gdjcd1goi8 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240730@095131.5422 tk0fkoi44cqdoru6gdjcd1goi8 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20240730@095131.5441 tk0fkoi44cqdoru6gdjcd1goi8 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240730@095131.5459 tk0fkoi44cqdoru6gdjcd1goi8 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20240730@095131.5489 tk0fkoi44cqdoru6gdjcd1goi8 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240730@095131.5512 tk0fkoi44cqdoru6gdjcd1goi8 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20240730@095131.5525 tk0fkoi44cqdoru6gdjcd1goi8 Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240730@095131.5600 tk0fkoi44cqdoru6gdjcd1goi8 Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240730@095131.5615 tk0fkoi44cqdoru6gdjcd1goi8 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240730@095131.5631 tk0fkoi44cqdoru6gdjcd1goi8 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20240730@095131.5647 tk0fkoi44cqdoru6gdjcd1goi8 Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut66a8a1286066a8a99386' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20240730@095131.5897 tk0fkoi44cqdoru6gdjcd1goi8 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240730@095131.5922 tk0fkoi44cqdoru6gdjcd1goi8 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20240730@095131.5956 tk0fkoi44cqdoru6gdjcd1goi8 Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20240730@095131.5968 tk0fkoi44cqdoru6gdjcd1goi8 Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20240730@095131.5979 tk0fkoi44cqdoru6gdjcd1goi8 Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20240730@095131.5990 tk0fkoi44cqdoru6gdjcd1goi8 Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20240730@095131.6003 tk0fkoi44cqdoru6gdjcd1goi8 Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20240730@095131.6016 tk0fkoi44cqdoru6gdjcd1goi8 Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20240730@095131.6027 tk0fkoi44cqdoru6gdjcd1goi8 Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut66a8a1286066a8a99386',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20240730@095131.6527 tk0fkoi44cqdoru6gdjcd1goi8 Query : select top 1 fno valor from wsftdata order by fno desc
20240730@095131.7301 tk0fkoi44cqdoru6gdjcd1goi8 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240730@095131.7529 tk0fkoi44cqdoru6gdjcd1goi8 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20240730@095131.7568 tk0fkoi44cqdoru6gdjcd1goi8 Query : select 'normal' from dummy
20240730@095131.7590 tk0fkoi44cqdoru6gdjcd1goi8 Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut66a8a1286066a8a99386',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',98,101621,0,'2024-07-30',39,'euro',0,0,2024 ,?,?)
20240730@095131.8064 tk0fkoi44cqdoru6gdjcd1goi8 Query : use flama_phc
20240730@095131.8068 tk0fkoi44cqdoru6gdjcd1goi8 Query : select st.usalote valor from st where st.ref = '324.1833.00.2'
20240730@095131.8096 tk0fkoi44cqdoru6gdjcd1goi8 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.1833.00.2'
20240730@095131.8450 tk0fkoi44cqdoru6gdjcd1goi8 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240730@095131.8477 tk0fkoi44cqdoru6gdjcd1goi8 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240730@095131.8505 tk0fkoi44cqdoru6gdjcd1goi8 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240730@095131.8524 tk0fkoi44cqdoru6gdjcd1goi8 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240730@095131.8534 tk0fkoi44cqdoru6gdjcd1goi8 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240730@095131.8548 tk0fkoi44cqdoru6gdjcd1goi8 Query : select sestamp valor from se where ref ='324.1833.00.2' and lote = 'r2301256100a'
20240730@095131.8583 tk0fkoi44cqdoru6gdjcd1goi8 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240730@095131.8601 tk0fkoi44cqdoru6gdjcd1goi8 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240730@095131.8829 tk0fkoi44cqdoru6gdjcd1goi8 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66a8a7563866a8a993d1','aut66a8a1286066a8a99386' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240730@095131.8907 tk0fkoi44cqdoru6gdjcd1goi8 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240730@095131.8933 tk0fkoi44cqdoru6gdjcd1goi8 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240730@095131.8969 tk0fkoi44cqdoru6gdjcd1goi8 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem) values ('aut66a8a7563866a8a993d1',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',4.000 ,'aut66a8a1286066a8a99386' ,0,0 ,2,23.00,10000,?,?,?,?)
20240730@095131.9363 tk0fkoi44cqdoru6gdjcd1goi8 Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut66a8a1286066a8a99386','2405058','wait',39,'adm09112754980.682000002')
20240730@095131.9485 tk0fkoi44cqdoru6gdjcd1goi8 Query : use flama_phc
20240730@095131.9489 tk0fkoi44cqdoru6gdjcd1goi8 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240730@095131.9521 tk0fkoi44cqdoru6gdjcd1goi8 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1255';
20240730@095131.9585 tk0fkoi44cqdoru6gdjcd1goi8 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1255';
20240730@095131.9625 tk0fkoi44cqdoru6gdjcd1goi8 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1255';
20240730@095131.9668 tk0fkoi44cqdoru6gdjcd1goi8 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1255';

20240730@105253.9587 1v4p1528h39i2iiairqro88d1i Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1256';
20240730@105253.9640 1v4p1528h39i2iiairqro88d1i Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1256';
20240730@105253.9665 1v4p1528h39i2iiairqro88d1i Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1256';
20240730@105253.9703 1v4p1528h39i2iiairqro88d1i Query : use flama_phc
20240730@105253.9706 1v4p1528h39i2iiairqro88d1i Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240730@105253.9777 1v4p1528h39i2iiairqro88d1i Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.681.00.01'
20240730@105253.9906 1v4p1528h39i2iiairqro88d1i 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.681.00.01' and bi.lordem =20000
20240730@105254.3110 1v4p1528h39i2iiairqro88d1i 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 = 'cps24022844755,750000002 ' 
20240730@105254.6270 1v4p1528h39i2iiairqro88d1i Query : use flama_phc
20240730@105254.6310 1v4p1528h39i2iiairqro88d1i Query : select top 1 1 valor from ts where ts.ndos = 61
20240730@105254.7340 1v4p1528h39i2iiairqro88d1i Query : use flama_phc
20240730@105254.7380 1v4p1528h39i2iiairqro88d1i 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')
20240730@105254.7690 1v4p1528h39i2iiairqro88d1i 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
20240730@105254.9190 1v4p1528h39i2iiairqro88d1i Query : use flama_phc
20240730@105254.9220 1v4p1528h39i2iiairqro88d1i Query : select top 1 ~inactivo valor from fl where no = '202090' and estab = 00 order by inactivo desc
20240730@105254.1052 1v4p1528h39i2iiairqro88d1i Query : use flama_phc
20240730@105254.1056 1v4p1528h39i2iiairqro88d1i Query : select 1 valor from ts where ndos = 61
20240730@105254.1130 1v4p1528h39i2iiairqro88d1i Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240730@105254.1151 1v4p1528h39i2iiairqro88d1i Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bo' and documentnumber = 61
20240730@105254.1165 1v4p1528h39i2iiairqro88d1i Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240730@105254.1181 1v4p1528h39i2iiairqro88d1i Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bo2' and documentnumber = 61
20240730@105254.1192 1v4p1528h39i2iiairqro88d1i Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240730@105254.1214 1v4p1528h39i2iiairqro88d1i Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bo3' and documentnumber = 61
20240730@105254.1226 1v4p1528h39i2iiairqro88d1i 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
20240730@105254.1342 1v4p1528h39i2iiairqro88d1i Query : select top 1 bo.obrano valor from bo bo where bo.ndos = 61 and boano=2024 order by obrano desc
20240730@105254.1448 1v4p1528h39i2iiairqro88d1i Query : select top 1 bo.obrano valor from bo bo where bo.ndos = 61 and boano=2024 order by obrano desc
20240730@105254.1470 1v4p1528h39i2iiairqro88d1i Query : use flama_phc
20240730@105254.1479 1v4p1528h39i2iiairqro88d1i Query : select top 1 no,estab,nome, morada, local,codpost,ncont,pncont,pais,inactivo,motiseimp,codmotiseimp from fl where no='202090' and estab=00
20240730@105254.1577 1v4p1528h39i2iiairqro88d1i Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240730@105254.1598 1v4p1528h39i2iiairqro88d1i Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bo3' and documentnumber = 61
20240730@105254.1616 1v4p1528h39i2iiairqro88d1i Query : insert into bo3 (bo3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66a8b5860366a8b7f623',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut')
20240730@105254.1675 1v4p1528h39i2iiairqro88d1i Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240730@105254.1694 1v4p1528h39i2iiairqro88d1i Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bo2' and documentnumber = 61
20240730@105254.1709 1v4p1528h39i2iiairqro88d1i Query : insert into bo2 (bo2stamp, tiposaft, idserie,cambio,cambiofixo,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66a8b5860366a8b7f623','--','bo',7.8031578947368421052 ,1,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut')
20240730@105254.1907 1v4p1528h39i2iiairqro88d1i Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240730@105254.1927 1v4p1528h39i2iiairqro88d1i Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bo' and documentnumber = 61
20240730@105254.1941 1v4p1528h39i2iiairqro88d1i 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 ('aut66a8b5860366a8b7f623','guia r. fornecedor','2024-07-30',61,2402252,?,?,?,?,?,?,?,?,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')
20240730@105254.2447 1v4p1528h39i2iiairqro88d1i Query : use flama_phc
20240730@105254.2451 1v4p1528h39i2iiairqro88d1i Query : select st.usalote valor from st where st.ref = '324.681.00.01'
20240730@105254.2485 1v4p1528h39i2iiairqro88d1i Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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.681.00.01'
20240730@105254.2636 1v4p1528h39i2iiairqro88d1i Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240730@105254.2655 1v4p1528h39i2iiairqro88d1i Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 61
20240730@105254.2673 1v4p1528h39i2iiairqro88d1i Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240730@105254.2692 1v4p1528h39i2iiairqro88d1i Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 61
20240730@105254.2704 1v4p1528h39i2iiairqro88d1i Query : select sestamp valor from se where ref ='324.681.00.01' and lote = 'r2400223200a'
20240730@105254.2720 1v4p1528h39i2iiairqro88d1i Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240730@105254.2737 1v4p1528h39i2iiairqro88d1i Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'se' and documentnumber = 0
20240730@105254.2748 1v4p1528h39i2iiairqro88d1i Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240730@105254.2765 1v4p1528h39i2iiairqro88d1i Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'se' and documentnumber = 0
20240730@105254.2781 1v4p1528h39i2iiairqro88d1i Query : insert into se (sestamp,ref, lote, data,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66a8b4413166a8b7f643',?,?,'20240730',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut;','aut;')
20240730@105254.2870 1v4p1528h39i2iiairqro88d1i Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240730@105254.2889 1v4p1528h39i2iiairqro88d1i Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240730@105254.2906 1v4p1528h39i2iiairqro88d1i Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 61
20240730@105254.2920 1v4p1528h39i2iiairqro88d1i Query : insert into bi2 (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut66a8b4768866a8b7f646','aut66a8b5860366a8b7f623',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 = 'aut66a8b5860366a8b7f623'
20240730@105254.3088 1v4p1528h39i2iiairqro88d1i Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240730@105254.3108 1v4p1528h39i2iiairqro88d1i Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 61
20240730@105254.3131 1v4p1528h39i2iiairqro88d1i 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 'aut66a8b4768866a8b7f646',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 ,23.750000,23.750000*200.48 ,23.750000,23.750000*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,'cps24022844755,750000002 ',148.26,148.26*1030,148.26,148.26*1030,?,?,?,4 from bo bo where bo.bostamp = 'aut66a8b5860366a8b7f623'
20240730@105254.4763 1v4p1528h39i2iiairqro88d1i Query : use flama_phc
20240730@105254.4770 1v4p1528h39i2iiairqro88d1i Query : declare @bostamp varchar(25) = 'aut66a8b5860366a8b7f623' ,@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 
20240730@105254.7564 1v4p1528h39i2iiairqro88d1i Query : use flama_phc
20240730@105254.7568 1v4p1528h39i2iiairqro88d1i Query : select 1 valor from bo where bo.bostamp = 'aut66a8b5860366a8b7f623'
20240730@105254.7662 1v4p1528h39i2iiairqro88d1i 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) = 'aut66a8b5860366a8b7f623' 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 
20240730@105254.9941 1v4p1528h39i2iiairqro88d1i Query : use flama_phc
20240730@105254.9948 1v4p1528h39i2iiairqro88d1i Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240730@105255.4000 1v4p1528h39i2iiairqro88d1i Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1256';
20240730@105255.3100 1v4p1528h39i2iiairqro88d1i Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1256';
20240730@105255.5940 d9dd3h7jdc4m015hhp9aggsl4a Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240730@105255.6050 d9dd3h7jdc4m015hhp9aggsl4a Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240730@105255.6610 d9dd3h7jdc4m015hhp9aggsl4a Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1257';
20240730@105255.7150 d9dd3h7jdc4m015hhp9aggsl4a Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1257';
20240730@105255.7680 d9dd3h7jdc4m015hhp9aggsl4a Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1257';
20240730@105255.7940 d9dd3h7jdc4m015hhp9aggsl4a Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1257';
20240730@105255.8430 d9dd3h7jdc4m015hhp9aggsl4a Query : use flama_phc
20240730@105255.8470 d9dd3h7jdc4m015hhp9aggsl4a Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240730@105255.9230 d9dd3h7jdc4m015hhp9aggsl4a Query : use flama_phc
20240730@105255.9260 d9dd3h7jdc4m015hhp9aggsl4a Query : select no, estab,szadrsdesc from szadrs where u_coddest=8748
20240730@105255.1011 d9dd3h7jdc4m015hhp9aggsl4a Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1879.00.1'
20240730@105255.1173 d9dd3h7jdc4m015hhp9aggsl4a Query : use flama_phc
20240730@105255.1177 d9dd3h7jdc4m015hhp9aggsl4a Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20240730@105255.1219 d9dd3h7jdc4m015hhp9aggsl4a Query : use flama_phc
20240730@105255.1223 d9dd3h7jdc4m015hhp9aggsl4a Query : select top 1 1 valor from td where td.ndoc = 39
20240730@105255.1264 d9dd3h7jdc4m015hhp9aggsl4a Query : use flama_phc
20240730@105255.1268 d9dd3h7jdc4m015hhp9aggsl4a 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')
20240730@105255.1355 d9dd3h7jdc4m015hhp9aggsl4a 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
20240730@105255.1394 d9dd3h7jdc4m015hhp9aggsl4a Query : use flama_phc
20240730@105255.1398 d9dd3h7jdc4m015hhp9aggsl4a Query : select top 1 ~inactivo valor from cl where no = '102253' and estab = 0 order by inactivo desc
20240730@105255.1533 d9dd3h7jdc4m015hhp9aggsl4a Query : use flama_phc
20240730@105255.1537 d9dd3h7jdc4m015hhp9aggsl4a Query : select top 1 tipodoc,regrd from td where ndoc = 39
20240730@105255.1571 d9dd3h7jdc4m015hhp9aggsl4a Query : use flama_phc
20240730@105255.1576 d9dd3h7jdc4m015hhp9aggsl4a Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20240730@105255.1621 d9dd3h7jdc4m015hhp9aggsl4a Query : use flama_phc
20240730@105255.1625 d9dd3h7jdc4m015hhp9aggsl4a Query : select szadrsstamp valor from szadrs where szadrsdesc='fnac - entrega'
20240730@105255.1674 d9dd3h7jdc4m015hhp9aggsl4a Query : use flama_phc
20240730@105255.1677 d9dd3h7jdc4m015hhp9aggsl4a Query : select 1 valor from td where ndoc = 39
20240730@105255.1694 d9dd3h7jdc4m015hhp9aggsl4a Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20240730@105255.1710 d9dd3h7jdc4m015hhp9aggsl4a Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240730@105255.1729 d9dd3h7jdc4m015hhp9aggsl4a Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20240730@105255.1751 d9dd3h7jdc4m015hhp9aggsl4a Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240730@105255.1767 d9dd3h7jdc4m015hhp9aggsl4a Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20240730@105255.1806 d9dd3h7jdc4m015hhp9aggsl4a Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240730@105255.1824 d9dd3h7jdc4m015hhp9aggsl4a Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20240730@105255.1839 d9dd3h7jdc4m015hhp9aggsl4a Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240730@105255.1912 d9dd3h7jdc4m015hhp9aggsl4a Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240730@105255.1926 d9dd3h7jdc4m015hhp9aggsl4a Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240730@105255.1943 d9dd3h7jdc4m015hhp9aggsl4a Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20240730@105255.3075 d9dd3h7jdc4m015hhp9aggsl4a Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut66a8b5814866a8b7f72c' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20240730@105255.3269 d9dd3h7jdc4m015hhp9aggsl4a Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240730@105255.3290 d9dd3h7jdc4m015hhp9aggsl4a Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20240730@105255.3336 d9dd3h7jdc4m015hhp9aggsl4a Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20240730@105255.3355 d9dd3h7jdc4m015hhp9aggsl4a Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20240730@105255.3373 d9dd3h7jdc4m015hhp9aggsl4a Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20240730@105255.3390 d9dd3h7jdc4m015hhp9aggsl4a Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20240730@105255.3405 d9dd3h7jdc4m015hhp9aggsl4a Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20240730@105255.3421 d9dd3h7jdc4m015hhp9aggsl4a Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20240730@105255.3435 d9dd3h7jdc4m015hhp9aggsl4a Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut66a8b5814866a8b7f72c',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20240730@105255.3693 d9dd3h7jdc4m015hhp9aggsl4a Query : select top 1 fno valor from wsftdata order by fno desc
20240730@105255.3717 d9dd3h7jdc4m015hhp9aggsl4a Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240730@105255.3737 d9dd3h7jdc4m015hhp9aggsl4a Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20240730@105255.3765 d9dd3h7jdc4m015hhp9aggsl4a Query : select 'normal' from dummy
20240730@105255.3787 d9dd3h7jdc4m015hhp9aggsl4a Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut66a8b5814866a8b7f72c',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',99,102253,0,'2024-07-30',39,'euro',0,0,2024 ,?,?)
20240730@105255.4118 d9dd3h7jdc4m015hhp9aggsl4a Query : use flama_phc
20240730@105255.4121 d9dd3h7jdc4m015hhp9aggsl4a Query : select st.usalote valor from st where st.ref = '324.1879.00.1'
20240730@105255.4157 d9dd3h7jdc4m015hhp9aggsl4a Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.1879.00.1'
20240730@105255.4321 d9dd3h7jdc4m015hhp9aggsl4a Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240730@105255.4340 d9dd3h7jdc4m015hhp9aggsl4a Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240730@105255.4370 d9dd3h7jdc4m015hhp9aggsl4a Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240730@105255.4387 d9dd3h7jdc4m015hhp9aggsl4a Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240730@105255.4397 d9dd3h7jdc4m015hhp9aggsl4a Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240730@105255.4411 d9dd3h7jdc4m015hhp9aggsl4a Query : select sestamp valor from se where ref ='324.1879.00.1' and lote = 'r2300643200a'
20240730@105255.4433 d9dd3h7jdc4m015hhp9aggsl4a Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240730@105255.4453 d9dd3h7jdc4m015hhp9aggsl4a Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240730@105255.4467 d9dd3h7jdc4m015hhp9aggsl4a Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66a8b3755466a8b7f76c','aut66a8b5814866a8b7f72c' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240730@105255.4472 d9dd3h7jdc4m015hhp9aggsl4a Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240730@105255.4488 d9dd3h7jdc4m015hhp9aggsl4a Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240730@105255.4530 d9dd3h7jdc4m015hhp9aggsl4a Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem) values ('aut66a8b3755466a8b7f76c',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',10.000 ,'aut66a8b5814866a8b7f72c' ,0,0 ,2,23.00,10000,?,?,?,?)
20240730@105255.4820 d9dd3h7jdc4m015hhp9aggsl4a Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240730@105255.4838 d9dd3h7jdc4m015hhp9aggsl4a Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240730@105255.4878 d9dd3h7jdc4m015hhp9aggsl4a Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240730@105255.4894 d9dd3h7jdc4m015hhp9aggsl4a Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240730@105255.4903 d9dd3h7jdc4m015hhp9aggsl4a Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240730@105255.4917 d9dd3h7jdc4m015hhp9aggsl4a Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240730@105255.4935 d9dd3h7jdc4m015hhp9aggsl4a Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240730@105255.4953 d9dd3h7jdc4m015hhp9aggsl4a Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66a8b0851066a8b7f778','aut66a8b5814866a8b7f72c' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240730@105255.4957 d9dd3h7jdc4m015hhp9aggsl4a Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240730@105255.4977 d9dd3h7jdc4m015hhp9aggsl4a Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240730@105255.5011 d9dd3h7jdc4m015hhp9aggsl4a Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66a8b0851066a8b7f778',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66a8b5814866a8b7f72c' ,0,0 ,2,23.00,20000,?,?,?)
20240730@105255.5287 d9dd3h7jdc4m015hhp9aggsl4a Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut66a8b5814866a8b7f72c','2405067','wait',39,'adm09112754980.682000002')
20240730@105255.5373 d9dd3h7jdc4m015hhp9aggsl4a Query : use flama_phc
20240730@105255.5378 d9dd3h7jdc4m015hhp9aggsl4a Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240730@105255.5410 d9dd3h7jdc4m015hhp9aggsl4a Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1257';
20240730@105255.5440 d9dd3h7jdc4m015hhp9aggsl4a Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1257';
20240730@105255.5478 d9dd3h7jdc4m015hhp9aggsl4a Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1257';
20240730@105255.5502 d9dd3h7jdc4m015hhp9aggsl4a Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1257';
20240730@105255.7300 37uc7d80ii68fjnuc8bsl2ab3k Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240730@105255.7317 37uc7d80ii68fjnuc8bsl2ab3k Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240730@105255.7371 37uc7d80ii68fjnuc8bsl2ab3k Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1258';
20240730@105255.7450 37uc7d80ii68fjnuc8bsl2ab3k Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1258';
20240730@105255.7497 37uc7d80ii68fjnuc8bsl2ab3k Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1258';
20240730@105255.7520 37uc7d80ii68fjnuc8bsl2ab3k Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1258';
20240730@105255.9037 669h052mpqlkjis2bm5glt9l7r Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240730@105255.9050 669h052mpqlkjis2bm5glt9l7r Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240730@105255.9112 669h052mpqlkjis2bm5glt9l7r Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1259';
20240730@105255.9165 669h052mpqlkjis2bm5glt9l7r Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1259';
20240730@105255.9216 669h052mpqlkjis2bm5glt9l7r Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1259';
20240730@105255.9244 669h052mpqlkjis2bm5glt9l7r Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1259';
20240730@105255.9284 669h052mpqlkjis2bm5glt9l7r Query : use flama_phc
20240730@105255.9287 669h052mpqlkjis2bm5glt9l7r Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240730@105255.9360 669h052mpqlkjis2bm5glt9l7r Query : select no, estab,szadrsdesc from szadrs where u_coddest=23
20240730@105255.9450 669h052mpqlkjis2bm5glt9l7r Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.5501.00.1'
20240730@105255.9613 669h052mpqlkjis2bm5glt9l7r Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =054 and bo.boano =2024 and bo.obrano = 0000032 and bi.ref ='324.5501.00.1' and bi.lordem =10000
20240730@105255.9953 669h052mpqlkjis2bm5glt9l7r 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 = 'pll24072660582,027000001 ' 
20240730@105256.2530 669h052mpqlkjis2bm5glt9l7r Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.5501.00.1'
20240730@105256.2780 669h052mpqlkjis2bm5glt9l7r Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =054 and bo.boano =2024 and bo.obrano = 0000032 and bi.ref ='324.5501.00.1' and bi.lordem =10000
20240730@105256.3030 669h052mpqlkjis2bm5glt9l7r 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 = 'pll24072660582,027000001 ' 
20240730@105256.3290 669h052mpqlkjis2bm5glt9l7r Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.1536.00.1'
20240730@105256.5420 669h052mpqlkjis2bm5glt9l7r Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =054 and bo.boano =2024 and bo.obrano = 0000032 and bi.ref ='324.1536.00.1' and bi.lordem =20000
20240730@105256.8720 669h052mpqlkjis2bm5glt9l7r 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 = 'pll24072660624,699000002 ' 
20240730@105256.1171 669h052mpqlkjis2bm5glt9l7r Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.1536.00.1'
20240730@105256.1198 669h052mpqlkjis2bm5glt9l7r Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =054 and bo.boano =2024 and bo.obrano = 0000032 and bi.ref ='324.1536.00.1' and bi.lordem =20000
20240730@105256.1224 669h052mpqlkjis2bm5glt9l7r 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 = 'pll24072660624,699000002 ' 
20240730@105256.1246 669h052mpqlkjis2bm5glt9l7r Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.958.00.01'
20240730@105256.1375 669h052mpqlkjis2bm5glt9l7r Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =054 and bo.boano =2024 and bo.obrano = 0000032 and bi.ref ='324.958.00.01' and bi.lordem =30000
20240730@105256.1699 669h052mpqlkjis2bm5glt9l7r 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 = 'pll24072660654,646000003 ' 
20240730@105256.2003 669h052mpqlkjis2bm5glt9l7r Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.1871.00.1'
20240730@105256.2135 669h052mpqlkjis2bm5glt9l7r Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =054 and bo.boano =2024 and bo.obrano = 0000032 and bi.ref ='324.1871.00.1' and bi.lordem =40000
20240730@105256.2468 669h052mpqlkjis2bm5glt9l7r 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 = 'pll24072660686,795000004 ' 
20240730@105256.2788 669h052mpqlkjis2bm5glt9l7r Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.1871.00.1'
20240730@105256.2810 669h052mpqlkjis2bm5glt9l7r Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =054 and bo.boano =2024 and bo.obrano = 0000032 and bi.ref ='324.1871.00.1' and bi.lordem =40000
20240730@105256.2835 669h052mpqlkjis2bm5glt9l7r 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 = 'pll24072660686,795000004 ' 
20240730@105256.2857 669h052mpqlkjis2bm5glt9l7r Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.1675.00.2'
20240730@105256.2979 669h052mpqlkjis2bm5glt9l7r Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =054 and bo.boano =2024 and bo.obrano = 0000032 and bi.ref ='324.1675.00.2' and bi.lordem =50000
20240730@105256.3304 669h052mpqlkjis2bm5glt9l7r 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 = 'pll24072660723,843000005 ' 
20240730@105256.4930 669h052mpqlkjis2bm5glt9l7r Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.1684.00.1'
20240730@105256.5065 669h052mpqlkjis2bm5glt9l7r Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =054 and bo.boano =2024 and bo.obrano = 0000032 and bi.ref ='324.1684.00.1' and bi.lordem =60000
20240730@105256.5425 669h052mpqlkjis2bm5glt9l7r 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 = 'pll24072660754,020000006 ' 
20240730@105256.5752 669h052mpqlkjis2bm5glt9l7r Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '323.318.09.00'
20240730@105256.5882 669h052mpqlkjis2bm5glt9l7r Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =054 and bo.boano =2024 and bo.obrano = 0000032 and bi.ref ='323.318.09.00' and bi.lordem =70000
20240730@105256.6247 669h052mpqlkjis2bm5glt9l7r 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 = 'pll24072660790,690000007 ' 
20240730@105256.6590 669h052mpqlkjis2bm5glt9l7r Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '323.367.09.00'
20240730@105256.6722 669h052mpqlkjis2bm5glt9l7r Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =054 and bo.boano =2024 and bo.obrano = 0000032 and bi.ref ='323.367.09.00' and bi.lordem =80000
20240730@105256.7073 669h052mpqlkjis2bm5glt9l7r 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 = 'pll24072660832,214000008 ' 
20240730@105256.7395 669h052mpqlkjis2bm5glt9l7r Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '323.367.09.00'
20240730@105256.7415 669h052mpqlkjis2bm5glt9l7r Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =054 and bo.boano =2024 and bo.obrano = 0000032 and bi.ref ='323.367.09.00' and bi.lordem =80000
20240730@105256.7437 669h052mpqlkjis2bm5glt9l7r 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 = 'pll24072660832,214000008 ' 
20240730@105256.7469 669h052mpqlkjis2bm5glt9l7r Query : use flama_phc
20240730@105256.7473 669h052mpqlkjis2bm5glt9l7r Query : select top 1 1 valor from ts where ts.ndos = 5
20240730@105256.7574 669h052mpqlkjis2bm5glt9l7r Query : use flama_phc
20240730@105256.7578 669h052mpqlkjis2bm5glt9l7r 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')
20240730@105256.7607 669h052mpqlkjis2bm5glt9l7r Query : select top 1 assinadoc issigned ,ts.stocks ,ts.bdempresas origin ,case when (cmstocks between 1 and 50 or cm2stocks between 1 and 50 ) then 1 else 0 end entrada ,case when cmstocks>50 or (cm2stocks>50 and trfa =1) then 1 else 0 end saida ,stneg validatestock ,tiposaft ,veserie useserialnumber ,foserie assetin ,ftserie assetout ,veserie assets ,trfarm assetstransfer ,grelha usegridfields from ts inner join ts2 on ts.tsstamp=ts2.ts2stamp where ts.ndos =5
20240730@105256.7774 669h052mpqlkjis2bm5glt9l7r Query : use flama_phc
20240730@105256.7778 669h052mpqlkjis2bm5glt9l7r Query : select top 1 ~inactivo valor from fl where no = '100999' and estab = 0 order by inactivo desc
20240730@105256.7893 669h052mpqlkjis2bm5glt9l7r Query : use flama_phc
20240730@105256.7896 669h052mpqlkjis2bm5glt9l7r Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20240730@105256.7938 669h052mpqlkjis2bm5glt9l7r Query : use flama_phc
20240730@105256.7941 669h052mpqlkjis2bm5glt9l7r Query : select szadrsstamp valor from szadrs where szadrsdesc='flama-fab.louÇas e electrodomesticos,sa'
20240730@105256.7990 669h052mpqlkjis2bm5glt9l7r Query : use flama_phc
20240730@105256.7993 669h052mpqlkjis2bm5glt9l7r Query : select 1 valor from ts where ndos = 5
20240730@105256.8007 669h052mpqlkjis2bm5glt9l7r Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240730@105256.8024 669h052mpqlkjis2bm5glt9l7r Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bo' and documentnumber = 5
20240730@105256.8040 669h052mpqlkjis2bm5glt9l7r Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240730@105256.8054 669h052mpqlkjis2bm5glt9l7r Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bo2' and documentnumber = 5
20240730@105256.8063 669h052mpqlkjis2bm5glt9l7r Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240730@105256.8077 669h052mpqlkjis2bm5glt9l7r Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bo3' and documentnumber = 5
20240730@105256.8086 669h052mpqlkjis2bm5glt9l7r Query : select top 1 ts2.manternumero, ts.tiposaft, ts.idserie,ts.nmdos,ts.bdempresas from ts inner join ts2 on ts.tsstamp=ts2.ts2stamp where ts.ndos = 5
20240730@105256.8215 669h052mpqlkjis2bm5glt9l7r Query : select top 1 bo.obrano valor from bo bo where bo.ndos = 5 and boano=2024 order by obrano desc
20240730@105256.8323 669h052mpqlkjis2bm5glt9l7r Query : select top 1 bo.obrano valor from wsbodata bo where bo.ndos = 5 and boano=2024 order by obrano desc
20240730@105256.8418 669h052mpqlkjis2bm5glt9l7r Query : use flama_phc
20240730@105256.8425 669h052mpqlkjis2bm5glt9l7r Query : select top 1 no,estab,nome, morada, local,codpost,ncont,pncont,pais,inactivo,motiseimp,codmotiseimp from fl where no='100999' and estab=0
20240730@105256.8509 669h052mpqlkjis2bm5glt9l7r Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240730@105256.8526 669h052mpqlkjis2bm5glt9l7r Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bo3' and documentnumber = 5
20240730@105256.8542 669h052mpqlkjis2bm5glt9l7r Query : insert into wsbo3data (bo3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66a8b3221466a8b7f8cd',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut')
20240730@105256.8624 669h052mpqlkjis2bm5glt9l7r Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240730@105256.8640 669h052mpqlkjis2bm5glt9l7r Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bo2' and documentnumber = 5
20240730@105256.8653 669h052mpqlkjis2bm5glt9l7r Query : insert into wsbo2data (bo2stamp, tiposaft, idserie,cambio,cambiofixo,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,xpddata,xpdhora,carga,descar) values ('aut66a8b3221466a8b7f8cd','ga','bo',0 ,0,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut','20240730','11:22',?,?)
20240730@105256.8990 669h052mpqlkjis2bm5glt9l7r Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240730@105256.9010 669h052mpqlkjis2bm5glt9l7r Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bo' and documentnumber = 5
20240730@105256.9031 669h052mpqlkjis2bm5glt9l7r Query : insert into wsbodata (bostamp, nmdos, dataobra, ndos, obrano, no, estab, nome, ncont, morada, local, codpost, moeda, boano, memissao,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,maquina ) values ('aut66a8b3221466a8b7f8cd','trf entre armazéns a','2024-07-30',5,410,?,?,?,?,?,?,?,?,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',?)
20240730@105256.9646 669h052mpqlkjis2bm5glt9l7r Query : use flama_phc
20240730@105256.9651 669h052mpqlkjis2bm5glt9l7r Query : select st.usalote valor from st where st.ref = '324.5501.00.1'
20240730@105256.9669 669h052mpqlkjis2bm5glt9l7r Query : use flama_phc
20240730@105256.9673 669h052mpqlkjis2bm5glt9l7r Query : select st.stns valor from st where st.ref = '324.5501.00.1'
20240730@105256.9793 669h052mpqlkjis2bm5glt9l7r Query : use flama_phc
20240730@105256.9796 669h052mpqlkjis2bm5glt9l7r Query : select isnull(sum(stock) ,0)stock ,isnull(sum(qttrec),0) qttrec ,0 qttcat ,isnull(sum(rescli),0) rescli ,isnull(sum(resfor),0) resfor from sa where sa.ref = '324.5501.00.1' and sa.armazem = 133 
20240730@105256.9860 669h052mpqlkjis2bm5glt9l7r Query : use flama_phc
20240730@105256.9863 669h052mpqlkjis2bm5glt9l7r Query : select st.stns valor from st where st.ref = '324.5501.00.1'
20240730@105256.9890 669h052mpqlkjis2bm5glt9l7r Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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'
20240730@105257.2500 669h052mpqlkjis2bm5glt9l7r Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240730@105257.4200 669h052mpqlkjis2bm5glt9l7r Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 5
20240730@105257.5800 669h052mpqlkjis2bm5glt9l7r Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240730@105257.7800 669h052mpqlkjis2bm5glt9l7r Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 5
20240730@105257.8900 669h052mpqlkjis2bm5glt9l7r Query : select sestamp valor from se where ref ='324.5501.00.1' and lote = 'r2300908100a'
20240730@105257.1110 669h052mpqlkjis2bm5glt9l7r Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240730@105257.1240 669h052mpqlkjis2bm5glt9l7r Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240730@105257.1430 669h052mpqlkjis2bm5glt9l7r Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 5
20240730@105257.1560 669h052mpqlkjis2bm5glt9l7r Query : insert into wsbi2data (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut66a8b2173966a8b7f903','aut66a8b3221466a8b7f8cd',bo.morada, bo.local,bo.codpost ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut' from wsbodata bo where bo.bostamp = 'aut66a8b3221466a8b7f8cd'
20240730@105257.4270 669h052mpqlkjis2bm5glt9l7r Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240730@105257.4460 669h052mpqlkjis2bm5glt9l7r Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 5
20240730@105257.4680 669h052mpqlkjis2bm5glt9l7r Query : insert into wsbidata (bistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,obrano, qtt,uni2qtt ,no, estab,nmdos ,ndos, obranome,fechada, dataobra ,rdata ,dataopen, datafecho,local, morada ,codpost, nome,bostamp,lordem ,edebito,debito, epu,pu ,ivaincl,stns,unidade, unidad2 ,marcada,usalote ,ettdeb,ttdeb,epcusto, pcusto ,ecustoind,custoind ,vendedor,vendnm, ccusto,ncusto ,noserie,tabiva,iva ,ref,design,familia,desconto,desc2,desc3,desc4,eslvu,slvu,esltt,sltt,oobistamp,vumoeda,ttmoeda,slvumoeda,slttmoeda,lote,armazem,ar2mazem,obistamp ,stipo) select 'aut66a8b2173966a8b7f903',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut',bo.obrano, 6.000, 6.000*.0000000 ,bo.no, bo.estab,bo.nmdos ,bo.ndos, bo.obranome,bo.fechada, bo.dataobra ,bo.dataobra ,bo.dataopen,bo.datafecho,bo.local, bo.morada ,bo.codpost, bo.nome,bo.bostamp,10000 ,99.99,99.99*200.48,99.99,99.99*200.48 ,0,0,'un ',' ' ,bo.marcada,1 ,99.99*6.000,99.99*6.000*200.48 ,18.137000,18.137000*200.48 ,18.137000,18.137000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,99.99,99.99*200.48,99.99*6.000,99.99*6.000*200.48,'pll24072660582,027000001 ',99.99,99.99*6.000,99.99,99.99*6.000,?,?,?,?,4 from wsbodata bo where bo.bostamp = 'aut66a8b3221466a8b7f8cd'
20240730@105257.8800 669h052mpqlkjis2bm5glt9l7r Query : use flama_phc
20240730@105257.8840 669h052mpqlkjis2bm5glt9l7r Query : select st.usalote valor from st where st.ref = '324.5501.00.1'
20240730@105257.9000 669h052mpqlkjis2bm5glt9l7r Query : use flama_phc
20240730@105257.9030 669h052mpqlkjis2bm5glt9l7r Query : select st.stns valor from st where st.ref = '324.5501.00.1'
20240730@105257.9220 669h052mpqlkjis2bm5glt9l7r Query : use flama_phc
20240730@105257.9240 669h052mpqlkjis2bm5glt9l7r Query : select isnull(sum(stock) ,0)stock ,isnull(sum(qttrec),0) qttrec ,0 qttcat ,isnull(sum(rescli),0) rescli ,isnull(sum(resfor),0) resfor from sa where sa.ref = '324.5501.00.1' and sa.armazem = 133 
20240730@105257.9510 669h052mpqlkjis2bm5glt9l7r Query : use flama_phc
20240730@105257.9540 669h052mpqlkjis2bm5glt9l7r Query : select st.stns valor from st where st.ref = '324.5501.00.1'
20240730@105257.9740 669h052mpqlkjis2bm5glt9l7r Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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'
20240730@105257.9940 669h052mpqlkjis2bm5glt9l7r Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240730@105257.1014 669h052mpqlkjis2bm5glt9l7r Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 5
20240730@105257.1029 669h052mpqlkjis2bm5glt9l7r Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240730@105257.1044 669h052mpqlkjis2bm5glt9l7r Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 5
20240730@105257.1054 669h052mpqlkjis2bm5glt9l7r Query : select sestamp valor from se where ref ='324.5501.00.1' and lote = 'r2300908100a'
20240730@105257.1069 669h052mpqlkjis2bm5glt9l7r Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240730@105257.1087 669h052mpqlkjis2bm5glt9l7r Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240730@105257.1103 669h052mpqlkjis2bm5glt9l7r Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 5
20240730@105257.1118 669h052mpqlkjis2bm5glt9l7r Query : insert into wsbi2data (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut66a8b9733966a8b7f91a','aut66a8b3221466a8b7f8cd',bo.morada, bo.local,bo.codpost ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut' from wsbodata bo where bo.bostamp = 'aut66a8b3221466a8b7f8cd'
20240730@105257.1347 669h052mpqlkjis2bm5glt9l7r Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240730@105257.1370 669h052mpqlkjis2bm5glt9l7r Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 5
20240730@105257.1392 669h052mpqlkjis2bm5glt9l7r Query : insert into wsbidata (bistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,obrano, qtt,uni2qtt ,no, estab,nmdos ,ndos, obranome,fechada, dataobra ,rdata ,dataopen, datafecho,local, morada ,codpost, nome,bostamp,lordem ,edebito,debito, epu,pu ,ivaincl,stns,unidade, unidad2 ,marcada,usalote ,ettdeb,ttdeb,epcusto, pcusto ,ecustoind,custoind ,vendedor,vendnm, ccusto,ncusto ,noserie,tabiva,iva ,ref,design,familia,desconto,desc2,desc3,desc4,eslvu,slvu,esltt,sltt,oobistamp,vumoeda,ttmoeda,slvumoeda,slttmoeda,lote,armazem,ar2mazem,obistamp ,stipo) select 'aut66a8b9733966a8b7f91a',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut',bo.obrano, 4.000, 4.000*.0000000 ,bo.no, bo.estab,bo.nmdos ,bo.ndos, bo.obranome,bo.fechada, bo.dataobra ,bo.dataobra ,bo.dataopen,bo.datafecho,bo.local, bo.morada ,bo.codpost, bo.nome,bo.bostamp,20000 ,99.99,99.99*200.48,99.99,99.99*200.48 ,0,0,'un ',' ' ,bo.marcada,1 ,99.99*4.000,99.99*4.000*200.48 ,18.137000,18.137000*200.48 ,18.137000,18.137000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,99.99,99.99*200.48,99.99*4.000,99.99*4.000*200.48,'pll24072660582,027000001 ',99.99,99.99*4.000,99.99,99.99*4.000,?,?,?,?,4 from wsbodata bo where bo.bostamp = 'aut66a8b3221466a8b7f8cd'
20240730@105257.1713 669h052mpqlkjis2bm5glt9l7r Query : use flama_phc
20240730@105257.1717 669h052mpqlkjis2bm5glt9l7r Query : select st.usalote valor from st where st.ref = '324.1536.00.1'
20240730@105257.1733 669h052mpqlkjis2bm5glt9l7r Query : use flama_phc
20240730@105257.1736 669h052mpqlkjis2bm5glt9l7r Query : select st.stns valor from st where st.ref = '324.1536.00.1'
20240730@105257.1762 669h052mpqlkjis2bm5glt9l7r Query : use flama_phc
20240730@105257.1766 669h052mpqlkjis2bm5glt9l7r Query : select isnull(sum(stock) ,0)stock ,isnull(sum(qttrec),0) qttrec ,0 qttcat ,isnull(sum(rescli),0) rescli ,isnull(sum(resfor),0) resfor from sa where sa.ref = '324.1536.00.1' and sa.armazem = 133 
20240730@105257.2923 669h052mpqlkjis2bm5glt9l7r Query : use flama_phc
20240730@105257.2927 669h052mpqlkjis2bm5glt9l7r Query : select st.stns valor from st where st.ref = '324.1536.00.1'
20240730@105257.2956 669h052mpqlkjis2bm5glt9l7r Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.1536.00.1'
20240730@105257.3114 669h052mpqlkjis2bm5glt9l7r Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240730@105257.3133 669h052mpqlkjis2bm5glt9l7r Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 5
20240730@105257.3148 669h052mpqlkjis2bm5glt9l7r Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240730@105257.3163 669h052mpqlkjis2bm5glt9l7r Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 5
20240730@105257.3173 669h052mpqlkjis2bm5glt9l7r Query : select sestamp valor from se where ref ='324.1536.00.1' and lote = 'r2100240100a'
20240730@105257.3193 669h052mpqlkjis2bm5glt9l7r Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240730@105257.3207 669h052mpqlkjis2bm5glt9l7r Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240730@105257.3227 669h052mpqlkjis2bm5glt9l7r Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 5
20240730@105257.3241 669h052mpqlkjis2bm5glt9l7r Query : insert into wsbi2data (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut66a8b5555466a8b7f94e','aut66a8b3221466a8b7f8cd',bo.morada, bo.local,bo.codpost ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut' from wsbodata bo where bo.bostamp = 'aut66a8b3221466a8b7f8cd'
20240730@105257.3386 669h052mpqlkjis2bm5glt9l7r Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240730@105257.3404 669h052mpqlkjis2bm5glt9l7r Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 5
20240730@105257.3423 669h052mpqlkjis2bm5glt9l7r Query : insert into wsbidata (bistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,obrano, qtt,uni2qtt ,no, estab,nmdos ,ndos, obranome,fechada, dataobra ,rdata ,dataopen, datafecho,local, morada ,codpost, nome,bostamp,lordem ,edebito,debito, epu,pu ,ivaincl,stns,unidade, unidad2 ,marcada,usalote ,ettdeb,ttdeb,epcusto, pcusto ,ecustoind,custoind ,vendedor,vendnm, ccusto,ncusto ,noserie,tabiva,iva ,ref,design,familia,desconto,desc2,desc3,desc4,eslvu,slvu,esltt,sltt,oobistamp,vumoeda,ttmoeda,slvumoeda,slttmoeda,lote,armazem,ar2mazem,obistamp ,stipo) select 'aut66a8b5555466a8b7f94e',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut',bo.obrano, 1.000, 1.000*.0000000 ,bo.no, bo.estab,bo.nmdos ,bo.ndos, bo.obranome,bo.fechada, bo.dataobra ,bo.dataobra ,bo.dataopen,bo.datafecho,bo.local, bo.morada ,bo.codpost, bo.nome,bo.bostamp,30000 ,149.99,149.99*200.48,149.99,149.99*200.48 ,0,0,'un ','' ,bo.marcada,1 ,149.99*1.000,149.99*1.000*200.48 ,41.556000,41.556000*200.48 ,41.556000,41.556000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,149.99,149.99*200.48,149.99*1.000,149.99*1.000*200.48,'pll24072660624,699000002 ',149.99,149.99*1.000,149.99,149.99*1.000,?,?,?,?,4 from wsbodata bo where bo.bostamp = 'aut66a8b3221466a8b7f8cd'
20240730@105257.3742 669h052mpqlkjis2bm5glt9l7r Query : use flama_phc
20240730@105257.3746 669h052mpqlkjis2bm5glt9l7r Query : select st.usalote valor from st where st.ref = '324.1536.00.1'
20240730@105257.3763 669h052mpqlkjis2bm5glt9l7r Query : use flama_phc
20240730@105257.3767 669h052mpqlkjis2bm5glt9l7r Query : select st.stns valor from st where st.ref = '324.1536.00.1'
20240730@105257.3791 669h052mpqlkjis2bm5glt9l7r Query : use flama_phc
20240730@105257.3795 669h052mpqlkjis2bm5glt9l7r Query : select isnull(sum(stock) ,0)stock ,isnull(sum(qttrec),0) qttrec ,0 qttcat ,isnull(sum(rescli),0) rescli ,isnull(sum(resfor),0) resfor from sa where sa.ref = '324.1536.00.1' and sa.armazem = 133 
20240730@105257.3822 669h052mpqlkjis2bm5glt9l7r Query : use flama_phc
20240730@105257.3825 669h052mpqlkjis2bm5glt9l7r Query : select st.stns valor from st where st.ref = '324.1536.00.1'
20240730@105257.3845 669h052mpqlkjis2bm5glt9l7r Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.1536.00.1'
20240730@105257.3863 669h052mpqlkjis2bm5glt9l7r Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240730@105257.3883 669h052mpqlkjis2bm5glt9l7r Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 5
20240730@105257.3898 669h052mpqlkjis2bm5glt9l7r Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240730@105257.3914 669h052mpqlkjis2bm5glt9l7r Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 5
20240730@105257.3925 669h052mpqlkjis2bm5glt9l7r Query : select sestamp valor from se where ref ='324.1536.00.1' and lote = 'r2100240100a'
20240730@105257.3941 669h052mpqlkjis2bm5glt9l7r Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240730@105257.3959 669h052mpqlkjis2bm5glt9l7r Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240730@105257.3977 669h052mpqlkjis2bm5glt9l7r Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 5
20240730@105257.3990 669h052mpqlkjis2bm5glt9l7r Query : insert into wsbi2data (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut66a8b3309066a8b7f960','aut66a8b3221466a8b7f8cd',bo.morada, bo.local,bo.codpost ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut' from wsbodata bo where bo.bostamp = 'aut66a8b3221466a8b7f8cd'
20240730@105257.4140 669h052mpqlkjis2bm5glt9l7r Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240730@105257.4161 669h052mpqlkjis2bm5glt9l7r Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 5
20240730@105257.4183 669h052mpqlkjis2bm5glt9l7r Query : insert into wsbidata (bistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,obrano, qtt,uni2qtt ,no, estab,nmdos ,ndos, obranome,fechada, dataobra ,rdata ,dataopen, datafecho,local, morada ,codpost, nome,bostamp,lordem ,edebito,debito, epu,pu ,ivaincl,stns,unidade, unidad2 ,marcada,usalote ,ettdeb,ttdeb,epcusto, pcusto ,ecustoind,custoind ,vendedor,vendnm, ccusto,ncusto ,noserie,tabiva,iva ,ref,design,familia,desconto,desc2,desc3,desc4,eslvu,slvu,esltt,sltt,oobistamp,vumoeda,ttmoeda,slvumoeda,slttmoeda,lote,armazem,ar2mazem,obistamp ,stipo) select 'aut66a8b3309066a8b7f960',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut',bo.obrano, 1.000, 1.000*.0000000 ,bo.no, bo.estab,bo.nmdos ,bo.ndos, bo.obranome,bo.fechada, bo.dataobra ,bo.dataobra ,bo.dataopen,bo.datafecho,bo.local, bo.morada ,bo.codpost, bo.nome,bo.bostamp,40000 ,149.99,149.99*200.48,149.99,149.99*200.48 ,0,0,'un ','' ,bo.marcada,1 ,149.99*1.000,149.99*1.000*200.48 ,41.556000,41.556000*200.48 ,41.556000,41.556000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,149.99,149.99*200.48,149.99*1.000,149.99*1.000*200.48,'pll24072660624,699000002 ',149.99,149.99*1.000,149.99,149.99*1.000,?,?,?,?,4 from wsbodata bo where bo.bostamp = 'aut66a8b3221466a8b7f8cd'
20240730@105257.4527 669h052mpqlkjis2bm5glt9l7r Query : use flama_phc
20240730@105257.4531 669h052mpqlkjis2bm5glt9l7r Query : select st.usalote valor from st where st.ref = '324.958.00.01'
20240730@105257.4547 669h052mpqlkjis2bm5glt9l7r Query : use flama_phc
20240730@105257.4550 669h052mpqlkjis2bm5glt9l7r Query : select st.stns valor from st where st.ref = '324.958.00.01'
20240730@105257.4570 669h052mpqlkjis2bm5glt9l7r Query : use flama_phc
20240730@105257.4574 669h052mpqlkjis2bm5glt9l7r Query : select isnull(sum(stock) ,0)stock ,isnull(sum(qttrec),0) qttrec ,0 qttcat ,isnull(sum(rescli),0) rescli ,isnull(sum(resfor),0) resfor from sa where sa.ref = '324.958.00.01' and sa.armazem = 133 
20240730@105257.4656 669h052mpqlkjis2bm5glt9l7r Query : use flama_phc
20240730@105257.4660 669h052mpqlkjis2bm5glt9l7r Query : select st.stns valor from st where st.ref = '324.958.00.01'
20240730@105257.4680 669h052mpqlkjis2bm5glt9l7r Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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'
20240730@105257.4840 669h052mpqlkjis2bm5glt9l7r Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240730@105257.4859 669h052mpqlkjis2bm5glt9l7r Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 5
20240730@105257.4877 669h052mpqlkjis2bm5glt9l7r Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240730@105257.4896 669h052mpqlkjis2bm5glt9l7r Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 5
20240730@105257.4908 669h052mpqlkjis2bm5glt9l7r Query : select sestamp valor from se where ref ='324.958.00.01' and lote = 'r2400240200a'
20240730@105257.4926 669h052mpqlkjis2bm5glt9l7r Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240730@105257.4941 669h052mpqlkjis2bm5glt9l7r Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240730@105257.4962 669h052mpqlkjis2bm5glt9l7r Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 5
20240730@105257.4977 669h052mpqlkjis2bm5glt9l7r Query : insert into wsbi2data (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut66a8b7168666a8b7f978','aut66a8b3221466a8b7f8cd',bo.morada, bo.local,bo.codpost ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut' from wsbodata bo where bo.bostamp = 'aut66a8b3221466a8b7f8cd'
20240730@105257.5119 669h052mpqlkjis2bm5glt9l7r Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240730@105257.5139 669h052mpqlkjis2bm5glt9l7r Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 5
20240730@105257.5160 669h052mpqlkjis2bm5glt9l7r Query : insert into wsbidata (bistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,obrano, qtt,uni2qtt ,no, estab,nmdos ,ndos, obranome,fechada, dataobra ,rdata ,dataopen, datafecho,local, morada ,codpost, nome,bostamp,lordem ,edebito,debito, epu,pu ,ivaincl,stns,unidade, unidad2 ,marcada,usalote ,ettdeb,ttdeb,epcusto, pcusto ,ecustoind,custoind ,vendedor,vendnm, ccusto,ncusto ,noserie,tabiva,iva ,ref,design,familia,desconto,desc2,desc3,desc4,eslvu,slvu,esltt,sltt,oobistamp,vumoeda,ttmoeda,slvumoeda,slttmoeda,lote,armazem,ar2mazem,obistamp ,stipo) select 'aut66a8b7168666a8b7f978',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut',bo.obrano, 16.000, 16.000*.0000000 ,bo.no, bo.estab,bo.nmdos ,bo.ndos, bo.obranome,bo.fechada, bo.dataobra ,bo.dataobra ,bo.dataopen,bo.datafecho,bo.local, bo.morada ,bo.codpost, bo.nome,bo.bostamp,50000 ,29.99,29.99*200.48,29.99,29.99*200.48 ,0,0,'un',' ' ,bo.marcada,1 ,29.99*16.000,29.99*16.000*200.48 ,8.335000,8.335000*200.48 ,8.335000,8.335000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,29.99,29.99*200.48,29.99*16.000,29.99*16.000*200.48,'pll24072660654,646000003 ',29.99,29.99*16.000,29.99,29.99*16.000,?,?,?,?,4 from wsbodata bo where bo.bostamp = 'aut66a8b3221466a8b7f8cd'
20240730@105257.5483 669h052mpqlkjis2bm5glt9l7r Query : use flama_phc
20240730@105257.5488 669h052mpqlkjis2bm5glt9l7r Query : select st.usalote valor from st where st.ref = '324.1871.00.1'
20240730@105257.5541 669h052mpqlkjis2bm5glt9l7r Query : use flama_phc
20240730@105257.5544 669h052mpqlkjis2bm5glt9l7r Query : select st.stns valor from st where st.ref = '324.1871.00.1'
20240730@105257.5565 669h052mpqlkjis2bm5glt9l7r Query : use flama_phc
20240730@105257.5568 669h052mpqlkjis2bm5glt9l7r Query : select isnull(sum(stock) ,0)stock ,isnull(sum(qttrec),0) qttrec ,0 qttcat ,isnull(sum(rescli),0) rescli ,isnull(sum(resfor),0) resfor from sa where sa.ref = '324.1871.00.1' and sa.armazem = 133 
20240730@105257.5645 669h052mpqlkjis2bm5glt9l7r Query : use flama_phc
20240730@105257.5649 669h052mpqlkjis2bm5glt9l7r Query : select st.stns valor from st where st.ref = '324.1871.00.1'
20240730@105257.5675 669h052mpqlkjis2bm5glt9l7r Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.1871.00.1'
20240730@105257.5832 669h052mpqlkjis2bm5glt9l7r Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240730@105257.5852 669h052mpqlkjis2bm5glt9l7r Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 5
20240730@105257.5874 669h052mpqlkjis2bm5glt9l7r Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240730@105257.5891 669h052mpqlkjis2bm5glt9l7r Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 5
20240730@105257.5902 669h052mpqlkjis2bm5glt9l7r Query : select sestamp valor from se where ref ='324.1871.00.1' and lote = 'r2400125200a'
20240730@105257.5918 669h052mpqlkjis2bm5glt9l7r Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240730@105257.5933 669h052mpqlkjis2bm5glt9l7r Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240730@105257.5950 669h052mpqlkjis2bm5glt9l7r Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 5
20240730@105257.5965 669h052mpqlkjis2bm5glt9l7r Query : insert into wsbi2data (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut66a8b3513966a8b7f990','aut66a8b3221466a8b7f8cd',bo.morada, bo.local,bo.codpost ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut' from wsbodata bo where bo.bostamp = 'aut66a8b3221466a8b7f8cd'
20240730@105257.6143 669h052mpqlkjis2bm5glt9l7r Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240730@105257.6169 669h052mpqlkjis2bm5glt9l7r Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 5
20240730@105257.6187 669h052mpqlkjis2bm5glt9l7r Query : insert into wsbidata (bistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,obrano, qtt,uni2qtt ,no, estab,nmdos ,ndos, obranome,fechada, dataobra ,rdata ,dataopen, datafecho,local, morada ,codpost, nome,bostamp,lordem ,edebito,debito, epu,pu ,ivaincl,stns,unidade, unidad2 ,marcada,usalote ,ettdeb,ttdeb,epcusto, pcusto ,ecustoind,custoind ,vendedor,vendnm, ccusto,ncusto ,noserie,tabiva,iva ,ref,design,familia,desconto,desc2,desc3,desc4,eslvu,slvu,esltt,sltt,oobistamp,vumoeda,ttmoeda,slvumoeda,slttmoeda,lote,armazem,ar2mazem,obistamp ,stipo) select 'aut66a8b3513966a8b7f990',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut',bo.obrano, 1.000, 1.000*.0000000 ,bo.no, bo.estab,bo.nmdos ,bo.ndos, bo.obranome,bo.fechada, bo.dataobra ,bo.dataobra ,bo.dataopen,bo.datafecho,bo.local, bo.morada ,bo.codpost, bo.nome,bo.bostamp,60000 ,149.99,149.99*200.48,149.99,149.99*200.48 ,0,0,'un ',' ' ,bo.marcada,1 ,149.99*1.000,149.99*1.000*200.48 ,48.700000,48.700000*200.48 ,48.700000,48.700000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,149.99,149.99*200.48,149.99*1.000,149.99*1.000*200.48,'pll24072660686,795000004 ',149.99,149.99*1.000,149.99,149.99*1.000,?,?,?,?,4 from wsbodata bo where bo.bostamp = 'aut66a8b3221466a8b7f8cd'
20240730@105257.6545 669h052mpqlkjis2bm5glt9l7r Query : use flama_phc
20240730@105257.6548 669h052mpqlkjis2bm5glt9l7r Query : select st.usalote valor from st where st.ref = '324.1871.00.1'
20240730@105257.6563 669h052mpqlkjis2bm5glt9l7r Query : use flama_phc
20240730@105257.6566 669h052mpqlkjis2bm5glt9l7r Query : select st.stns valor from st where st.ref = '324.1871.00.1'
20240730@105257.6582 669h052mpqlkjis2bm5glt9l7r Query : use flama_phc
20240730@105257.6585 669h052mpqlkjis2bm5glt9l7r Query : select isnull(sum(stock) ,0)stock ,isnull(sum(qttrec),0) qttrec ,0 qttcat ,isnull(sum(rescli),0) rescli ,isnull(sum(resfor),0) resfor from sa where sa.ref = '324.1871.00.1' and sa.armazem = 133 
20240730@105257.6608 669h052mpqlkjis2bm5glt9l7r Query : use flama_phc
20240730@105257.6611 669h052mpqlkjis2bm5glt9l7r Query : select st.stns valor from st where st.ref = '324.1871.00.1'
20240730@105257.6629 669h052mpqlkjis2bm5glt9l7r Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.1871.00.1'
20240730@105257.6644 669h052mpqlkjis2bm5glt9l7r Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240730@105257.6666 669h052mpqlkjis2bm5glt9l7r Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 5
20240730@105257.6679 669h052mpqlkjis2bm5glt9l7r Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240730@105257.6693 669h052mpqlkjis2bm5glt9l7r Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 5
20240730@105257.6702 669h052mpqlkjis2bm5glt9l7r Query : select sestamp valor from se where ref ='324.1871.00.1' and lote = 'r2400125200a'
20240730@105257.6716 669h052mpqlkjis2bm5glt9l7r Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240730@105257.6728 669h052mpqlkjis2bm5glt9l7r Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240730@105257.6743 669h052mpqlkjis2bm5glt9l7r Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 5
20240730@105257.6755 669h052mpqlkjis2bm5glt9l7r Query : insert into wsbi2data (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut66a8b0853566a8b7f9a4','aut66a8b3221466a8b7f8cd',bo.morada, bo.local,bo.codpost ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut' from wsbodata bo where bo.bostamp = 'aut66a8b3221466a8b7f8cd'
20240730@105257.6947 669h052mpqlkjis2bm5glt9l7r Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240730@105257.6965 669h052mpqlkjis2bm5glt9l7r Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 5
20240730@105257.6981 669h052mpqlkjis2bm5glt9l7r Query : insert into wsbidata (bistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,obrano, qtt,uni2qtt ,no, estab,nmdos ,ndos, obranome,fechada, dataobra ,rdata ,dataopen, datafecho,local, morada ,codpost, nome,bostamp,lordem ,edebito,debito, epu,pu ,ivaincl,stns,unidade, unidad2 ,marcada,usalote ,ettdeb,ttdeb,epcusto, pcusto ,ecustoind,custoind ,vendedor,vendnm, ccusto,ncusto ,noserie,tabiva,iva ,ref,design,familia,desconto,desc2,desc3,desc4,eslvu,slvu,esltt,sltt,oobistamp,vumoeda,ttmoeda,slvumoeda,slttmoeda,lote,armazem,ar2mazem,obistamp ,stipo) select 'aut66a8b0853566a8b7f9a4',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut',bo.obrano, 3.000, 3.000*.0000000 ,bo.no, bo.estab,bo.nmdos ,bo.ndos, bo.obranome,bo.fechada, bo.dataobra ,bo.dataobra ,bo.dataopen,bo.datafecho,bo.local, bo.morada ,bo.codpost, bo.nome,bo.bostamp,70000 ,149.99,149.99*200.48,149.99,149.99*200.48 ,0,0,'un ',' ' ,bo.marcada,1 ,149.99*3.000,149.99*3.000*200.48 ,48.700000,48.700000*200.48 ,48.700000,48.700000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,149.99,149.99*200.48,149.99*3.000,149.99*3.000*200.48,'pll24072660686,795000004 ',149.99,149.99*3.000,149.99,149.99*3.000,?,?,?,?,4 from wsbodata bo where bo.bostamp = 'aut66a8b3221466a8b7f8cd'
20240730@105257.7409 669h052mpqlkjis2bm5glt9l7r Query : use flama_phc
20240730@105257.8422 669h052mpqlkjis2bm5glt9l7r Query : select st.usalote valor from st where st.ref = '324.1675.00.2'
20240730@105257.8439 669h052mpqlkjis2bm5glt9l7r Query : use flama_phc
20240730@105257.8443 669h052mpqlkjis2bm5glt9l7r Query : select st.stns valor from st where st.ref = '324.1675.00.2'
20240730@105257.8460 669h052mpqlkjis2bm5glt9l7r Query : use flama_phc
20240730@105257.8463 669h052mpqlkjis2bm5glt9l7r Query : select isnull(sum(stock) ,0)stock ,isnull(sum(qttrec),0) qttrec ,0 qttcat ,isnull(sum(rescli),0) rescli ,isnull(sum(resfor),0) resfor from sa where sa.ref = '324.1675.00.2' and sa.armazem = 133 
20240730@105257.8536 669h052mpqlkjis2bm5glt9l7r Query : use flama_phc
20240730@105257.8539 669h052mpqlkjis2bm5glt9l7r Query : select st.stns valor from st where st.ref = '324.1675.00.2'
20240730@105257.8559 669h052mpqlkjis2bm5glt9l7r Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.1675.00.2'
20240730@105257.8709 669h052mpqlkjis2bm5glt9l7r Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240730@105257.8729 669h052mpqlkjis2bm5glt9l7r Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 5
20240730@105257.8774 669h052mpqlkjis2bm5glt9l7r Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240730@105257.8790 669h052mpqlkjis2bm5glt9l7r Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 5
20240730@105257.8800 669h052mpqlkjis2bm5glt9l7r Query : select sestamp valor from se where ref ='324.1675.00.2' and lote = 'r2200299200a'
20240730@105257.8825 669h052mpqlkjis2bm5glt9l7r Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240730@105257.8839 669h052mpqlkjis2bm5glt9l7r Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240730@105257.8855 669h052mpqlkjis2bm5glt9l7r Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 5
20240730@105257.8869 669h052mpqlkjis2bm5glt9l7r Query : insert into wsbi2data (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut66a8b7008466a8b7f9d7','aut66a8b3221466a8b7f8cd',bo.morada, bo.local,bo.codpost ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut' from wsbodata bo where bo.bostamp = 'aut66a8b3221466a8b7f8cd'
20240730@105257.9015 669h052mpqlkjis2bm5glt9l7r Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240730@105257.9037 669h052mpqlkjis2bm5glt9l7r Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 5
20240730@105257.9060 669h052mpqlkjis2bm5glt9l7r Query : insert into wsbidata (bistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,obrano, qtt,uni2qtt ,no, estab,nmdos ,ndos, obranome,fechada, dataobra ,rdata ,dataopen, datafecho,local, morada ,codpost, nome,bostamp,lordem ,edebito,debito, epu,pu ,ivaincl,stns,unidade, unidad2 ,marcada,usalote ,ettdeb,ttdeb,epcusto, pcusto ,ecustoind,custoind ,vendedor,vendnm, ccusto,ncusto ,noserie,tabiva,iva ,ref,design,familia,desconto,desc2,desc3,desc4,eslvu,slvu,esltt,sltt,oobistamp,vumoeda,ttmoeda,slvumoeda,slttmoeda,lote,armazem,ar2mazem,obistamp ,stipo) select 'aut66a8b7008466a8b7f9d7',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut',bo.obrano, 6.000, 6.000*.0000000 ,bo.no, bo.estab,bo.nmdos ,bo.ndos, bo.obranome,bo.fechada, bo.dataobra ,bo.dataobra ,bo.dataopen,bo.datafecho,bo.local, bo.morada ,bo.codpost, bo.nome,bo.bostamp,80000 ,89.99,89.99*200.48,89.99,89.99*200.48 ,0,0,'un',' ' ,bo.marcada,1 ,89.99*6.000,89.99*6.000*200.48 ,25.541000,25.541000*200.48 ,25.541000,25.541000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,89.99,89.99*200.48,89.99*6.000,89.99*6.000*200.48,'pll24072660723,843000005 ',89.99,89.99*6.000,89.99,89.99*6.000,?,?,?,?,4 from wsbodata bo where bo.bostamp = 'aut66a8b3221466a8b7f8cd'
20240730@105257.9371 669h052mpqlkjis2bm5glt9l7r Query : use flama_phc
20240730@105257.9376 669h052mpqlkjis2bm5glt9l7r Query : select st.usalote valor from st where st.ref = '324.1684.00.1'
20240730@105257.9391 669h052mpqlkjis2bm5glt9l7r Query : use flama_phc
20240730@105257.9394 669h052mpqlkjis2bm5glt9l7r Query : select st.stns valor from st where st.ref = '324.1684.00.1'
20240730@105257.9412 669h052mpqlkjis2bm5glt9l7r Query : use flama_phc
20240730@105257.9417 669h052mpqlkjis2bm5glt9l7r Query : select isnull(sum(stock) ,0)stock ,isnull(sum(qttrec),0) qttrec ,0 qttcat ,isnull(sum(rescli),0) rescli ,isnull(sum(resfor),0) resfor from sa where sa.ref = '324.1684.00.1' and sa.armazem = 133 
20240730@105257.9487 669h052mpqlkjis2bm5glt9l7r Query : use flama_phc
20240730@105257.9490 669h052mpqlkjis2bm5glt9l7r Query : select st.stns valor from st where st.ref = '324.1684.00.1'
20240730@105257.9509 669h052mpqlkjis2bm5glt9l7r Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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'
20240730@105257.9753 669h052mpqlkjis2bm5glt9l7r Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240730@105257.9860 669h052mpqlkjis2bm5glt9l7r Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 5
20240730@105257.9876 669h052mpqlkjis2bm5glt9l7r Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240730@105257.9892 669h052mpqlkjis2bm5glt9l7r Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 5
20240730@105257.9903 669h052mpqlkjis2bm5glt9l7r Query : select sestamp valor from se where ref ='324.1684.00.1' and lote = 'r2301217200a'
20240730@105257.9932 669h052mpqlkjis2bm5glt9l7r Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240730@105257.9951 669h052mpqlkjis2bm5glt9l7r Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240730@105257.9968 669h052mpqlkjis2bm5glt9l7r Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 5
20240730@105257.9981 669h052mpqlkjis2bm5glt9l7r Query : insert into wsbi2data (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut66a8b8734266a8b7f9f2','aut66a8b3221466a8b7f8cd',bo.morada, bo.local,bo.codpost ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut' from wsbodata bo where bo.bostamp = 'aut66a8b3221466a8b7f8cd'
20240730@105258.1310 669h052mpqlkjis2bm5glt9l7r Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240730@105258.1490 669h052mpqlkjis2bm5glt9l7r Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 5
20240730@105258.1680 669h052mpqlkjis2bm5glt9l7r Query : insert into wsbidata (bistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,obrano, qtt,uni2qtt ,no, estab,nmdos ,ndos, obranome,fechada, dataobra ,rdata ,dataopen, datafecho,local, morada ,codpost, nome,bostamp,lordem ,edebito,debito, epu,pu ,ivaincl,stns,unidade, unidad2 ,marcada,usalote ,ettdeb,ttdeb,epcusto, pcusto ,ecustoind,custoind ,vendedor,vendnm, ccusto,ncusto ,noserie,tabiva,iva ,ref,design,familia,desconto,desc2,desc3,desc4,eslvu,slvu,esltt,sltt,oobistamp,vumoeda,ttmoeda,slvumoeda,slttmoeda,lote,armazem,ar2mazem,obistamp ,stipo) select 'aut66a8b8734266a8b7f9f2',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut',bo.obrano, 6.000, 6.000*.0000000 ,bo.no, bo.estab,bo.nmdos ,bo.ndos, bo.obranome,bo.fechada, bo.dataobra ,bo.dataobra ,bo.dataopen,bo.datafecho,bo.local, bo.morada ,bo.codpost, bo.nome,bo.bostamp,90000 ,79.99,79.99*200.48,79.99,79.99*200.48 ,0,0,'un ','' ,bo.marcada,1 ,79.99*6.000,79.99*6.000*200.48 ,20.129000,20.129000*200.48 ,20.129000,20.129000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,79.99,79.99*200.48,79.99*6.000,79.99*6.000*200.48,'pll24072660754,020000006 ',79.99,79.99*6.000,79.99,79.99*6.000,?,?,?,?,4 from wsbodata bo where bo.bostamp = 'aut66a8b3221466a8b7f8cd'
20240730@105258.5200 669h052mpqlkjis2bm5glt9l7r Query : use flama_phc
20240730@105258.5240 669h052mpqlkjis2bm5glt9l7r Query : select st.usalote valor from st where st.ref = '323.318.09.00'
20240730@105258.5390 669h052mpqlkjis2bm5glt9l7r Query : use flama_phc
20240730@105258.5420 669h052mpqlkjis2bm5glt9l7r Query : select st.stns valor from st where st.ref = '323.318.09.00'
20240730@105258.5590 669h052mpqlkjis2bm5glt9l7r Query : use flama_phc
20240730@105258.5630 669h052mpqlkjis2bm5glt9l7r Query : select isnull(sum(stock) ,0)stock ,isnull(sum(qttrec),0) qttrec ,0 qttcat ,isnull(sum(rescli),0) rescli ,isnull(sum(resfor),0) resfor from sa where sa.ref = '323.318.09.00' and sa.armazem = 133 
20240730@105258.6340 669h052mpqlkjis2bm5glt9l7r Query : use flama_phc
20240730@105258.6370 669h052mpqlkjis2bm5glt9l7r Query : select st.stns valor from st where st.ref = '323.318.09.00'
20240730@105258.6590 669h052mpqlkjis2bm5glt9l7r Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '323.318.09.00'
20240730@105258.6750 669h052mpqlkjis2bm5glt9l7r Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240730@105258.6950 669h052mpqlkjis2bm5glt9l7r Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 5
20240730@105258.7070 669h052mpqlkjis2bm5glt9l7r Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240730@105258.7230 669h052mpqlkjis2bm5glt9l7r Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 5
20240730@105258.7320 669h052mpqlkjis2bm5glt9l7r Query : select sestamp valor from se where ref ='323.318.09.00' and lote = 'r2400053200a'
20240730@105258.7450 669h052mpqlkjis2bm5glt9l7r Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240730@105258.7600 669h052mpqlkjis2bm5glt9l7r Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240730@105258.7790 669h052mpqlkjis2bm5glt9l7r Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 5
20240730@105258.7930 669h052mpqlkjis2bm5glt9l7r Query : insert into wsbi2data (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut66a8b5565766a8b7fa12','aut66a8b3221466a8b7f8cd',bo.morada, bo.local,bo.codpost ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut' from wsbodata bo where bo.bostamp = 'aut66a8b3221466a8b7f8cd'
20240730@105258.9370 669h052mpqlkjis2bm5glt9l7r Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240730@105258.9550 669h052mpqlkjis2bm5glt9l7r Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 5
20240730@105258.9720 669h052mpqlkjis2bm5glt9l7r Query : insert into wsbidata (bistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,obrano, qtt,uni2qtt ,no, estab,nmdos ,ndos, obranome,fechada, dataobra ,rdata ,dataopen, datafecho,local, morada ,codpost, nome,bostamp,lordem ,edebito,debito, epu,pu ,ivaincl,stns,unidade, unidad2 ,marcada,usalote ,ettdeb,ttdeb,epcusto, pcusto ,ecustoind,custoind ,vendedor,vendnm, ccusto,ncusto ,noserie,tabiva,iva ,ref,design,familia,desconto,desc2,desc3,desc4,eslvu,slvu,esltt,sltt,oobistamp,vumoeda,ttmoeda,slvumoeda,slttmoeda,lote,armazem,ar2mazem,obistamp ,stipo) select 'aut66a8b5565766a8b7fa12',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut',bo.obrano, 15.000, 15.000*.0000000 ,bo.no, bo.estab,bo.nmdos ,bo.ndos, bo.obranome,bo.fechada, bo.dataobra ,bo.dataobra ,bo.dataopen,bo.datafecho,bo.local, bo.morada ,bo.codpost, bo.nome,bo.bostamp,100000 ,219.99,219.99*200.48,219.99,219.99*200.48 ,0,0,'un ',' ' ,bo.marcada,1 ,219.99*15.000,219.99*15.000*200.48 ,58.326000,58.326000*200.48 ,58.326000,58.326000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,219.99,219.99*200.48,219.99*15.000,219.99*15.000*200.48,'pll24072660790,690000007 ',219.99,219.99*15.000,219.99,219.99*15.000,?,?,?,?,4 from wsbodata bo where bo.bostamp = 'aut66a8b3221466a8b7f8cd'
20240730@105258.1265 669h052mpqlkjis2bm5glt9l7r Query : use flama_phc
20240730@105258.1269 669h052mpqlkjis2bm5glt9l7r Query : select st.usalote valor from st where st.ref = '323.367.09.00'
20240730@105258.1284 669h052mpqlkjis2bm5glt9l7r Query : use flama_phc
20240730@105258.1287 669h052mpqlkjis2bm5glt9l7r Query : select st.stns valor from st where st.ref = '323.367.09.00'
20240730@105258.1306 669h052mpqlkjis2bm5glt9l7r Query : use flama_phc
20240730@105258.1310 669h052mpqlkjis2bm5glt9l7r Query : select isnull(sum(stock) ,0)stock ,isnull(sum(qttrec),0) qttrec ,0 qttcat ,isnull(sum(rescli),0) rescli ,isnull(sum(resfor),0) resfor from sa where sa.ref = '323.367.09.00' and sa.armazem = 133 
20240730@105258.1382 669h052mpqlkjis2bm5glt9l7r Query : use flama_phc
20240730@105258.1384 669h052mpqlkjis2bm5glt9l7r Query : select st.stns valor from st where st.ref = '323.367.09.00'
20240730@105258.1403 669h052mpqlkjis2bm5glt9l7r Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '323.367.09.00'
20240730@105258.1544 669h052mpqlkjis2bm5glt9l7r Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240730@105258.1562 669h052mpqlkjis2bm5glt9l7r Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 5
20240730@105258.1576 669h052mpqlkjis2bm5glt9l7r Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240730@105258.1592 669h052mpqlkjis2bm5glt9l7r Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 5
20240730@105258.1601 669h052mpqlkjis2bm5glt9l7r Query : select sestamp valor from se where ref ='323.367.09.00' and lote = 'r2400053200a'
20240730@105258.1616 669h052mpqlkjis2bm5glt9l7r Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240730@105258.1631 669h052mpqlkjis2bm5glt9l7r Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240730@105258.1648 669h052mpqlkjis2bm5glt9l7r Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 5
20240730@105258.1662 669h052mpqlkjis2bm5glt9l7r Query : insert into wsbi2data (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut66a8b5680566a8b7fa27','aut66a8b3221466a8b7f8cd',bo.morada, bo.local,bo.codpost ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut' from wsbodata bo where bo.bostamp = 'aut66a8b3221466a8b7f8cd'
20240730@105258.1811 669h052mpqlkjis2bm5glt9l7r Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240730@105258.1834 669h052mpqlkjis2bm5glt9l7r Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 5
20240730@105258.1856 669h052mpqlkjis2bm5glt9l7r Query : insert into wsbidata (bistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,obrano, qtt,uni2qtt ,no, estab,nmdos ,ndos, obranome,fechada, dataobra ,rdata ,dataopen, datafecho,local, morada ,codpost, nome,bostamp,lordem ,edebito,debito, epu,pu ,ivaincl,stns,unidade, unidad2 ,marcada,usalote ,ettdeb,ttdeb,epcusto, pcusto ,ecustoind,custoind ,vendedor,vendnm, ccusto,ncusto ,noserie,tabiva,iva ,ref,design,familia,desconto,desc2,desc3,desc4,eslvu,slvu,esltt,sltt,oobistamp,vumoeda,ttmoeda,slvumoeda,slttmoeda,lote,armazem,ar2mazem,obistamp ,stipo) select 'aut66a8b5680566a8b7fa27',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut',bo.obrano, 7.000, 7.000*.0000000 ,bo.no, bo.estab,bo.nmdos ,bo.ndos, bo.obranome,bo.fechada, bo.dataobra ,bo.dataobra ,bo.dataopen,bo.datafecho,bo.local, bo.morada ,bo.codpost, bo.nome,bo.bostamp,110000 ,219.99,219.99*200.48,219.99,219.99*200.48 ,0,0,'un ','' ,bo.marcada,1 ,219.99*7.000,219.99*7.000*200.48 ,58.417000,58.417000*200.48 ,58.417000,58.417000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,219.99,219.99*200.48,219.99*7.000,219.99*7.000*200.48,'pll24072660832,214000008 ',219.99,219.99*7.000,219.99,219.99*7.000,?,?,?,?,4 from wsbodata bo where bo.bostamp = 'aut66a8b3221466a8b7f8cd'
20240730@105258.2218 669h052mpqlkjis2bm5glt9l7r Query : use flama_phc
20240730@105258.2221 669h052mpqlkjis2bm5glt9l7r Query : select st.usalote valor from st where st.ref = '323.367.09.00'
20240730@105258.2237 669h052mpqlkjis2bm5glt9l7r Query : use flama_phc
20240730@105258.2240 669h052mpqlkjis2bm5glt9l7r Query : select st.stns valor from st where st.ref = '323.367.09.00'
20240730@105258.2257 669h052mpqlkjis2bm5glt9l7r Query : use flama_phc
20240730@105258.2261 669h052mpqlkjis2bm5glt9l7r Query : select isnull(sum(stock) ,0)stock ,isnull(sum(qttrec),0) qttrec ,0 qttcat ,isnull(sum(rescli),0) rescli ,isnull(sum(resfor),0) resfor from sa where sa.ref = '323.367.09.00' and sa.armazem = 133 
20240730@105258.2286 669h052mpqlkjis2bm5glt9l7r Query : use flama_phc
20240730@105258.2289 669h052mpqlkjis2bm5glt9l7r Query : select st.stns valor from st where st.ref = '323.367.09.00'
20240730@105258.2317 669h052mpqlkjis2bm5glt9l7r Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '323.367.09.00'
20240730@105258.2334 669h052mpqlkjis2bm5glt9l7r Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240730@105258.2352 669h052mpqlkjis2bm5glt9l7r Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 5
20240730@105258.2366 669h052mpqlkjis2bm5glt9l7r Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240730@105258.2382 669h052mpqlkjis2bm5glt9l7r Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 5
20240730@105258.2392 669h052mpqlkjis2bm5glt9l7r Query : select sestamp valor from se where ref ='323.367.09.00' and lote = 'r2400053200a'
20240730@105258.2406 669h052mpqlkjis2bm5glt9l7r Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240730@105258.2420 669h052mpqlkjis2bm5glt9l7r Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240730@105258.2442 669h052mpqlkjis2bm5glt9l7r Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 5
20240730@105258.2457 669h052mpqlkjis2bm5glt9l7r Query : insert into wsbi2data (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut66a8b6053466a8b7fa3b','aut66a8b3221466a8b7f8cd',bo.morada, bo.local,bo.codpost ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut' from wsbodata bo where bo.bostamp = 'aut66a8b3221466a8b7f8cd'
20240730@105258.2607 669h052mpqlkjis2bm5glt9l7r Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240730@105258.2631 669h052mpqlkjis2bm5glt9l7r Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 5
20240730@105258.2651 669h052mpqlkjis2bm5glt9l7r Query : insert into wsbidata (bistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,obrano, qtt,uni2qtt ,no, estab,nmdos ,ndos, obranome,fechada, dataobra ,rdata ,dataopen, datafecho,local, morada ,codpost, nome,bostamp,lordem ,edebito,debito, epu,pu ,ivaincl,stns,unidade, unidad2 ,marcada,usalote ,ettdeb,ttdeb,epcusto, pcusto ,ecustoind,custoind ,vendedor,vendnm, ccusto,ncusto ,noserie,tabiva,iva ,ref,design,familia,desconto,desc2,desc3,desc4,eslvu,slvu,esltt,sltt,oobistamp,vumoeda,ttmoeda,slvumoeda,slttmoeda,lote,armazem,ar2mazem,obistamp ,stipo) select 'aut66a8b6053466a8b7fa3b',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut',bo.obrano, 1.000, 1.000*.0000000 ,bo.no, bo.estab,bo.nmdos ,bo.ndos, bo.obranome,bo.fechada, bo.dataobra ,bo.dataobra ,bo.dataopen,bo.datafecho,bo.local, bo.morada ,bo.codpost, bo.nome,bo.bostamp,120000 ,219.99,219.99*200.48,219.99,219.99*200.48 ,0,0,'un ','' ,bo.marcada,1 ,219.99*1.000,219.99*1.000*200.48 ,58.417000,58.417000*200.48 ,58.417000,58.417000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,219.99,219.99*200.48,219.99*1.000,219.99*1.000*200.48,'pll24072660832,214000008 ',219.99,219.99*1.000,219.99,219.99*1.000,?,?,?,?,4 from wsbodata bo where bo.bostamp = 'aut66a8b3221466a8b7f8cd'
20240730@105258.2969 669h052mpqlkjis2bm5glt9l7r Query : insert into wsbocreationlog (initialstamp,externalid,creationstatus,documenttypeid,idustamp,transactionid) values ('aut66a8b3221466a8b7f8cd','','wait',5,'adm12071144683,938000003','')
20240730@105258.3083 669h052mpqlkjis2bm5glt9l7r Query : use flama_phc
20240730@105258.3087 669h052mpqlkjis2bm5glt9l7r Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240730@105258.3152 669h052mpqlkjis2bm5glt9l7r Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1259';
20240730@105258.3180 669h052mpqlkjis2bm5glt9l7r Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1259';

20240730@191835.8759 rrscsideu8b4fbr4mn8rg6i7h9 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1260';
20240730@191835.8818 rrscsideu8b4fbr4mn8rg6i7h9 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1260';
20240730@191835.8845 rrscsideu8b4fbr4mn8rg6i7h9 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1260';
20240730@191835.8894 rrscsideu8b4fbr4mn8rg6i7h9 Query : use flama_phc
20240730@191835.8899 rrscsideu8b4fbr4mn8rg6i7h9 Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240730@191835.9010 rrscsideu8b4fbr4mn8rg6i7h9 Query : use flama_phc
20240730@191835.9014 rrscsideu8b4fbr4mn8rg6i7h9 Query : select no, estab,szadrsdesc from szadrs where u_coddest=4804
20240730@191835.9098 rrscsideu8b4fbr4mn8rg6i7h9 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '304.422.00.07'
20240730@191835.9260 rrscsideu8b4fbr4mn8rg6i7h9 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 = 2405014 and bi.ref ='304.422.00.07' and bi.lordem =1
20240730@191835.9572 rrscsideu8b4fbr4mn8rg6i7h9 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '304.421.00.04'
20240730@191835.9728 rrscsideu8b4fbr4mn8rg6i7h9 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 = 2405014 and bi.ref ='304.421.00.04' and bi.lordem =2
20240730@191836.1300 rrscsideu8b4fbr4mn8rg6i7h9 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.4521.00.1'
20240730@191836.2950 rrscsideu8b4fbr4mn8rg6i7h9 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 = 2405014 and bi.ref ='324.4521.00.1' and bi.lordem =3
20240730@191836.6270 rrscsideu8b4fbr4mn8rg6i7h9 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'
20240730@191836.7930 rrscsideu8b4fbr4mn8rg6i7h9 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 = 2405014 and bi.ref ='324.4960.00.1' and bi.lordem =4
20240730@191836.1115 rrscsideu8b4fbr4mn8rg6i7h9 Query : use flama_phc
20240730@191836.1119 rrscsideu8b4fbr4mn8rg6i7h9 Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20240730@191836.1313 rrscsideu8b4fbr4mn8rg6i7h9 Query : use flama_phc
20240730@191836.1317 rrscsideu8b4fbr4mn8rg6i7h9 Query : select top 1 1 valor from td where td.ndoc = 39
20240730@191836.1413 rrscsideu8b4fbr4mn8rg6i7h9 Query : use flama_phc
20240730@191836.1417 rrscsideu8b4fbr4mn8rg6i7h9 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')
20240730@191836.2627 rrscsideu8b4fbr4mn8rg6i7h9 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
20240730@191836.2794 rrscsideu8b4fbr4mn8rg6i7h9 Query : use flama_phc
20240730@191836.2798 rrscsideu8b4fbr4mn8rg6i7h9 Query : select top 1 ~inactivo valor from cl where no = '101900' and estab = 0 order by inactivo desc
20240730@191836.2963 rrscsideu8b4fbr4mn8rg6i7h9 Query : use flama_phc
20240730@191836.2967 rrscsideu8b4fbr4mn8rg6i7h9 Query : select top 1 tipodoc,regrd from td where ndoc = 39
20240730@191836.3065 rrscsideu8b4fbr4mn8rg6i7h9 Query : use flama_phc
20240730@191836.3069 rrscsideu8b4fbr4mn8rg6i7h9 Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20240730@191836.3157 rrscsideu8b4fbr4mn8rg6i7h9 Query : use flama_phc
20240730@191836.3161 rrscsideu8b4fbr4mn8rg6i7h9 Query : select szadrsstamp valor from szadrs where szadrsdesc='101900 - pd - alfena n/p'
20240730@191836.3228 rrscsideu8b4fbr4mn8rg6i7h9 Query : use flama_phc
20240730@191836.3232 rrscsideu8b4fbr4mn8rg6i7h9 Query : select 1 valor from td where ndoc = 39
20240730@191836.3323 rrscsideu8b4fbr4mn8rg6i7h9 Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20240730@191836.3393 rrscsideu8b4fbr4mn8rg6i7h9 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240730@191836.3683 rrscsideu8b4fbr4mn8rg6i7h9 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20240730@191836.3764 rrscsideu8b4fbr4mn8rg6i7h9 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240730@191836.3782 rrscsideu8b4fbr4mn8rg6i7h9 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20240730@191836.3820 rrscsideu8b4fbr4mn8rg6i7h9 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240730@191836.3837 rrscsideu8b4fbr4mn8rg6i7h9 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20240730@191836.3854 rrscsideu8b4fbr4mn8rg6i7h9 Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240730@191836.4065 rrscsideu8b4fbr4mn8rg6i7h9 Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240730@191836.4178 rrscsideu8b4fbr4mn8rg6i7h9 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240730@191836.4198 rrscsideu8b4fbr4mn8rg6i7h9 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20240730@191836.4247 rrscsideu8b4fbr4mn8rg6i7h9 Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut66a928212466a92e7c5e' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20240730@191836.4673 rrscsideu8b4fbr4mn8rg6i7h9 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240730@191836.4698 rrscsideu8b4fbr4mn8rg6i7h9 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20240730@191836.4745 rrscsideu8b4fbr4mn8rg6i7h9 Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20240730@191836.4851 rrscsideu8b4fbr4mn8rg6i7h9 Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20240730@191836.4938 rrscsideu8b4fbr4mn8rg6i7h9 Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20240730@191836.5014 rrscsideu8b4fbr4mn8rg6i7h9 Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20240730@191836.5094 rrscsideu8b4fbr4mn8rg6i7h9 Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20240730@191836.5173 rrscsideu8b4fbr4mn8rg6i7h9 Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20240730@191836.5248 rrscsideu8b4fbr4mn8rg6i7h9 Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut66a928212466a92e7c5e',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20240730@191836.5972 rrscsideu8b4fbr4mn8rg6i7h9 Query : select top 1 fno valor from wsftdata order by fno desc
20240730@191836.6078 rrscsideu8b4fbr4mn8rg6i7h9 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240730@191836.6097 rrscsideu8b4fbr4mn8rg6i7h9 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20240730@191836.6148 rrscsideu8b4fbr4mn8rg6i7h9 Query : select 'normal' from dummy
20240730@191836.6199 rrscsideu8b4fbr4mn8rg6i7h9 Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut66a928212466a92e7c5e',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',100,101900,0,'2024-07-30',39,'euro',0,0,2024 ,?,?)
20240730@191836.6666 rrscsideu8b4fbr4mn8rg6i7h9 Query : use flama_phc
20240730@191836.6669 rrscsideu8b4fbr4mn8rg6i7h9 Query : select st.usalote valor from st where st.ref = '304.422.00.07'
20240730@191836.6792 rrscsideu8b4fbr4mn8rg6i7h9 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '304.422.00.07'
20240730@191836.6933 rrscsideu8b4fbr4mn8rg6i7h9 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240730@191836.6951 rrscsideu8b4fbr4mn8rg6i7h9 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240730@191836.6981 rrscsideu8b4fbr4mn8rg6i7h9 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240730@191836.6996 rrscsideu8b4fbr4mn8rg6i7h9 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240730@191836.7007 rrscsideu8b4fbr4mn8rg6i7h9 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240730@191836.7047 rrscsideu8b4fbr4mn8rg6i7h9 Query : select sestamp valor from se where ref ='304.422.00.07' and lote = '230739'
20240730@191836.7123 rrscsideu8b4fbr4mn8rg6i7h9 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240730@191836.7141 rrscsideu8b4fbr4mn8rg6i7h9 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240730@191836.7156 rrscsideu8b4fbr4mn8rg6i7h9 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66a923845866a92e7cad','aut66a928212466a92e7c5e' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240730@191836.7215 rrscsideu8b4fbr4mn8rg6i7h9 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240730@191836.7231 rrscsideu8b4fbr4mn8rg6i7h9 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240730@191836.7264 rrscsideu8b4fbr4mn8rg6i7h9 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66a923845866a92e7cad',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',4.000 ,'aut66a928212466a92e7c5e' ,0,0 ,2,23.00,10000,?,?,?,?,?)
20240730@191836.7790 rrscsideu8b4fbr4mn8rg6i7h9 Query : use flama_phc
20240730@191836.7793 rrscsideu8b4fbr4mn8rg6i7h9 Query : select st.usalote valor from st where st.ref = '304.421.00.04'
20240730@191836.7816 rrscsideu8b4fbr4mn8rg6i7h9 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '304.421.00.04'
20240730@191836.8027 rrscsideu8b4fbr4mn8rg6i7h9 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240730@191836.8046 rrscsideu8b4fbr4mn8rg6i7h9 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240730@191836.8074 rrscsideu8b4fbr4mn8rg6i7h9 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240730@191836.8089 rrscsideu8b4fbr4mn8rg6i7h9 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240730@191836.8098 rrscsideu8b4fbr4mn8rg6i7h9 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240730@191836.8111 rrscsideu8b4fbr4mn8rg6i7h9 Query : select sestamp valor from se where ref ='304.421.00.04' and lote = '240896'
20240730@191836.8171 rrscsideu8b4fbr4mn8rg6i7h9 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240730@191836.8186 rrscsideu8b4fbr4mn8rg6i7h9 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240730@191836.8198 rrscsideu8b4fbr4mn8rg6i7h9 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66a925535966a92e7cc7','aut66a928212466a92e7c5e' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240730@191836.8203 rrscsideu8b4fbr4mn8rg6i7h9 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240730@191836.8217 rrscsideu8b4fbr4mn8rg6i7h9 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240730@191836.8245 rrscsideu8b4fbr4mn8rg6i7h9 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66a925535966a92e7cc7',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',8.000 ,'aut66a928212466a92e7c5e' ,0,0 ,2,23.00,20000,?,?,?,?,?)
20240730@191836.8504 rrscsideu8b4fbr4mn8rg6i7h9 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240730@191836.8523 rrscsideu8b4fbr4mn8rg6i7h9 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240730@191836.8556 rrscsideu8b4fbr4mn8rg6i7h9 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240730@191836.8572 rrscsideu8b4fbr4mn8rg6i7h9 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240730@191836.8582 rrscsideu8b4fbr4mn8rg6i7h9 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240730@191836.8595 rrscsideu8b4fbr4mn8rg6i7h9 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240730@191836.8613 rrscsideu8b4fbr4mn8rg6i7h9 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240730@191836.8626 rrscsideu8b4fbr4mn8rg6i7h9 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66a922760366a92e7cd1','aut66a928212466a92e7c5e' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240730@191836.8632 rrscsideu8b4fbr4mn8rg6i7h9 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240730@191836.8649 rrscsideu8b4fbr4mn8rg6i7h9 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240730@191836.8690 rrscsideu8b4fbr4mn8rg6i7h9 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66a922760366a92e7cd1',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66a928212466a92e7c5e' ,0,0 ,2,23.00,30000,?,?,?)
20240730@191836.8938 rrscsideu8b4fbr4mn8rg6i7h9 Query : use flama_phc
20240730@191836.8942 rrscsideu8b4fbr4mn8rg6i7h9 Query : select st.usalote valor from st where st.ref = '324.4521.00.1'
20240730@191836.8965 rrscsideu8b4fbr4mn8rg6i7h9 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.4521.00.1'
20240730@191836.9156 rrscsideu8b4fbr4mn8rg6i7h9 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240730@191836.9197 rrscsideu8b4fbr4mn8rg6i7h9 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240730@191836.9224 rrscsideu8b4fbr4mn8rg6i7h9 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240730@191836.9242 rrscsideu8b4fbr4mn8rg6i7h9 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240730@191836.9251 rrscsideu8b4fbr4mn8rg6i7h9 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240730@191836.9264 rrscsideu8b4fbr4mn8rg6i7h9 Query : select sestamp valor from se where ref ='324.4521.00.1' and lote = 'r2400052200a'
20240730@191836.9286 rrscsideu8b4fbr4mn8rg6i7h9 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240730@191836.9302 rrscsideu8b4fbr4mn8rg6i7h9 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240730@191836.9317 rrscsideu8b4fbr4mn8rg6i7h9 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66a926049966a92e7ce2','aut66a928212466a92e7c5e' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240730@191836.9321 rrscsideu8b4fbr4mn8rg6i7h9 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240730@191836.9339 rrscsideu8b4fbr4mn8rg6i7h9 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240730@191836.9368 rrscsideu8b4fbr4mn8rg6i7h9 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66a926049966a92e7ce2',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',4.000 ,'aut66a928212466a92e7c5e' ,0,0 ,2,23.00,50000,?,?,?,?,?)
20240730@191836.9638 rrscsideu8b4fbr4mn8rg6i7h9 Query : use flama_phc
20240730@191836.9642 rrscsideu8b4fbr4mn8rg6i7h9 Query : select st.usalote valor from st where st.ref = '324.4960.00.1'
20240730@191836.9665 rrscsideu8b4fbr4mn8rg6i7h9 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.4960.00.1'
20240730@191836.9813 rrscsideu8b4fbr4mn8rg6i7h9 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240730@191836.9831 rrscsideu8b4fbr4mn8rg6i7h9 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240730@191836.9861 rrscsideu8b4fbr4mn8rg6i7h9 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240730@191836.9877 rrscsideu8b4fbr4mn8rg6i7h9 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240730@191836.9886 rrscsideu8b4fbr4mn8rg6i7h9 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240730@191836.9901 rrscsideu8b4fbr4mn8rg6i7h9 Query : select sestamp valor from se where ref ='324.4960.00.1' and lote = 'r2100754100a'
20240730@191836.9926 rrscsideu8b4fbr4mn8rg6i7h9 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240730@191836.9943 rrscsideu8b4fbr4mn8rg6i7h9 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240730@191836.9956 rrscsideu8b4fbr4mn8rg6i7h9 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66a928019766a92e7cf2','aut66a928212466a92e7c5e' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240730@191836.9961 rrscsideu8b4fbr4mn8rg6i7h9 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240730@191836.9977 rrscsideu8b4fbr4mn8rg6i7h9 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240730@191837.1600 rrscsideu8b4fbr4mn8rg6i7h9 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66a928019766a92e7cf2',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',6.000 ,'aut66a928212466a92e7c5e' ,0,0 ,2,23.00,60000,?,?,?,?,?)
20240730@191837.3170 rrscsideu8b4fbr4mn8rg6i7h9 Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut66a928212466a92e7c5e','2405014','wait',39,'adm09112754980.682000002')
20240730@191837.4450 rrscsideu8b4fbr4mn8rg6i7h9 Query : use flama_phc
20240730@191837.4480 rrscsideu8b4fbr4mn8rg6i7h9 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240730@191837.4910 rrscsideu8b4fbr4mn8rg6i7h9 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1260';
20240730@191837.5190 rrscsideu8b4fbr4mn8rg6i7h9 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1260';
20240730@191837.5590 rrscsideu8b4fbr4mn8rg6i7h9 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1260';
20240730@191837.5860 rrscsideu8b4fbr4mn8rg6i7h9 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1260';
20240730@191837.1428 bq0ubar8l9tg02ad8vbu5fqadg Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240730@191837.1439 bq0ubar8l9tg02ad8vbu5fqadg Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240730@191837.1488 bq0ubar8l9tg02ad8vbu5fqadg Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1261';
20240730@191837.1546 bq0ubar8l9tg02ad8vbu5fqadg Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1261';
20240730@191837.1596 bq0ubar8l9tg02ad8vbu5fqadg Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1261';
20240730@191837.1618 bq0ubar8l9tg02ad8vbu5fqadg Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1261';
20240730@191837.1671 bq0ubar8l9tg02ad8vbu5fqadg Query : use flama_phc
20240730@191837.1675 bq0ubar8l9tg02ad8vbu5fqadg Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240730@191837.1742 bq0ubar8l9tg02ad8vbu5fqadg Query : use flama_phc
20240730@191837.1745 bq0ubar8l9tg02ad8vbu5fqadg Query : select no, estab,szadrsdesc from szadrs where u_coddest=4740
20240730@191837.1834 bq0ubar8l9tg02ad8vbu5fqadg Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1667.00.1'
20240730@191837.1999 bq0ubar8l9tg02ad8vbu5fqadg 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 = 2405016 and bi.ref ='324.1667.00.1' and bi.lordem =1
20240730@191837.2313 bq0ubar8l9tg02ad8vbu5fqadg Query : use flama_phc
20240730@191837.2316 bq0ubar8l9tg02ad8vbu5fqadg Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20240730@191837.2351 bq0ubar8l9tg02ad8vbu5fqadg Query : use flama_phc
20240730@191837.2355 bq0ubar8l9tg02ad8vbu5fqadg Query : select top 1 1 valor from td where td.ndoc = 39
20240730@191837.2388 bq0ubar8l9tg02ad8vbu5fqadg Query : use flama_phc
20240730@191837.2393 bq0ubar8l9tg02ad8vbu5fqadg 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')
20240730@191837.2426 bq0ubar8l9tg02ad8vbu5fqadg 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
20240730@191837.2465 bq0ubar8l9tg02ad8vbu5fqadg Query : use flama_phc
20240730@191837.2468 bq0ubar8l9tg02ad8vbu5fqadg Query : select top 1 ~inactivo valor from cl where no = '100810' and estab = 0 order by inactivo desc
20240730@191837.2604 bq0ubar8l9tg02ad8vbu5fqadg Query : use flama_phc
20240730@191837.2608 bq0ubar8l9tg02ad8vbu5fqadg Query : select top 1 tipodoc,regrd from td where ndoc = 39
20240730@191837.2764 bq0ubar8l9tg02ad8vbu5fqadg Query : use flama_phc
20240730@191837.2767 bq0ubar8l9tg02ad8vbu5fqadg Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20240730@191837.2811 bq0ubar8l9tg02ad8vbu5fqadg Query : use flama_phc
20240730@191837.2814 bq0ubar8l9tg02ad8vbu5fqadg Query : select szadrsstamp valor from szadrs where szadrsdesc='100810 - worten-equipamentos para o lar,sa.'
20240730@191837.2866 bq0ubar8l9tg02ad8vbu5fqadg Query : use flama_phc
20240730@191837.2869 bq0ubar8l9tg02ad8vbu5fqadg Query : select 1 valor from td where ndoc = 39
20240730@191837.2886 bq0ubar8l9tg02ad8vbu5fqadg Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20240730@191837.2908 bq0ubar8l9tg02ad8vbu5fqadg Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240730@191837.2927 bq0ubar8l9tg02ad8vbu5fqadg Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20240730@191837.2951 bq0ubar8l9tg02ad8vbu5fqadg Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240730@191837.2968 bq0ubar8l9tg02ad8vbu5fqadg Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20240730@191837.3006 bq0ubar8l9tg02ad8vbu5fqadg Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240730@191837.3025 bq0ubar8l9tg02ad8vbu5fqadg Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20240730@191837.3103 bq0ubar8l9tg02ad8vbu5fqadg Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240730@191837.3182 bq0ubar8l9tg02ad8vbu5fqadg Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240730@191837.3199 bq0ubar8l9tg02ad8vbu5fqadg Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240730@191837.3220 bq0ubar8l9tg02ad8vbu5fqadg Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20240730@191837.3239 bq0ubar8l9tg02ad8vbu5fqadg Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut66a924864466a92e7d4b' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20240730@191837.3428 bq0ubar8l9tg02ad8vbu5fqadg Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240730@191837.3449 bq0ubar8l9tg02ad8vbu5fqadg Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20240730@191837.3488 bq0ubar8l9tg02ad8vbu5fqadg Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20240730@191837.3509 bq0ubar8l9tg02ad8vbu5fqadg Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20240730@191837.3525 bq0ubar8l9tg02ad8vbu5fqadg Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20240730@191837.3545 bq0ubar8l9tg02ad8vbu5fqadg Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20240730@191837.3560 bq0ubar8l9tg02ad8vbu5fqadg Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20240730@191837.3577 bq0ubar8l9tg02ad8vbu5fqadg Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20240730@191837.3599 bq0ubar8l9tg02ad8vbu5fqadg Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut66a924864466a92e7d4b',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20240730@191837.3868 bq0ubar8l9tg02ad8vbu5fqadg Query : select top 1 fno valor from wsftdata order by fno desc
20240730@191837.3892 bq0ubar8l9tg02ad8vbu5fqadg Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240730@191837.3913 bq0ubar8l9tg02ad8vbu5fqadg Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20240730@191837.3940 bq0ubar8l9tg02ad8vbu5fqadg Query : select 'normal' from dummy
20240730@191837.3957 bq0ubar8l9tg02ad8vbu5fqadg Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut66a924864466a92e7d4b',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',101,100810,0,'2024-07-30',39,'euro',0,0,2024 ,?,?)
20240730@191837.4302 bq0ubar8l9tg02ad8vbu5fqadg Query : use flama_phc
20240730@191837.4306 bq0ubar8l9tg02ad8vbu5fqadg Query : select st.usalote valor from st where st.ref = '324.1667.00.1'
20240730@191837.4333 bq0ubar8l9tg02ad8vbu5fqadg Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.1667.00.1'
20240730@191837.4486 bq0ubar8l9tg02ad8vbu5fqadg Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240730@191837.4505 bq0ubar8l9tg02ad8vbu5fqadg Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240730@191837.4533 bq0ubar8l9tg02ad8vbu5fqadg Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240730@191837.4548 bq0ubar8l9tg02ad8vbu5fqadg Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240730@191837.4558 bq0ubar8l9tg02ad8vbu5fqadg Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240730@191837.4571 bq0ubar8l9tg02ad8vbu5fqadg Query : select sestamp valor from se where ref ='324.1667.00.1' and lote = 'r2400065200a'
20240730@191837.4586 bq0ubar8l9tg02ad8vbu5fqadg Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240730@191837.4602 bq0ubar8l9tg02ad8vbu5fqadg Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240730@191837.4616 bq0ubar8l9tg02ad8vbu5fqadg Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66a925345666a92e7d6f','aut66a924864466a92e7d4b' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240730@191837.4620 bq0ubar8l9tg02ad8vbu5fqadg Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240730@191837.4636 bq0ubar8l9tg02ad8vbu5fqadg Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240730@191837.4670 bq0ubar8l9tg02ad8vbu5fqadg Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66a925345666a92e7d6f',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',2.000 ,'aut66a924864466a92e7d4b' ,0,0 ,2,23.00,10000,?,?,?,?,?)
20240730@191837.4937 bq0ubar8l9tg02ad8vbu5fqadg Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240730@191837.4957 bq0ubar8l9tg02ad8vbu5fqadg Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240730@191837.4992 bq0ubar8l9tg02ad8vbu5fqadg Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240730@191837.5011 bq0ubar8l9tg02ad8vbu5fqadg Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240730@191837.5022 bq0ubar8l9tg02ad8vbu5fqadg Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240730@191837.5035 bq0ubar8l9tg02ad8vbu5fqadg Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240730@191837.5053 bq0ubar8l9tg02ad8vbu5fqadg Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240730@191837.5067 bq0ubar8l9tg02ad8vbu5fqadg Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66a922971666a92e7d7a','aut66a924864466a92e7d4b' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240730@191837.5073 bq0ubar8l9tg02ad8vbu5fqadg Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240730@191837.5092 bq0ubar8l9tg02ad8vbu5fqadg Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240730@191837.5125 bq0ubar8l9tg02ad8vbu5fqadg Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66a922971666a92e7d7a',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66a924864466a92e7d4b' ,0,0 ,2,23.00,20000,?,?,?)
20240730@191837.5446 bq0ubar8l9tg02ad8vbu5fqadg Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut66a924864466a92e7d4b','2405016','wait',39,'adm09112754980.682000002')
20240730@191837.5517 bq0ubar8l9tg02ad8vbu5fqadg Query : use flama_phc
20240730@191837.5520 bq0ubar8l9tg02ad8vbu5fqadg Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240730@191837.5552 bq0ubar8l9tg02ad8vbu5fqadg Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1261';
20240730@191837.5580 bq0ubar8l9tg02ad8vbu5fqadg Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1261';
20240730@191837.5615 bq0ubar8l9tg02ad8vbu5fqadg Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1261';
20240730@191837.5637 bq0ubar8l9tg02ad8vbu5fqadg Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1261';
20240730@191837.7454 q264citkornlulvotdcv4pfmmf Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240730@191837.7465 q264citkornlulvotdcv4pfmmf Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240730@191837.7509 q264citkornlulvotdcv4pfmmf Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1262';
20240730@191837.7559 q264citkornlulvotdcv4pfmmf Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1262';
20240730@191837.7603 q264citkornlulvotdcv4pfmmf Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1262';
20240730@191837.7624 q264citkornlulvotdcv4pfmmf Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1262';
20240730@191837.7668 q264citkornlulvotdcv4pfmmf Query : use flama_phc
20240730@191837.7671 q264citkornlulvotdcv4pfmmf Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240730@191837.7730 q264citkornlulvotdcv4pfmmf Query : use flama_phc
20240730@191837.7733 q264citkornlulvotdcv4pfmmf Query : select no, estab,szadrsdesc from szadrs where u_coddest=4740
20240730@191837.7792 q264citkornlulvotdcv4pfmmf Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1667.00.1'
20240730@191837.7811 q264citkornlulvotdcv4pfmmf 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 = 2405017 and bi.ref ='324.1667.00.1' and bi.lordem =1
20240730@191837.8134 q264citkornlulvotdcv4pfmmf Query : use flama_phc
20240730@191837.8137 q264citkornlulvotdcv4pfmmf Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20240730@191837.8170 q264citkornlulvotdcv4pfmmf Query : use flama_phc
20240730@191837.8173 q264citkornlulvotdcv4pfmmf Query : select top 1 1 valor from td where td.ndoc = 39
20240730@191837.8203 q264citkornlulvotdcv4pfmmf Query : use flama_phc
20240730@191837.8206 q264citkornlulvotdcv4pfmmf 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')
20240730@191837.8234 q264citkornlulvotdcv4pfmmf 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
20240730@191837.8270 q264citkornlulvotdcv4pfmmf Query : use flama_phc
20240730@191837.8277 q264citkornlulvotdcv4pfmmf Query : select top 1 ~inactivo valor from cl where no = '100810' and estab = 0 order by inactivo desc
20240730@191837.8306 q264citkornlulvotdcv4pfmmf Query : use flama_phc
20240730@191837.8309 q264citkornlulvotdcv4pfmmf Query : select top 1 tipodoc,regrd from td where ndoc = 39
20240730@191837.8338 q264citkornlulvotdcv4pfmmf Query : use flama_phc
20240730@191837.8341 q264citkornlulvotdcv4pfmmf Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20240730@191837.8379 q264citkornlulvotdcv4pfmmf Query : use flama_phc
20240730@191837.8382 q264citkornlulvotdcv4pfmmf Query : select szadrsstamp valor from szadrs where szadrsdesc='100810 - worten-equipamentos para o lar,sa.'
20240730@191837.8429 q264citkornlulvotdcv4pfmmf Query : use flama_phc
20240730@191837.8432 q264citkornlulvotdcv4pfmmf Query : select 1 valor from td where ndoc = 39
20240730@191837.8444 q264citkornlulvotdcv4pfmmf Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20240730@191837.8458 q264citkornlulvotdcv4pfmmf Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240730@191837.8473 q264citkornlulvotdcv4pfmmf Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20240730@191837.8493 q264citkornlulvotdcv4pfmmf Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240730@191837.8508 q264citkornlulvotdcv4pfmmf Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20240730@191837.8537 q264citkornlulvotdcv4pfmmf Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240730@191837.8594 q264citkornlulvotdcv4pfmmf Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20240730@191837.8612 q264citkornlulvotdcv4pfmmf Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240730@191837.8684 q264citkornlulvotdcv4pfmmf Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240730@191837.8698 q264citkornlulvotdcv4pfmmf Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240730@191837.8717 q264citkornlulvotdcv4pfmmf Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20240730@191837.8735 q264citkornlulvotdcv4pfmmf Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut66a922331466a92e7dd2' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20240730@191837.8931 q264citkornlulvotdcv4pfmmf Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240730@191837.8955 q264citkornlulvotdcv4pfmmf Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20240730@191837.8990 q264citkornlulvotdcv4pfmmf Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20240730@191837.9002 q264citkornlulvotdcv4pfmmf Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20240730@191837.9016 q264citkornlulvotdcv4pfmmf Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20240730@191837.9030 q264citkornlulvotdcv4pfmmf Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20240730@191837.9045 q264citkornlulvotdcv4pfmmf Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20240730@191837.9059 q264citkornlulvotdcv4pfmmf Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20240730@191837.9073 q264citkornlulvotdcv4pfmmf Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut66a922331466a92e7dd2',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20240730@191837.9326 q264citkornlulvotdcv4pfmmf Query : select top 1 fno valor from wsftdata order by fno desc
20240730@191837.9342 q264citkornlulvotdcv4pfmmf Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240730@191837.9359 q264citkornlulvotdcv4pfmmf Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20240730@191837.9385 q264citkornlulvotdcv4pfmmf Query : select 'normal' from dummy
20240730@191837.9403 q264citkornlulvotdcv4pfmmf Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut66a922331466a92e7dd2',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',102,100810,0,'2024-07-30',39,'euro',0,0,2024 ,?,?)
20240730@191837.9708 q264citkornlulvotdcv4pfmmf Query : use flama_phc
20240730@191837.9711 q264citkornlulvotdcv4pfmmf Query : select st.usalote valor from st where st.ref = '324.1667.00.1'
20240730@191837.9733 q264citkornlulvotdcv4pfmmf Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.1667.00.1'
20240730@191837.9749 q264citkornlulvotdcv4pfmmf Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240730@191837.9766 q264citkornlulvotdcv4pfmmf Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240730@191837.9794 q264citkornlulvotdcv4pfmmf Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240730@191837.9810 q264citkornlulvotdcv4pfmmf Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240730@191837.9819 q264citkornlulvotdcv4pfmmf Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240730@191837.9831 q264citkornlulvotdcv4pfmmf Query : select sestamp valor from se where ref ='324.1667.00.1' and lote = 'r2400065200a'
20240730@191837.9844 q264citkornlulvotdcv4pfmmf Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240730@191837.9860 q264citkornlulvotdcv4pfmmf Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240730@191837.9872 q264citkornlulvotdcv4pfmmf Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66a927526466a92e7df0','aut66a922331466a92e7dd2' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240730@191837.9876 q264citkornlulvotdcv4pfmmf Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240730@191837.9891 q264citkornlulvotdcv4pfmmf Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240730@191837.9921 q264citkornlulvotdcv4pfmmf Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66a927526466a92e7df0',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',1.000 ,'aut66a922331466a92e7dd2' ,0,0 ,2,23.00,10000,?,?,?,?,?)
20240730@191838.1870 q264citkornlulvotdcv4pfmmf Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240730@191838.2050 q264citkornlulvotdcv4pfmmf Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240730@191838.2360 q264citkornlulvotdcv4pfmmf Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240730@191838.2530 q264citkornlulvotdcv4pfmmf Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240730@191838.2630 q264citkornlulvotdcv4pfmmf Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240730@191838.2830 q264citkornlulvotdcv4pfmmf Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240730@191838.2990 q264citkornlulvotdcv4pfmmf Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240730@191838.3130 q264citkornlulvotdcv4pfmmf Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66a923164866a92e7e06','aut66a922331466a92e7dd2' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240730@191838.3180 q264citkornlulvotdcv4pfmmf Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240730@191838.3330 q264citkornlulvotdcv4pfmmf Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240730@191838.3640 q264citkornlulvotdcv4pfmmf Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66a923164866a92e7e06',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66a922331466a92e7dd2' ,0,0 ,2,23.00,20000,?,?,?)
20240730@191838.6280 q264citkornlulvotdcv4pfmmf Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut66a922331466a92e7dd2','2405017','wait',39,'adm09112754980.682000002')
20240730@191838.7120 q264citkornlulvotdcv4pfmmf Query : use flama_phc
20240730@191838.7160 q264citkornlulvotdcv4pfmmf Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240730@191838.7480 q264citkornlulvotdcv4pfmmf Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1262';
20240730@191838.7760 q264citkornlulvotdcv4pfmmf Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1262';
20240730@191838.8130 q264citkornlulvotdcv4pfmmf Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1262';
20240730@191838.8370 q264citkornlulvotdcv4pfmmf Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1262';
20240730@191838.1779 vk6174ihdjq2mevm5jdnamgo5u Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240730@191838.1791 vk6174ihdjq2mevm5jdnamgo5u Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240730@191838.1969 vk6174ihdjq2mevm5jdnamgo5u Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1263';
20240730@191838.2220 vk6174ihdjq2mevm5jdnamgo5u Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1263';
20240730@191838.2276 vk6174ihdjq2mevm5jdnamgo5u Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1263';
20240730@191838.2302 vk6174ihdjq2mevm5jdnamgo5u Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1263';
20240730@191838.2349 vk6174ihdjq2mevm5jdnamgo5u Query : use flama_phc
20240730@191838.2352 vk6174ihdjq2mevm5jdnamgo5u Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240730@191838.2419 vk6174ihdjq2mevm5jdnamgo5u Query : use flama_phc
20240730@191838.2422 vk6174ihdjq2mevm5jdnamgo5u Query : select no, estab,szadrsdesc from szadrs where u_coddest=4740
20240730@191838.3599 vk6174ihdjq2mevm5jdnamgo5u Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.497.00.01'
20240730@191838.3774 vk6174ihdjq2mevm5jdnamgo5u 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 = 2405019 and bi.ref ='324.497.00.01' and bi.lordem =1
20240730@191838.4117 vk6174ihdjq2mevm5jdnamgo5u Query : use flama_phc
20240730@191838.4120 vk6174ihdjq2mevm5jdnamgo5u Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20240730@191838.4162 vk6174ihdjq2mevm5jdnamgo5u Query : use flama_phc
20240730@191838.4167 vk6174ihdjq2mevm5jdnamgo5u Query : select top 1 1 valor from td where td.ndoc = 39
20240730@191838.4279 vk6174ihdjq2mevm5jdnamgo5u Query : use flama_phc
20240730@191838.4304 vk6174ihdjq2mevm5jdnamgo5u 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')
20240730@191838.4590 vk6174ihdjq2mevm5jdnamgo5u 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
20240730@191838.4634 vk6174ihdjq2mevm5jdnamgo5u Query : use flama_phc
20240730@191838.4637 vk6174ihdjq2mevm5jdnamgo5u Query : select top 1 ~inactivo valor from cl where no = '100810' and estab = 0 order by inactivo desc
20240730@191838.4672 vk6174ihdjq2mevm5jdnamgo5u Query : use flama_phc
20240730@191838.4676 vk6174ihdjq2mevm5jdnamgo5u Query : select top 1 tipodoc,regrd from td where ndoc = 39
20240730@191838.4710 vk6174ihdjq2mevm5jdnamgo5u Query : use flama_phc
20240730@191838.4714 vk6174ihdjq2mevm5jdnamgo5u Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20240730@191838.4758 vk6174ihdjq2mevm5jdnamgo5u Query : use flama_phc
20240730@191838.4761 vk6174ihdjq2mevm5jdnamgo5u Query : select szadrsstamp valor from szadrs where szadrsdesc='100810 - worten-equipamentos para o lar,sa.'
20240730@191838.4810 vk6174ihdjq2mevm5jdnamgo5u Query : use flama_phc
20240730@191838.4813 vk6174ihdjq2mevm5jdnamgo5u Query : select 1 valor from td where ndoc = 39
20240730@191838.4827 vk6174ihdjq2mevm5jdnamgo5u Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20240730@191838.4844 vk6174ihdjq2mevm5jdnamgo5u Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240730@191838.4864 vk6174ihdjq2mevm5jdnamgo5u Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20240730@191838.4885 vk6174ihdjq2mevm5jdnamgo5u Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240730@191838.4902 vk6174ihdjq2mevm5jdnamgo5u Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20240730@191838.4931 vk6174ihdjq2mevm5jdnamgo5u Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240730@191838.4947 vk6174ihdjq2mevm5jdnamgo5u Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20240730@191838.4961 vk6174ihdjq2mevm5jdnamgo5u Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240730@191838.5034 vk6174ihdjq2mevm5jdnamgo5u Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240730@191838.5049 vk6174ihdjq2mevm5jdnamgo5u Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240730@191838.5067 vk6174ihdjq2mevm5jdnamgo5u Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20240730@191838.5086 vk6174ihdjq2mevm5jdnamgo5u Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut66a920460566a92e7e79' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20240730@191838.5265 vk6174ihdjq2mevm5jdnamgo5u Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240730@191838.5284 vk6174ihdjq2mevm5jdnamgo5u Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20240730@191838.5403 vk6174ihdjq2mevm5jdnamgo5u Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20240730@191838.5422 vk6174ihdjq2mevm5jdnamgo5u Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20240730@191838.5437 vk6174ihdjq2mevm5jdnamgo5u Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20240730@191838.5453 vk6174ihdjq2mevm5jdnamgo5u Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20240730@191838.5469 vk6174ihdjq2mevm5jdnamgo5u Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20240730@191838.5483 vk6174ihdjq2mevm5jdnamgo5u Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20240730@191838.5499 vk6174ihdjq2mevm5jdnamgo5u Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut66a920460566a92e7e79',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20240730@191838.5754 vk6174ihdjq2mevm5jdnamgo5u Query : select top 1 fno valor from wsftdata order by fno desc
20240730@191838.5772 vk6174ihdjq2mevm5jdnamgo5u Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240730@191838.5793 vk6174ihdjq2mevm5jdnamgo5u Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20240730@191838.5821 vk6174ihdjq2mevm5jdnamgo5u Query : select 'normal' from dummy
20240730@191838.5840 vk6174ihdjq2mevm5jdnamgo5u Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut66a920460566a92e7e79',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',103,100810,0,'2024-07-30',39,'euro',0,0,2024 ,?,?)
20240730@191838.6171 vk6174ihdjq2mevm5jdnamgo5u Query : use flama_phc
20240730@191838.6174 vk6174ihdjq2mevm5jdnamgo5u Query : select st.usalote valor from st where st.ref = '324.497.00.01'
20240730@191838.6200 vk6174ihdjq2mevm5jdnamgo5u Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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.497.00.01'
20240730@191838.6348 vk6174ihdjq2mevm5jdnamgo5u Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240730@191838.6365 vk6174ihdjq2mevm5jdnamgo5u Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240730@191838.6392 vk6174ihdjq2mevm5jdnamgo5u Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240730@191838.6407 vk6174ihdjq2mevm5jdnamgo5u Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240730@191838.6416 vk6174ihdjq2mevm5jdnamgo5u Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240730@191838.6428 vk6174ihdjq2mevm5jdnamgo5u Query : select sestamp valor from se where ref ='324.497.00.01' and lote = 'r2300022100a'
20240730@191838.6442 vk6174ihdjq2mevm5jdnamgo5u Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240730@191838.6458 vk6174ihdjq2mevm5jdnamgo5u Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240730@191838.6470 vk6174ihdjq2mevm5jdnamgo5u Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66a921650866a92e7e9d','aut66a920460566a92e7e79' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240730@191838.6474 vk6174ihdjq2mevm5jdnamgo5u Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240730@191838.6488 vk6174ihdjq2mevm5jdnamgo5u Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240730@191838.6516 vk6174ihdjq2mevm5jdnamgo5u Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66a921650866a92e7e9d',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',12.000 ,'aut66a920460566a92e7e79' ,0,0 ,2,23.00,10000,?,?,?,?,?)
20240730@191838.6780 vk6174ihdjq2mevm5jdnamgo5u Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut66a920460566a92e7e79','2405019','wait',39,'adm09112754980.682000002')
20240730@191838.6847 vk6174ihdjq2mevm5jdnamgo5u Query : use flama_phc
20240730@191838.6850 vk6174ihdjq2mevm5jdnamgo5u Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240730@191838.6897 vk6174ihdjq2mevm5jdnamgo5u Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1263';
20240730@191838.6923 vk6174ihdjq2mevm5jdnamgo5u Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1263';
20240730@191838.6957 vk6174ihdjq2mevm5jdnamgo5u Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1263';
20240730@191838.6980 vk6174ihdjq2mevm5jdnamgo5u Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1263';
20240730@191838.7493 2of99lbdc02sv82uaujr93bhmt Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240730@191838.7505 2of99lbdc02sv82uaujr93bhmt Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240730@191838.7550 2of99lbdc02sv82uaujr93bhmt Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1264';
20240730@191838.7598 2of99lbdc02sv82uaujr93bhmt Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1264';
20240730@191838.7645 2of99lbdc02sv82uaujr93bhmt Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1264';
20240730@191838.7669 2of99lbdc02sv82uaujr93bhmt Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1264';
20240730@191838.7713 2of99lbdc02sv82uaujr93bhmt Query : use flama_phc
20240730@191838.7716 2of99lbdc02sv82uaujr93bhmt Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240730@191838.7777 2of99lbdc02sv82uaujr93bhmt Query : use flama_phc
20240730@191838.7780 2of99lbdc02sv82uaujr93bhmt Query : select no, estab,szadrsdesc from szadrs where u_coddest=4804
20240730@191838.7820 2of99lbdc02sv82uaujr93bhmt Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.4723.00.2'
20240730@191838.7983 2of99lbdc02sv82uaujr93bhmt 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 = 2405021 and bi.ref ='324.4723.00.2' and bi.lordem =1
20240730@191838.9378 2of99lbdc02sv82uaujr93bhmt Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.4723.00.2'
20240730@191838.9400 2of99lbdc02sv82uaujr93bhmt 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 = 2405021 and bi.ref ='324.4723.00.2' and bi.lordem =1
20240730@191838.9433 2of99lbdc02sv82uaujr93bhmt Query : use flama_phc
20240730@191838.9438 2of99lbdc02sv82uaujr93bhmt Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20240730@191838.9472 2of99lbdc02sv82uaujr93bhmt Query : use flama_phc
20240730@191838.9476 2of99lbdc02sv82uaujr93bhmt Query : select top 1 1 valor from td where td.ndoc = 39
20240730@191838.9508 2of99lbdc02sv82uaujr93bhmt Query : use flama_phc
20240730@191838.9512 2of99lbdc02sv82uaujr93bhmt 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')
20240730@191838.9542 2of99lbdc02sv82uaujr93bhmt 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
20240730@191838.9582 2of99lbdc02sv82uaujr93bhmt Query : use flama_phc
20240730@191838.9585 2of99lbdc02sv82uaujr93bhmt Query : select top 1 ~inactivo valor from cl where no = '101900' and estab = 0 order by inactivo desc
20240730@191838.9618 2of99lbdc02sv82uaujr93bhmt Query : use flama_phc
20240730@191838.9622 2of99lbdc02sv82uaujr93bhmt Query : select top 1 tipodoc,regrd from td where ndoc = 39
20240730@191838.9653 2of99lbdc02sv82uaujr93bhmt Query : use flama_phc
20240730@191838.9657 2of99lbdc02sv82uaujr93bhmt Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20240730@191838.9700 2of99lbdc02sv82uaujr93bhmt Query : use flama_phc
20240730@191838.9703 2of99lbdc02sv82uaujr93bhmt Query : select szadrsstamp valor from szadrs where szadrsdesc='101900 - pd - alfena n/p'
20240730@191838.9749 2of99lbdc02sv82uaujr93bhmt Query : use flama_phc
20240730@191838.9752 2of99lbdc02sv82uaujr93bhmt Query : select 1 valor from td where ndoc = 39
20240730@191838.9765 2of99lbdc02sv82uaujr93bhmt Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20240730@191838.9782 2of99lbdc02sv82uaujr93bhmt Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240730@191838.9799 2of99lbdc02sv82uaujr93bhmt Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20240730@191838.9821 2of99lbdc02sv82uaujr93bhmt Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240730@191838.9838 2of99lbdc02sv82uaujr93bhmt Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20240730@191838.9869 2of99lbdc02sv82uaujr93bhmt Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240730@191838.9886 2of99lbdc02sv82uaujr93bhmt Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20240730@191838.9903 2of99lbdc02sv82uaujr93bhmt Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240730@191838.9977 2of99lbdc02sv82uaujr93bhmt Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240730@191838.9992 2of99lbdc02sv82uaujr93bhmt Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240730@191839.1200 2of99lbdc02sv82uaujr93bhmt Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20240730@191839.3300 2of99lbdc02sv82uaujr93bhmt Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut66a925836366a92e7ef1' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20240730@191839.2200 2of99lbdc02sv82uaujr93bhmt Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240730@191839.2400 2of99lbdc02sv82uaujr93bhmt Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20240730@191839.2780 2of99lbdc02sv82uaujr93bhmt Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20240730@191839.2930 2of99lbdc02sv82uaujr93bhmt Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20240730@191839.3070 2of99lbdc02sv82uaujr93bhmt Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20240730@191839.3210 2of99lbdc02sv82uaujr93bhmt Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20240730@191839.3360 2of99lbdc02sv82uaujr93bhmt Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20240730@191839.3530 2of99lbdc02sv82uaujr93bhmt Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20240730@191839.3680 2of99lbdc02sv82uaujr93bhmt Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut66a925836366a92e7ef1',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20240730@191839.6320 2of99lbdc02sv82uaujr93bhmt Query : select top 1 fno valor from wsftdata order by fno desc
20240730@191839.6520 2of99lbdc02sv82uaujr93bhmt Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240730@191839.6750 2of99lbdc02sv82uaujr93bhmt Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20240730@191839.7030 2of99lbdc02sv82uaujr93bhmt Query : select 'normal' from dummy
20240730@191839.7270 2of99lbdc02sv82uaujr93bhmt Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut66a925836366a92e7ef1',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',104,101900,0,'2024-07-30',39,'euro',0,0,2024 ,?,?)
20240730@191839.1011 2of99lbdc02sv82uaujr93bhmt Query : use flama_phc
20240730@191839.1014 2of99lbdc02sv82uaujr93bhmt Query : select st.usalote valor from st where st.ref = '324.4723.00.2'
20240730@191839.1042 2of99lbdc02sv82uaujr93bhmt Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.4723.00.2'
20240730@191839.1191 2of99lbdc02sv82uaujr93bhmt Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240730@191839.1211 2of99lbdc02sv82uaujr93bhmt Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240730@191839.1243 2of99lbdc02sv82uaujr93bhmt Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240730@191839.1260 2of99lbdc02sv82uaujr93bhmt Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240730@191839.1276 2of99lbdc02sv82uaujr93bhmt Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240730@191839.1290 2of99lbdc02sv82uaujr93bhmt Query : select sestamp valor from se where ref ='324.4723.00.2' and lote = 'r2200682200a'
20240730@191839.1316 2of99lbdc02sv82uaujr93bhmt Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240730@191839.1332 2of99lbdc02sv82uaujr93bhmt Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240730@191839.1347 2of99lbdc02sv82uaujr93bhmt Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66a928839666a92e7f20','aut66a925836366a92e7ef1' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240730@191839.1352 2of99lbdc02sv82uaujr93bhmt Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240730@191839.1369 2of99lbdc02sv82uaujr93bhmt Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240730@191839.1402 2of99lbdc02sv82uaujr93bhmt Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66a928839666a92e7f20',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',6.000 ,'aut66a925836366a92e7ef1' ,0,0 ,2,23.00,10000,?,?,?,?,?)
20240730@191839.1669 2of99lbdc02sv82uaujr93bhmt Query : use flama_phc
20240730@191839.1672 2of99lbdc02sv82uaujr93bhmt Query : select st.usalote valor from st where st.ref = '324.4723.00.2'
20240730@191839.1698 2of99lbdc02sv82uaujr93bhmt Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.4723.00.2'
20240730@191839.1717 2of99lbdc02sv82uaujr93bhmt Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240730@191839.1736 2of99lbdc02sv82uaujr93bhmt Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240730@191839.1847 2of99lbdc02sv82uaujr93bhmt Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240730@191839.2074 2of99lbdc02sv82uaujr93bhmt Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240730@191839.2084 2of99lbdc02sv82uaujr93bhmt Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240730@191839.2099 2of99lbdc02sv82uaujr93bhmt Query : select sestamp valor from se where ref ='324.4723.00.2' and lote = 'r2200682200a'
20240730@191839.2115 2of99lbdc02sv82uaujr93bhmt Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240730@191839.2139 2of99lbdc02sv82uaujr93bhmt Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240730@191839.2154 2of99lbdc02sv82uaujr93bhmt Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66a927476066a92e7f33','aut66a925836366a92e7ef1' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240730@191839.2158 2of99lbdc02sv82uaujr93bhmt Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240730@191839.2175 2of99lbdc02sv82uaujr93bhmt Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240730@191839.2209 2of99lbdc02sv82uaujr93bhmt Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66a927476066a92e7f33',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',15.000 ,'aut66a925836366a92e7ef1' ,0,0 ,2,23.00,20000,?,?,?,?,?)
20240730@191839.2463 2of99lbdc02sv82uaujr93bhmt Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut66a925836366a92e7ef1','2405021','wait',39,'adm09112754980.682000002')
20240730@191839.2540 2of99lbdc02sv82uaujr93bhmt Query : use flama_phc
20240730@191839.2545 2of99lbdc02sv82uaujr93bhmt Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240730@191839.2580 2of99lbdc02sv82uaujr93bhmt Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1264';
20240730@191839.2607 2of99lbdc02sv82uaujr93bhmt Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1264';
20240730@191839.2646 2of99lbdc02sv82uaujr93bhmt Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1264';
20240730@191839.2673 2of99lbdc02sv82uaujr93bhmt Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1264';
20240730@191839.3246 ku14ajr0lc2c1r62r1semca3kt Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240730@191839.3257 ku14ajr0lc2c1r62r1semca3kt Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240730@191839.3307 ku14ajr0lc2c1r62r1semca3kt Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1265';
20240730@191839.3366 ku14ajr0lc2c1r62r1semca3kt Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1265';
20240730@191839.3412 ku14ajr0lc2c1r62r1semca3kt Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1265';
20240730@191839.3435 ku14ajr0lc2c1r62r1semca3kt Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1265';
20240730@191839.3479 ku14ajr0lc2c1r62r1semca3kt Query : use flama_phc
20240730@191839.3482 ku14ajr0lc2c1r62r1semca3kt Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240730@191839.3545 ku14ajr0lc2c1r62r1semca3kt Query : use flama_phc
20240730@191839.3550 ku14ajr0lc2c1r62r1semca3kt Query : select no, estab,szadrsdesc from szadrs where u_coddest=4740
20240730@191839.3592 ku14ajr0lc2c1r62r1semca3kt Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.4840.00.1'
20240730@191839.3752 ku14ajr0lc2c1r62r1semca3kt 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 = 2405022 and bi.ref ='324.4840.00.1' and bi.lordem =1
20240730@191839.4076 ku14ajr0lc2c1r62r1semca3kt Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.4840.00.1'
20240730@191839.4099 ku14ajr0lc2c1r62r1semca3kt 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 = 2405022 and bi.ref ='324.4840.00.1' and bi.lordem =1
20240730@191839.4116 ku14ajr0lc2c1r62r1semca3kt Query : use flama_phc
20240730@191839.4120 ku14ajr0lc2c1r62r1semca3kt Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20240730@191839.4154 ku14ajr0lc2c1r62r1semca3kt Query : use flama_phc
20240730@191839.4157 ku14ajr0lc2c1r62r1semca3kt Query : select top 1 1 valor from td where td.ndoc = 39
20240730@191839.4187 ku14ajr0lc2c1r62r1semca3kt Query : use flama_phc
20240730@191839.4190 ku14ajr0lc2c1r62r1semca3kt 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')
20240730@191839.4218 ku14ajr0lc2c1r62r1semca3kt 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
20240730@191839.4253 ku14ajr0lc2c1r62r1semca3kt Query : use flama_phc
20240730@191839.4256 ku14ajr0lc2c1r62r1semca3kt Query : select top 1 ~inactivo valor from cl where no = '100810' and estab = 0 order by inactivo desc
20240730@191839.4285 ku14ajr0lc2c1r62r1semca3kt Query : use flama_phc
20240730@191839.4289 ku14ajr0lc2c1r62r1semca3kt Query : select top 1 tipodoc,regrd from td where ndoc = 39
20240730@191839.4318 ku14ajr0lc2c1r62r1semca3kt Query : use flama_phc
20240730@191839.4321 ku14ajr0lc2c1r62r1semca3kt Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20240730@191839.4368 ku14ajr0lc2c1r62r1semca3kt Query : use flama_phc
20240730@191839.4371 ku14ajr0lc2c1r62r1semca3kt Query : select szadrsstamp valor from szadrs where szadrsdesc='100810 - worten-equipamentos para o lar,sa.'
20240730@191839.4415 ku14ajr0lc2c1r62r1semca3kt Query : use flama_phc
20240730@191839.4418 ku14ajr0lc2c1r62r1semca3kt Query : select 1 valor from td where ndoc = 39
20240730@191839.4449 ku14ajr0lc2c1r62r1semca3kt Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20240730@191839.4467 ku14ajr0lc2c1r62r1semca3kt Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240730@191839.4484 ku14ajr0lc2c1r62r1semca3kt Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20240730@191839.4503 ku14ajr0lc2c1r62r1semca3kt Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240730@191839.4518 ku14ajr0lc2c1r62r1semca3kt Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20240730@191839.4551 ku14ajr0lc2c1r62r1semca3kt Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240730@191839.4566 ku14ajr0lc2c1r62r1semca3kt Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20240730@191839.4579 ku14ajr0lc2c1r62r1semca3kt Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240730@191839.4651 ku14ajr0lc2c1r62r1semca3kt Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240730@191839.4665 ku14ajr0lc2c1r62r1semca3kt Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240730@191839.4680 ku14ajr0lc2c1r62r1semca3kt Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20240730@191839.4696 ku14ajr0lc2c1r62r1semca3kt Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut66a920343566a92e7f6f' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20240730@191839.4870 ku14ajr0lc2c1r62r1semca3kt Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240730@191839.4887 ku14ajr0lc2c1r62r1semca3kt Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20240730@191839.4921 ku14ajr0lc2c1r62r1semca3kt Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20240730@191839.4933 ku14ajr0lc2c1r62r1semca3kt Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20240730@191839.4948 ku14ajr0lc2c1r62r1semca3kt Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20240730@191839.4960 ku14ajr0lc2c1r62r1semca3kt Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20240730@191839.4972 ku14ajr0lc2c1r62r1semca3kt Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20240730@191839.4984 ku14ajr0lc2c1r62r1semca3kt Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20240730@191839.4995 ku14ajr0lc2c1r62r1semca3kt Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut66a920343566a92e7f6f',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20240730@191839.5241 ku14ajr0lc2c1r62r1semca3kt Query : select top 1 fno valor from wsftdata order by fno desc
20240730@191839.5259 ku14ajr0lc2c1r62r1semca3kt Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240730@191839.5277 ku14ajr0lc2c1r62r1semca3kt Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20240730@191839.5307 ku14ajr0lc2c1r62r1semca3kt Query : select 'normal' from dummy
20240730@191839.5324 ku14ajr0lc2c1r62r1semca3kt Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut66a920343566a92e7f6f',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',105,100810,0,'2024-07-30',39,'euro',0,0,2024 ,?,?)
20240730@191839.5621 ku14ajr0lc2c1r62r1semca3kt Query : use flama_phc
20240730@191839.5624 ku14ajr0lc2c1r62r1semca3kt Query : select st.usalote valor from st where st.ref = '324.4840.00.1'
20240730@191839.5651 ku14ajr0lc2c1r62r1semca3kt Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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.4840.00.1'
20240730@191839.5802 ku14ajr0lc2c1r62r1semca3kt Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240730@191839.5819 ku14ajr0lc2c1r62r1semca3kt Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240730@191839.5845 ku14ajr0lc2c1r62r1semca3kt Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240730@191839.5861 ku14ajr0lc2c1r62r1semca3kt Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240730@191839.5870 ku14ajr0lc2c1r62r1semca3kt Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240730@191839.5883 ku14ajr0lc2c1r62r1semca3kt Query : select sestamp valor from se where ref ='324.4840.00.1' and lote = 'r2400064200a'
20240730@191839.5897 ku14ajr0lc2c1r62r1semca3kt Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240730@191839.5912 ku14ajr0lc2c1r62r1semca3kt Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240730@191839.5924 ku14ajr0lc2c1r62r1semca3kt Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66a928570866a92e7f8f','aut66a920343566a92e7f6f' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240730@191839.5928 ku14ajr0lc2c1r62r1semca3kt Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240730@191839.5942 ku14ajr0lc2c1r62r1semca3kt Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240730@191839.5971 ku14ajr0lc2c1r62r1semca3kt Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66a928570866a92e7f8f',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',18.000 ,'aut66a920343566a92e7f6f' ,0,0 ,2,23.00,10000,?,?,?,?,?)
20240730@191839.6374 ku14ajr0lc2c1r62r1semca3kt Query : use flama_phc
20240730@191839.6377 ku14ajr0lc2c1r62r1semca3kt Query : select st.usalote valor from st where st.ref = '324.4840.00.1'
20240730@191839.6400 ku14ajr0lc2c1r62r1semca3kt Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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.4840.00.1'
20240730@191839.6416 ku14ajr0lc2c1r62r1semca3kt Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240730@191839.6432 ku14ajr0lc2c1r62r1semca3kt Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240730@191839.6461 ku14ajr0lc2c1r62r1semca3kt Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240730@191839.6491 ku14ajr0lc2c1r62r1semca3kt Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240730@191839.6500 ku14ajr0lc2c1r62r1semca3kt Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240730@191839.6513 ku14ajr0lc2c1r62r1semca3kt Query : select sestamp valor from se where ref ='324.4840.00.1' and lote = 'r2400064200a'
20240730@191839.6526 ku14ajr0lc2c1r62r1semca3kt Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240730@191839.6541 ku14ajr0lc2c1r62r1semca3kt Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240730@191839.6579 ku14ajr0lc2c1r62r1semca3kt Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66a920117466a92e7f9f','aut66a920343566a92e7f6f' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240730@191839.6954 ku14ajr0lc2c1r62r1semca3kt Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240730@191839.7802 ku14ajr0lc2c1r62r1semca3kt Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240730@191839.8020 ku14ajr0lc2c1r62r1semca3kt Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66a920117466a92e7f9f',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',12.000 ,'aut66a920343566a92e7f6f' ,0,0 ,2,23.00,20000,?,?,?,?,?)
20240730@191839.8360 ku14ajr0lc2c1r62r1semca3kt Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut66a920343566a92e7f6f','2405022','wait',39,'adm09112754980.682000002')
20240730@191839.8432 ku14ajr0lc2c1r62r1semca3kt Query : use flama_phc
20240730@191839.8435 ku14ajr0lc2c1r62r1semca3kt Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240730@191839.8470 ku14ajr0lc2c1r62r1semca3kt Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1265';
20240730@191839.8493 ku14ajr0lc2c1r62r1semca3kt Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1265';
20240730@191839.8528 ku14ajr0lc2c1r62r1semca3kt Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1265';
20240730@191839.8549 ku14ajr0lc2c1r62r1semca3kt Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1265';
20240730@191839.9221 tk00fvrmbk4vlbf3afg3ochja7 Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240730@191839.9233 tk00fvrmbk4vlbf3afg3ochja7 Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240730@191839.9284 tk00fvrmbk4vlbf3afg3ochja7 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1266';
20240730@191839.9334 tk00fvrmbk4vlbf3afg3ochja7 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1266';
20240730@191839.9390 tk00fvrmbk4vlbf3afg3ochja7 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1266';
20240730@191839.9494 tk00fvrmbk4vlbf3afg3ochja7 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1266';
20240730@191839.9541 tk00fvrmbk4vlbf3afg3ochja7 Query : use flama_phc
20240730@191839.9545 tk00fvrmbk4vlbf3afg3ochja7 Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240730@191839.9609 tk00fvrmbk4vlbf3afg3ochja7 Query : use flama_phc
20240730@191839.9612 tk00fvrmbk4vlbf3afg3ochja7 Query : select no, estab,szadrsdesc from szadrs where u_coddest=6917
20240730@191839.9803 tk00fvrmbk4vlbf3afg3ochja7 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.700.94.01'
20240730@191839.9963 tk00fvrmbk4vlbf3afg3ochja7 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 = 2405072 and bi.ref ='324.700.94.01' and bi.lordem =1
20240730@191840.2670 tk00fvrmbk4vlbf3afg3ochja7 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.2200.94.1'
20240730@191840.4200 tk00fvrmbk4vlbf3afg3ochja7 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 = 2405072 and bi.ref ='324.2200.94.1' and bi.lordem =2
20240730@191840.7370 tk00fvrmbk4vlbf3afg3ochja7 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.2200.94.1'
20240730@191840.7590 tk00fvrmbk4vlbf3afg3ochja7 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 = 2405072 and bi.ref ='324.2200.94.1' and bi.lordem =2
20240730@191840.7770 tk00fvrmbk4vlbf3afg3ochja7 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.600.94.01'
20240730@191840.9250 tk00fvrmbk4vlbf3afg3ochja7 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 = 2405072 and bi.ref ='324.600.94.01' and bi.lordem =3
