20240904@183856.2225 rdvsl2b13eoecncf2an6dd16mm INICIO DE FICHEIRO DE LOG :: /var/www/webservices/logs/website.sql.log
20240904@183856.2221 rdvsl2b13eoecncf2an6dd16mm Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240904@183856.2243 rdvsl2b13eoecncf2an6dd16mm Query : select sestamp valor from se where ref ='324.1832.00.2' and lote = 'r2301271100a'
20240904@183856.2262 rdvsl2b13eoecncf2an6dd16mm Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183856.2286 rdvsl2b13eoecncf2an6dd16mm Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240904@183856.2300 rdvsl2b13eoecncf2an6dd16mm Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66d893467466d89b3037','aut66d895189866d89b2fbb' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240904@183856.2305 rdvsl2b13eoecncf2an6dd16mm Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183856.2321 rdvsl2b13eoecncf2an6dd16mm Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240904@183856.2443 rdvsl2b13eoecncf2an6dd16mm Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66d893467466d89b3037',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',6.000 ,'aut66d895189866d89b2fbb' ,0,0 ,2,23.00,60000,?,?,?,?,?)
20240904@183856.2794 rdvsl2b13eoecncf2an6dd16mm Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183856.2896 rdvsl2b13eoecncf2an6dd16mm Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240904@183856.2953 rdvsl2b13eoecncf2an6dd16mm Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183856.3000 rdvsl2b13eoecncf2an6dd16mm Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240904@183856.3019 rdvsl2b13eoecncf2an6dd16mm Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240904@183856.3064 rdvsl2b13eoecncf2an6dd16mm Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183856.3110 rdvsl2b13eoecncf2an6dd16mm Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240904@183856.3127 rdvsl2b13eoecncf2an6dd16mm Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66d895503966d89b304a','aut66d895189866d89b2fbb' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240904@183856.3133 rdvsl2b13eoecncf2an6dd16mm Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183856.3171 rdvsl2b13eoecncf2an6dd16mm Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240904@183856.3378 rdvsl2b13eoecncf2an6dd16mm Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66d895503966d89b304a',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66d895189866d89b2fbb' ,0,0 ,2,23.00,70000,?,?,?)
20240904@183856.3731 rdvsl2b13eoecncf2an6dd16mm Query : use flama_phc
20240904@183856.3735 rdvsl2b13eoecncf2an6dd16mm Query : select st.usalote valor from st where st.ref = '324.1833.00.2'
20240904@183856.3764 rdvsl2b13eoecncf2an6dd16mm Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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'
20240904@183856.3937 rdvsl2b13eoecncf2an6dd16mm Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183856.3958 rdvsl2b13eoecncf2an6dd16mm Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240904@183856.4002 rdvsl2b13eoecncf2an6dd16mm Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183856.4021 rdvsl2b13eoecncf2an6dd16mm Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240904@183856.4032 rdvsl2b13eoecncf2an6dd16mm Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240904@183856.4061 rdvsl2b13eoecncf2an6dd16mm Query : select sestamp valor from se where ref ='324.1833.00.2' and lote = 'r2301257100a'
20240904@183856.4092 rdvsl2b13eoecncf2an6dd16mm Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183856.4110 rdvsl2b13eoecncf2an6dd16mm Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240904@183856.4124 rdvsl2b13eoecncf2an6dd16mm Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66d894691466d89b3063','aut66d895189866d89b2fbb' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240904@183856.4128 rdvsl2b13eoecncf2an6dd16mm Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183856.4145 rdvsl2b13eoecncf2an6dd16mm Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240904@183856.4193 rdvsl2b13eoecncf2an6dd16mm Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66d894691466d89b3063',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',6.000 ,'aut66d895189866d89b2fbb' ,0,0 ,2,23.00,90000,?,?,?,?,?)
20240904@183856.4495 rdvsl2b13eoecncf2an6dd16mm Query : use flama_phc
20240904@183856.4499 rdvsl2b13eoecncf2an6dd16mm Query : select st.usalote valor from st where st.ref = '324.1879.00.1'
20240904@183856.4526 rdvsl2b13eoecncf2an6dd16mm Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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'
20240904@183856.4944 rdvsl2b13eoecncf2an6dd16mm Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183856.5035 rdvsl2b13eoecncf2an6dd16mm Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240904@183856.5087 rdvsl2b13eoecncf2an6dd16mm Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183856.5107 rdvsl2b13eoecncf2an6dd16mm Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240904@183856.5134 rdvsl2b13eoecncf2an6dd16mm Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240904@183856.5153 rdvsl2b13eoecncf2an6dd16mm Query : select sestamp valor from se where ref ='324.1879.00.1' and lote = 'r2300643200a'
20240904@183856.5174 rdvsl2b13eoecncf2an6dd16mm Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183856.5191 rdvsl2b13eoecncf2an6dd16mm Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240904@183856.5204 rdvsl2b13eoecncf2an6dd16mm Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66d894860666d89b307e','aut66d895189866d89b2fbb' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240904@183856.5220 rdvsl2b13eoecncf2an6dd16mm Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183856.5237 rdvsl2b13eoecncf2an6dd16mm Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240904@183856.5280 rdvsl2b13eoecncf2an6dd16mm Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66d894860666d89b307e',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',6.000 ,'aut66d895189866d89b2fbb' ,0,0 ,2,23.00,100000,?,?,?,?,?)
20240904@183856.5893 rdvsl2b13eoecncf2an6dd16mm Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183856.5912 rdvsl2b13eoecncf2an6dd16mm Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240904@183856.5943 rdvsl2b13eoecncf2an6dd16mm Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183856.5978 rdvsl2b13eoecncf2an6dd16mm Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240904@183856.5988 rdvsl2b13eoecncf2an6dd16mm Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240904@183856.6003 rdvsl2b13eoecncf2an6dd16mm Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183856.6024 rdvsl2b13eoecncf2an6dd16mm Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240904@183856.6038 rdvsl2b13eoecncf2an6dd16mm Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66d890047166d89b3092','aut66d895189866d89b2fbb' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240904@183856.6043 rdvsl2b13eoecncf2an6dd16mm Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183856.6061 rdvsl2b13eoecncf2an6dd16mm Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240904@183856.6097 rdvsl2b13eoecncf2an6dd16mm Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66d890047166d89b3092',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66d895189866d89b2fbb' ,0,0 ,2,23.00,110000,?,?,?)
20240904@183856.6396 rdvsl2b13eoecncf2an6dd16mm Query : use flama_phc
20240904@183856.6400 rdvsl2b13eoecncf2an6dd16mm Query : select st.usalote valor from st where st.ref = '324.1871.00.4'
20240904@183856.6426 rdvsl2b13eoecncf2an6dd16mm Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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.4'
20240904@183856.6614 rdvsl2b13eoecncf2an6dd16mm Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183856.6644 rdvsl2b13eoecncf2an6dd16mm Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240904@183856.6677 rdvsl2b13eoecncf2an6dd16mm Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183856.6693 rdvsl2b13eoecncf2an6dd16mm Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240904@183856.6704 rdvsl2b13eoecncf2an6dd16mm Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240904@183856.6719 rdvsl2b13eoecncf2an6dd16mm Query : select sestamp valor from se where ref ='324.1871.00.4' and lote = 'r2400125200a'
20240904@183856.6736 rdvsl2b13eoecncf2an6dd16mm Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183856.6753 rdvsl2b13eoecncf2an6dd16mm Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240904@183856.6767 rdvsl2b13eoecncf2an6dd16mm Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66d893296266d89b30a4','aut66d895189866d89b2fbb' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240904@183856.6772 rdvsl2b13eoecncf2an6dd16mm Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183856.6795 rdvsl2b13eoecncf2an6dd16mm Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240904@183856.6833 rdvsl2b13eoecncf2an6dd16mm Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66d893296266d89b30a4',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',8.000 ,'aut66d895189866d89b2fbb' ,0,0 ,2,23.00,130000,?,?,?,?,?)
20240904@183856.7156 rdvsl2b13eoecncf2an6dd16mm Query : use flama_phc
20240904@183856.7160 rdvsl2b13eoecncf2an6dd16mm Query : select st.usalote valor from st where st.ref = '324.2066.00.1'
20240904@183856.8378 rdvsl2b13eoecncf2an6dd16mm Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.2066.00.1'
20240904@183856.8582 rdvsl2b13eoecncf2an6dd16mm Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183856.8603 rdvsl2b13eoecncf2an6dd16mm Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240904@183856.8702 rdvsl2b13eoecncf2an6dd16mm Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183856.8719 rdvsl2b13eoecncf2an6dd16mm Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240904@183856.8728 rdvsl2b13eoecncf2an6dd16mm Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240904@183856.8741 rdvsl2b13eoecncf2an6dd16mm Query : select sestamp valor from se where ref ='324.2066.00.1' and lote = 'r2400051100a'
20240904@183856.8764 rdvsl2b13eoecncf2an6dd16mm Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183856.8780 rdvsl2b13eoecncf2an6dd16mm Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240904@183856.8792 rdvsl2b13eoecncf2an6dd16mm Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66d895735066d89b30d5','aut66d895189866d89b2fbb' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240904@183856.8796 rdvsl2b13eoecncf2an6dd16mm Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183856.8817 rdvsl2b13eoecncf2an6dd16mm Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240904@183856.8850 rdvsl2b13eoecncf2an6dd16mm Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66d895735066d89b30d5',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',6.000 ,'aut66d895189866d89b2fbb' ,0,0 ,2,23.00,140000,?,?,?,?,?)
20240904@183856.9190 rdvsl2b13eoecncf2an6dd16mm Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183856.9211 rdvsl2b13eoecncf2an6dd16mm Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240904@183856.9306 rdvsl2b13eoecncf2an6dd16mm Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183856.9327 rdvsl2b13eoecncf2an6dd16mm Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240904@183856.9338 rdvsl2b13eoecncf2an6dd16mm Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240904@183856.9353 rdvsl2b13eoecncf2an6dd16mm Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183856.9371 rdvsl2b13eoecncf2an6dd16mm Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240904@183856.9384 rdvsl2b13eoecncf2an6dd16mm Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66d890428166d89b30e4','aut66d895189866d89b2fbb' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240904@183856.9389 rdvsl2b13eoecncf2an6dd16mm Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183856.9405 rdvsl2b13eoecncf2an6dd16mm Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240904@183856.9463 rdvsl2b13eoecncf2an6dd16mm Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66d890428166d89b30e4',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66d895189866d89b2fbb' ,0,0 ,2,23.00,150000,?,?,?)
20240904@183856.9762 rdvsl2b13eoecncf2an6dd16mm Query : use flama_phc
20240904@183856.9766 rdvsl2b13eoecncf2an6dd16mm Query : select st.usalote valor from st where st.ref = '304.421.00.04'
20240904@183856.9790 rdvsl2b13eoecncf2an6dd16mm Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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'
20240904@183856.9805 rdvsl2b13eoecncf2an6dd16mm Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183856.9824 rdvsl2b13eoecncf2an6dd16mm Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240904@183856.9869 rdvsl2b13eoecncf2an6dd16mm Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183856.9884 rdvsl2b13eoecncf2an6dd16mm Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240904@183856.9898 rdvsl2b13eoecncf2an6dd16mm Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240904@183857.6500 rdvsl2b13eoecncf2an6dd16mm Query : select sestamp valor from se where ref ='304.421.00.04' and lote = '240896'
20240904@183857.8000 rdvsl2b13eoecncf2an6dd16mm Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183857.1000 rdvsl2b13eoecncf2an6dd16mm Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240904@183857.1120 rdvsl2b13eoecncf2an6dd16mm Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66d890879966d89b3101','aut66d895189866d89b2fbb' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240904@183857.1170 rdvsl2b13eoecncf2an6dd16mm Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183857.1490 rdvsl2b13eoecncf2an6dd16mm Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240904@183857.1860 rdvsl2b13eoecncf2an6dd16mm Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66d890879966d89b3101',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',4.000 ,'aut66d895189866d89b2fbb' ,0,0 ,2,23.00,170000,?,?,?,?,?)
20240904@183857.5100 rdvsl2b13eoecncf2an6dd16mm Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183857.5290 rdvsl2b13eoecncf2an6dd16mm Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240904@183857.5610 rdvsl2b13eoecncf2an6dd16mm Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183857.5850 rdvsl2b13eoecncf2an6dd16mm Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240904@183857.5960 rdvsl2b13eoecncf2an6dd16mm Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240904@183857.6100 rdvsl2b13eoecncf2an6dd16mm Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183857.6270 rdvsl2b13eoecncf2an6dd16mm Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240904@183857.6390 rdvsl2b13eoecncf2an6dd16mm Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66d899346166d89b310e','aut66d895189866d89b2fbb' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240904@183857.6440 rdvsl2b13eoecncf2an6dd16mm Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183857.6580 rdvsl2b13eoecncf2an6dd16mm Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240904@183857.7290 rdvsl2b13eoecncf2an6dd16mm Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66d899346166d89b310e',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66d895189866d89b2fbb' ,0,0 ,2,23.00,180000,?,?,?)
20240904@183857.1087 rdvsl2b13eoecncf2an6dd16mm Query : use flama_phc
20240904@183857.1090 rdvsl2b13eoecncf2an6dd16mm Query : select st.usalote valor from st where st.ref = '304.422.00.07'
20240904@183857.1113 rdvsl2b13eoecncf2an6dd16mm Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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'
20240904@183857.1305 rdvsl2b13eoecncf2an6dd16mm Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183857.1324 rdvsl2b13eoecncf2an6dd16mm Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240904@183857.1357 rdvsl2b13eoecncf2an6dd16mm Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183857.1401 rdvsl2b13eoecncf2an6dd16mm Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240904@183857.1410 rdvsl2b13eoecncf2an6dd16mm Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240904@183857.1434 rdvsl2b13eoecncf2an6dd16mm Query : select sestamp valor from se where ref ='304.422.00.07' and lote = '240647'
20240904@183857.1465 rdvsl2b13eoecncf2an6dd16mm Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183857.1481 rdvsl2b13eoecncf2an6dd16mm Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240904@183857.1495 rdvsl2b13eoecncf2an6dd16mm Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66d890306166d89b3123','aut66d895189866d89b2fbb' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240904@183857.1500 rdvsl2b13eoecncf2an6dd16mm Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183857.1514 rdvsl2b13eoecncf2an6dd16mm Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240904@183857.1563 rdvsl2b13eoecncf2an6dd16mm Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66d890306166d89b3123',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',4.000 ,'aut66d895189866d89b2fbb' ,0,0 ,2,23.00,200000,?,?,?,?,?)
20240904@183857.1863 rdvsl2b13eoecncf2an6dd16mm Query : use flama_phc
20240904@183857.1867 rdvsl2b13eoecncf2an6dd16mm Query : select st.usalote valor from st where st.ref = '324.497.00.01'
20240904@183857.1891 rdvsl2b13eoecncf2an6dd16mm Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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'
20240904@183857.2090 rdvsl2b13eoecncf2an6dd16mm Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183857.2108 rdvsl2b13eoecncf2an6dd16mm Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240904@183857.2154 rdvsl2b13eoecncf2an6dd16mm Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183857.2172 rdvsl2b13eoecncf2an6dd16mm Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240904@183857.2184 rdvsl2b13eoecncf2an6dd16mm Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240904@183857.2196 rdvsl2b13eoecncf2an6dd16mm Query : select sestamp valor from se where ref ='324.497.00.01' and lote = 'r2300022100a'
20240904@183857.2224 rdvsl2b13eoecncf2an6dd16mm Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183857.2243 rdvsl2b13eoecncf2an6dd16mm Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240904@183857.2257 rdvsl2b13eoecncf2an6dd16mm Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66d899871566d89b3136','aut66d895189866d89b2fbb' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240904@183857.2269 rdvsl2b13eoecncf2an6dd16mm Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183857.2296 rdvsl2b13eoecncf2an6dd16mm Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240904@183857.2333 rdvsl2b13eoecncf2an6dd16mm Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66d899871566d89b3136',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',4.000 ,'aut66d895189866d89b2fbb' ,0,0 ,2,23.00,210000,?,?,?,?,?)
20240904@183857.2666 rdvsl2b13eoecncf2an6dd16mm Query : use flama_phc
20240904@183857.2674 rdvsl2b13eoecncf2an6dd16mm Query : select st.usalote valor from st where st.ref = '324.727.00.01'
20240904@183857.2696 rdvsl2b13eoecncf2an6dd16mm Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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'
20240904@183857.2710 rdvsl2b13eoecncf2an6dd16mm Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183857.2727 rdvsl2b13eoecncf2an6dd16mm Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240904@183857.2752 rdvsl2b13eoecncf2an6dd16mm Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183857.2766 rdvsl2b13eoecncf2an6dd16mm Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240904@183857.2775 rdvsl2b13eoecncf2an6dd16mm Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240904@183857.2790 rdvsl2b13eoecncf2an6dd16mm Query : select sestamp valor from se where ref ='324.727.00.01' and lote = 'r2400239200a'
20240904@183857.2803 rdvsl2b13eoecncf2an6dd16mm Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183857.2817 rdvsl2b13eoecncf2an6dd16mm Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240904@183857.2828 rdvsl2b13eoecncf2an6dd16mm Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66d890525466d89b3144','aut66d895189866d89b2fbb' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240904@183857.2832 rdvsl2b13eoecncf2an6dd16mm Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183857.2855 rdvsl2b13eoecncf2an6dd16mm Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240904@183857.2885 rdvsl2b13eoecncf2an6dd16mm Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66d890525466d89b3144',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',12.000 ,'aut66d895189866d89b2fbb' ,0,0 ,2,23.00,220000,?,?,?,?,?)
20240904@183857.3249 rdvsl2b13eoecncf2an6dd16mm Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183857.3266 rdvsl2b13eoecncf2an6dd16mm Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240904@183857.3299 rdvsl2b13eoecncf2an6dd16mm Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183857.3316 rdvsl2b13eoecncf2an6dd16mm Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240904@183857.3327 rdvsl2b13eoecncf2an6dd16mm Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240904@183857.3339 rdvsl2b13eoecncf2an6dd16mm Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183857.3355 rdvsl2b13eoecncf2an6dd16mm Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240904@183857.3367 rdvsl2b13eoecncf2an6dd16mm Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66d890043166d89b3151','aut66d895189866d89b2fbb' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240904@183857.3372 rdvsl2b13eoecncf2an6dd16mm Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183857.3435 rdvsl2b13eoecncf2an6dd16mm Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240904@183857.3474 rdvsl2b13eoecncf2an6dd16mm Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66d890043166d89b3151',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66d895189866d89b2fbb' ,0,0 ,2,23.00,230000,?,?,?)
20240904@183857.3771 rdvsl2b13eoecncf2an6dd16mm Query : use flama_phc
20240904@183857.3775 rdvsl2b13eoecncf2an6dd16mm Query : select st.usalote valor from st where st.ref = '324.4906.00.1'
20240904@183857.3795 rdvsl2b13eoecncf2an6dd16mm Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.4906.00.1'
20240904@183857.4001 rdvsl2b13eoecncf2an6dd16mm Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183857.4018 rdvsl2b13eoecncf2an6dd16mm Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240904@183857.4045 rdvsl2b13eoecncf2an6dd16mm Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183857.4073 rdvsl2b13eoecncf2an6dd16mm Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240904@183857.4083 rdvsl2b13eoecncf2an6dd16mm Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240904@183857.4105 rdvsl2b13eoecncf2an6dd16mm Query : select sestamp valor from se where ref ='324.4906.00.1' and lote = 'r2300207200a'
20240904@183857.4126 rdvsl2b13eoecncf2an6dd16mm Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183857.4141 rdvsl2b13eoecncf2an6dd16mm Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240904@183857.4155 rdvsl2b13eoecncf2an6dd16mm Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66d894550866d89b3164','aut66d895189866d89b2fbb' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240904@183857.4160 rdvsl2b13eoecncf2an6dd16mm Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183857.4178 rdvsl2b13eoecncf2an6dd16mm Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240904@183857.4210 rdvsl2b13eoecncf2an6dd16mm Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66d894550866d89b3164',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',8.000 ,'aut66d895189866d89b2fbb' ,0,0 ,2,23.00,250000,?,?,?,?,?)
20240904@183857.4755 rdvsl2b13eoecncf2an6dd16mm Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183857.4773 rdvsl2b13eoecncf2an6dd16mm Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240904@183857.4798 rdvsl2b13eoecncf2an6dd16mm Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183857.4812 rdvsl2b13eoecncf2an6dd16mm Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240904@183857.4821 rdvsl2b13eoecncf2an6dd16mm Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240904@183857.4853 rdvsl2b13eoecncf2an6dd16mm Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183857.4870 rdvsl2b13eoecncf2an6dd16mm Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240904@183857.4883 rdvsl2b13eoecncf2an6dd16mm Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66d898776566d89b3176','aut66d895189866d89b2fbb' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240904@183857.4888 rdvsl2b13eoecncf2an6dd16mm Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183857.4909 rdvsl2b13eoecncf2an6dd16mm Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240904@183857.4962 rdvsl2b13eoecncf2an6dd16mm Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66d898776566d89b3176',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66d895189866d89b2fbb' ,0,0 ,2,23.00,260000,?,?,?)
20240904@183857.5322 rdvsl2b13eoecncf2an6dd16mm Query : use flama_phc
20240904@183857.5326 rdvsl2b13eoecncf2an6dd16mm Query : select st.usalote valor from st where st.ref = '324.646.00.01'
20240904@183857.5349 rdvsl2b13eoecncf2an6dd16mm Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.646.00.01'
20240904@183857.5753 rdvsl2b13eoecncf2an6dd16mm Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183857.5775 rdvsl2b13eoecncf2an6dd16mm Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240904@183857.5806 rdvsl2b13eoecncf2an6dd16mm Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183857.5825 rdvsl2b13eoecncf2an6dd16mm Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240904@183857.5835 rdvsl2b13eoecncf2an6dd16mm Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240904@183857.5848 rdvsl2b13eoecncf2an6dd16mm Query : select sestamp valor from se where ref ='324.646.00.01' and lote = 'r2400055100a'
20240904@183857.5864 rdvsl2b13eoecncf2an6dd16mm Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183857.5880 rdvsl2b13eoecncf2an6dd16mm Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240904@183857.5896 rdvsl2b13eoecncf2an6dd16mm Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66d894176366d89b318f','aut66d895189866d89b2fbb' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240904@183857.5900 rdvsl2b13eoecncf2an6dd16mm Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183857.5938 rdvsl2b13eoecncf2an6dd16mm Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240904@183857.5975 rdvsl2b13eoecncf2an6dd16mm Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66d894176366d89b318f',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',8.000 ,'aut66d895189866d89b2fbb' ,0,0 ,2,23.00,280000,?,?,?,?,?)
20240904@183857.6308 rdvsl2b13eoecncf2an6dd16mm Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183857.6326 rdvsl2b13eoecncf2an6dd16mm Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240904@183857.6356 rdvsl2b13eoecncf2an6dd16mm Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183857.6376 rdvsl2b13eoecncf2an6dd16mm Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240904@183857.6386 rdvsl2b13eoecncf2an6dd16mm Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240904@183857.6402 rdvsl2b13eoecncf2an6dd16mm Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183857.6420 rdvsl2b13eoecncf2an6dd16mm Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240904@183857.6435 rdvsl2b13eoecncf2an6dd16mm Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66d899054066d89b319c','aut66d895189866d89b2fbb' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240904@183857.6441 rdvsl2b13eoecncf2an6dd16mm Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183857.6481 rdvsl2b13eoecncf2an6dd16mm Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240904@183857.6517 rdvsl2b13eoecncf2an6dd16mm Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66d899054066d89b319c',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66d895189866d89b2fbb' ,0,0 ,2,23.00,290000,?,?,?)
20240904@183857.6836 rdvsl2b13eoecncf2an6dd16mm Query : use flama_phc
20240904@183857.6840 rdvsl2b13eoecncf2an6dd16mm Query : select st.usalote valor from st where st.ref = '324.642.00.01'
20240904@183857.6864 rdvsl2b13eoecncf2an6dd16mm Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.642.00.01'
20240904@183857.7067 rdvsl2b13eoecncf2an6dd16mm Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183857.7090 rdvsl2b13eoecncf2an6dd16mm Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240904@183857.7117 rdvsl2b13eoecncf2an6dd16mm Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183857.7149 rdvsl2b13eoecncf2an6dd16mm Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240904@183857.7163 rdvsl2b13eoecncf2an6dd16mm Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240904@183857.7175 rdvsl2b13eoecncf2an6dd16mm Query : select sestamp valor from se where ref ='324.642.00.01' and lote = 'r2100892200a'
20240904@183857.7223 rdvsl2b13eoecncf2an6dd16mm Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183857.7238 rdvsl2b13eoecncf2an6dd16mm Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240904@183857.7251 rdvsl2b13eoecncf2an6dd16mm Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66d890914166d89b31b0','aut66d895189866d89b2fbb' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240904@183857.7257 rdvsl2b13eoecncf2an6dd16mm Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183857.7272 rdvsl2b13eoecncf2an6dd16mm Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240904@183857.7307 rdvsl2b13eoecncf2an6dd16mm Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66d890914166d89b31b0',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',4.000 ,'aut66d895189866d89b2fbb' ,0,0 ,2,23.00,310000,?,?,?,?,?)
20240904@183857.7632 rdvsl2b13eoecncf2an6dd16mm Query : use flama_phc
20240904@183857.7635 rdvsl2b13eoecncf2an6dd16mm Query : select st.usalote valor from st where st.ref = '324.1221.00.1'
20240904@183857.7657 rdvsl2b13eoecncf2an6dd16mm Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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.1221.00.1'
20240904@183857.7845 rdvsl2b13eoecncf2an6dd16mm Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183857.7862 rdvsl2b13eoecncf2an6dd16mm Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240904@183857.7894 rdvsl2b13eoecncf2an6dd16mm Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183857.7908 rdvsl2b13eoecncf2an6dd16mm Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240904@183857.7918 rdvsl2b13eoecncf2an6dd16mm Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240904@183857.7932 rdvsl2b13eoecncf2an6dd16mm Query : select sestamp valor from se where ref ='324.1221.00.1' and lote = 'r2101229200a'
20240904@183857.7951 rdvsl2b13eoecncf2an6dd16mm Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183857.7966 rdvsl2b13eoecncf2an6dd16mm Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240904@183857.7978 rdvsl2b13eoecncf2an6dd16mm Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66d890642866d89b31c2','aut66d895189866d89b2fbb' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240904@183857.7983 rdvsl2b13eoecncf2an6dd16mm Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183857.8000 rdvsl2b13eoecncf2an6dd16mm Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240904@183857.8034 rdvsl2b13eoecncf2an6dd16mm Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66d890642866d89b31c2',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',4.000 ,'aut66d895189866d89b2fbb' ,0,0 ,2,23.00,320000,?,?,?,?,?)
20240904@183857.8349 rdvsl2b13eoecncf2an6dd16mm Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183857.8368 rdvsl2b13eoecncf2an6dd16mm Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240904@183857.8402 rdvsl2b13eoecncf2an6dd16mm Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183857.8417 rdvsl2b13eoecncf2an6dd16mm Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240904@183857.8429 rdvsl2b13eoecncf2an6dd16mm Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240904@183857.8441 rdvsl2b13eoecncf2an6dd16mm Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183857.8456 rdvsl2b13eoecncf2an6dd16mm Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240904@183857.8479 rdvsl2b13eoecncf2an6dd16mm Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66d898457766d89b31ce','aut66d895189866d89b2fbb' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240904@183857.8500 rdvsl2b13eoecncf2an6dd16mm Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183857.8514 rdvsl2b13eoecncf2an6dd16mm Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240904@183857.8545 rdvsl2b13eoecncf2an6dd16mm Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66d898457766d89b31ce',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66d895189866d89b2fbb' ,0,0 ,2,23.00,330000,?,?,?)
20240904@183857.8869 rdvsl2b13eoecncf2an6dd16mm Query : use flama_phc
20240904@183857.8872 rdvsl2b13eoecncf2an6dd16mm Query : select st.usalote valor from st where st.ref = '324.1256.00.1'
20240904@183857.8895 rdvsl2b13eoecncf2an6dd16mm Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.1256.00.1'
20240904@183857.9068 rdvsl2b13eoecncf2an6dd16mm Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183857.9087 rdvsl2b13eoecncf2an6dd16mm Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240904@183857.9118 rdvsl2b13eoecncf2an6dd16mm Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183857.9135 rdvsl2b13eoecncf2an6dd16mm Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240904@183857.9159 rdvsl2b13eoecncf2an6dd16mm Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240904@183857.9176 rdvsl2b13eoecncf2an6dd16mm Query : select sestamp valor from se where ref ='324.1256.00.1' and lote = 'r2100597100a'
20240904@183857.9190 rdvsl2b13eoecncf2an6dd16mm Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183857.9206 rdvsl2b13eoecncf2an6dd16mm Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240904@183857.9218 rdvsl2b13eoecncf2an6dd16mm Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66d894075066d89b31e0','aut66d895189866d89b2fbb' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240904@183857.9223 rdvsl2b13eoecncf2an6dd16mm Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183857.9241 rdvsl2b13eoecncf2an6dd16mm Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240904@183857.9276 rdvsl2b13eoecncf2an6dd16mm Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66d894075066d89b31e0',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',8.000 ,'aut66d895189866d89b2fbb' ,0,0 ,2,23.00,350000,?,?,?,?,?)
20240904@183857.9586 rdvsl2b13eoecncf2an6dd16mm Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183857.9606 rdvsl2b13eoecncf2an6dd16mm Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240904@183857.9673 rdvsl2b13eoecncf2an6dd16mm Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183857.9729 rdvsl2b13eoecncf2an6dd16mm Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240904@183857.9788 rdvsl2b13eoecncf2an6dd16mm Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240904@183857.9823 rdvsl2b13eoecncf2an6dd16mm Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183857.9840 rdvsl2b13eoecncf2an6dd16mm Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240904@183857.9854 rdvsl2b13eoecncf2an6dd16mm Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66d891382566d89b31ef','aut66d895189866d89b2fbb' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240904@183857.9859 rdvsl2b13eoecncf2an6dd16mm Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183857.9875 rdvsl2b13eoecncf2an6dd16mm Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240904@183857.9934 rdvsl2b13eoecncf2an6dd16mm Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66d891382566d89b31ef',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66d895189866d89b2fbb' ,0,0 ,2,23.00,360000,?,?,?)
20240904@183858.3980 rdvsl2b13eoecncf2an6dd16mm Query : use flama_phc
20240904@183858.4020 rdvsl2b13eoecncf2an6dd16mm Query : select st.usalote valor from st where st.ref = '324.1407.00.1'
20240904@183858.4260 rdvsl2b13eoecncf2an6dd16mm Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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.1407.00.1'
20240904@183858.6020 rdvsl2b13eoecncf2an6dd16mm Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183858.6310 rdvsl2b13eoecncf2an6dd16mm Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240904@183858.6640 rdvsl2b13eoecncf2an6dd16mm Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183858.6820 rdvsl2b13eoecncf2an6dd16mm Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240904@183858.6920 rdvsl2b13eoecncf2an6dd16mm Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240904@183858.7060 rdvsl2b13eoecncf2an6dd16mm Query : select sestamp valor from se where ref ='324.1407.00.1' and lote = 'r2100703100a'
20240904@183858.7320 rdvsl2b13eoecncf2an6dd16mm Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183858.7820 rdvsl2b13eoecncf2an6dd16mm Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240904@183858.8020 rdvsl2b13eoecncf2an6dd16mm Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66d898835266d89b3211','aut66d895189866d89b2fbb' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240904@183858.8070 rdvsl2b13eoecncf2an6dd16mm Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183858.8250 rdvsl2b13eoecncf2an6dd16mm Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240904@183858.8590 rdvsl2b13eoecncf2an6dd16mm Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66d898835266d89b3211',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',6.000 ,'aut66d895189866d89b2fbb' ,0,0 ,2,23.00,380000,?,?,?,?,?)
20240904@183858.1169 rdvsl2b13eoecncf2an6dd16mm Query : use flama_phc
20240904@183858.1173 rdvsl2b13eoecncf2an6dd16mm Query : select st.usalote valor from st where st.ref = '324.1416.00.1'
20240904@183858.1198 rdvsl2b13eoecncf2an6dd16mm Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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.1416.00.1'
20240904@183858.1377 rdvsl2b13eoecncf2an6dd16mm Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183858.1393 rdvsl2b13eoecncf2an6dd16mm Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240904@183858.1441 rdvsl2b13eoecncf2an6dd16mm Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183858.1457 rdvsl2b13eoecncf2an6dd16mm Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240904@183858.1469 rdvsl2b13eoecncf2an6dd16mm Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240904@183858.1483 rdvsl2b13eoecncf2an6dd16mm Query : select sestamp valor from se where ref ='324.1416.00.1' and lote = 'r2400079200a'
20240904@183858.1499 rdvsl2b13eoecncf2an6dd16mm Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183858.1517 rdvsl2b13eoecncf2an6dd16mm Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240904@183858.1530 rdvsl2b13eoecncf2an6dd16mm Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66d893927266d89b3224','aut66d895189866d89b2fbb' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240904@183858.1535 rdvsl2b13eoecncf2an6dd16mm Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183858.1552 rdvsl2b13eoecncf2an6dd16mm Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240904@183858.1589 rdvsl2b13eoecncf2an6dd16mm Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66d893927266d89b3224',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',8.000 ,'aut66d895189866d89b2fbb' ,0,0 ,2,23.00,390000,?,?,?,?,?)
20240904@183858.1947 rdvsl2b13eoecncf2an6dd16mm Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183858.1965 rdvsl2b13eoecncf2an6dd16mm Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240904@183858.1995 rdvsl2b13eoecncf2an6dd16mm Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183858.2012 rdvsl2b13eoecncf2an6dd16mm Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240904@183858.2021 rdvsl2b13eoecncf2an6dd16mm Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240904@183858.2034 rdvsl2b13eoecncf2an6dd16mm Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183858.2049 rdvsl2b13eoecncf2an6dd16mm Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240904@183858.2078 rdvsl2b13eoecncf2an6dd16mm Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66d893495766d89b3231','aut66d895189866d89b2fbb' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240904@183858.2083 rdvsl2b13eoecncf2an6dd16mm Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183858.2098 rdvsl2b13eoecncf2an6dd16mm Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240904@183858.2131 rdvsl2b13eoecncf2an6dd16mm Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66d893495766d89b3231',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66d895189866d89b2fbb' ,0,0 ,2,23.00,400000,?,?,?)
20240904@183858.2423 rdvsl2b13eoecncf2an6dd16mm Query : use flama_phc
20240904@183858.2426 rdvsl2b13eoecncf2an6dd16mm Query : select st.usalote valor from st where st.ref = '324.2232.00.1'
20240904@183858.2453 rdvsl2b13eoecncf2an6dd16mm Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.2232.00.1'
20240904@183858.2471 rdvsl2b13eoecncf2an6dd16mm Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183858.2488 rdvsl2b13eoecncf2an6dd16mm Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240904@183858.2541 rdvsl2b13eoecncf2an6dd16mm Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183858.2558 rdvsl2b13eoecncf2an6dd16mm Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240904@183858.2567 rdvsl2b13eoecncf2an6dd16mm Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240904@183858.2595 rdvsl2b13eoecncf2an6dd16mm Query : select sestamp valor from se where ref ='324.2232.00.1' and lote = 'r2400241100a'
20240904@183858.2609 rdvsl2b13eoecncf2an6dd16mm Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183858.2623 rdvsl2b13eoecncf2an6dd16mm Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240904@183858.2634 rdvsl2b13eoecncf2an6dd16mm Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66d894508066d89b323f','aut66d895189866d89b2fbb' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240904@183858.2639 rdvsl2b13eoecncf2an6dd16mm Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183858.2662 rdvsl2b13eoecncf2an6dd16mm Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240904@183858.2699 rdvsl2b13eoecncf2an6dd16mm Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66d894508066d89b323f',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',6.000 ,'aut66d895189866d89b2fbb' ,0,0 ,2,23.00,420000,?,?,?,?,?)
20240904@183858.3030 rdvsl2b13eoecncf2an6dd16mm Query : use flama_phc
20240904@183858.3033 rdvsl2b13eoecncf2an6dd16mm Query : select st.usalote valor from st where st.ref = '324.5501.00.1'
20240904@183858.3056 rdvsl2b13eoecncf2an6dd16mm Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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'
20240904@183858.3071 rdvsl2b13eoecncf2an6dd16mm Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183858.3087 rdvsl2b13eoecncf2an6dd16mm Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240904@183858.3121 rdvsl2b13eoecncf2an6dd16mm Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183858.3137 rdvsl2b13eoecncf2an6dd16mm Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240904@183858.3146 rdvsl2b13eoecncf2an6dd16mm Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240904@183858.3160 rdvsl2b13eoecncf2an6dd16mm Query : select sestamp valor from se where ref ='324.5501.00.1' and lote = 'r2300908100a'
20240904@183858.3176 rdvsl2b13eoecncf2an6dd16mm Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183858.3194 rdvsl2b13eoecncf2an6dd16mm Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240904@183858.3207 rdvsl2b13eoecncf2an6dd16mm Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66d894582266d89b324d','aut66d895189866d89b2fbb' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240904@183858.3213 rdvsl2b13eoecncf2an6dd16mm Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183858.3229 rdvsl2b13eoecncf2an6dd16mm Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240904@183858.3484 rdvsl2b13eoecncf2an6dd16mm Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66d894582266d89b324d',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',8.000 ,'aut66d895189866d89b2fbb' ,0,0 ,2,23.00,430000,?,?,?,?,?)
20240904@183858.3829 rdvsl2b13eoecncf2an6dd16mm Query : use flama_phc
20240904@183858.3833 rdvsl2b13eoecncf2an6dd16mm Query : select st.usalote valor from st where st.ref = '324.5396.00.1'
20240904@183858.3856 rdvsl2b13eoecncf2an6dd16mm Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.5396.00.1'
20240904@183858.3874 rdvsl2b13eoecncf2an6dd16mm Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183858.3892 rdvsl2b13eoecncf2an6dd16mm Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240904@183858.3923 rdvsl2b13eoecncf2an6dd16mm Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183858.3939 rdvsl2b13eoecncf2an6dd16mm Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240904@183858.3954 rdvsl2b13eoecncf2an6dd16mm Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240904@183858.3974 rdvsl2b13eoecncf2an6dd16mm Query : select sestamp valor from se where ref ='324.5396.00.1' and lote = 'r2300840100a'
20240904@183858.3999 rdvsl2b13eoecncf2an6dd16mm Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183858.4432 rdvsl2b13eoecncf2an6dd16mm Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240904@183858.4667 rdvsl2b13eoecncf2an6dd16mm Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66d894314466d89b3261','aut66d895189866d89b2fbb' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240904@183858.4711 rdvsl2b13eoecncf2an6dd16mm Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183858.4965 rdvsl2b13eoecncf2an6dd16mm Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240904@183858.6920 rdvsl2b13eoecncf2an6dd16mm Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66d894314466d89b3261',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',12.000 ,'aut66d895189866d89b2fbb' ,0,0 ,2,23.00,440000,?,?,?,?,?)
20240904@183858.7720 rdvsl2b13eoecncf2an6dd16mm Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183858.7740 rdvsl2b13eoecncf2an6dd16mm Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240904@183858.8009 rdvsl2b13eoecncf2an6dd16mm Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183858.8100 rdvsl2b13eoecncf2an6dd16mm Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240904@183858.8109 rdvsl2b13eoecncf2an6dd16mm Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240904@183858.8122 rdvsl2b13eoecncf2an6dd16mm Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183858.8139 rdvsl2b13eoecncf2an6dd16mm Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240904@183858.8152 rdvsl2b13eoecncf2an6dd16mm Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66d897599866d89b32c6','aut66d895189866d89b2fbb' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240904@183858.8156 rdvsl2b13eoecncf2an6dd16mm Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183858.8171 rdvsl2b13eoecncf2an6dd16mm Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240904@183858.8214 rdvsl2b13eoecncf2an6dd16mm Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66d897599866d89b32c6',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66d895189866d89b2fbb' ,0,0 ,2,23.00,450000,?,?,?)
20240904@183858.8808 rdvsl2b13eoecncf2an6dd16mm Query : use flama_phc
20240904@183858.8849 rdvsl2b13eoecncf2an6dd16mm Query : select st.usalote valor from st where st.ref = '325.1670.3015'
20240904@183858.9074 rdvsl2b13eoecncf2an6dd16mm Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '325.1670.3015'
20240904@183858.9528 rdvsl2b13eoecncf2an6dd16mm Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183858.9626 rdvsl2b13eoecncf2an6dd16mm Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240904@183858.9660 rdvsl2b13eoecncf2an6dd16mm Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183858.9677 rdvsl2b13eoecncf2an6dd16mm Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240904@183858.9708 rdvsl2b13eoecncf2an6dd16mm Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240904@183858.9721 rdvsl2b13eoecncf2an6dd16mm Query : select sestamp valor from se where ref ='325.1670.3015' and lote = 'r2301133100a'
20240904@183858.9740 rdvsl2b13eoecncf2an6dd16mm Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183858.9756 rdvsl2b13eoecncf2an6dd16mm Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240904@183858.9767 rdvsl2b13eoecncf2an6dd16mm Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66d899493866d89b32ed','aut66d895189866d89b2fbb' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240904@183858.9772 rdvsl2b13eoecncf2an6dd16mm Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183858.9808 rdvsl2b13eoecncf2an6dd16mm Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240904@183858.9839 rdvsl2b13eoecncf2an6dd16mm Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66d899493866d89b32ed',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',12.000 ,'aut66d895189866d89b2fbb' ,0,0 ,2,23.00,470000,?,?,?,?,?)
20240904@183859.1560 rdvsl2b13eoecncf2an6dd16mm Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut66d895189866d89b2fbb','2405748','wait',39,'adm09112754980.682000002')
20240904@183859.2520 rdvsl2b13eoecncf2an6dd16mm Query : use flama_phc
20240904@183859.2560 rdvsl2b13eoecncf2an6dd16mm Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240904@183859.2870 rdvsl2b13eoecncf2an6dd16mm Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1842';
20240904@183859.3170 rdvsl2b13eoecncf2an6dd16mm Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1842';
20240904@183859.3570 rdvsl2b13eoecncf2an6dd16mm Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1842';
20240904@183859.3820 rdvsl2b13eoecncf2an6dd16mm Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1842';
20240904@183859.1168 qpea96j6s3fibn6ekaohjfsj7c Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240904@183859.1180 qpea96j6s3fibn6ekaohjfsj7c Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240904@183859.1240 qpea96j6s3fibn6ekaohjfsj7c Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1843';
20240904@183859.1302 qpea96j6s3fibn6ekaohjfsj7c Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1843';
20240904@183859.1354 qpea96j6s3fibn6ekaohjfsj7c Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1843';
20240904@183859.1385 qpea96j6s3fibn6ekaohjfsj7c Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1843';
20240904@183859.1433 qpea96j6s3fibn6ekaohjfsj7c Query : use flama_phc
20240904@183859.1436 qpea96j6s3fibn6ekaohjfsj7c Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240904@183859.1683 qpea96j6s3fibn6ekaohjfsj7c Query : use flama_phc
20240904@183859.1704 qpea96j6s3fibn6ekaohjfsj7c Query : select no, estab,szadrsdesc from szadrs where u_coddest=4740
20240904@183859.1755 qpea96j6s3fibn6ekaohjfsj7c 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'
20240904@183859.1782 qpea96j6s3fibn6ekaohjfsj7c Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2057 and bo.obrano = 2405750 and bi.ref ='324.1667.00.1' and bi.lordem =1
20240904@183859.2197 qpea96j6s3fibn6ekaohjfsj7c Query : use flama_phc
20240904@183859.2202 qpea96j6s3fibn6ekaohjfsj7c Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20240904@183859.2257 qpea96j6s3fibn6ekaohjfsj7c Query : use flama_phc
20240904@183859.2260 qpea96j6s3fibn6ekaohjfsj7c Query : select top 1 1 valor from td where td.ndoc = 39
20240904@183859.2300 qpea96j6s3fibn6ekaohjfsj7c Query : use flama_phc
20240904@183859.2303 qpea96j6s3fibn6ekaohjfsj7c 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')
20240904@183859.2338 qpea96j6s3fibn6ekaohjfsj7c 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
20240904@183859.2380 qpea96j6s3fibn6ekaohjfsj7c Query : use flama_phc
20240904@183859.2384 qpea96j6s3fibn6ekaohjfsj7c Query : select top 1 ~inactivo valor from cl where no = '100810' and estab = 0 order by inactivo desc
20240904@183859.2420 qpea96j6s3fibn6ekaohjfsj7c Query : use flama_phc
20240904@183859.2422 qpea96j6s3fibn6ekaohjfsj7c Query : select top 1 tipodoc,regrd from td where ndoc = 39
20240904@183859.2462 qpea96j6s3fibn6ekaohjfsj7c Query : use flama_phc
20240904@183859.2465 qpea96j6s3fibn6ekaohjfsj7c Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20240904@183859.2507 qpea96j6s3fibn6ekaohjfsj7c Query : use flama_phc
20240904@183859.2510 qpea96j6s3fibn6ekaohjfsj7c Query : select szadrsstamp valor from szadrs where szadrsdesc='100810 - worten-equipamentos para o lar,sa.'
20240904@183859.2556 qpea96j6s3fibn6ekaohjfsj7c Query : use flama_phc
20240904@183859.2558 qpea96j6s3fibn6ekaohjfsj7c Query : select 1 valor from td where ndoc = 39
20240904@183859.2570 qpea96j6s3fibn6ekaohjfsj7c Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20240904@183859.2584 qpea96j6s3fibn6ekaohjfsj7c Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183859.2640 qpea96j6s3fibn6ekaohjfsj7c Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20240904@183859.2839 qpea96j6s3fibn6ekaohjfsj7c Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183859.2856 qpea96j6s3fibn6ekaohjfsj7c Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20240904@183859.2887 qpea96j6s3fibn6ekaohjfsj7c Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183859.2904 qpea96j6s3fibn6ekaohjfsj7c Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20240904@183859.2917 qpea96j6s3fibn6ekaohjfsj7c Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240904@183859.2994 qpea96j6s3fibn6ekaohjfsj7c Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240904@183859.3009 qpea96j6s3fibn6ekaohjfsj7c Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183859.3024 qpea96j6s3fibn6ekaohjfsj7c Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20240904@183859.3047 qpea96j6s3fibn6ekaohjfsj7c Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut66d891577766d89b3347' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20240904@183859.3254 qpea96j6s3fibn6ekaohjfsj7c Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183859.3277 qpea96j6s3fibn6ekaohjfsj7c Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20240904@183859.3312 qpea96j6s3fibn6ekaohjfsj7c Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20240904@183859.3324 qpea96j6s3fibn6ekaohjfsj7c Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20240904@183859.3337 qpea96j6s3fibn6ekaohjfsj7c Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20240904@183859.3350 qpea96j6s3fibn6ekaohjfsj7c Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20240904@183859.3362 qpea96j6s3fibn6ekaohjfsj7c Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20240904@183859.3376 qpea96j6s3fibn6ekaohjfsj7c Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20240904@183859.3387 qpea96j6s3fibn6ekaohjfsj7c Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut66d891577766d89b3347',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20240904@183859.3673 qpea96j6s3fibn6ekaohjfsj7c Query : select top 1 fno valor from wsftdata order by fno desc
20240904@183859.3699 qpea96j6s3fibn6ekaohjfsj7c Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183859.3716 qpea96j6s3fibn6ekaohjfsj7c Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20240904@183859.3739 qpea96j6s3fibn6ekaohjfsj7c Query : select 'normal' from dummy
20240904@183859.3766 qpea96j6s3fibn6ekaohjfsj7c Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut66d891577766d89b3347',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',618,100810,0,'2024-09-04',39,'euro',0,0,2024 ,?,?)
20240904@183859.4477 qpea96j6s3fibn6ekaohjfsj7c Query : use flama_phc
20240904@183859.4482 qpea96j6s3fibn6ekaohjfsj7c Query : select st.usalote valor from st where st.ref = '324.1667.00.1'
20240904@183859.4506 qpea96j6s3fibn6ekaohjfsj7c Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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'
20240904@183859.4521 qpea96j6s3fibn6ekaohjfsj7c Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183859.4540 qpea96j6s3fibn6ekaohjfsj7c Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240904@183859.4565 qpea96j6s3fibn6ekaohjfsj7c Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183859.4580 qpea96j6s3fibn6ekaohjfsj7c Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240904@183859.4589 qpea96j6s3fibn6ekaohjfsj7c Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240904@183859.4602 qpea96j6s3fibn6ekaohjfsj7c Query : select sestamp valor from se where ref ='324.1667.00.1' and lote = 'r2400065200a'
20240904@183859.4616 qpea96j6s3fibn6ekaohjfsj7c Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183859.4630 qpea96j6s3fibn6ekaohjfsj7c Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240904@183859.4647 qpea96j6s3fibn6ekaohjfsj7c Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66d896500466d89b3370','aut66d891577766d89b3347' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240904@183859.4651 qpea96j6s3fibn6ekaohjfsj7c Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183859.4666 qpea96j6s3fibn6ekaohjfsj7c Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240904@183859.4694 qpea96j6s3fibn6ekaohjfsj7c Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66d896500466d89b3370',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',1.000 ,'aut66d891577766d89b3347' ,0,0 ,2,23.00,10000,?,?,?,?,?)
20240904@183859.4999 qpea96j6s3fibn6ekaohjfsj7c Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183859.5018 qpea96j6s3fibn6ekaohjfsj7c Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240904@183859.5047 qpea96j6s3fibn6ekaohjfsj7c Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183859.5063 qpea96j6s3fibn6ekaohjfsj7c Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240904@183859.5071 qpea96j6s3fibn6ekaohjfsj7c Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240904@183859.5084 qpea96j6s3fibn6ekaohjfsj7c Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183859.5107 qpea96j6s3fibn6ekaohjfsj7c Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240904@183859.5120 qpea96j6s3fibn6ekaohjfsj7c Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66d891247866d89b337c','aut66d891577766d89b3347' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240904@183859.5124 qpea96j6s3fibn6ekaohjfsj7c Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183859.5149 qpea96j6s3fibn6ekaohjfsj7c Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240904@183859.5185 qpea96j6s3fibn6ekaohjfsj7c Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66d891247866d89b337c',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66d891577766d89b3347' ,0,0 ,2,23.00,20000,?,?,?)
20240904@183859.5476 qpea96j6s3fibn6ekaohjfsj7c Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut66d891577766d89b3347','2405750','wait',39,'adm09112754980.682000002')
20240904@183900.8834 qpea96j6s3fibn6ekaohjfsj7c Query : use flama_phc
20240904@183900.9047 qpea96j6s3fibn6ekaohjfsj7c Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240904@183901.1675 qpea96j6s3fibn6ekaohjfsj7c Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1843';
20240904@183901.1715 qpea96j6s3fibn6ekaohjfsj7c Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1843';
20240904@183901.2441 qpea96j6s3fibn6ekaohjfsj7c Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1843';
20240904@183901.6814 qpea96j6s3fibn6ekaohjfsj7c Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1843';
20240904@183902.1500 3745auudski255uva14ktkvm8c Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240904@183902.1517 3745auudski255uva14ktkvm8c Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240904@183902.1973 3745auudski255uva14ktkvm8c Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1844';
20240904@183902.2053 3745auudski255uva14ktkvm8c Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1844';
20240904@183902.2113 3745auudski255uva14ktkvm8c Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1844';
20240904@183902.2146 3745auudski255uva14ktkvm8c Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1844';
20240904@183902.2211 3745auudski255uva14ktkvm8c Query : use flama_phc
20240904@183902.2215 3745auudski255uva14ktkvm8c Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240904@183902.2298 3745auudski255uva14ktkvm8c Query : use flama_phc
20240904@183902.2303 3745auudski255uva14ktkvm8c Query : select no, estab,szadrsdesc from szadrs where u_coddest=170
20240904@183902.2428 3745auudski255uva14ktkvm8c Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1896.00.1'
20240904@183902.2453 3745auudski255uva14ktkvm8c Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2057 and bo.obrano = 2405754 and bi.ref ='324.1896.00.1' and bi.lordem =1
20240904@183902.3219 3745auudski255uva14ktkvm8c Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1896.00.1'
20240904@183902.3876 3745auudski255uva14ktkvm8c Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2057 and bo.obrano = 2405754 and bi.ref ='324.1896.00.1' and bi.lordem =1
20240904@183902.3914 3745auudski255uva14ktkvm8c Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1896.00.1'
20240904@183902.3950 3745auudski255uva14ktkvm8c Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2057 and bo.obrano = 2405754 and bi.ref ='324.1896.00.1' and bi.lordem =1
20240904@183902.3973 3745auudski255uva14ktkvm8c Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1803.00.1'
20240904@183902.4276 3745auudski255uva14ktkvm8c Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2057 and bo.obrano = 2405754 and bi.ref ='324.1803.00.1' and bi.lordem =2
20240904@183902.5514 3745auudski255uva14ktkvm8c Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1803.00.1'
20240904@183902.6189 3745auudski255uva14ktkvm8c Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2057 and bo.obrano = 2405754 and bi.ref ='324.1803.00.1' and bi.lordem =2
20240904@183902.6803 3745auudski255uva14ktkvm8c Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1803.00.1'
20240904@183902.7872 3745auudski255uva14ktkvm8c Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2057 and bo.obrano = 2405754 and bi.ref ='324.1803.00.1' and bi.lordem =2
20240904@183902.8452 3745auudski255uva14ktkvm8c Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1871.00.4'
20240904@183902.9326 3745auudski255uva14ktkvm8c Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2057 and bo.obrano = 2405754 and bi.ref ='324.1871.00.4' and bi.lordem =5
20240904@183903.6410 3745auudski255uva14ktkvm8c Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1871.00.4'
20240904@183903.4123 3745auudski255uva14ktkvm8c Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2057 and bo.obrano = 2405754 and bi.ref ='324.1871.00.4' and bi.lordem =5
20240904@183903.7253 3745auudski255uva14ktkvm8c Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1871.00.4'
20240904@183903.8787 3745auudski255uva14ktkvm8c Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2057 and bo.obrano = 2405754 and bi.ref ='324.1871.00.4' and bi.lordem =5
20240904@183904.1946 3745auudski255uva14ktkvm8c Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.2066.00.1'
20240904@183904.2475 3745auudski255uva14ktkvm8c Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2057 and bo.obrano = 2405754 and bi.ref ='324.2066.00.1' and bi.lordem =7
20240904@183904.3391 3745auudski255uva14ktkvm8c Query : use flama_phc
20240904@183904.3436 3745auudski255uva14ktkvm8c Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20240904@183904.3701 3745auudski255uva14ktkvm8c Query : use flama_phc
20240904@183904.3705 3745auudski255uva14ktkvm8c Query : select top 1 1 valor from td where td.ndoc = 39
20240904@183905.1864 3745auudski255uva14ktkvm8c Query : use flama_phc
20240904@183905.2238 3745auudski255uva14ktkvm8c 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')
20240904@183905.5276 3745auudski255uva14ktkvm8c 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
20240904@183905.8338 3745auudski255uva14ktkvm8c Query : use flama_phc
20240904@183905.8579 3745auudski255uva14ktkvm8c Query : select top 1 ~inactivo valor from cl where no = '102068' and estab = 0 order by inactivo desc
20240904@183906.8271 3745auudski255uva14ktkvm8c Query : use flama_phc
20240904@183906.8312 3745auudski255uva14ktkvm8c Query : select top 1 tipodoc,regrd from td where ndoc = 39
20240904@183907.7947 3745auudski255uva14ktkvm8c Query : use flama_phc
20240904@183907.7954 3745auudski255uva14ktkvm8c Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20240904@183907.8006 3745auudski255uva14ktkvm8c Query : use flama_phc
20240904@183907.8010 3745auudski255uva14ktkvm8c Query : select szadrsstamp valor from szadrs where szadrsdesc='magalhÃes & vinha, lda.'
20240904@183907.8062 3745auudski255uva14ktkvm8c Query : use flama_phc
20240904@183907.8065 3745auudski255uva14ktkvm8c Query : select 1 valor from td where ndoc = 39
20240904@183907.8079 3745auudski255uva14ktkvm8c Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20240904@183907.8096 3745auudski255uva14ktkvm8c Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183907.8113 3745auudski255uva14ktkvm8c Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20240904@183907.8133 3745auudski255uva14ktkvm8c Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183907.8150 3745auudski255uva14ktkvm8c Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20240904@183907.8179 3745auudski255uva14ktkvm8c Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183907.8194 3745auudski255uva14ktkvm8c Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20240904@183907.8208 3745auudski255uva14ktkvm8c Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240904@183907.8277 3745auudski255uva14ktkvm8c Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240904@183907.8291 3745auudski255uva14ktkvm8c Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183907.8308 3745auudski255uva14ktkvm8c Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20240904@183907.8324 3745auudski255uva14ktkvm8c Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut66d891258066d89b3bc8' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20240904@183907.8528 3745auudski255uva14ktkvm8c Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183907.8835 3745auudski255uva14ktkvm8c Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20240904@183907.8868 3745auudski255uva14ktkvm8c Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20240904@183907.8880 3745auudski255uva14ktkvm8c Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20240904@183907.8892 3745auudski255uva14ktkvm8c Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20240904@183907.8904 3745auudski255uva14ktkvm8c Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20240904@183907.8916 3745auudski255uva14ktkvm8c Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20240904@183907.8934 3745auudski255uva14ktkvm8c Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20240904@183907.8946 3745auudski255uva14ktkvm8c Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut66d891258066d89b3bc8',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20240904@183907.9248 3745auudski255uva14ktkvm8c Query : select top 1 fno valor from wsftdata order by fno desc
20240904@183907.9271 3745auudski255uva14ktkvm8c Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183907.9287 3745auudski255uva14ktkvm8c Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20240904@183907.9311 3745auudski255uva14ktkvm8c Query : select 'normal' from dummy
20240904@183907.9329 3745auudski255uva14ktkvm8c Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut66d891258066d89b3bc8',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',619,102068,0,'2024-09-04',39,'euro',0,0,2024 ,?,?)
20240904@183907.9662 3745auudski255uva14ktkvm8c Query : use flama_phc
20240904@183907.9666 3745auudski255uva14ktkvm8c Query : select st.usalote valor from st where st.ref = '324.1896.00.1'
20240904@183907.9688 3745auudski255uva14ktkvm8c Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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.1896.00.1'
20240904@183907.9704 3745auudski255uva14ktkvm8c Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183907.9721 3745auudski255uva14ktkvm8c Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240904@183907.9815 3745auudski255uva14ktkvm8c Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183907.9832 3745auudski255uva14ktkvm8c Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240904@183907.9842 3745auudski255uva14ktkvm8c Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240904@183907.9855 3745auudski255uva14ktkvm8c Query : select sestamp valor from se where ref ='324.1896.00.1' and lote = 'r2101190100a'
20240904@183908.1110 3745auudski255uva14ktkvm8c Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183908.1300 3745auudski255uva14ktkvm8c Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240904@183908.2300 3745auudski255uva14ktkvm8c Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66d894497166d89b3c02','aut66d891258066d89b3bc8' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240904@183908.2760 3745auudski255uva14ktkvm8c Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183908.6190 3745auudski255uva14ktkvm8c Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240904@183908.1445 3745auudski255uva14ktkvm8c Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66d894497166d89b3c02',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',5.000 ,'aut66d891258066d89b3bc8' ,0,0 ,2,23.00,10000,?,?,?,?,?)
20240904@183908.2051 3745auudski255uva14ktkvm8c Query : use flama_phc
20240904@183908.2097 3745auudski255uva14ktkvm8c Query : select st.usalote valor from st where st.ref = '324.1896.00.1'
20240904@183908.2590 3745auudski255uva14ktkvm8c Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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.1896.00.1'
20240904@183908.2838 3745auudski255uva14ktkvm8c Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183908.2909 3745auudski255uva14ktkvm8c Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240904@183908.3450 3745auudski255uva14ktkvm8c Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183908.3866 3745auudski255uva14ktkvm8c Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240904@183908.4042 3745auudski255uva14ktkvm8c Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240904@183908.4171 3745auudski255uva14ktkvm8c Query : select sestamp valor from se where ref ='324.1896.00.1' and lote = 'r2101190100a'
20240904@183908.4387 3745auudski255uva14ktkvm8c Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183908.4598 3745auudski255uva14ktkvm8c Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240904@183908.4805 3745auudski255uva14ktkvm8c Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66d891623666d89b3c6b','aut66d891258066d89b3bc8' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240904@183908.4975 3745auudski255uva14ktkvm8c Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183908.5228 3745auudski255uva14ktkvm8c Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240904@183908.5697 3745auudski255uva14ktkvm8c Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66d891623666d89b3c6b',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',5.000 ,'aut66d891258066d89b3bc8' ,0,0 ,2,23.00,20000,?,?,?,?,?)
20240904@183908.6420 3745auudski255uva14ktkvm8c Query : use flama_phc
20240904@183908.6486 3745auudski255uva14ktkvm8c Query : select st.usalote valor from st where st.ref = '324.1896.00.1'
20240904@183908.6900 3745auudski255uva14ktkvm8c Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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.1896.00.1'
20240904@183908.7191 3745auudski255uva14ktkvm8c Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183908.7389 3745auudski255uva14ktkvm8c Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240904@183908.7850 3745auudski255uva14ktkvm8c Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183908.8224 3745auudski255uva14ktkvm8c Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240904@183908.8431 3745auudski255uva14ktkvm8c Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240904@183908.8667 3745auudski255uva14ktkvm8c Query : select sestamp valor from se where ref ='324.1896.00.1' and lote = 'r2101190100a'
20240904@183908.8682 3745auudski255uva14ktkvm8c Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183908.8862 3745auudski255uva14ktkvm8c Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240904@183908.9102 3745auudski255uva14ktkvm8c Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66d895421366d89b3cd3','aut66d891258066d89b3bc8' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240904@183908.9186 3745auudski255uva14ktkvm8c Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183908.9487 3745auudski255uva14ktkvm8c Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240904@183909.3830 3745auudski255uva14ktkvm8c Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66d895421366d89b3cd3',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',14.000 ,'aut66d891258066d89b3bc8' ,0,0 ,2,23.00,30000,?,?,?,?,?)
20240904@183909.9350 3745auudski255uva14ktkvm8c Query : use flama_phc
20240904@183909.9790 3745auudski255uva14ktkvm8c Query : select st.usalote valor from st where st.ref = '324.1803.00.1'
20240904@183909.1116 3745auudski255uva14ktkvm8c Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.1803.00.1'
20240904@183909.1729 3745auudski255uva14ktkvm8c Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183909.2222 3745auudski255uva14ktkvm8c Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240904@183909.3105 3745auudski255uva14ktkvm8c Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183909.3442 3745auudski255uva14ktkvm8c Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240904@183909.3729 3745auudski255uva14ktkvm8c Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240904@183909.4019 3745auudski255uva14ktkvm8c Query : select sestamp valor from se where ref ='324.1803.00.1' and lote = 'r2301274200a'
20240904@183909.4428 3745auudski255uva14ktkvm8c Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183909.4681 3745auudski255uva14ktkvm8c Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240904@183909.4928 3745auudski255uva14ktkvm8c Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66d890518266d89b3d6c','aut66d891258066d89b3bc8' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240904@183909.4971 3745auudski255uva14ktkvm8c Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183909.5208 3745auudski255uva14ktkvm8c Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240904@183909.5913 3745auudski255uva14ktkvm8c Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66d890518266d89b3d6c',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',3.000 ,'aut66d891258066d89b3bc8' ,0,0 ,2,23.00,40000,?,?,?,?,?)
20240904@183909.6529 3745auudski255uva14ktkvm8c Query : use flama_phc
20240904@183909.6570 3745auudski255uva14ktkvm8c Query : select st.usalote valor from st where st.ref = '324.1803.00.1'
20240904@183909.6876 3745auudski255uva14ktkvm8c Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.1803.00.1'
20240904@183909.7356 3745auudski255uva14ktkvm8c Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183909.8202 3745auudski255uva14ktkvm8c Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240904@183909.9491 3745auudski255uva14ktkvm8c Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183910.1070 3745auudski255uva14ktkvm8c Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240904@183910.6260 3745auudski255uva14ktkvm8c Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240904@183910.1080 3745auudski255uva14ktkvm8c Query : select sestamp valor from se where ref ='324.1803.00.1' and lote = 'r2301274200a'
20240904@183910.1929 3745auudski255uva14ktkvm8c Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183910.2382 3745auudski255uva14ktkvm8c Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240904@183910.2509 3745auudski255uva14ktkvm8c Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66d890416766d89b3e2f','aut66d891258066d89b3bc8' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240904@183910.2553 3745auudski255uva14ktkvm8c Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183910.2856 3745auudski255uva14ktkvm8c Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240904@183910.3730 3745auudski255uva14ktkvm8c Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66d890416766d89b3e2f',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',1.000 ,'aut66d891258066d89b3bc8' ,0,0 ,2,23.00,50000,?,?,?,?,?)
20240904@183910.4346 3745auudski255uva14ktkvm8c Query : use flama_phc
20240904@183910.4469 3745auudski255uva14ktkvm8c Query : select st.usalote valor from st where st.ref = '324.1803.00.1'
20240904@183910.4750 3745auudski255uva14ktkvm8c Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.1803.00.1'
20240904@183910.4999 3745auudski255uva14ktkvm8c Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183910.5726 3745auudski255uva14ktkvm8c Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240904@183910.6421 3745auudski255uva14ktkvm8c Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183910.6917 3745auudski255uva14ktkvm8c Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240904@183910.7137 3745auudski255uva14ktkvm8c Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240904@183910.7467 3745auudski255uva14ktkvm8c Query : select sestamp valor from se where ref ='324.1803.00.1' and lote = 'r2301274200a'
20240904@183910.7796 3745auudski255uva14ktkvm8c Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183910.8088 3745auudski255uva14ktkvm8c Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240904@183910.8344 3745auudski255uva14ktkvm8c Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66d894631366d89b3ebe','aut66d891258066d89b3bc8' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240904@183910.8387 3745auudski255uva14ktkvm8c Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183910.8803 3745auudski255uva14ktkvm8c Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240904@183911.1039 3745auudski255uva14ktkvm8c Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66d894631366d89b3ebe',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',20.000 ,'aut66d891258066d89b3bc8' ,0,0 ,2,23.00,60000,?,?,?,?,?)
20240904@183911.3381 3745auudski255uva14ktkvm8c Query : use flama_phc
20240904@183911.3423 3745auudski255uva14ktkvm8c Query : select st.usalote valor from st where st.ref = '324.1871.00.4'
20240904@183911.3934 3745auudski255uva14ktkvm8c Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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.4'
20240904@183911.4214 3745auudski255uva14ktkvm8c Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183911.4535 3745auudski255uva14ktkvm8c Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240904@183911.5165 3745auudski255uva14ktkvm8c Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183911.5425 3745auudski255uva14ktkvm8c Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240904@183911.5658 3745auudski255uva14ktkvm8c Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240904@183911.6170 3745auudski255uva14ktkvm8c Query : select sestamp valor from se where ref ='324.1871.00.4' and lote = 'r2400125200a'
20240904@183911.6405 3745auudski255uva14ktkvm8c Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183911.6699 3745auudski255uva14ktkvm8c Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240904@183911.6812 3745auudski255uva14ktkvm8c Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66d895303866d89b3f9c','aut66d891258066d89b3bc8' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240904@183911.6854 3745auudski255uva14ktkvm8c Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183911.6968 3745auudski255uva14ktkvm8c Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240904@183911.7404 3745auudski255uva14ktkvm8c Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66d895303866d89b3f9c',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',4.000 ,'aut66d891258066d89b3bc8' ,0,0 ,2,23.00,70000,?,?,?,?,?)
20240904@183911.8043 3745auudski255uva14ktkvm8c Query : use flama_phc
20240904@183911.8084 3745auudski255uva14ktkvm8c Query : select st.usalote valor from st where st.ref = '324.1871.00.4'
20240904@183911.8462 3745auudski255uva14ktkvm8c Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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.4'
20240904@183911.8694 3745auudski255uva14ktkvm8c Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183911.9005 3745auudski255uva14ktkvm8c Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240904@183911.9999 3745auudski255uva14ktkvm8c Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183912.4390 3745auudski255uva14ktkvm8c Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240904@183912.6130 3745auudski255uva14ktkvm8c Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240904@183912.9510 3745auudski255uva14ktkvm8c Query : select sestamp valor from se where ref ='324.1871.00.4' and lote = 'r2400125200a'
20240904@183912.1180 3745auudski255uva14ktkvm8c Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183912.1373 3745auudski255uva14ktkvm8c Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240904@183912.1588 3745auudski255uva14ktkvm8c Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66d897060866d89b401c','aut66d891258066d89b3bc8' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240904@183912.1636 3745auudski255uva14ktkvm8c Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183912.2066 3745auudski255uva14ktkvm8c Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240904@183912.2759 3745auudski255uva14ktkvm8c Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66d897060866d89b401c',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',6.000 ,'aut66d891258066d89b3bc8' ,0,0 ,2,23.00,80000,?,?,?,?,?)
20240904@183912.3438 3745auudski255uva14ktkvm8c Query : use flama_phc
20240904@183912.3485 3745auudski255uva14ktkvm8c Query : select st.usalote valor from st where st.ref = '324.1871.00.4'
20240904@183912.3863 3745auudski255uva14ktkvm8c Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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.4'
20240904@183912.4120 3745auudski255uva14ktkvm8c Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183912.4408 3745auudski255uva14ktkvm8c Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240904@183912.5216 3745auudski255uva14ktkvm8c Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183912.5522 3745auudski255uva14ktkvm8c Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240904@183912.5733 3745auudski255uva14ktkvm8c Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240904@183912.6037 3745auudski255uva14ktkvm8c Query : select sestamp valor from se where ref ='324.1871.00.4' and lote = 'r2400125200a'
20240904@183912.6240 3745auudski255uva14ktkvm8c Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183912.6557 3745auudski255uva14ktkvm8c Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240904@183912.6726 3745auudski255uva14ktkvm8c Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66d890832466d89b4098','aut66d891258066d89b3bc8' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240904@183912.6769 3745auudski255uva14ktkvm8c Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183912.7102 3745auudski255uva14ktkvm8c Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240904@183912.8163 3745auudski255uva14ktkvm8c Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66d890832466d89b4098',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',14.000 ,'aut66d891258066d89b3bc8' ,0,0 ,2,23.00,90000,?,?,?,?,?)
20240904@183912.9098 3745auudski255uva14ktkvm8c Query : use flama_phc
20240904@183912.9143 3745auudski255uva14ktkvm8c Query : select st.usalote valor from st where st.ref = '324.2066.00.1'
20240904@183912.9554 3745auudski255uva14ktkvm8c Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.2066.00.1'
20240904@183912.9885 3745auudski255uva14ktkvm8c Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183913.9900 3745auudski255uva14ktkvm8c Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240904@183913.5030 3745auudski255uva14ktkvm8c Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183913.8840 3745auudski255uva14ktkvm8c Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240904@183913.1027 3745auudski255uva14ktkvm8c Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240904@183913.1351 3745auudski255uva14ktkvm8c Query : select sestamp valor from se where ref ='324.2066.00.1' and lote = 'r2400051100a'
20240904@183913.1649 3745auudski255uva14ktkvm8c Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183913.2169 3745auudski255uva14ktkvm8c Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240904@183913.2579 3745auudski255uva14ktkvm8c Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66d891700566d89b4128','aut66d891258066d89b3bc8' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240904@183913.2598 3745auudski255uva14ktkvm8c Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183913.3098 3745auudski255uva14ktkvm8c Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240904@183913.3909 3745auudski255uva14ktkvm8c Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66d891700566d89b4128',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',24.000 ,'aut66d891258066d89b3bc8' ,0,0 ,2,23.00,100000,?,?,?,?,?)
20240904@183913.4840 3745auudski255uva14ktkvm8c Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183913.5376 3745auudski255uva14ktkvm8c Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240904@183913.6577 3745auudski255uva14ktkvm8c Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183913.6999 3745auudski255uva14ktkvm8c Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240904@183913.8614 3745auudski255uva14ktkvm8c Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240904@183914.7670 3745auudski255uva14ktkvm8c Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183914.1874 3745auudski255uva14ktkvm8c Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240904@183914.2562 3745auudski255uva14ktkvm8c Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66d893336466d89b4212','aut66d891258066d89b3bc8' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240904@183914.2646 3745auudski255uva14ktkvm8c Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183914.3303 3745auudski255uva14ktkvm8c Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240904@183914.4445 3745auudski255uva14ktkvm8c Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66d893336466d89b4212',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66d891258066d89b3bc8' ,0,0 ,2,23.00,110000,?,?,?)
20240904@183914.5412 3745auudski255uva14ktkvm8c Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut66d891258066d89b3bc8','2405754','wait',39,'adm09112754980.682000002')
20240904@183914.7024 3745auudski255uva14ktkvm8c Query : use flama_phc
20240904@183914.7068 3745auudski255uva14ktkvm8c Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240904@183914.7396 3745auudski255uva14ktkvm8c Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1844';
20240904@183914.7942 3745auudski255uva14ktkvm8c Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1844';
20240904@183914.8386 3745auudski255uva14ktkvm8c Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1844';
20240904@183914.8757 3745auudski255uva14ktkvm8c Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1844';
20240904@183915.1482 ai5nb1ttkba7hvlav60jnv1juc Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240904@183915.1646 ai5nb1ttkba7hvlav60jnv1juc Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240904@183915.2122 ai5nb1ttkba7hvlav60jnv1juc Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1845';
20240904@183915.2462 ai5nb1ttkba7hvlav60jnv1juc Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1845';
20240904@183915.2805 ai5nb1ttkba7hvlav60jnv1juc Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1845';
20240904@183915.3158 ai5nb1ttkba7hvlav60jnv1juc Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1845';
20240904@183915.3498 ai5nb1ttkba7hvlav60jnv1juc Query : use flama_phc
20240904@183915.3540 ai5nb1ttkba7hvlav60jnv1juc Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240904@183915.4179 ai5nb1ttkba7hvlav60jnv1juc Query : use flama_phc
20240904@183915.4220 ai5nb1ttkba7hvlav60jnv1juc Query : select no, estab,szadrsdesc from szadrs where u_coddest=416
20240904@183915.4632 ai5nb1ttkba7hvlav60jnv1juc Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '304.4320.00.1'
20240904@183915.4827 ai5nb1ttkba7hvlav60jnv1juc Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2057 and bo.obrano = 2405755 and bi.ref ='304.4320.00.1' and bi.lordem =1
20240904@183915.5218 ai5nb1ttkba7hvlav60jnv1juc Query : use flama_phc
20240904@183915.5221 ai5nb1ttkba7hvlav60jnv1juc Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20240904@183915.5259 ai5nb1ttkba7hvlav60jnv1juc Query : use flama_phc
20240904@183915.5262 ai5nb1ttkba7hvlav60jnv1juc Query : select top 1 1 valor from td where td.ndoc = 39
20240904@183915.5294 ai5nb1ttkba7hvlav60jnv1juc Query : use flama_phc
20240904@183915.5297 ai5nb1ttkba7hvlav60jnv1juc 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')
20240904@183915.5328 ai5nb1ttkba7hvlav60jnv1juc 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
20240904@183915.5370 ai5nb1ttkba7hvlav60jnv1juc Query : use flama_phc
20240904@183915.5373 ai5nb1ttkba7hvlav60jnv1juc Query : select top 1 ~inactivo valor from cl where no = '102079' and estab = 0 order by inactivo desc
20240904@183915.5526 ai5nb1ttkba7hvlav60jnv1juc Query : use flama_phc
20240904@183915.5530 ai5nb1ttkba7hvlav60jnv1juc Query : select top 1 tipodoc,regrd from td where ndoc = 39
20240904@183915.5560 ai5nb1ttkba7hvlav60jnv1juc Query : use flama_phc
20240904@183915.5564 ai5nb1ttkba7hvlav60jnv1juc Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20240904@183915.5606 ai5nb1ttkba7hvlav60jnv1juc Query : use flama_phc
20240904@183915.5610 ai5nb1ttkba7hvlav60jnv1juc Query : select szadrsstamp valor from szadrs where szadrsdesc='bragajav, lda.'
20240904@183915.5660 ai5nb1ttkba7hvlav60jnv1juc Query : use flama_phc
20240904@183915.5663 ai5nb1ttkba7hvlav60jnv1juc Query : select 1 valor from td where ndoc = 39
20240904@183915.5677 ai5nb1ttkba7hvlav60jnv1juc Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20240904@183915.5693 ai5nb1ttkba7hvlav60jnv1juc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183915.5710 ai5nb1ttkba7hvlav60jnv1juc Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20240904@183915.5729 ai5nb1ttkba7hvlav60jnv1juc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183915.5745 ai5nb1ttkba7hvlav60jnv1juc Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20240904@183915.5778 ai5nb1ttkba7hvlav60jnv1juc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183915.5793 ai5nb1ttkba7hvlav60jnv1juc Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20240904@183915.5807 ai5nb1ttkba7hvlav60jnv1juc Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240904@183915.5880 ai5nb1ttkba7hvlav60jnv1juc Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240904@183915.5894 ai5nb1ttkba7hvlav60jnv1juc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183915.5914 ai5nb1ttkba7hvlav60jnv1juc Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20240904@183915.5929 ai5nb1ttkba7hvlav60jnv1juc Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut66d896736366d89b438d' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20240904@183915.6308 ai5nb1ttkba7hvlav60jnv1juc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183915.6333 ai5nb1ttkba7hvlav60jnv1juc Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20240904@183915.6373 ai5nb1ttkba7hvlav60jnv1juc Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20240904@183915.6387 ai5nb1ttkba7hvlav60jnv1juc Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20240904@183915.6401 ai5nb1ttkba7hvlav60jnv1juc Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20240904@183915.6415 ai5nb1ttkba7hvlav60jnv1juc Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20240904@183915.6430 ai5nb1ttkba7hvlav60jnv1juc Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20240904@183915.6444 ai5nb1ttkba7hvlav60jnv1juc Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20240904@183915.6458 ai5nb1ttkba7hvlav60jnv1juc Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut66d896736366d89b438d',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20240904@183915.6744 ai5nb1ttkba7hvlav60jnv1juc Query : select top 1 fno valor from wsftdata order by fno desc
20240904@183915.7033 ai5nb1ttkba7hvlav60jnv1juc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183915.7055 ai5nb1ttkba7hvlav60jnv1juc Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20240904@183915.7079 ai5nb1ttkba7hvlav60jnv1juc Query : select 'normal' from dummy
20240904@183915.7094 ai5nb1ttkba7hvlav60jnv1juc Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut66d896736366d89b438d',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',620,102079,0,'2024-09-04',39,'euro',0,0,2024 ,?,?)
20240904@183915.7475 ai5nb1ttkba7hvlav60jnv1juc Query : use flama_phc
20240904@183915.7479 ai5nb1ttkba7hvlav60jnv1juc Query : select st.usalote valor from st where st.ref = '304.4320.00.1'
20240904@183915.7517 ai5nb1ttkba7hvlav60jnv1juc Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '304.4320.00.1'
20240904@183915.7693 ai5nb1ttkba7hvlav60jnv1juc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183915.7712 ai5nb1ttkba7hvlav60jnv1juc Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240904@183915.7749 ai5nb1ttkba7hvlav60jnv1juc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183915.7766 ai5nb1ttkba7hvlav60jnv1juc Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240904@183915.7776 ai5nb1ttkba7hvlav60jnv1juc Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240904@183915.7790 ai5nb1ttkba7hvlav60jnv1juc Query : select sestamp valor from se where ref ='304.4320.00.1' and lote = '241005'
20240904@183915.7810 ai5nb1ttkba7hvlav60jnv1juc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183915.7827 ai5nb1ttkba7hvlav60jnv1juc Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240904@183915.7841 ai5nb1ttkba7hvlav60jnv1juc Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66d890309966d89b43be','aut66d896736366d89b438d' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240904@183915.7846 ai5nb1ttkba7hvlav60jnv1juc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183915.7863 ai5nb1ttkba7hvlav60jnv1juc Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240904@183915.7896 ai5nb1ttkba7hvlav60jnv1juc Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66d890309966d89b43be',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',12.000 ,'aut66d896736366d89b438d' ,0,0 ,2,23.00,10000,?,?,?,?,?)
20240904@183915.8246 ai5nb1ttkba7hvlav60jnv1juc Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut66d896736366d89b438d','2405755','wait',39,'adm09112754980.682000002')
20240904@183915.8320 ai5nb1ttkba7hvlav60jnv1juc Query : use flama_phc
20240904@183915.8324 ai5nb1ttkba7hvlav60jnv1juc Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240904@183915.8355 ai5nb1ttkba7hvlav60jnv1juc Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1845';
20240904@183915.8385 ai5nb1ttkba7hvlav60jnv1juc Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1845';
20240904@183915.8426 ai5nb1ttkba7hvlav60jnv1juc Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1845';
20240904@183915.8456 ai5nb1ttkba7hvlav60jnv1juc Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1845';
20240904@183915.9021 osfm7h6a9d86c9r67qu2b3gnk9 Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240904@183915.9033 osfm7h6a9d86c9r67qu2b3gnk9 Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240904@183915.9090 osfm7h6a9d86c9r67qu2b3gnk9 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1846';
20240904@183915.9157 osfm7h6a9d86c9r67qu2b3gnk9 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1846';
20240904@183915.9209 osfm7h6a9d86c9r67qu2b3gnk9 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1846';
20240904@183915.9239 osfm7h6a9d86c9r67qu2b3gnk9 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1846';
20240904@183915.9305 osfm7h6a9d86c9r67qu2b3gnk9 Query : use flama_phc
20240904@183915.9309 osfm7h6a9d86c9r67qu2b3gnk9 Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240904@183915.9375 osfm7h6a9d86c9r67qu2b3gnk9 Query : use flama_phc
20240904@183915.9379 osfm7h6a9d86c9r67qu2b3gnk9 Query : select no, estab,szadrsdesc from szadrs where u_coddest=2270
20240904@183915.9493 osfm7h6a9d86c9r67qu2b3gnk9 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.2232.00.1'
20240904@183915.9518 osfm7h6a9d86c9r67qu2b3gnk9 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2057 and bo.obrano = 2405757 and bi.ref ='324.2232.00.1' and bi.lordem =1
20240904@183915.9902 osfm7h6a9d86c9r67qu2b3gnk9 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1643.00.1'
20240904@183916.8900 osfm7h6a9d86c9r67qu2b3gnk9 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2057 and bo.obrano = 2405757 and bi.ref ='324.1643.00.1' and bi.lordem =2
20240904@183916.4390 osfm7h6a9d86c9r67qu2b3gnk9 Query : use flama_phc
20240904@183916.4430 osfm7h6a9d86c9r67qu2b3gnk9 Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20240904@183916.4830 osfm7h6a9d86c9r67qu2b3gnk9 Query : use flama_phc
20240904@183916.4860 osfm7h6a9d86c9r67qu2b3gnk9 Query : select top 1 1 valor from td where td.ndoc = 39
20240904@183916.5160 osfm7h6a9d86c9r67qu2b3gnk9 Query : use flama_phc
20240904@183916.5190 osfm7h6a9d86c9r67qu2b3gnk9 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')
20240904@183916.5480 osfm7h6a9d86c9r67qu2b3gnk9 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
20240904@183916.5830 osfm7h6a9d86c9r67qu2b3gnk9 Query : use flama_phc
20240904@183916.5860 osfm7h6a9d86c9r67qu2b3gnk9 Query : select top 1 ~inactivo valor from cl where no = '102439' and estab = 0 order by inactivo desc
20240904@183916.7440 osfm7h6a9d86c9r67qu2b3gnk9 Query : use flama_phc
20240904@183916.7510 osfm7h6a9d86c9r67qu2b3gnk9 Query : select top 1 tipodoc,regrd from td where ndoc = 39
20240904@183916.7870 osfm7h6a9d86c9r67qu2b3gnk9 Query : use flama_phc
20240904@183916.7900 osfm7h6a9d86c9r67qu2b3gnk9 Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20240904@183916.8300 osfm7h6a9d86c9r67qu2b3gnk9 Query : use flama_phc
20240904@183916.8330 osfm7h6a9d86c9r67qu2b3gnk9 Query : select szadrsstamp valor from szadrs where szadrsdesc='carlos luis unipessoal lda'
20240904@183916.8820 osfm7h6a9d86c9r67qu2b3gnk9 Query : use flama_phc
20240904@183916.8860 osfm7h6a9d86c9r67qu2b3gnk9 Query : select 1 valor from td where ndoc = 39
20240904@183916.9000 osfm7h6a9d86c9r67qu2b3gnk9 Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20240904@183916.9150 osfm7h6a9d86c9r67qu2b3gnk9 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183916.9330 osfm7h6a9d86c9r67qu2b3gnk9 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20240904@183916.9540 osfm7h6a9d86c9r67qu2b3gnk9 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183916.9690 osfm7h6a9d86c9r67qu2b3gnk9 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20240904@183916.9980 osfm7h6a9d86c9r67qu2b3gnk9 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183916.1013 osfm7h6a9d86c9r67qu2b3gnk9 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20240904@183916.1026 osfm7h6a9d86c9r67qu2b3gnk9 Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240904@183916.1101 osfm7h6a9d86c9r67qu2b3gnk9 Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240904@183916.1114 osfm7h6a9d86c9r67qu2b3gnk9 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183916.1130 osfm7h6a9d86c9r67qu2b3gnk9 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20240904@183916.1149 osfm7h6a9d86c9r67qu2b3gnk9 Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut66d894754266d89b4419' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20240904@183916.1620 osfm7h6a9d86c9r67qu2b3gnk9 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183916.1799 osfm7h6a9d86c9r67qu2b3gnk9 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20240904@183916.1835 osfm7h6a9d86c9r67qu2b3gnk9 Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20240904@183916.1848 osfm7h6a9d86c9r67qu2b3gnk9 Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20240904@183916.1861 osfm7h6a9d86c9r67qu2b3gnk9 Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20240904@183916.1875 osfm7h6a9d86c9r67qu2b3gnk9 Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20240904@183916.1887 osfm7h6a9d86c9r67qu2b3gnk9 Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20240904@183916.1901 osfm7h6a9d86c9r67qu2b3gnk9 Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20240904@183916.1914 osfm7h6a9d86c9r67qu2b3gnk9 Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut66d894754266d89b4419',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20240904@183916.2225 osfm7h6a9d86c9r67qu2b3gnk9 Query : select top 1 fno valor from wsftdata order by fno desc
20240904@183916.2250 osfm7h6a9d86c9r67qu2b3gnk9 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183916.2269 osfm7h6a9d86c9r67qu2b3gnk9 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20240904@183916.2295 osfm7h6a9d86c9r67qu2b3gnk9 Query : select 'normal' from dummy
20240904@183916.2312 osfm7h6a9d86c9r67qu2b3gnk9 Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut66d894754266d89b4419',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',621,102439,0,'2024-09-04',39,'euro',0,0,2024 ,?,?)
20240904@183916.2654 osfm7h6a9d86c9r67qu2b3gnk9 Query : use flama_phc
20240904@183916.2658 osfm7h6a9d86c9r67qu2b3gnk9 Query : select st.usalote valor from st where st.ref = '324.2232.00.1'
20240904@183916.2684 osfm7h6a9d86c9r67qu2b3gnk9 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.2232.00.1'
20240904@183916.2707 osfm7h6a9d86c9r67qu2b3gnk9 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183916.2723 osfm7h6a9d86c9r67qu2b3gnk9 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240904@183916.2759 osfm7h6a9d86c9r67qu2b3gnk9 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183916.2778 osfm7h6a9d86c9r67qu2b3gnk9 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240904@183916.2790 osfm7h6a9d86c9r67qu2b3gnk9 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240904@183916.2810 osfm7h6a9d86c9r67qu2b3gnk9 Query : select sestamp valor from se where ref ='324.2232.00.1' and lote = 'r2400241100a'
20240904@183916.2823 osfm7h6a9d86c9r67qu2b3gnk9 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183916.2837 osfm7h6a9d86c9r67qu2b3gnk9 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240904@183916.2868 osfm7h6a9d86c9r67qu2b3gnk9 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66d891528766d89b4444','aut66d894754266d89b4419' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240904@183916.2872 osfm7h6a9d86c9r67qu2b3gnk9 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183916.2887 osfm7h6a9d86c9r67qu2b3gnk9 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240904@183916.2916 osfm7h6a9d86c9r67qu2b3gnk9 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66d891528766d89b4444',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',2.000 ,'aut66d894754266d89b4419' ,0,0 ,2,23.00,10000,?,?,?,?,?)
20240904@183916.3201 osfm7h6a9d86c9r67qu2b3gnk9 Query : use flama_phc
20240904@183916.3205 osfm7h6a9d86c9r67qu2b3gnk9 Query : select st.usalote valor from st where st.ref = '324.1643.00.1'
20240904@183916.3232 osfm7h6a9d86c9r67qu2b3gnk9 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.1643.00.1'
20240904@183916.3446 osfm7h6a9d86c9r67qu2b3gnk9 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183916.3466 osfm7h6a9d86c9r67qu2b3gnk9 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240904@183916.3497 osfm7h6a9d86c9r67qu2b3gnk9 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183916.3513 osfm7h6a9d86c9r67qu2b3gnk9 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240904@183916.3522 osfm7h6a9d86c9r67qu2b3gnk9 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240904@183916.3538 osfm7h6a9d86c9r67qu2b3gnk9 Query : select sestamp valor from se where ref ='324.1643.00.1' and lote = 'r2101218200a'
20240904@183916.3553 osfm7h6a9d86c9r67qu2b3gnk9 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183916.3570 osfm7h6a9d86c9r67qu2b3gnk9 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240904@183916.3583 osfm7h6a9d86c9r67qu2b3gnk9 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66d890660466d89b4456','aut66d894754266d89b4419' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240904@183916.3588 osfm7h6a9d86c9r67qu2b3gnk9 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183916.3603 osfm7h6a9d86c9r67qu2b3gnk9 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240904@183916.4823 osfm7h6a9d86c9r67qu2b3gnk9 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66d890660466d89b4456',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',2.000 ,'aut66d894754266d89b4419' ,0,0 ,2,23.00,20000,?,?,?,?,?)
20240904@183916.5139 osfm7h6a9d86c9r67qu2b3gnk9 Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut66d894754266d89b4419','2405757','wait',39,'adm09112754980.682000002')
20240904@183916.5212 osfm7h6a9d86c9r67qu2b3gnk9 Query : use flama_phc
20240904@183916.5216 osfm7h6a9d86c9r67qu2b3gnk9 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240904@183916.5245 osfm7h6a9d86c9r67qu2b3gnk9 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1846';
20240904@183916.5275 osfm7h6a9d86c9r67qu2b3gnk9 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1846';
20240904@183916.5312 osfm7h6a9d86c9r67qu2b3gnk9 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1846';
20240904@183916.5336 osfm7h6a9d86c9r67qu2b3gnk9 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1846';
20240904@183916.5879 0hdutrtailcu54ihjkead6het6 Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240904@183916.5890 0hdutrtailcu54ihjkead6het6 Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240904@183916.5950 0hdutrtailcu54ihjkead6het6 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1847';
20240904@183916.6008 0hdutrtailcu54ihjkead6het6 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1847';
20240904@183916.6064 0hdutrtailcu54ihjkead6het6 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1847';
20240904@183916.6088 0hdutrtailcu54ihjkead6het6 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1847';
20240904@183916.6155 0hdutrtailcu54ihjkead6het6 Query : use flama_phc
20240904@183916.6159 0hdutrtailcu54ihjkead6het6 Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240904@183916.6297 0hdutrtailcu54ihjkead6het6 Query : use flama_phc
20240904@183916.6338 0hdutrtailcu54ihjkead6het6 Query : select no, estab,szadrsdesc from szadrs where u_coddest=4537
20240904@183916.6463 0hdutrtailcu54ihjkead6het6 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1646.00.1'
20240904@183916.6654 0hdutrtailcu54ihjkead6het6 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2057 and bo.obrano = 2405758 and bi.ref ='324.1646.00.1' and bi.lordem =1
20240904@183916.7006 0hdutrtailcu54ihjkead6het6 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.2907.00.1'
20240904@183916.7203 0hdutrtailcu54ihjkead6het6 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2057 and bo.obrano = 2405758 and bi.ref ='324.2907.00.1' and bi.lordem =2
20240904@183916.7582 0hdutrtailcu54ihjkead6het6 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '304.4320.00.1'
20240904@183916.7604 0hdutrtailcu54ihjkead6het6 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2057 and bo.obrano = 2405758 and bi.ref ='304.4320.00.1' and bi.lordem =3
20240904@183916.7976 0hdutrtailcu54ihjkead6het6 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.4961.00.1'
20240904@183916.8161 0hdutrtailcu54ihjkead6het6 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2057 and bo.obrano = 2405758 and bi.ref ='324.4961.00.1' and bi.lordem =4
20240904@183916.8531 0hdutrtailcu54ihjkead6het6 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.4962.00.1'
20240904@183916.8896 0hdutrtailcu54ihjkead6het6 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2057 and bo.obrano = 2405758 and bi.ref ='324.4962.00.1' and bi.lordem =5
20240904@183916.9301 0hdutrtailcu54ihjkead6het6 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'
20240904@183916.9321 0hdutrtailcu54ihjkead6het6 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2057 and bo.obrano = 2405758 and bi.ref ='324.4970.00.1' and bi.lordem =6
20240904@183916.9684 0hdutrtailcu54ihjkead6het6 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.5342.00.1'
20240904@183916.9890 0hdutrtailcu54ihjkead6het6 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2057 and bo.obrano = 2405758 and bi.ref ='324.5342.00.1' and bi.lordem =7
20240904@183917.2760 0hdutrtailcu54ihjkead6het6 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.5343.00.1'
20240904@183917.4910 0hdutrtailcu54ihjkead6het6 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2057 and bo.obrano = 2405758 and bi.ref ='324.5343.00.1' and bi.lordem =8
20240904@183917.9300 0hdutrtailcu54ihjkead6het6 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.5396.00.1'
20240904@183917.9540 0hdutrtailcu54ihjkead6het6 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2057 and bo.obrano = 2405758 and bi.ref ='324.5396.00.1' and bi.lordem =9
20240904@183917.1407 0hdutrtailcu54ihjkead6het6 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.658.00.01'
20240904@183917.1632 0hdutrtailcu54ihjkead6het6 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2057 and bo.obrano = 2405758 and bi.ref ='324.658.00.01' and bi.lordem =10
20240904@183917.2163 0hdutrtailcu54ihjkead6het6 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'
20240904@183917.2219 0hdutrtailcu54ihjkead6het6 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2057 and bo.obrano = 2405758 and bi.ref ='324.727.00.01' and bi.lordem =11
20240904@183917.2641 0hdutrtailcu54ihjkead6het6 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.946.00.01'
20240904@183917.2886 0hdutrtailcu54ihjkead6het6 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2057 and bo.obrano = 2405758 and bi.ref ='324.946.00.01' and bi.lordem =12
20240904@183917.3280 0hdutrtailcu54ihjkead6het6 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.969.00.01'
20240904@183917.3479 0hdutrtailcu54ihjkead6het6 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2057 and bo.obrano = 2405758 and bi.ref ='324.969.00.01' and bi.lordem =13
20240904@183917.3846 0hdutrtailcu54ihjkead6het6 Query : use flama_phc
20240904@183917.3850 0hdutrtailcu54ihjkead6het6 Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20240904@183917.3883 0hdutrtailcu54ihjkead6het6 Query : use flama_phc
20240904@183917.3901 0hdutrtailcu54ihjkead6het6 Query : select top 1 1 valor from td where td.ndoc = 39
20240904@183917.3935 0hdutrtailcu54ihjkead6het6 Query : use flama_phc
20240904@183917.3938 0hdutrtailcu54ihjkead6het6 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')
20240904@183917.3968 0hdutrtailcu54ihjkead6het6 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
20240904@183917.4008 0hdutrtailcu54ihjkead6het6 Query : use flama_phc
20240904@183917.4011 0hdutrtailcu54ihjkead6het6 Query : select top 1 ~inactivo valor from cl where no = '200500' and estab = 0 order by inactivo desc
20240904@183917.4046 0hdutrtailcu54ihjkead6het6 Query : use flama_phc
20240904@183917.4049 0hdutrtailcu54ihjkead6het6 Query : select top 1 tipodoc,regrd from td where ndoc = 39
20240904@183917.4084 0hdutrtailcu54ihjkead6het6 Query : use flama_phc
20240904@183917.4089 0hdutrtailcu54ihjkead6het6 Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20240904@183917.4138 0hdutrtailcu54ihjkead6het6 Query : use flama_phc
20240904@183917.4141 0hdutrtailcu54ihjkead6het6 Query : select szadrsstamp valor from szadrs where szadrsdesc='novaem distec, s.l.u-entrega'
20240904@183917.4187 0hdutrtailcu54ihjkead6het6 Query : use flama_phc
20240904@183917.4190 0hdutrtailcu54ihjkead6het6 Query : select 1 valor from td where ndoc = 39
20240904@183917.4203 0hdutrtailcu54ihjkead6het6 Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20240904@183917.4222 0hdutrtailcu54ihjkead6het6 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183917.4245 0hdutrtailcu54ihjkead6het6 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20240904@183917.4266 0hdutrtailcu54ihjkead6het6 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183917.4281 0hdutrtailcu54ihjkead6het6 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20240904@183917.4315 0hdutrtailcu54ihjkead6het6 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183917.4329 0hdutrtailcu54ihjkead6het6 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20240904@183917.4341 0hdutrtailcu54ihjkead6het6 Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240904@183917.4412 0hdutrtailcu54ihjkead6het6 Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240904@183917.4425 0hdutrtailcu54ihjkead6het6 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183917.4441 0hdutrtailcu54ihjkead6het6 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20240904@183917.4457 0hdutrtailcu54ihjkead6het6 Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut66d896264566d89b4569' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20240904@183917.4647 0hdutrtailcu54ihjkead6het6 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183917.4665 0hdutrtailcu54ihjkead6het6 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20240904@183917.4701 0hdutrtailcu54ihjkead6het6 Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20240904@183917.4714 0hdutrtailcu54ihjkead6het6 Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20240904@183917.4725 0hdutrtailcu54ihjkead6het6 Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20240904@183917.4737 0hdutrtailcu54ihjkead6het6 Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20240904@183917.4758 0hdutrtailcu54ihjkead6het6 Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20240904@183917.4769 0hdutrtailcu54ihjkead6het6 Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20240904@183917.4785 0hdutrtailcu54ihjkead6het6 Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut66d896264566d89b4569',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20240904@183917.5362 0hdutrtailcu54ihjkead6het6 Query : select top 1 fno valor from wsftdata order by fno desc
20240904@183917.5520 0hdutrtailcu54ihjkead6het6 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183917.5538 0hdutrtailcu54ihjkead6het6 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20240904@183917.5560 0hdutrtailcu54ihjkead6het6 Query : select 'normal' from dummy
20240904@183917.5575 0hdutrtailcu54ihjkead6het6 Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut66d896264566d89b4569',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',622,200500,0,'2024-09-04',39,'euro',0,0,2024 ,?,?)
20240904@183917.5916 0hdutrtailcu54ihjkead6het6 Query : use flama_phc
20240904@183917.5920 0hdutrtailcu54ihjkead6het6 Query : select st.usalote valor from st where st.ref = '324.1646.00.1'
20240904@183917.5947 0hdutrtailcu54ihjkead6het6 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.1646.00.1'
20240904@183917.6151 0hdutrtailcu54ihjkead6het6 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183917.6186 0hdutrtailcu54ihjkead6het6 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240904@183917.6215 0hdutrtailcu54ihjkead6het6 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183917.6231 0hdutrtailcu54ihjkead6het6 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240904@183917.6241 0hdutrtailcu54ihjkead6het6 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240904@183917.6254 0hdutrtailcu54ihjkead6het6 Query : select sestamp valor from se where ref ='324.1646.00.1' and lote = 'r2100904100a'
20240904@183917.6281 0hdutrtailcu54ihjkead6het6 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183917.6296 0hdutrtailcu54ihjkead6het6 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240904@183917.6310 0hdutrtailcu54ihjkead6het6 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66d895672366d89b4599','aut66d896264566d89b4569' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240904@183917.6315 0hdutrtailcu54ihjkead6het6 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183917.6332 0hdutrtailcu54ihjkead6het6 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240904@183917.6366 0hdutrtailcu54ihjkead6het6 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66d895672366d89b4599',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',8.000 ,'aut66d896264566d89b4569' ,0,0 ,2,23.00,10000,?,?,?,?,?)
20240904@183917.6814 0hdutrtailcu54ihjkead6het6 Query : use flama_phc
20240904@183917.6820 0hdutrtailcu54ihjkead6het6 Query : select st.usalote valor from st where st.ref = '324.2907.00.1'
20240904@183917.6857 0hdutrtailcu54ihjkead6het6 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.2907.00.1'
20240904@183917.7035 0hdutrtailcu54ihjkead6het6 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183917.7053 0hdutrtailcu54ihjkead6het6 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240904@183917.7081 0hdutrtailcu54ihjkead6het6 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183917.7103 0hdutrtailcu54ihjkead6het6 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240904@183917.7112 0hdutrtailcu54ihjkead6het6 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240904@183917.7130 0hdutrtailcu54ihjkead6het6 Query : select sestamp valor from se where ref ='324.2907.00.1' and lote = 'r2400091200a'
20240904@183917.7144 0hdutrtailcu54ihjkead6het6 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183917.7161 0hdutrtailcu54ihjkead6het6 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240904@183917.7172 0hdutrtailcu54ihjkead6het6 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66d898789166d89b45ae','aut66d896264566d89b4569' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240904@183917.7176 0hdutrtailcu54ihjkead6het6 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183917.7191 0hdutrtailcu54ihjkead6het6 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240904@183917.7221 0hdutrtailcu54ihjkead6het6 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66d898789166d89b45ae',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',4.000 ,'aut66d896264566d89b4569' ,0,0 ,2,23.00,20000,?,?,?,?,?)
20240904@183917.7542 0hdutrtailcu54ihjkead6het6 Query : use flama_phc
20240904@183917.7545 0hdutrtailcu54ihjkead6het6 Query : select st.usalote valor from st where st.ref = '304.4320.00.1'
20240904@183917.7565 0hdutrtailcu54ihjkead6het6 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '304.4320.00.1'
20240904@183917.7582 0hdutrtailcu54ihjkead6het6 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183917.7600 0hdutrtailcu54ihjkead6het6 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240904@183917.7638 0hdutrtailcu54ihjkead6het6 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183917.7653 0hdutrtailcu54ihjkead6het6 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240904@183917.7661 0hdutrtailcu54ihjkead6het6 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240904@183917.7672 0hdutrtailcu54ihjkead6het6 Query : select sestamp valor from se where ref ='304.4320.00.1' and lote = '241005'
20240904@183917.7685 0hdutrtailcu54ihjkead6het6 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183917.7700 0hdutrtailcu54ihjkead6het6 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240904@183917.7720 0hdutrtailcu54ihjkead6het6 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66d894299266d89b45bb','aut66d896264566d89b4569' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240904@183917.7724 0hdutrtailcu54ihjkead6het6 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183917.7739 0hdutrtailcu54ihjkead6het6 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240904@183917.7766 0hdutrtailcu54ihjkead6het6 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66d894299266d89b45bb',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',12.000 ,'aut66d896264566d89b4569' ,0,0 ,2,23.00,30000,?,?,?,?,?)
20240904@183917.8063 0hdutrtailcu54ihjkead6het6 Query : use flama_phc
20240904@183917.8077 0hdutrtailcu54ihjkead6het6 Query : select st.usalote valor from st where st.ref = '324.4961.00.1'
20240904@183917.8099 0hdutrtailcu54ihjkead6het6 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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.4961.00.1'
20240904@183917.8268 0hdutrtailcu54ihjkead6het6 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183917.8289 0hdutrtailcu54ihjkead6het6 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240904@183917.8317 0hdutrtailcu54ihjkead6het6 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183917.8335 0hdutrtailcu54ihjkead6het6 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240904@183917.8345 0hdutrtailcu54ihjkead6het6 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240904@183917.8356 0hdutrtailcu54ihjkead6het6 Query : select sestamp valor from se where ref ='324.4961.00.1' and lote = 'r2101092200a'
20240904@183917.8370 0hdutrtailcu54ihjkead6het6 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183917.8391 0hdutrtailcu54ihjkead6het6 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240904@183917.8402 0hdutrtailcu54ihjkead6het6 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66d898522066d89b45cc','aut66d896264566d89b4569' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240904@183917.8406 0hdutrtailcu54ihjkead6het6 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183917.8422 0hdutrtailcu54ihjkead6het6 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240904@183917.8461 0hdutrtailcu54ihjkead6het6 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66d898522066d89b45cc',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',4.000 ,'aut66d896264566d89b4569' ,0,0 ,2,23.00,40000,?,?,?,?,?)
20240904@183917.8743 0hdutrtailcu54ihjkead6het6 Query : use flama_phc
20240904@183917.8746 0hdutrtailcu54ihjkead6het6 Query : select st.usalote valor from st where st.ref = '324.4962.00.1'
20240904@183917.8769 0hdutrtailcu54ihjkead6het6 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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.4962.00.1'
20240904@183917.8947 0hdutrtailcu54ihjkead6het6 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183917.9008 0hdutrtailcu54ihjkead6het6 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240904@183917.9037 0hdutrtailcu54ihjkead6het6 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183917.9053 0hdutrtailcu54ihjkead6het6 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240904@183917.9061 0hdutrtailcu54ihjkead6het6 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240904@183917.9074 0hdutrtailcu54ihjkead6het6 Query : select sestamp valor from se where ref ='324.4962.00.1' and lote = 'r2101092100a'
20240904@183917.9088 0hdutrtailcu54ihjkead6het6 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183917.9104 0hdutrtailcu54ihjkead6het6 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240904@183917.9115 0hdutrtailcu54ihjkead6het6 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66d898151966d89b45dd','aut66d896264566d89b4569' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240904@183917.9120 0hdutrtailcu54ihjkead6het6 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183917.9141 0hdutrtailcu54ihjkead6het6 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240904@183917.9170 0hdutrtailcu54ihjkead6het6 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66d898151966d89b45dd',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',4.000 ,'aut66d896264566d89b4569' ,0,0 ,2,23.00,50000,?,?,?,?,?)
20240904@183917.9450 0hdutrtailcu54ihjkead6het6 Query : use flama_phc
20240904@183917.9454 0hdutrtailcu54ihjkead6het6 Query : select st.usalote valor from st where st.ref = '324.4970.00.1'
20240904@183917.9474 0hdutrtailcu54ihjkead6het6 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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'
20240904@183917.9498 0hdutrtailcu54ihjkead6het6 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183917.9515 0hdutrtailcu54ihjkead6het6 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240904@183917.9551 0hdutrtailcu54ihjkead6het6 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183917.9566 0hdutrtailcu54ihjkead6het6 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240904@183917.9577 0hdutrtailcu54ihjkead6het6 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240904@183917.9591 0hdutrtailcu54ihjkead6het6 Query : select sestamp valor from se where ref ='324.4970.00.1' and lote = 'r2400205200a'
20240904@183917.9604 0hdutrtailcu54ihjkead6het6 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183917.9619 0hdutrtailcu54ihjkead6het6 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240904@183917.9635 0hdutrtailcu54ihjkead6het6 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66d897075066d89b45ea','aut66d896264566d89b4569' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240904@183917.9639 0hdutrtailcu54ihjkead6het6 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183917.9654 0hdutrtailcu54ihjkead6het6 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240904@183917.9693 0hdutrtailcu54ihjkead6het6 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66d897075066d89b45ea',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',4.000 ,'aut66d896264566d89b4569' ,0,0 ,2,23.00,60000,?,?,?,?,?)
20240904@183917.9994 0hdutrtailcu54ihjkead6het6 Query : use flama_phc
20240904@183917.9998 0hdutrtailcu54ihjkead6het6 Query : select st.usalote valor from st where st.ref = '324.5342.00.1'
20240904@183918.2000 0hdutrtailcu54ihjkead6het6 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.5342.00.1'
20240904@183918.1850 0hdutrtailcu54ihjkead6het6 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183918.2240 0hdutrtailcu54ihjkead6het6 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240904@183918.2500 0hdutrtailcu54ihjkead6het6 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183918.2670 0hdutrtailcu54ihjkead6het6 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240904@183918.2880 0hdutrtailcu54ihjkead6het6 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240904@183918.3010 0hdutrtailcu54ihjkead6het6 Query : select sestamp valor from se where ref ='324.5342.00.1' and lote = 'r2301282200a'
20240904@183918.3150 0hdutrtailcu54ihjkead6het6 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183918.3300 0hdutrtailcu54ihjkead6het6 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240904@183918.3420 0hdutrtailcu54ihjkead6het6 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66d896168766d89b4607','aut66d896264566d89b4569' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240904@183918.3460 0hdutrtailcu54ihjkead6het6 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183918.3670 0hdutrtailcu54ihjkead6het6 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240904@183918.3970 0hdutrtailcu54ihjkead6het6 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66d896168766d89b4607',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',6.000 ,'aut66d896264566d89b4569' ,0,0 ,2,23.00,70000,?,?,?,?,?)
20240904@183918.6880 0hdutrtailcu54ihjkead6het6 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183918.7050 0hdutrtailcu54ihjkead6het6 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240904@183918.7330 0hdutrtailcu54ihjkead6het6 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183918.7490 0hdutrtailcu54ihjkead6het6 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240904@183918.7580 0hdutrtailcu54ihjkead6het6 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240904@183918.7700 0hdutrtailcu54ihjkead6het6 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183918.7880 0hdutrtailcu54ihjkead6het6 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240904@183918.8010 0hdutrtailcu54ihjkead6het6 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66d892193266d89b4612','aut66d896264566d89b4569' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240904@183918.8060 0hdutrtailcu54ihjkead6het6 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183918.8200 0hdutrtailcu54ihjkead6het6 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240904@183918.8590 0hdutrtailcu54ihjkead6het6 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66d892193266d89b4612',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66d896264566d89b4569' ,0,0 ,2,23.00,80000,?,?,?)
20240904@183918.1152 0hdutrtailcu54ihjkead6het6 Query : use flama_phc
20240904@183918.1155 0hdutrtailcu54ihjkead6het6 Query : select st.usalote valor from st where st.ref = '324.5343.00.1'
20240904@183918.1177 0hdutrtailcu54ihjkead6het6 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.5343.00.1'
20240904@183918.1345 0hdutrtailcu54ihjkead6het6 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183918.1366 0hdutrtailcu54ihjkead6het6 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240904@183918.1394 0hdutrtailcu54ihjkead6het6 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183918.1408 0hdutrtailcu54ihjkead6het6 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240904@183918.1427 0hdutrtailcu54ihjkead6het6 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240904@183918.1439 0hdutrtailcu54ihjkead6het6 Query : select sestamp valor from se where ref ='324.5343.00.1' and lote = 'r2300915100a'
20240904@183918.1460 0hdutrtailcu54ihjkead6het6 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183918.1474 0hdutrtailcu54ihjkead6het6 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240904@183918.1486 0hdutrtailcu54ihjkead6het6 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66d891515066d89b4623','aut66d896264566d89b4569' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240904@183918.1490 0hdutrtailcu54ihjkead6het6 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183918.1505 0hdutrtailcu54ihjkead6het6 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240904@183918.1531 0hdutrtailcu54ihjkead6het6 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66d891515066d89b4623',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',6.000 ,'aut66d896264566d89b4569' ,0,0 ,2,23.00,100000,?,?,?,?,?)
20240904@183918.1842 0hdutrtailcu54ihjkead6het6 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183918.1864 0hdutrtailcu54ihjkead6het6 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240904@183918.1891 0hdutrtailcu54ihjkead6het6 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183918.1905 0hdutrtailcu54ihjkead6het6 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240904@183918.1913 0hdutrtailcu54ihjkead6het6 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240904@183918.1937 0hdutrtailcu54ihjkead6het6 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183918.1952 0hdutrtailcu54ihjkead6het6 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240904@183918.1970 0hdutrtailcu54ihjkead6het6 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66d892625966d89b462f','aut66d896264566d89b4569' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240904@183918.1974 0hdutrtailcu54ihjkead6het6 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183918.1989 0hdutrtailcu54ihjkead6het6 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240904@183918.2020 0hdutrtailcu54ihjkead6het6 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66d892625966d89b462f',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66d896264566d89b4569' ,0,0 ,2,23.00,110000,?,?,?)
20240904@183918.2454 0hdutrtailcu54ihjkead6het6 Query : use flama_phc
20240904@183918.2460 0hdutrtailcu54ihjkead6het6 Query : select st.usalote valor from st where st.ref = '324.5396.00.1'
20240904@183918.2479 0hdutrtailcu54ihjkead6het6 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.5396.00.1'
20240904@183918.2493 0hdutrtailcu54ihjkead6het6 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183918.2509 0hdutrtailcu54ihjkead6het6 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240904@183918.2535 0hdutrtailcu54ihjkead6het6 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183918.2549 0hdutrtailcu54ihjkead6het6 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240904@183918.2558 0hdutrtailcu54ihjkead6het6 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240904@183918.2570 0hdutrtailcu54ihjkead6het6 Query : select sestamp valor from se where ref ='324.5396.00.1' and lote = 'r2300840100a'
20240904@183918.2583 0hdutrtailcu54ihjkead6het6 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183918.2597 0hdutrtailcu54ihjkead6het6 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240904@183918.2609 0hdutrtailcu54ihjkead6het6 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66d897475066d89b463f','aut66d896264566d89b4569' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240904@183918.2636 0hdutrtailcu54ihjkead6het6 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183918.2653 0hdutrtailcu54ihjkead6het6 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240904@183918.2683 0hdutrtailcu54ihjkead6het6 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66d897475066d89b463f',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',6.000 ,'aut66d896264566d89b4569' ,0,0 ,2,23.00,130000,?,?,?,?,?)
20240904@183918.2978 0hdutrtailcu54ihjkead6het6 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183918.2995 0hdutrtailcu54ihjkead6het6 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240904@183918.3020 0hdutrtailcu54ihjkead6het6 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183918.3034 0hdutrtailcu54ihjkead6het6 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240904@183918.3053 0hdutrtailcu54ihjkead6het6 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240904@183918.3066 0hdutrtailcu54ihjkead6het6 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183918.3086 0hdutrtailcu54ihjkead6het6 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240904@183918.3098 0hdutrtailcu54ihjkead6het6 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66d897534866d89b464a','aut66d896264566d89b4569' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240904@183918.3102 0hdutrtailcu54ihjkead6het6 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183918.3121 0hdutrtailcu54ihjkead6het6 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240904@183918.3148 0hdutrtailcu54ihjkead6het6 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66d897534866d89b464a',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66d896264566d89b4569' ,0,0 ,2,23.00,140000,?,?,?)
20240904@183918.3436 0hdutrtailcu54ihjkead6het6 Query : use flama_phc
20240904@183918.3439 0hdutrtailcu54ihjkead6het6 Query : select st.usalote valor from st where st.ref = '324.658.00.01'
20240904@183918.4635 0hdutrtailcu54ihjkead6het6 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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.658.00.01'
20240904@183918.4820 0hdutrtailcu54ihjkead6het6 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183918.4839 0hdutrtailcu54ihjkead6het6 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240904@183918.4885 0hdutrtailcu54ihjkead6het6 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183918.4907 0hdutrtailcu54ihjkead6het6 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240904@183918.4934 0hdutrtailcu54ihjkead6het6 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240904@183918.4950 0hdutrtailcu54ihjkead6het6 Query : select sestamp valor from se where ref ='324.658.00.01' and lote = 'r2300819200a'
20240904@183918.4966 0hdutrtailcu54ihjkead6het6 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183918.4984 0hdutrtailcu54ihjkead6het6 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240904@183918.5001 0hdutrtailcu54ihjkead6het6 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66d893075666d89b4679','aut66d896264566d89b4569' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240904@183918.5006 0hdutrtailcu54ihjkead6het6 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183918.5023 0hdutrtailcu54ihjkead6het6 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240904@183918.5060 0hdutrtailcu54ihjkead6het6 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66d893075666d89b4679',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',2.000 ,'aut66d896264566d89b4569' ,0,0 ,2,23.00,160000,?,?,?,?,?)
20240904@183918.5352 0hdutrtailcu54ihjkead6het6 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183918.5435 0hdutrtailcu54ihjkead6het6 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240904@183918.5472 0hdutrtailcu54ihjkead6het6 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183918.5489 0hdutrtailcu54ihjkead6het6 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240904@183918.5500 0hdutrtailcu54ihjkead6het6 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240904@183918.5514 0hdutrtailcu54ihjkead6het6 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183918.5531 0hdutrtailcu54ihjkead6het6 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240904@183918.5552 0hdutrtailcu54ihjkead6het6 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66d897807066d89b4686','aut66d896264566d89b4569' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240904@183918.5557 0hdutrtailcu54ihjkead6het6 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183918.5578 0hdutrtailcu54ihjkead6het6 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240904@183918.5615 0hdutrtailcu54ihjkead6het6 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66d897807066d89b4686',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66d896264566d89b4569' ,0,0 ,2,23.00,170000,?,?,?)
20240904@183918.5901 0hdutrtailcu54ihjkead6het6 Query : use flama_phc
20240904@183918.5907 0hdutrtailcu54ihjkead6het6 Query : select st.usalote valor from st where st.ref = '324.727.00.01'
20240904@183918.5933 0hdutrtailcu54ihjkead6het6 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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'
20240904@183918.5948 0hdutrtailcu54ihjkead6het6 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183918.5965 0hdutrtailcu54ihjkead6het6 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240904@183918.5995 0hdutrtailcu54ihjkead6het6 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183918.6012 0hdutrtailcu54ihjkead6het6 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240904@183918.6030 0hdutrtailcu54ihjkead6het6 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240904@183918.6043 0hdutrtailcu54ihjkead6het6 Query : select sestamp valor from se where ref ='324.727.00.01' and lote = 'r2400239200a'
20240904@183918.6060 0hdutrtailcu54ihjkead6het6 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183918.6089 0hdutrtailcu54ihjkead6het6 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240904@183918.6103 0hdutrtailcu54ihjkead6het6 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66d890937866d89b4693','aut66d896264566d89b4569' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240904@183918.6108 0hdutrtailcu54ihjkead6het6 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183918.6128 0hdutrtailcu54ihjkead6het6 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240904@183918.6160 0hdutrtailcu54ihjkead6het6 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66d890937866d89b4693',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',8.000 ,'aut66d896264566d89b4569' ,0,0 ,2,23.00,190000,?,?,?,?,?)
20240904@183918.6455 0hdutrtailcu54ihjkead6het6 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183918.6474 0hdutrtailcu54ihjkead6het6 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240904@183918.6503 0hdutrtailcu54ihjkead6het6 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183918.6532 0hdutrtailcu54ihjkead6het6 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240904@183918.6542 0hdutrtailcu54ihjkead6het6 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240904@183918.6563 0hdutrtailcu54ihjkead6het6 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183918.6579 0hdutrtailcu54ihjkead6het6 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240904@183918.6591 0hdutrtailcu54ihjkead6het6 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66d899565466d89b46a0','aut66d896264566d89b4569' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240904@183918.6596 0hdutrtailcu54ihjkead6het6 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183918.6613 0hdutrtailcu54ihjkead6het6 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240904@183918.6641 0hdutrtailcu54ihjkead6het6 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66d899565466d89b46a0',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66d896264566d89b4569' ,0,0 ,2,23.00,200000,?,?,?)
20240904@183918.7081 0hdutrtailcu54ihjkead6het6 Query : use flama_phc
20240904@183918.7084 0hdutrtailcu54ihjkead6het6 Query : select st.usalote valor from st where st.ref = '324.946.00.01'
20240904@183918.7111 0hdutrtailcu54ihjkead6het6 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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.946.00.01'
20240904@183918.7301 0hdutrtailcu54ihjkead6het6 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183918.7322 0hdutrtailcu54ihjkead6het6 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240904@183918.7348 0hdutrtailcu54ihjkead6het6 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183918.7361 0hdutrtailcu54ihjkead6het6 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240904@183918.7370 0hdutrtailcu54ihjkead6het6 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240904@183918.7391 0hdutrtailcu54ihjkead6het6 Query : select sestamp valor from se where ref ='324.946.00.01' and lote = 'r2300941200a'
20240904@183918.7409 0hdutrtailcu54ihjkead6het6 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183918.7430 0hdutrtailcu54ihjkead6het6 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240904@183918.7442 0hdutrtailcu54ihjkead6het6 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66d899617366d89b46b4','aut66d896264566d89b4569' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240904@183918.7446 0hdutrtailcu54ihjkead6het6 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183918.7462 0hdutrtailcu54ihjkead6het6 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240904@183918.7510 0hdutrtailcu54ihjkead6het6 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66d899617366d89b46b4',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',8.000 ,'aut66d896264566d89b4569' ,0,0 ,2,23.00,220000,?,?,?,?,?)
20240904@183918.7795 0hdutrtailcu54ihjkead6het6 Query : use flama_phc
20240904@183918.7798 0hdutrtailcu54ihjkead6het6 Query : select st.usalote valor from st where st.ref = '324.969.00.01'
20240904@183918.7818 0hdutrtailcu54ihjkead6het6 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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.969.00.01'
20240904@183918.8008 0hdutrtailcu54ihjkead6het6 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183918.8041 0hdutrtailcu54ihjkead6het6 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240904@183918.8067 0hdutrtailcu54ihjkead6het6 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183918.8088 0hdutrtailcu54ihjkead6het6 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240904@183918.8097 0hdutrtailcu54ihjkead6het6 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240904@183918.8111 0hdutrtailcu54ihjkead6het6 Query : select sestamp valor from se where ref ='324.969.00.01' and lote = 'r2100601100a'
20240904@183918.8125 0hdutrtailcu54ihjkead6het6 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183918.8140 0hdutrtailcu54ihjkead6het6 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240904@183918.8192 0hdutrtailcu54ihjkead6het6 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66d897775566d89b46c6','aut66d896264566d89b4569' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240904@183918.8235 0hdutrtailcu54ihjkead6het6 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183918.8530 0hdutrtailcu54ihjkead6het6 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240904@183918.8622 0hdutrtailcu54ihjkead6het6 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66d897775566d89b46c6',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',2.000 ,'aut66d896264566d89b4569' ,0,0 ,2,23.00,230000,?,?,?,?,?)
20240904@183918.8937 0hdutrtailcu54ihjkead6het6 Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut66d896264566d89b4569','2405758','wait',39,'adm09112754980.682000002')
20240904@183918.9015 0hdutrtailcu54ihjkead6het6 Query : use flama_phc
20240904@183918.9018 0hdutrtailcu54ihjkead6het6 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240904@183918.9054 0hdutrtailcu54ihjkead6het6 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1847';
20240904@183918.9094 0hdutrtailcu54ihjkead6het6 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1847';
20240904@183918.9136 0hdutrtailcu54ihjkead6het6 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1847';
20240904@183918.9162 0hdutrtailcu54ihjkead6het6 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1847';

20240905@101847.1953 n9vkj5hi4i6h4d1nom9lrvov2j Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1848';
20240905@101847.2019 n9vkj5hi4i6h4d1nom9lrvov2j Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1848';
20240905@101847.2043 n9vkj5hi4i6h4d1nom9lrvov2j Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1848';
20240905@101847.3563 dk6ac15gomqgfeobv9l65jih34 Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240905@101847.3575 dk6ac15gomqgfeobv9l65jih34 Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240905@101847.3629 dk6ac15gomqgfeobv9l65jih34 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1849';
20240905@101847.3684 dk6ac15gomqgfeobv9l65jih34 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1849';
20240905@101847.3734 dk6ac15gomqgfeobv9l65jih34 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1849';
20240905@101847.3759 dk6ac15gomqgfeobv9l65jih34 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1849';
20240905@101847.3799 dk6ac15gomqgfeobv9l65jih34 Query : use flama_phc
20240905@101847.3802 dk6ac15gomqgfeobv9l65jih34 Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240905@101847.4077 dk6ac15gomqgfeobv9l65jih34 Query : select no, estab,szadrsdesc from szadrs where u_coddest=2
20240905@101847.4164 dk6ac15gomqgfeobv9l65jih34 Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.1805.00.1'
20240905@101847.4291 dk6ac15gomqgfeobv9l65jih34 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =001 and bo.boano =2024 and bo.obrano = 0002073 and bi.ref ='324.1805.00.1' and bi.lordem =10000
20240905@101847.4632 dk6ac15gomqgfeobv9l65jih34 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 = 'az24090361814,964000001 ' 
20240905@101847.4944 dk6ac15gomqgfeobv9l65jih34 Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.1805.00.1'
20240905@101847.4964 dk6ac15gomqgfeobv9l65jih34 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =001 and bo.boano =2024 and bo.obrano = 0002073 and bi.ref ='324.1805.00.1' and bi.lordem =10000
20240905@101847.4986 dk6ac15gomqgfeobv9l65jih34 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 = 'az24090361814,964000001 ' 
20240905@101847.5007 dk6ac15gomqgfeobv9l65jih34 Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.1817.00.1'
20240905@101847.5130 dk6ac15gomqgfeobv9l65jih34 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =001 and bo.boano =2024 and bo.obrano = 0002073 and bi.ref ='324.1817.00.1' and bi.lordem =20000
20240905@101847.5472 dk6ac15gomqgfeobv9l65jih34 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 = 'az24090361917,164000002 ' 
20240905@101847.5785 dk6ac15gomqgfeobv9l65jih34 Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.1817.00.1'
20240905@101847.5806 dk6ac15gomqgfeobv9l65jih34 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =001 and bo.boano =2024 and bo.obrano = 0002073 and bi.ref ='324.1817.00.1' and bi.lordem =20000
20240905@101847.5826 dk6ac15gomqgfeobv9l65jih34 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 = 'az24090361917,164000002 ' 
20240905@101847.5846 dk6ac15gomqgfeobv9l65jih34 Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.1834.00.1'
20240905@101847.6145 dk6ac15gomqgfeobv9l65jih34 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =001 and bo.boano =2024 and bo.obrano = 0002073 and bi.ref ='324.1834.00.1' and bi.lordem =30000
20240905@101847.6488 dk6ac15gomqgfeobv9l65jih34 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 = 'az24090361980,340000003 ' 
20240905@101847.6794 dk6ac15gomqgfeobv9l65jih34 Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.1847.00.1'
20240905@101847.6911 dk6ac15gomqgfeobv9l65jih34 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =001 and bo.boano =2024 and bo.obrano = 0002073 and bi.ref ='324.1847.00.1' and bi.lordem =40000
20240905@101847.7239 dk6ac15gomqgfeobv9l65jih34 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 = 'az24090361994,640000004 ' 
20240905@101847.7530 dk6ac15gomqgfeobv9l65jih34 Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.1847.00.1'
20240905@101847.7551 dk6ac15gomqgfeobv9l65jih34 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =001 and bo.boano =2024 and bo.obrano = 0002073 and bi.ref ='324.1847.00.1' and bi.lordem =40000
20240905@101847.7572 dk6ac15gomqgfeobv9l65jih34 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 = 'az24090361994,640000004 ' 
20240905@101847.7592 dk6ac15gomqgfeobv9l65jih34 Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.1879.00.1'
20240905@101847.7715 dk6ac15gomqgfeobv9l65jih34 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =001 and bo.boano =2024 and bo.obrano = 0002073 and bi.ref ='324.1879.00.1' and bi.lordem =50000
20240905@101847.8041 dk6ac15gomqgfeobv9l65jih34 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 = 'az24090362165,760000005 ' 
20240905@101847.8418 dk6ac15gomqgfeobv9l65jih34 Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.1889.00.1'
20240905@101847.8941 dk6ac15gomqgfeobv9l65jih34 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =001 and bo.boano =2024 and bo.obrano = 0002073 and bi.ref ='324.1889.00.1' and bi.lordem =60000
20240905@101847.9352 dk6ac15gomqgfeobv9l65jih34 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 = 'az24090362206,807000006 ' 
20240905@101847.9954 dk6ac15gomqgfeobv9l65jih34 Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.1889.00.1'
20240905@101847.9979 dk6ac15gomqgfeobv9l65jih34 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =001 and bo.boano =2024 and bo.obrano = 0002073 and bi.ref ='324.1889.00.1' and bi.lordem =60000
20240905@101848.4000 dk6ac15gomqgfeobv9l65jih34 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 = 'az24090362206,807000006 ' 
20240905@101848.2700 dk6ac15gomqgfeobv9l65jih34 Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.4160.00.1'
20240905@101848.6090 dk6ac15gomqgfeobv9l65jih34 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =001 and bo.boano =2024 and bo.obrano = 0002073 and bi.ref ='324.4160.00.1' and bi.lordem =70000
20240905@101848.1015 dk6ac15gomqgfeobv9l65jih34 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 = 'az24090362223,360000007 ' 
20240905@101848.1524 dk6ac15gomqgfeobv9l65jih34 Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.686.00.01'
20240905@101848.1655 dk6ac15gomqgfeobv9l65jih34 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =001 and bo.boano =2024 and bo.obrano = 0002073 and bi.ref ='324.686.00.01' and bi.lordem =80000
20240905@101848.2008 dk6ac15gomqgfeobv9l65jih34 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 = 'az24090362246,710000008 ' 
20240905@101848.2339 dk6ac15gomqgfeobv9l65jih34 Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.692.00.01'
20240905@101848.2469 dk6ac15gomqgfeobv9l65jih34 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =001 and bo.boano =2024 and bo.obrano = 0002073 and bi.ref ='324.692.00.01' and bi.lordem =90000
20240905@101848.2822 dk6ac15gomqgfeobv9l65jih34 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 = 'az24090362264,340000009 ' 
20240905@101848.3151 dk6ac15gomqgfeobv9l65jih34 Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '327.8261.00.1'
20240905@101848.3286 dk6ac15gomqgfeobv9l65jih34 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =001 and bo.boano =2024 and bo.obrano = 0002073 and bi.ref ='327.8261.00.1' and bi.lordem =100000
20240905@101848.3627 dk6ac15gomqgfeobv9l65jih34 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 = 'az24090362333,629000010 ' 
20240905@101848.4981 dk6ac15gomqgfeobv9l65jih34 Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '327.8261.00.1'
20240905@101848.5008 dk6ac15gomqgfeobv9l65jih34 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =001 and bo.boano =2024 and bo.obrano = 0002073 and bi.ref ='327.8261.00.1' and bi.lordem =100000
20240905@101848.5034 dk6ac15gomqgfeobv9l65jih34 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 = 'az24090362333,629000010 ' 
20240905@101848.5062 dk6ac15gomqgfeobv9l65jih34 Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '327.8261.00.1'
20240905@101848.5085 dk6ac15gomqgfeobv9l65jih34 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =001 and bo.boano =2024 and bo.obrano = 0002073 and bi.ref ='327.8261.00.1' and bi.lordem =100000
20240905@101848.5112 dk6ac15gomqgfeobv9l65jih34 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 = 'az24090362333,629000010 ' 
20240905@101848.5136 dk6ac15gomqgfeobv9l65jih34 Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '327.8261.00.1'
20240905@101848.5161 dk6ac15gomqgfeobv9l65jih34 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =001 and bo.boano =2024 and bo.obrano = 0002073 and bi.ref ='327.8261.00.1' and bi.lordem =100000
20240905@101848.5184 dk6ac15gomqgfeobv9l65jih34 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 = 'az24090362333,629000010 ' 
20240905@101848.5210 dk6ac15gomqgfeobv9l65jih34 Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.1831.00.2'
20240905@101848.5349 dk6ac15gomqgfeobv9l65jih34 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =001 and bo.boano =2024 and bo.obrano = 0002073 and bi.ref ='324.1831.00.2' and bi.lordem =110000
20240905@101848.6071 dk6ac15gomqgfeobv9l65jih34 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 = 'az24090362361,477000011 ' 
20240905@101848.6589 dk6ac15gomqgfeobv9l65jih34 Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.1832.00.2'
20240905@101848.6862 dk6ac15gomqgfeobv9l65jih34 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =001 and bo.boano =2024 and bo.obrano = 0002073 and bi.ref ='324.1832.00.2' and bi.lordem =120000
20240905@101848.7512 dk6ac15gomqgfeobv9l65jih34 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 = 'az24090362392,103000012 ' 
20240905@101848.7879 dk6ac15gomqgfeobv9l65jih34 Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.1833.00.2'
20240905@101848.8013 dk6ac15gomqgfeobv9l65jih34 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =001 and bo.boano =2024 and bo.obrano = 0002073 and bi.ref ='324.1833.00.2' and bi.lordem =130000
20240905@101848.8358 dk6ac15gomqgfeobv9l65jih34 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 = 'az24090362414,818000013 ' 
20240905@101848.8881 dk6ac15gomqgfeobv9l65jih34 Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.1847.00.1'
20240905@101848.8904 dk6ac15gomqgfeobv9l65jih34 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =001 and bo.boano =2024 and bo.obrano = 0002073 and bi.ref ='324.1847.00.1' and bi.lordem =140000
20240905@101848.9443 dk6ac15gomqgfeobv9l65jih34 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 = 'az24090362440,249000014 ' 
20240905@101848.9782 dk6ac15gomqgfeobv9l65jih34 Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.692.00.01'
20240905@101848.9803 dk6ac15gomqgfeobv9l65jih34 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =001 and bo.boano =2024 and bo.obrano = 0002073 and bi.ref ='324.692.00.01' and bi.lordem =150000
20240905@101849.1330 dk6ac15gomqgfeobv9l65jih34 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 = 'az24090362466,106000015 ' 
20240905@101849.4640 dk6ac15gomqgfeobv9l65jih34 Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.681.00.01'
20240905@101849.6320 dk6ac15gomqgfeobv9l65jih34 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =001 and bo.boano =2024 and bo.obrano = 0002073 and bi.ref ='324.681.00.01' and bi.lordem =160000
20240905@101849.9870 dk6ac15gomqgfeobv9l65jih34 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 = 'az24090362487,776000016 ' 
20240905@101849.1393 dk6ac15gomqgfeobv9l65jih34 Query : use flama_phc
20240905@101849.1397 dk6ac15gomqgfeobv9l65jih34 Query : select top 1 1 valor from ts where ts.ndos = 5
20240905@101849.1505 dk6ac15gomqgfeobv9l65jih34 Query : use flama_phc
20240905@101849.1512 dk6ac15gomqgfeobv9l65jih34 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')
20240905@101849.1589 dk6ac15gomqgfeobv9l65jih34 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
20240905@101849.1861 dk6ac15gomqgfeobv9l65jih34 Query : use flama_phc
20240905@101849.1880 dk6ac15gomqgfeobv9l65jih34 Query : select top 1 ~inactivo valor from fl where no = '100500' and estab = 0 order by inactivo desc
20240905@101849.2266 dk6ac15gomqgfeobv9l65jih34 Query : use flama_phc
20240905@101849.2271 dk6ac15gomqgfeobv9l65jih34 Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20240905@101849.2702 dk6ac15gomqgfeobv9l65jih34 Query : use flama_phc
20240905@101849.2707 dk6ac15gomqgfeobv9l65jih34 Query : select szadrsstamp valor from szadrs where szadrsdesc='n/instalaÇÕes sede'
20240905@101849.2939 dk6ac15gomqgfeobv9l65jih34 Query : use flama_phc
20240905@101849.2947 dk6ac15gomqgfeobv9l65jih34 Query : select 1 valor from ts where ndos = 5
20240905@101849.3039 dk6ac15gomqgfeobv9l65jih34 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240905@101849.3497 dk6ac15gomqgfeobv9l65jih34 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bo' and documentnumber = 5
20240905@101849.3576 dk6ac15gomqgfeobv9l65jih34 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240905@101849.3592 dk6ac15gomqgfeobv9l65jih34 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bo2' and documentnumber = 5
20240905@101849.3602 dk6ac15gomqgfeobv9l65jih34 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240905@101849.3618 dk6ac15gomqgfeobv9l65jih34 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bo3' and documentnumber = 5
20240905@101849.3629 dk6ac15gomqgfeobv9l65jih34 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
20240905@101849.3773 dk6ac15gomqgfeobv9l65jih34 Query : select top 1 bo.obrano valor from bo bo where bo.ndos = 5 and boano=2024 order by obrano desc
20240905@101849.3927 dk6ac15gomqgfeobv9l65jih34 Query : select top 1 bo.obrano valor from wsbodata bo where bo.ndos = 5 and boano=2024 order by obrano desc
20240905@101849.4020 dk6ac15gomqgfeobv9l65jih34 Query : use flama_phc
20240905@101849.4030 dk6ac15gomqgfeobv9l65jih34 Query : select top 1 no,estab,nome, morada, local,codpost,ncont,pncont,pais,inactivo,motiseimp,codmotiseimp from fl where no='100500' and estab=0
20240905@101849.4125 dk6ac15gomqgfeobv9l65jih34 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240905@101849.4148 dk6ac15gomqgfeobv9l65jih34 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bo3' and documentnumber = 5
20240905@101849.4187 dk6ac15gomqgfeobv9l65jih34 Query : insert into wsbo3data (bo3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66d972970866d9777962',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut')
20240905@101849.4254 dk6ac15gomqgfeobv9l65jih34 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240905@101849.4274 dk6ac15gomqgfeobv9l65jih34 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bo2' and documentnumber = 5
20240905@101849.4288 dk6ac15gomqgfeobv9l65jih34 Query : insert into wsbo2data (bo2stamp, tiposaft, idserie,cambio,cambiofixo,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,xpddata,xpdhora,carga,descar) values ('aut66d972970866d9777962','ga','bo',0 ,0,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut','20240905','10:48',?,?)
20240905@101849.5785 dk6ac15gomqgfeobv9l65jih34 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240905@101849.5808 dk6ac15gomqgfeobv9l65jih34 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bo' and documentnumber = 5
20240905@101849.5830 dk6ac15gomqgfeobv9l65jih34 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 ('aut66d972970866d9777962','trf entre armazéns a','2024-09-05',5,437,?,?,?,?,?,?,?,?,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',?)
20240905@101849.6805 dk6ac15gomqgfeobv9l65jih34 Query : use flama_phc
20240905@101849.6826 dk6ac15gomqgfeobv9l65jih34 Query : select st.usalote valor from st where st.ref = '324.1805.00.1'
20240905@101849.7022 dk6ac15gomqgfeobv9l65jih34 Query : use flama_phc
20240905@101849.7026 dk6ac15gomqgfeobv9l65jih34 Query : select st.stns valor from st where st.ref = '324.1805.00.1'
20240905@101849.7153 dk6ac15gomqgfeobv9l65jih34 Query : use flama_phc
20240905@101849.7156 dk6ac15gomqgfeobv9l65jih34 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.1805.00.1' and sa.armazem = 133 
20240905@101849.7234 dk6ac15gomqgfeobv9l65jih34 Query : use flama_phc
20240905@101849.7237 dk6ac15gomqgfeobv9l65jih34 Query : select st.stns valor from st where st.ref = '324.1805.00.1'
20240905@101849.7263 dk6ac15gomqgfeobv9l65jih34 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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'
20240905@101849.7610 dk6ac15gomqgfeobv9l65jih34 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240905@101849.7629 dk6ac15gomqgfeobv9l65jih34 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 5
20240905@101849.7647 dk6ac15gomqgfeobv9l65jih34 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240905@101849.7664 dk6ac15gomqgfeobv9l65jih34 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 5
20240905@101849.7675 dk6ac15gomqgfeobv9l65jih34 Query : select sestamp valor from se where ref ='324.1805.00.1' and lote = 'r2300831200a'
20240905@101849.7743 dk6ac15gomqgfeobv9l65jih34 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240905@101849.7792 dk6ac15gomqgfeobv9l65jih34 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240905@101849.7809 dk6ac15gomqgfeobv9l65jih34 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 5
20240905@101849.7823 dk6ac15gomqgfeobv9l65jih34 Query : insert into wsbi2data (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut66d972776066d97779be','aut66d972970866d9777962',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 = 'aut66d972970866d9777962'
20240905@101849.8134 dk6ac15gomqgfeobv9l65jih34 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240905@101849.8158 dk6ac15gomqgfeobv9l65jih34 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 5
20240905@101849.8177 dk6ac15gomqgfeobv9l65jih34 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 'aut66d972776066d97779be',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut',bo.obrano, 5.000, 5.000*.0000000 ,bo.no, bo.estab,bo.nmdos ,bo.ndos, bo.obranome,bo.fechada, bo.dataobra ,bo.dataobra ,bo.dataopen,bo.datafecho,bo.local, bo.morada ,bo.codpost, bo.nome,bo.bostamp,10000 ,75,75*200.48,75,75*200.48 ,0,0,'un ',' ' ,bo.marcada,1 ,75*5.000,75*5.000*200.48 ,31.965000,31.965000*200.48 ,31.965000,31.965000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,75,75*200.48,75*5.000,75*5.000*200.48,'az24090361814,964000001 ',75,75*5.000,75,75*5.000,?,?,?,?,4 from wsbodata bo where bo.bostamp = 'aut66d972970866d9777962'
20240905@101849.9394 dk6ac15gomqgfeobv9l65jih34 Query : use flama_phc
20240905@101849.9443 dk6ac15gomqgfeobv9l65jih34 Query : select st.usalote valor from st where st.ref = '324.1805.00.1'
20240905@101849.9596 dk6ac15gomqgfeobv9l65jih34 Query : use flama_phc
20240905@101849.9599 dk6ac15gomqgfeobv9l65jih34 Query : select st.stns valor from st where st.ref = '324.1805.00.1'
20240905@101849.9616 dk6ac15gomqgfeobv9l65jih34 Query : use flama_phc
20240905@101849.9619 dk6ac15gomqgfeobv9l65jih34 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.1805.00.1' and sa.armazem = 133 
20240905@101849.9644 dk6ac15gomqgfeobv9l65jih34 Query : use flama_phc
20240905@101849.9646 dk6ac15gomqgfeobv9l65jih34 Query : select st.stns valor from st where st.ref = '324.1805.00.1'
20240905@101849.9671 dk6ac15gomqgfeobv9l65jih34 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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'
20240905@101849.9700 dk6ac15gomqgfeobv9l65jih34 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240905@101849.9719 dk6ac15gomqgfeobv9l65jih34 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 5
20240905@101849.9736 dk6ac15gomqgfeobv9l65jih34 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240905@101849.9844 dk6ac15gomqgfeobv9l65jih34 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 5
20240905@101849.9855 dk6ac15gomqgfeobv9l65jih34 Query : select sestamp valor from se where ref ='324.1805.00.1' and lote = 'r2400291200a'
20240905@101849.9870 dk6ac15gomqgfeobv9l65jih34 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240905@101849.9884 dk6ac15gomqgfeobv9l65jih34 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240905@101849.9905 dk6ac15gomqgfeobv9l65jih34 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 5
20240905@101849.9927 dk6ac15gomqgfeobv9l65jih34 Query : insert into wsbi2data (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut66d979536266d97779f1','aut66d972970866d9777962',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 = 'aut66d972970866d9777962'
20240905@101850.2170 dk6ac15gomqgfeobv9l65jih34 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240905@101850.3710 dk6ac15gomqgfeobv9l65jih34 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 5
20240905@101850.3920 dk6ac15gomqgfeobv9l65jih34 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 'aut66d979536266d97779f1',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,20000 ,75,75*200.48,75,75*200.48 ,0,0,'un ',' ' ,bo.marcada,1 ,75*3.000,75*3.000*200.48 ,31.965000,31.965000*200.48 ,31.965000,31.965000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,75,75*200.48,75*3.000,75*3.000*200.48,'az24090361814,964000001 ',75,75*3.000,75,75*3.000,?,?,?,?,4 from wsbodata bo where bo.bostamp = 'aut66d972970866d9777962'
20240905@101850.7330 dk6ac15gomqgfeobv9l65jih34 Query : use flama_phc
20240905@101850.7380 dk6ac15gomqgfeobv9l65jih34 Query : select st.usalote valor from st where st.ref = '324.1817.00.1'
20240905@101850.7560 dk6ac15gomqgfeobv9l65jih34 Query : use flama_phc
20240905@101850.7590 dk6ac15gomqgfeobv9l65jih34 Query : select st.stns valor from st where st.ref = '324.1817.00.1'
20240905@101850.7780 dk6ac15gomqgfeobv9l65jih34 Query : use flama_phc
20240905@101850.7820 dk6ac15gomqgfeobv9l65jih34 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.1817.00.1' and sa.armazem = 133 
20240905@101850.8560 dk6ac15gomqgfeobv9l65jih34 Query : use flama_phc
20240905@101850.8590 dk6ac15gomqgfeobv9l65jih34 Query : select st.stns valor from st where st.ref = '324.1817.00.1'
20240905@101850.8820 dk6ac15gomqgfeobv9l65jih34 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.1817.00.1'
20240905@101850.1047 dk6ac15gomqgfeobv9l65jih34 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240905@101850.1066 dk6ac15gomqgfeobv9l65jih34 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 5
20240905@101850.1082 dk6ac15gomqgfeobv9l65jih34 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240905@101850.1254 dk6ac15gomqgfeobv9l65jih34 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 5
20240905@101850.1264 dk6ac15gomqgfeobv9l65jih34 Query : select sestamp valor from se where ref ='324.1817.00.1' and lote = 'r2400380200a'
20240905@101850.1285 dk6ac15gomqgfeobv9l65jih34 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240905@101850.1299 dk6ac15gomqgfeobv9l65jih34 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240905@101850.1315 dk6ac15gomqgfeobv9l65jih34 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 5
20240905@101850.1329 dk6ac15gomqgfeobv9l65jih34 Query : insert into wsbi2data (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut66d973715366d9777a1f','aut66d972970866d9777962',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 = 'aut66d972970866d9777962'
20240905@101850.1476 dk6ac15gomqgfeobv9l65jih34 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240905@101850.1495 dk6ac15gomqgfeobv9l65jih34 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 5
20240905@101850.2666 dk6ac15gomqgfeobv9l65jih34 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 'aut66d973715366d9777a1f',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut',bo.obrano, 6.000, 6.000*.0000000 ,bo.no, bo.estab,bo.nmdos ,bo.ndos, bo.obranome,bo.fechada, bo.dataobra ,bo.dataobra ,bo.dataopen,bo.datafecho,bo.local, bo.morada ,bo.codpost, bo.nome,bo.bostamp,30000 ,52.5,52.5*200.48,52.5,52.5*200.48 ,0,0,'un',' ' ,bo.marcada,1 ,52.5*6.000,52.5*6.000*200.48 ,25.572000,25.572000*200.48 ,25.572000,25.572000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,52.5,52.5*200.48,52.5*6.000,52.5*6.000*200.48,'az24090361917,164000002 ',52.5,52.5*6.000,52.5,52.5*6.000,?,?,?,?,4 from wsbodata bo where bo.bostamp = 'aut66d972970866d9777962'
20240905@101850.3008 dk6ac15gomqgfeobv9l65jih34 Query : use flama_phc
20240905@101850.3012 dk6ac15gomqgfeobv9l65jih34 Query : select st.usalote valor from st where st.ref = '324.1817.00.1'
20240905@101850.3029 dk6ac15gomqgfeobv9l65jih34 Query : use flama_phc
20240905@101850.3032 dk6ac15gomqgfeobv9l65jih34 Query : select st.stns valor from st where st.ref = '324.1817.00.1'
20240905@101850.3048 dk6ac15gomqgfeobv9l65jih34 Query : use flama_phc
20240905@101850.3053 dk6ac15gomqgfeobv9l65jih34 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.1817.00.1' and sa.armazem = 133 
20240905@101850.3085 dk6ac15gomqgfeobv9l65jih34 Query : use flama_phc
20240905@101850.3089 dk6ac15gomqgfeobv9l65jih34 Query : select st.stns valor from st where st.ref = '324.1817.00.1'
20240905@101850.3109 dk6ac15gomqgfeobv9l65jih34 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.1817.00.1'
20240905@101850.3127 dk6ac15gomqgfeobv9l65jih34 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240905@101850.3145 dk6ac15gomqgfeobv9l65jih34 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 5
20240905@101850.3160 dk6ac15gomqgfeobv9l65jih34 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240905@101850.3178 dk6ac15gomqgfeobv9l65jih34 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 5
20240905@101850.3188 dk6ac15gomqgfeobv9l65jih34 Query : select sestamp valor from se where ref ='324.1817.00.1' and lote = 'r2400380200a'
20240905@101850.3237 dk6ac15gomqgfeobv9l65jih34 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240905@101850.3532 dk6ac15gomqgfeobv9l65jih34 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240905@101850.3556 dk6ac15gomqgfeobv9l65jih34 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 5
20240905@101850.3623 dk6ac15gomqgfeobv9l65jih34 Query : insert into wsbi2data (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut66d979375666d9777a56','aut66d972970866d9777962',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 = 'aut66d972970866d9777962'
20240905@101850.3786 dk6ac15gomqgfeobv9l65jih34 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240905@101850.3807 dk6ac15gomqgfeobv9l65jih34 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 5
20240905@101850.3824 dk6ac15gomqgfeobv9l65jih34 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 'aut66d979375666d9777a56',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut',bo.obrano, 10.000, 10.000*.0000000 ,bo.no, bo.estab,bo.nmdos ,bo.ndos, bo.obranome,bo.fechada, bo.dataobra ,bo.dataobra ,bo.dataopen,bo.datafecho,bo.local, bo.morada ,bo.codpost, bo.nome,bo.bostamp,40000 ,52.5,52.5*200.48,52.5,52.5*200.48 ,0,0,'un',' ' ,bo.marcada,1 ,52.5*10.000,52.5*10.000*200.48 ,25.572000,25.572000*200.48 ,25.572000,25.572000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,52.5,52.5*200.48,52.5*10.000,52.5*10.000*200.48,'az24090361917,164000002 ',52.5,52.5*10.000,52.5,52.5*10.000,?,?,?,?,4 from wsbodata bo where bo.bostamp = 'aut66d972970866d9777962'
20240905@101850.4333 dk6ac15gomqgfeobv9l65jih34 Query : use flama_phc
20240905@101850.4341 dk6ac15gomqgfeobv9l65jih34 Query : select st.usalote valor from st where st.ref = '324.1834.00.1'
20240905@101850.4360 dk6ac15gomqgfeobv9l65jih34 Query : use flama_phc
20240905@101850.4363 dk6ac15gomqgfeobv9l65jih34 Query : select st.stns valor from st where st.ref = '324.1834.00.1'
20240905@101850.4395 dk6ac15gomqgfeobv9l65jih34 Query : use flama_phc
20240905@101850.4399 dk6ac15gomqgfeobv9l65jih34 Query : select isnull(sum(stock) ,0)stock ,isnull(sum(qttrec),0) qttrec ,0 qttcat ,isnull(sum(rescli),0) rescli ,isnull(sum(resfor),0) resfor from sa where sa.ref = '324.1834.00.1' and sa.armazem = 133 
20240905@101850.4479 dk6ac15gomqgfeobv9l65jih34 Query : use flama_phc
20240905@101850.4488 dk6ac15gomqgfeobv9l65jih34 Query : select st.stns valor from st where st.ref = '324.1834.00.1'
20240905@101850.4512 dk6ac15gomqgfeobv9l65jih34 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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'
20240905@101850.4677 dk6ac15gomqgfeobv9l65jih34 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240905@101850.4696 dk6ac15gomqgfeobv9l65jih34 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 5
20240905@101850.4711 dk6ac15gomqgfeobv9l65jih34 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240905@101850.4727 dk6ac15gomqgfeobv9l65jih34 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 5
20240905@101850.4738 dk6ac15gomqgfeobv9l65jih34 Query : select sestamp valor from se where ref ='324.1834.00.1' and lote = 'r2400213100a'
20240905@101850.4749 dk6ac15gomqgfeobv9l65jih34 Query : use flama_phc
20240905@101850.4753 dk6ac15gomqgfeobv9l65jih34 Query : select st.usalote valor from st where st.ref = '324.1847.00.1'
20240905@101850.4770 dk6ac15gomqgfeobv9l65jih34 Query : use flama_phc
20240905@101850.4773 dk6ac15gomqgfeobv9l65jih34 Query : select st.usalote valor from st where st.ref = '324.1847.00.1'
20240905@101850.4786 dk6ac15gomqgfeobv9l65jih34 Query : use flama_phc
20240905@101850.4789 dk6ac15gomqgfeobv9l65jih34 Query : select st.usalote valor from st where st.ref = '324.1879.00.1'
20240905@101850.4806 dk6ac15gomqgfeobv9l65jih34 Query : use flama_phc
20240905@101850.4809 dk6ac15gomqgfeobv9l65jih34 Query : select st.usalote valor from st where st.ref = '324.1889.00.1'
20240905@101850.4823 dk6ac15gomqgfeobv9l65jih34 Query : use flama_phc
20240905@101850.4826 dk6ac15gomqgfeobv9l65jih34 Query : select st.usalote valor from st where st.ref = '324.1889.00.1'
20240905@101850.4838 dk6ac15gomqgfeobv9l65jih34 Query : use flama_phc
20240905@101850.4841 dk6ac15gomqgfeobv9l65jih34 Query : select st.usalote valor from st where st.ref = '324.4160.00.1'
20240905@101850.4856 dk6ac15gomqgfeobv9l65jih34 Query : use flama_phc
20240905@101850.4859 dk6ac15gomqgfeobv9l65jih34 Query : select st.usalote valor from st where st.ref = '324.686.00.01'
20240905@101850.4875 dk6ac15gomqgfeobv9l65jih34 Query : use flama_phc
20240905@101850.4879 dk6ac15gomqgfeobv9l65jih34 Query : select st.usalote valor from st where st.ref = '324.692.00.01'
20240905@101850.4896 dk6ac15gomqgfeobv9l65jih34 Query : use flama_phc
20240905@101850.4899 dk6ac15gomqgfeobv9l65jih34 Query : select st.usalote valor from st where st.ref = '327.8261.00.1'
20240905@101850.4913 dk6ac15gomqgfeobv9l65jih34 Query : use flama_phc
20240905@101850.4917 dk6ac15gomqgfeobv9l65jih34 Query : select st.usalote valor from st where st.ref = '327.8261.00.1'
20240905@101850.4930 dk6ac15gomqgfeobv9l65jih34 Query : use flama_phc
20240905@101850.4933 dk6ac15gomqgfeobv9l65jih34 Query : select st.usalote valor from st where st.ref = '327.8261.00.1'
20240905@101850.4947 dk6ac15gomqgfeobv9l65jih34 Query : use flama_phc
20240905@101850.4950 dk6ac15gomqgfeobv9l65jih34 Query : select st.usalote valor from st where st.ref = '327.8261.00.1'
20240905@101850.4964 dk6ac15gomqgfeobv9l65jih34 Query : use flama_phc
20240905@101850.4967 dk6ac15gomqgfeobv9l65jih34 Query : select st.usalote valor from st where st.ref = '324.1831.00.2'
20240905@101850.4983 dk6ac15gomqgfeobv9l65jih34 Query : use flama_phc
20240905@101850.4987 dk6ac15gomqgfeobv9l65jih34 Query : select st.usalote valor from st where st.ref = '324.1832.00.2'
20240905@101850.5005 dk6ac15gomqgfeobv9l65jih34 Query : use flama_phc
20240905@101850.5008 dk6ac15gomqgfeobv9l65jih34 Query : select st.usalote valor from st where st.ref = '324.1833.00.2'
20240905@101850.5026 dk6ac15gomqgfeobv9l65jih34 Query : use flama_phc
20240905@101850.5029 dk6ac15gomqgfeobv9l65jih34 Query : select st.usalote valor from st where st.ref = '324.1847.00.1'
20240905@101850.5044 dk6ac15gomqgfeobv9l65jih34 Query : use flama_phc
20240905@101850.5047 dk6ac15gomqgfeobv9l65jih34 Query : select st.usalote valor from st where st.ref = '324.692.00.01'
20240905@101850.5060 dk6ac15gomqgfeobv9l65jih34 Query : use flama_phc
20240905@101850.5063 dk6ac15gomqgfeobv9l65jih34 Query : select st.usalote valor from st where st.ref = '324.681.00.01'
20240905@101850.5125 dk6ac15gomqgfeobv9l65jih34 Query : use flama_phc
20240905@101850.5129 dk6ac15gomqgfeobv9l65jih34 Query : select top 1 errorresult result ,errornumber errornumber ,descriptionpt description ,isnull(descriptionen,'') descriptionen ,isnull(descriptionfr,'') descriptionfr from wserrorcodes where errornumber = -116
20240905@101850.5221 dk6ac15gomqgfeobv9l65jih34 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1849';
20240905@101850.5255 dk6ac15gomqgfeobv9l65jih34 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1849';

20240905@110946.7260 cbn9t9fdbeaj9kcel19i27usrk Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1850';
20240905@110946.7319 cbn9t9fdbeaj9kcel19i27usrk Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1850';
20240905@110946.7352 cbn9t9fdbeaj9kcel19i27usrk Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1850';
20240905@110946.7389 cbn9t9fdbeaj9kcel19i27usrk Query : use flama_phc
20240905@110946.7393 cbn9t9fdbeaj9kcel19i27usrk Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240905@110946.7550 cbn9t9fdbeaj9kcel19i27usrk Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.1317.00.1'
20240905@110946.8760 cbn9t9fdbeaj9kcel19i27usrk 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 = 2400458 and bi.ref ='324.1317.00.1' and bi.lordem =20000
20240905@110946.9118 cbn9t9fdbeaj9kcel19i27usrk 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 = 'cps24042433400,652000002 ' 
20240905@110946.9455 cbn9t9fdbeaj9kcel19i27usrk Query : use flama_phc
20240905@110946.9459 cbn9t9fdbeaj9kcel19i27usrk Query : select top 1 1 valor from ts where ts.ndos = 61
20240905@110946.9573 cbn9t9fdbeaj9kcel19i27usrk Query : use flama_phc
20240905@110946.9577 cbn9t9fdbeaj9kcel19i27usrk 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')
20240905@110946.9654 cbn9t9fdbeaj9kcel19i27usrk 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
20240905@110946.9848 cbn9t9fdbeaj9kcel19i27usrk Query : use flama_phc
20240905@110946.9853 cbn9t9fdbeaj9kcel19i27usrk Query : select top 1 ~inactivo valor from fl where no = '202441' and estab = 00 order by inactivo desc
20240905@110946.9986 cbn9t9fdbeaj9kcel19i27usrk Query : use flama_phc
20240905@110946.9990 cbn9t9fdbeaj9kcel19i27usrk Query : select 1 valor from ts where ndos = 61
20240905@110947.9000 cbn9t9fdbeaj9kcel19i27usrk Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240905@110947.2900 cbn9t9fdbeaj9kcel19i27usrk Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bo' and documentnumber = 61
20240905@110947.4200 cbn9t9fdbeaj9kcel19i27usrk Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240905@110947.6000 cbn9t9fdbeaj9kcel19i27usrk Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bo2' and documentnumber = 61
20240905@110947.7100 cbn9t9fdbeaj9kcel19i27usrk Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240905@110947.8900 cbn9t9fdbeaj9kcel19i27usrk Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bo3' and documentnumber = 61
20240905@110947.1000 cbn9t9fdbeaj9kcel19i27usrk 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
20240905@110947.2480 cbn9t9fdbeaj9kcel19i27usrk Query : select top 1 bo.obrano valor from bo bo where bo.ndos = 61 and boano=2024 order by obrano desc
20240905@110947.3630 cbn9t9fdbeaj9kcel19i27usrk Query : select top 1 bo.obrano valor from bo bo where bo.ndos = 61 and boano=2024 order by obrano desc
20240905@110947.3950 cbn9t9fdbeaj9kcel19i27usrk Query : use flama_phc
20240905@110947.4030 cbn9t9fdbeaj9kcel19i27usrk Query : select top 1 no,estab,nome, morada, local,codpost,ncont,pncont,pais,inactivo,motiseimp,codmotiseimp from fl where no='202441' and estab=00
20240905@110947.5300 cbn9t9fdbeaj9kcel19i27usrk Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240905@110947.5530 cbn9t9fdbeaj9kcel19i27usrk Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bo3' and documentnumber = 61
20240905@110947.6140 cbn9t9fdbeaj9kcel19i27usrk Query : insert into bo3 (bo3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66d986967666d9836b09',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut')
20240905@110947.6860 cbn9t9fdbeaj9kcel19i27usrk Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240905@110947.7060 cbn9t9fdbeaj9kcel19i27usrk Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bo2' and documentnumber = 61
20240905@110947.7220 cbn9t9fdbeaj9kcel19i27usrk Query : insert into bo2 (bo2stamp, tiposaft, idserie,cambio,cambiofixo,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66d986967666d9836b09','--','bo',1.1160195303417809811 ,1,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut')
20240905@110947.9600 cbn9t9fdbeaj9kcel19i27usrk Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240905@110947.9860 cbn9t9fdbeaj9kcel19i27usrk Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bo' and documentnumber = 61
20240905@110947.1004 cbn9t9fdbeaj9kcel19i27usrk 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 ('aut66d986967666d9836b09','guia r. fornecedor','2024-09-05',61,2402483,?,?,?,?,?,?,?,?,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')
20240905@110950.8929 cbn9t9fdbeaj9kcel19i27usrk Query : use flama_phc
20240905@110950.8933 cbn9t9fdbeaj9kcel19i27usrk Query : select st.usalote valor from st where st.ref = '324.1317.00.1'
20240905@110950.8958 cbn9t9fdbeaj9kcel19i27usrk Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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.1317.00.1'
20240905@110950.9136 cbn9t9fdbeaj9kcel19i27usrk Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240905@110950.9155 cbn9t9fdbeaj9kcel19i27usrk Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 61
20240905@110950.9172 cbn9t9fdbeaj9kcel19i27usrk Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240905@110950.9188 cbn9t9fdbeaj9kcel19i27usrk Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 61
20240905@110950.9200 cbn9t9fdbeaj9kcel19i27usrk Query : select sestamp valor from se where ref ='324.1317.00.1' and lote = 'r2400458200a'
20240905@110950.9215 cbn9t9fdbeaj9kcel19i27usrk Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240905@110950.9232 cbn9t9fdbeaj9kcel19i27usrk Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'se' and documentnumber = 0
20240905@110950.9242 cbn9t9fdbeaj9kcel19i27usrk Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240905@110950.9257 cbn9t9fdbeaj9kcel19i27usrk Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'se' and documentnumber = 0
20240905@110950.9269 cbn9t9fdbeaj9kcel19i27usrk Query : insert into se (sestamp,ref, lote, data,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66d982389966d9836ee1',?,?,'20240905',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut;','aut;')
20240905@110950.9997 cbn9t9fdbeaj9kcel19i27usrk Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240905@110951.1300 cbn9t9fdbeaj9kcel19i27usrk Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240905@110951.3000 cbn9t9fdbeaj9kcel19i27usrk Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 61
20240905@110951.4400 cbn9t9fdbeaj9kcel19i27usrk Query : insert into bi2 (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut66d988760366d9836f00','aut66d986967666d9836b09',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 = 'aut66d986967666d9836b09'
20240905@110951.2140 cbn9t9fdbeaj9kcel19i27usrk Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240905@110951.2330 cbn9t9fdbeaj9kcel19i27usrk Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 61
20240905@110951.2530 cbn9t9fdbeaj9kcel19i27usrk 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 'aut66d988760366d9836f00',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut',bo.obrano, 1650, 1650*.0000000 ,bo.no, bo.estab,bo.nmdos ,bo.ndos, bo.obranome,bo.fechada, bo.dataobra ,bo.dataobra ,bo.dataopen,bo.datafecho,bo.local, bo.morada ,bo.codpost, bo.nome,bo.bostamp,10000 ,43.01,43.01*200.48,43.01,43.01*200.48 ,0,0,'un ','' ,bo.marcada,1 ,43.01*1650,43.01*1650*200.48 ,47.971000,47.971000*200.48 ,47.971000,47.971000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,43.01,43.01*200.48,43.01*1650,43.01*1650*200.48,'cps24042433400,652000002 ',48,48*1650,48,48*1650,?,?,?,4 from bo bo where bo.bostamp = 'aut66d986967666d9836b09'
20240905@111015.4987 cbn9t9fdbeaj9kcel19i27usrk Query : use flama_phc
20240905@111015.4995 cbn9t9fdbeaj9kcel19i27usrk Query : declare @bostamp varchar(25) = 'aut66d986967666d9836b09' ,@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 
20240905@111032.2751 cbn9t9fdbeaj9kcel19i27usrk Query : use flama_phc
20240905@111032.2755 cbn9t9fdbeaj9kcel19i27usrk Query : select 1 valor from bo where bo.bostamp = 'aut66d986967666d9836b09'
20240905@111032.2863 cbn9t9fdbeaj9kcel19i27usrk 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) = 'aut66d986967666d9836b09' 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 
20240905@111034.9948 cbn9t9fdbeaj9kcel19i27usrk Query : use flama_phc
20240905@111034.9952 cbn9t9fdbeaj9kcel19i27usrk Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240905@111035.1100 cbn9t9fdbeaj9kcel19i27usrk Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1850';
20240905@111035.4800 cbn9t9fdbeaj9kcel19i27usrk Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1850';

20240905@120925.3914 2112lh38ndnlcmk96a6okbouer Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1851';
20240905@120925.4129 2112lh38ndnlcmk96a6okbouer Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1851';
20240905@120925.4208 2112lh38ndnlcmk96a6okbouer Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1851';
20240905@120925.4751 2112lh38ndnlcmk96a6okbouer Query : use flama_phc
20240905@120925.4755 2112lh38ndnlcmk96a6okbouer Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240905@120925.5539 2112lh38ndnlcmk96a6okbouer Query : use flama_phc
20240905@120925.5544 2112lh38ndnlcmk96a6okbouer Query : select no, estab,szadrsdesc from szadrs where u_coddest=6852
20240905@120925.6020 2112lh38ndnlcmk96a6okbouer 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'
20240905@120925.6693 2112lh38ndnlcmk96a6okbouer 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'
20240905@120925.6888 2112lh38ndnlcmk96a6okbouer Query : use flama_phc
20240905@120925.6893 2112lh38ndnlcmk96a6okbouer Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20240905@120925.7180 2112lh38ndnlcmk96a6okbouer Query : use flama_phc
20240905@120925.7184 2112lh38ndnlcmk96a6okbouer Query : select top 1 1 valor from td where td.ndoc = 39
20240905@120925.7565 2112lh38ndnlcmk96a6okbouer Query : use flama_phc
20240905@120925.7569 2112lh38ndnlcmk96a6okbouer 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')
20240905@120925.7770 2112lh38ndnlcmk96a6okbouer 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
20240905@120925.8175 2112lh38ndnlcmk96a6okbouer Query : use flama_phc
20240905@120925.8179 2112lh38ndnlcmk96a6okbouer Query : select top 1 ~inactivo valor from cl where no = '102265' and estab = 0 order by inactivo desc
20240905@120925.8393 2112lh38ndnlcmk96a6okbouer Query : use flama_phc
20240905@120925.8397 2112lh38ndnlcmk96a6okbouer Query : select top 1 tipodoc,regrd from td where ndoc = 39
20240905@120925.8698 2112lh38ndnlcmk96a6okbouer Query : use flama_phc
20240905@120925.8703 2112lh38ndnlcmk96a6okbouer Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20240905@120925.9204 2112lh38ndnlcmk96a6okbouer Query : use flama_phc
20240905@120925.9209 2112lh38ndnlcmk96a6okbouer Query : select szadrsstamp valor from szadrs where szadrsdesc='espaço 85'
20240905@120925.9592 2112lh38ndnlcmk96a6okbouer Query : use flama_phc
20240905@120925.9597 2112lh38ndnlcmk96a6okbouer Query : select 1 valor from td where ndoc = 39
20240905@120925.9707 2112lh38ndnlcmk96a6okbouer Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20240905@120925.9847 2112lh38ndnlcmk96a6okbouer Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240905@120925.9865 2112lh38ndnlcmk96a6okbouer Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20240905@120925.9887 2112lh38ndnlcmk96a6okbouer Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240905@120925.9905 2112lh38ndnlcmk96a6okbouer Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20240905@120925.9943 2112lh38ndnlcmk96a6okbouer Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240905@120925.9962 2112lh38ndnlcmk96a6okbouer Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20240905@120925.9979 2112lh38ndnlcmk96a6okbouer Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240905@120926.4280 2112lh38ndnlcmk96a6okbouer Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240905@120926.7520 2112lh38ndnlcmk96a6okbouer Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240905@120926.7730 2112lh38ndnlcmk96a6okbouer Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20240905@120926.7950 2112lh38ndnlcmk96a6okbouer Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut66d997382366d99165f3' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20240905@120926.2866 2112lh38ndnlcmk96a6okbouer Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240905@120926.2892 2112lh38ndnlcmk96a6okbouer Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20240905@120926.2942 2112lh38ndnlcmk96a6okbouer Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20240905@120926.3091 2112lh38ndnlcmk96a6okbouer Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20240905@120926.3237 2112lh38ndnlcmk96a6okbouer Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20240905@120926.3390 2112lh38ndnlcmk96a6okbouer Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20240905@120926.3558 2112lh38ndnlcmk96a6okbouer Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20240905@120926.3692 2112lh38ndnlcmk96a6okbouer Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20240905@120926.3816 2112lh38ndnlcmk96a6okbouer Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut66d997382366d99165f3',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20240905@120926.6921 2112lh38ndnlcmk96a6okbouer Query : select top 1 fno valor from wsftdata order by fno desc
20240905@120926.7222 2112lh38ndnlcmk96a6okbouer Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240905@120926.7240 2112lh38ndnlcmk96a6okbouer Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20240905@120926.7267 2112lh38ndnlcmk96a6okbouer Query : select 'normal' from dummy
20240905@120926.7822 2112lh38ndnlcmk96a6okbouer Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut66d997382366d99165f3',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',623,102265,0,'2024-09-05',39,'euro',0,0,2024 ,?,?)
20240905@120927.3930 2112lh38ndnlcmk96a6okbouer Query : use flama_phc
20240905@120927.3980 2112lh38ndnlcmk96a6okbouer Query : select st.usalote valor from st where st.ref = '304.421.00.04'
20240905@120927.4540 2112lh38ndnlcmk96a6okbouer Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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'
20240905@120927.1314 2112lh38ndnlcmk96a6okbouer Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240905@120927.1333 2112lh38ndnlcmk96a6okbouer Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240905@120927.1366 2112lh38ndnlcmk96a6okbouer Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240905@120927.1384 2112lh38ndnlcmk96a6okbouer Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240905@120927.1396 2112lh38ndnlcmk96a6okbouer Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240905@120927.1438 2112lh38ndnlcmk96a6okbouer Query : select sestamp valor from se where ref ='304.421.00.04' and lote = '240896'
20240905@120927.1616 2112lh38ndnlcmk96a6okbouer Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240905@120927.1671 2112lh38ndnlcmk96a6okbouer Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240905@120927.1687 2112lh38ndnlcmk96a6okbouer Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66d995817366d9916727','aut66d997382366d99165f3' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240905@120927.1966 2112lh38ndnlcmk96a6okbouer Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240905@120927.1993 2112lh38ndnlcmk96a6okbouer Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240905@120927.2037 2112lh38ndnlcmk96a6okbouer Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem) values ('aut66d995817366d9916727',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',8.000 ,'aut66d997382366d99165f3' ,0,0 ,2,23.00,10000,?,?,?,?)
20240905@120927.4862 2112lh38ndnlcmk96a6okbouer Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240905@120927.4886 2112lh38ndnlcmk96a6okbouer Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240905@120927.4913 2112lh38ndnlcmk96a6okbouer Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240905@120927.4929 2112lh38ndnlcmk96a6okbouer Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240905@120927.4939 2112lh38ndnlcmk96a6okbouer Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240905@120927.4955 2112lh38ndnlcmk96a6okbouer Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240905@120927.4972 2112lh38ndnlcmk96a6okbouer Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240905@120927.4985 2112lh38ndnlcmk96a6okbouer Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66d991872866d9916778','aut66d997382366d99165f3' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240905@120927.4990 2112lh38ndnlcmk96a6okbouer Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240905@120927.5006 2112lh38ndnlcmk96a6okbouer Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240905@120927.5036 2112lh38ndnlcmk96a6okbouer Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66d991872866d9916778',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66d997382366d99165f3' ,0,0 ,2,23.00,20000,?,?,?)
20240905@120927.5398 2112lh38ndnlcmk96a6okbouer Query : use flama_phc
20240905@120927.5402 2112lh38ndnlcmk96a6okbouer Query : select st.usalote valor from st where st.ref = '304.421.00.04'
20240905@120927.5426 2112lh38ndnlcmk96a6okbouer Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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'
20240905@120927.5442 2112lh38ndnlcmk96a6okbouer Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240905@120927.5461 2112lh38ndnlcmk96a6okbouer Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240905@120927.5489 2112lh38ndnlcmk96a6okbouer Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240905@120927.5505 2112lh38ndnlcmk96a6okbouer Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240905@120927.5516 2112lh38ndnlcmk96a6okbouer Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240905@120927.5532 2112lh38ndnlcmk96a6okbouer Query : select sestamp valor from se where ref ='304.421.00.04' and lote = '240896'
20240905@120927.5547 2112lh38ndnlcmk96a6okbouer Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240905@120927.5562 2112lh38ndnlcmk96a6okbouer Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240905@120927.5574 2112lh38ndnlcmk96a6okbouer Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66d996073366d9916787','aut66d997382366d99165f3' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240905@120927.5578 2112lh38ndnlcmk96a6okbouer Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240905@120927.5593 2112lh38ndnlcmk96a6okbouer Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240905@120927.5623 2112lh38ndnlcmk96a6okbouer Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem) values ('aut66d996073366d9916787',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',16.000 ,'aut66d997382366d99165f3' ,0,0 ,2,23.00,40000,?,?,?,?)
20240905@120927.5926 2112lh38ndnlcmk96a6okbouer Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240905@120927.5947 2112lh38ndnlcmk96a6okbouer Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240905@120927.5976 2112lh38ndnlcmk96a6okbouer Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240905@120927.5994 2112lh38ndnlcmk96a6okbouer Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240905@120927.6002 2112lh38ndnlcmk96a6okbouer Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240905@120927.6014 2112lh38ndnlcmk96a6okbouer Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240905@120927.6029 2112lh38ndnlcmk96a6okbouer Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240905@120927.6042 2112lh38ndnlcmk96a6okbouer Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66d994253766d9916792','aut66d997382366d99165f3' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240905@120927.6048 2112lh38ndnlcmk96a6okbouer Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240905@120927.6064 2112lh38ndnlcmk96a6okbouer Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240905@120927.6129 2112lh38ndnlcmk96a6okbouer Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66d994253766d9916792',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66d997382366d99165f3' ,0,0 ,2,23.00,50000,?,?,?)
20240905@120927.6474 2112lh38ndnlcmk96a6okbouer Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut66d997382366d99165f3','2405756','wait',39,'adm09112754980.682000002')
20240905@120927.6938 2112lh38ndnlcmk96a6okbouer Query : use flama_phc
20240905@120927.6942 2112lh38ndnlcmk96a6okbouer Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240905@120927.7158 2112lh38ndnlcmk96a6okbouer Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1851';
20240905@120927.7236 2112lh38ndnlcmk96a6okbouer Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1851';
20240905@120927.7404 2112lh38ndnlcmk96a6okbouer Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1851';
20240905@120927.7471 2112lh38ndnlcmk96a6okbouer Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1851';

20240905@141448.8353 vi8gud5d843qerue5s8t01efja Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1852';
20240905@141448.8508 vi8gud5d843qerue5s8t01efja Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1852';
20240905@141448.8557 vi8gud5d843qerue5s8t01efja Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1852';
20240905@141448.8607 vi8gud5d843qerue5s8t01efja Query : use flama_phc
20240905@141448.8611 vi8gud5d843qerue5s8t01efja Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240905@141448.8694 vi8gud5d843qerue5s8t01efja Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.1321.00.1'
20240905@141448.8828 vi8gud5d843qerue5s8t01efja 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 = 2400495 and bi.ref ='324.1321.00.1' and bi.lordem =20000
20240905@141448.9171 vi8gud5d843qerue5s8t01efja 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 = 'cps24050935100,769000002 ' 
20240905@141449.6340 vi8gud5d843qerue5s8t01efja Query : use flama_phc
20240905@141449.6380 vi8gud5d843qerue5s8t01efja Query : select top 1 1 valor from ts where ts.ndos = 61
20240905@141449.6780 vi8gud5d843qerue5s8t01efja Query : use flama_phc
20240905@141449.6810 vi8gud5d843qerue5s8t01efja 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')
20240905@141449.7310 vi8gud5d843qerue5s8t01efja 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
20240905@141449.7860 vi8gud5d843qerue5s8t01efja Query : use flama_phc
20240905@141449.7890 vi8gud5d843qerue5s8t01efja Query : select top 1 ~inactivo valor from fl where no = '202441' and estab = 00 order by inactivo desc
20240905@141449.8580 vi8gud5d843qerue5s8t01efja Query : use flama_phc
20240905@141449.8610 vi8gud5d843qerue5s8t01efja Query : select 1 valor from ts where ndos = 61
20240905@141449.8830 vi8gud5d843qerue5s8t01efja Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240905@141449.9180 vi8gud5d843qerue5s8t01efja Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bo' and documentnumber = 61
20240905@141449.9560 vi8gud5d843qerue5s8t01efja Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240905@141449.9940 vi8gud5d843qerue5s8t01efja Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bo2' and documentnumber = 61
20240905@141449.1003 vi8gud5d843qerue5s8t01efja Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240905@141449.1019 vi8gud5d843qerue5s8t01efja Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bo3' and documentnumber = 61
20240905@141449.1028 vi8gud5d843qerue5s8t01efja 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
20240905@141449.1050 vi8gud5d843qerue5s8t01efja Query : select top 1 bo.obrano valor from bo bo where bo.ndos = 61 and boano=2024 order by obrano desc
20240905@141449.1075 vi8gud5d843qerue5s8t01efja Query : select top 1 bo.obrano valor from bo bo where bo.ndos = 61 and boano=2024 order by obrano desc
20240905@141449.1096 vi8gud5d843qerue5s8t01efja Query : use flama_phc
20240905@141449.1105 vi8gud5d843qerue5s8t01efja Query : select top 1 no,estab,nome, morada, local,codpost,ncont,pncont,pais,inactivo,motiseimp,codmotiseimp from fl where no='202441' and estab=00
20240905@141449.1132 vi8gud5d843qerue5s8t01efja Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240905@141449.1149 vi8gud5d843qerue5s8t01efja Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bo3' and documentnumber = 61
20240905@141449.1170 vi8gud5d843qerue5s8t01efja Query : insert into bo3 (bo3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66d9a0185766d9aec91a',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut')
20240905@141449.1185 vi8gud5d843qerue5s8t01efja Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240905@141449.1209 vi8gud5d843qerue5s8t01efja Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bo2' and documentnumber = 61
20240905@141449.1220 vi8gud5d843qerue5s8t01efja Query : insert into bo2 (bo2stamp, tiposaft, idserie,cambio,cambiofixo,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66d9a0185766d9aec91a','--','bo',1.1159189250740150307 ,1,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut')
20240905@141449.1242 vi8gud5d843qerue5s8t01efja Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240905@141449.1258 vi8gud5d843qerue5s8t01efja Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bo' and documentnumber = 61
20240905@141449.1274 vi8gud5d843qerue5s8t01efja 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 ('aut66d9a0185766d9aec91a','guia r. fornecedor','2024-09-05',61,2402493,?,?,?,?,?,?,?,?,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')
20240905@141449.1860 vi8gud5d843qerue5s8t01efja Query : use flama_phc
20240905@141449.1863 vi8gud5d843qerue5s8t01efja Query : select st.usalote valor from st where st.ref = '324.1321.00.1'
20240905@141449.1900 vi8gud5d843qerue5s8t01efja Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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.1321.00.1'
20240905@141449.2062 vi8gud5d843qerue5s8t01efja Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240905@141449.2080 vi8gud5d843qerue5s8t01efja Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 61
20240905@141449.2099 vi8gud5d843qerue5s8t01efja Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240905@141449.2116 vi8gud5d843qerue5s8t01efja Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 61
20240905@141449.2126 vi8gud5d843qerue5s8t01efja Query : select sestamp valor from se where ref ='324.1321.00.1' and lote = 'r2400495200a'
20240905@141449.2145 vi8gud5d843qerue5s8t01efja Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240905@141449.2162 vi8gud5d843qerue5s8t01efja Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'se' and documentnumber = 0
20240905@141449.2173 vi8gud5d843qerue5s8t01efja Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240905@141449.2187 vi8gud5d843qerue5s8t01efja Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'se' and documentnumber = 0
20240905@141449.2218 vi8gud5d843qerue5s8t01efja Query : insert into se (sestamp,ref, lote, data,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66d9a8854566d9aec935',?,?,'20240905',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut;','aut;')
20240905@141449.2764 vi8gud5d843qerue5s8t01efja Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240905@141449.2789 vi8gud5d843qerue5s8t01efja Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240905@141449.2807 vi8gud5d843qerue5s8t01efja Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 61
20240905@141449.2821 vi8gud5d843qerue5s8t01efja Query : insert into bi2 (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut66d9a3276866d9aec944','aut66d9a0185766d9aec91a',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 = 'aut66d9a0185766d9aec91a'
20240905@141449.3023 vi8gud5d843qerue5s8t01efja Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240905@141449.3040 vi8gud5d843qerue5s8t01efja Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 61
20240905@141449.3057 vi8gud5d843qerue5s8t01efja 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 'aut66d9a3276866d9aec944',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut',bo.obrano, 1650, 1650*.0000000 ,bo.no, bo.estab,bo.nmdos ,bo.ndos, bo.obranome,bo.fechada, bo.dataobra ,bo.dataobra ,bo.dataopen,bo.datafecho,bo.local, bo.morada ,bo.codpost, bo.nome,bo.bostamp,10000 ,43.91,43.91*200.48,43.91,43.91*200.48 ,0,0,'un ',' ' ,bo.marcada,1 ,43.91*1650,43.91*1650*200.48 ,.000000,.000000*200.48 ,.000000,.000000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,43.91,43.91*200.48,43.91*1650,43.91*1650*200.48,'cps24050935100,769000002 ',49,49*1650,49,49*1650,?,?,?,4 from bo bo where bo.bostamp = 'aut66d9a0185766d9aec91a'
20240905@141456.9131 vi8gud5d843qerue5s8t01efja Query : use flama_phc
20240905@141456.9145 vi8gud5d843qerue5s8t01efja Query : declare @bostamp varchar(25) = 'aut66d9a0185766d9aec91a' ,@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 
20240905@141509.3140 vi8gud5d843qerue5s8t01efja Query : use flama_phc
20240905@141509.3221 vi8gud5d843qerue5s8t01efja Query : select 1 valor from bo where bo.bostamp = 'aut66d9a0185766d9aec91a'
20240905@141509.3263 vi8gud5d843qerue5s8t01efja 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) = 'aut66d9a0185766d9aec91a' 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 
20240905@141511.6553 vi8gud5d843qerue5s8t01efja Query : use flama_phc
20240905@141511.6556 vi8gud5d843qerue5s8t01efja Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240905@141511.6604 vi8gud5d843qerue5s8t01efja Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1852';
20240905@141511.6632 vi8gud5d843qerue5s8t01efja Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1852';

20240906@073039.3870 un40n3qg009bv29tspe8030l3h Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1853';
20240906@073039.4590 un40n3qg009bv29tspe8030l3h Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1853';
20240906@073039.4880 un40n3qg009bv29tspe8030l3h Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1853';
20240906@073039.1409 d09qmmo1eiu8o6gjntgqdli815 Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240906@073039.1421 d09qmmo1eiu8o6gjntgqdli815 Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240906@073039.1474 d09qmmo1eiu8o6gjntgqdli815 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1854';
20240906@073039.1529 d09qmmo1eiu8o6gjntgqdli815 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1854';
20240906@073039.1583 d09qmmo1eiu8o6gjntgqdli815 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1854';
20240906@073039.1611 d09qmmo1eiu8o6gjntgqdli815 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1854';
20240906@073039.1659 d09qmmo1eiu8o6gjntgqdli815 Query : use flama_phc
20240906@073039.1663 d09qmmo1eiu8o6gjntgqdli815 Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240906@073039.1771 d09qmmo1eiu8o6gjntgqdli815 Query : select no, estab,szadrsdesc from szadrs where u_coddest=2
20240906@073039.1873 d09qmmo1eiu8o6gjntgqdli815 Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.4585.00.1'
20240906@073039.2004 d09qmmo1eiu8o6gjntgqdli815 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =001 and bo.boano =2024 and bo.obrano = 0001791 and bi.ref ='324.4585.00.1' and bi.lordem =10000
20240906@073039.2395 d09qmmo1eiu8o6gjntgqdli815 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 = 'av24082759893.012000001 ' 
20240906@073039.2721 d09qmmo1eiu8o6gjntgqdli815 Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.4585.00.1'
20240906@073039.2741 d09qmmo1eiu8o6gjntgqdli815 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =001 and bo.boano =2024 and bo.obrano = 0001791 and bi.ref ='324.4585.00.1' and bi.lordem =10000
20240906@073039.2767 d09qmmo1eiu8o6gjntgqdli815 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 = 'av24082759893.012000001 ' 
20240906@073039.2789 d09qmmo1eiu8o6gjntgqdli815 Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.4521.00.1'
20240906@073039.2919 d09qmmo1eiu8o6gjntgqdli815 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =001 and bo.boano =2024 and bo.obrano = 0001791 and bi.ref ='324.4521.00.1' and bi.lordem =20000
20240906@073039.3333 d09qmmo1eiu8o6gjntgqdli815 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 = 'av24082759921.104000002 ' 
20240906@073039.3660 d09qmmo1eiu8o6gjntgqdli815 Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.4960.00.1'
20240906@073039.3796 d09qmmo1eiu8o6gjntgqdli815 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =001 and bo.boano =2024 and bo.obrano = 0001791 and bi.ref ='324.4960.00.1' and bi.lordem =30000
20240906@073039.4146 d09qmmo1eiu8o6gjntgqdli815 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 = 'av24082759950.180000003 ' 
20240906@073039.4474 d09qmmo1eiu8o6gjntgqdli815 Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.4988.00.1'
20240906@073039.4646 d09qmmo1eiu8o6gjntgqdli815 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =001 and bo.boano =2024 and bo.obrano = 0001791 and bi.ref ='324.4988.00.1' and bi.lordem =40000
20240906@073039.5034 d09qmmo1eiu8o6gjntgqdli815 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 = 'av24082759973.881000004 ' 
20240906@073039.5343 d09qmmo1eiu8o6gjntgqdli815 Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.719.00.01'
20240906@073039.5468 d09qmmo1eiu8o6gjntgqdli815 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =001 and bo.boano =2024 and bo.obrano = 0001791 and bi.ref ='324.719.00.01' and bi.lordem =50000
20240906@073039.5826 d09qmmo1eiu8o6gjntgqdli815 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 = 'av24082760000.192000005 ' 
20240906@073039.6152 d09qmmo1eiu8o6gjntgqdli815 Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.4964.00.1'
20240906@073039.6284 d09qmmo1eiu8o6gjntgqdli815 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =001 and bo.boano =2024 and bo.obrano = 0001791 and bi.ref ='324.4964.00.1' and bi.lordem =60000
20240906@073039.6613 d09qmmo1eiu8o6gjntgqdli815 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 = 'av24082760009.738000006 ' 
20240906@073039.7000 d09qmmo1eiu8o6gjntgqdli815 Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.4961.00.1'
20240906@073039.7130 d09qmmo1eiu8o6gjntgqdli815 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =001 and bo.boano =2024 and bo.obrano = 0001791 and bi.ref ='324.4961.00.1' and bi.lordem =70000
20240906@073039.7711 d09qmmo1eiu8o6gjntgqdli815 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 = 'av24082760015.300000007 ' 
20240906@073039.8040 d09qmmo1eiu8o6gjntgqdli815 Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.497.00.01'
20240906@073039.8201 d09qmmo1eiu8o6gjntgqdli815 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =001 and bo.boano =2024 and bo.obrano = 0001791 and bi.ref ='324.497.00.01' and bi.lordem =80000
20240906@073039.8576 d09qmmo1eiu8o6gjntgqdli815 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 = 'av24082760024.034000008 ' 
20240906@073039.8908 d09qmmo1eiu8o6gjntgqdli815 Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.4970.00.1'
20240906@073039.9038 d09qmmo1eiu8o6gjntgqdli815 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =001 and bo.boano =2024 and bo.obrano = 0001791 and bi.ref ='324.4970.00.1' and bi.lordem =90000
20240906@073039.9385 d09qmmo1eiu8o6gjntgqdli815 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 = 'av24082760030.503000009 ' 
20240906@073039.9709 d09qmmo1eiu8o6gjntgqdli815 Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.958.00.01'
20240906@073039.9833 d09qmmo1eiu8o6gjntgqdli815 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =001 and bo.boano =2024 and bo.obrano = 0001791 and bi.ref ='324.958.00.01' and bi.lordem =100000
20240906@073040.2570 d09qmmo1eiu8o6gjntgqdli815 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 = 'av24082760035.846000010 ' 
20240906@073040.6940 d09qmmo1eiu8o6gjntgqdli815 Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.969.00.01'
20240906@073040.8310 d09qmmo1eiu8o6gjntgqdli815 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =001 and bo.boano =2024 and bo.obrano = 0001791 and bi.ref ='324.969.00.01' and bi.lordem =110000
20240906@073040.1191 d09qmmo1eiu8o6gjntgqdli815 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 = 'av24082760046.345000011 ' 
20240906@073040.1503 d09qmmo1eiu8o6gjntgqdli815 Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.988.00.01'
20240906@073040.1625 d09qmmo1eiu8o6gjntgqdli815 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =001 and bo.boano =2024 and bo.obrano = 0001791 and bi.ref ='324.988.00.01' and bi.lordem =120000
20240906@073040.1976 d09qmmo1eiu8o6gjntgqdli815 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 = 'av24082760053.970000012 ' 
20240906@073040.2304 d09qmmo1eiu8o6gjntgqdli815 Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.988.00.01'
20240906@073040.2326 d09qmmo1eiu8o6gjntgqdli815 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =001 and bo.boano =2024 and bo.obrano = 0001791 and bi.ref ='324.988.00.01' and bi.lordem =120000
20240906@073040.2351 d09qmmo1eiu8o6gjntgqdli815 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 = 'av24082760053.970000012 ' 
20240906@073040.2373 d09qmmo1eiu8o6gjntgqdli815 Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.946.00.01'
20240906@073040.2503 d09qmmo1eiu8o6gjntgqdli815 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =001 and bo.boano =2024 and bo.obrano = 0001791 and bi.ref ='324.946.00.01' and bi.lordem =130000
20240906@073040.2819 d09qmmo1eiu8o6gjntgqdli815 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 = 'av24082760061.719000013 ' 
20240906@073040.3145 d09qmmo1eiu8o6gjntgqdli815 Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.642.00.01'
20240906@073040.3278 d09qmmo1eiu8o6gjntgqdli815 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =001 and bo.boano =2024 and bo.obrano = 0001791 and bi.ref ='324.642.00.01' and bi.lordem =140000
20240906@073040.3671 d09qmmo1eiu8o6gjntgqdli815 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 = 'av24082760067.828000014 ' 
20240906@073040.4013 d09qmmo1eiu8o6gjntgqdli815 Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.2231.00.2'
20240906@073040.4158 d09qmmo1eiu8o6gjntgqdli815 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =001 and bo.boano =2024 and bo.obrano = 0001791 and bi.ref ='324.2231.00.2' and bi.lordem =150000
20240906@073040.4516 d09qmmo1eiu8o6gjntgqdli815 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 = 'av24082760076.140000015 ' 
20240906@073040.4846 d09qmmo1eiu8o6gjntgqdli815 Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.1705.00.1'
20240906@073040.4971 d09qmmo1eiu8o6gjntgqdli815 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =001 and bo.boano =2024 and bo.obrano = 0001791 and bi.ref ='324.1705.00.1' and bi.lordem =160000
20240906@073040.5360 d09qmmo1eiu8o6gjntgqdli815 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 = 'av24082760095.271000016 ' 
20240906@073040.5694 d09qmmo1eiu8o6gjntgqdli815 Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.5501.00.1'
20240906@073040.5929 d09qmmo1eiu8o6gjntgqdli815 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =001 and bo.boano =2024 and bo.obrano = 0001791 and bi.ref ='324.5501.00.1' and bi.lordem =170000
20240906@073040.6304 d09qmmo1eiu8o6gjntgqdli815 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 = 'av24082760100.880000017 ' 
20240906@073040.6657 d09qmmo1eiu8o6gjntgqdli815 Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.5540.00.1'
20240906@073040.6802 d09qmmo1eiu8o6gjntgqdli815 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =001 and bo.boano =2024 and bo.obrano = 0001791 and bi.ref ='324.5540.00.1' and bi.lordem =180000
20240906@073040.7278 d09qmmo1eiu8o6gjntgqdli815 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 = 'av24082760110.442000018 ' 
20240906@073040.7831 d09qmmo1eiu8o6gjntgqdli815 Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.5396.00.1'
20240906@073040.7982 d09qmmo1eiu8o6gjntgqdli815 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =001 and bo.boano =2024 and bo.obrano = 0001791 and bi.ref ='324.5396.00.1' and bi.lordem =210000
20240906@073040.8344 d09qmmo1eiu8o6gjntgqdli815 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 = 'av24082760135.659000021 ' 
20240906@073040.8697 d09qmmo1eiu8o6gjntgqdli815 Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.1406.00.1'
20240906@073040.8834 d09qmmo1eiu8o6gjntgqdli815 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =001 and bo.boano =2024 and bo.obrano = 0001791 and bi.ref ='324.1406.00.1' and bi.lordem =220000
20240906@073040.9187 d09qmmo1eiu8o6gjntgqdli815 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 = 'av24082760142.518000022 ' 
20240906@073040.9535 d09qmmo1eiu8o6gjntgqdli815 Query : use flama_phc
20240906@073040.9540 d09qmmo1eiu8o6gjntgqdli815 Query : select top 1 1 valor from ts where ts.ndos = 5
20240906@073040.9662 d09qmmo1eiu8o6gjntgqdli815 Query : use flama_phc
20240906@073040.9668 d09qmmo1eiu8o6gjntgqdli815 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')
20240906@073040.9786 d09qmmo1eiu8o6gjntgqdli815 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
20240906@073041.8300 d09qmmo1eiu8o6gjntgqdli815 Query : use flama_phc
20240906@073041.8700 d09qmmo1eiu8o6gjntgqdli815 Query : select top 1 ~inactivo valor from fl where no = '100500' and estab = 0 order by inactivo desc
20240906@073041.4390 d09qmmo1eiu8o6gjntgqdli815 Query : use flama_phc
20240906@073041.4440 d09qmmo1eiu8o6gjntgqdli815 Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20240906@073041.5460 d09qmmo1eiu8o6gjntgqdli815 Query : use flama_phc
20240906@073041.5500 d09qmmo1eiu8o6gjntgqdli815 Query : select szadrsstamp valor from szadrs where szadrsdesc='n/instalaÇÕes sede'
20240906@073041.6270 d09qmmo1eiu8o6gjntgqdli815 Query : use flama_phc
20240906@073041.6300 d09qmmo1eiu8o6gjntgqdli815 Query : select 1 valor from ts where ndos = 5
20240906@073041.7240 d09qmmo1eiu8o6gjntgqdli815 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240906@073041.1041 d09qmmo1eiu8o6gjntgqdli815 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bo' and documentnumber = 5
20240906@073041.1205 d09qmmo1eiu8o6gjntgqdli815 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240906@073041.1224 d09qmmo1eiu8o6gjntgqdli815 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bo2' and documentnumber = 5
20240906@073041.1241 d09qmmo1eiu8o6gjntgqdli815 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240906@073041.1258 d09qmmo1eiu8o6gjntgqdli815 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bo3' and documentnumber = 5
20240906@073041.1269 d09qmmo1eiu8o6gjntgqdli815 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
20240906@073041.1417 d09qmmo1eiu8o6gjntgqdli815 Query : select top 1 bo.obrano valor from bo bo where bo.ndos = 5 and boano=2024 order by obrano desc
20240906@073041.1580 d09qmmo1eiu8o6gjntgqdli815 Query : select top 1 bo.obrano valor from wsbodata bo where bo.ndos = 5 and boano=2024 order by obrano desc
20240906@073041.1727 d09qmmo1eiu8o6gjntgqdli815 Query : use flama_phc
20240906@073041.1737 d09qmmo1eiu8o6gjntgqdli815 Query : select top 1 no,estab,nome, morada, local,codpost,ncont,pncont,pais,inactivo,motiseimp,codmotiseimp from fl where no='100500' and estab=0
20240906@073041.1843 d09qmmo1eiu8o6gjntgqdli815 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240906@073041.1864 d09qmmo1eiu8o6gjntgqdli815 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bo3' and documentnumber = 5
20240906@073041.1903 d09qmmo1eiu8o6gjntgqdli815 Query : insert into wsbo3data (bo3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66daa5280166daa1912a',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut')
20240906@073041.1984 d09qmmo1eiu8o6gjntgqdli815 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240906@073041.2005 d09qmmo1eiu8o6gjntgqdli815 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bo2' and documentnumber = 5
20240906@073041.2404 d09qmmo1eiu8o6gjntgqdli815 Query : insert into wsbo2data (bo2stamp, tiposaft, idserie,cambio,cambiofixo,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,xpddata,xpdhora,carga,descar) values ('aut66daa5280166daa1912a','ga','bo',0 ,0,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut','20240906','08:00',?,?)
20240906@073041.3779 d09qmmo1eiu8o6gjntgqdli815 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240906@073041.3801 d09qmmo1eiu8o6gjntgqdli815 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bo' and documentnumber = 5
20240906@073041.3824 d09qmmo1eiu8o6gjntgqdli815 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 ('aut66daa5280166daa1912a','trf entre armazéns a','2024-09-06',5,439,?,?,?,?,?,?,?,?,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',?)
20240906@073041.4655 d09qmmo1eiu8o6gjntgqdli815 Query : use flama_phc
20240906@073041.4660 d09qmmo1eiu8o6gjntgqdli815 Query : select st.usalote valor from st where st.ref = '324.4585.00.1'
20240906@073041.4784 d09qmmo1eiu8o6gjntgqdli815 Query : use flama_phc
20240906@073041.4787 d09qmmo1eiu8o6gjntgqdli815 Query : select st.stns valor from st where st.ref = '324.4585.00.1'
20240906@073041.4903 d09qmmo1eiu8o6gjntgqdli815 Query : use flama_phc
20240906@073041.4906 d09qmmo1eiu8o6gjntgqdli815 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.4585.00.1' and sa.armazem = 133 
20240906@073041.4986 d09qmmo1eiu8o6gjntgqdli815 Query : use flama_phc
20240906@073041.4990 d09qmmo1eiu8o6gjntgqdli815 Query : select st.stns valor from st where st.ref = '324.4585.00.1'
20240906@073041.5017 d09qmmo1eiu8o6gjntgqdli815 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.4585.00.1'
20240906@073041.5208 d09qmmo1eiu8o6gjntgqdli815 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240906@073041.5227 d09qmmo1eiu8o6gjntgqdli815 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 5
20240906@073041.5245 d09qmmo1eiu8o6gjntgqdli815 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240906@073041.5263 d09qmmo1eiu8o6gjntgqdli815 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 5
20240906@073041.5275 d09qmmo1eiu8o6gjntgqdli815 Query : select sestamp valor from se where ref ='324.4585.00.1' and lote = 'r2300381200a'
20240906@073041.5355 d09qmmo1eiu8o6gjntgqdli815 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240906@073041.5404 d09qmmo1eiu8o6gjntgqdli815 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240906@073041.5425 d09qmmo1eiu8o6gjntgqdli815 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 5
20240906@073041.5443 d09qmmo1eiu8o6gjntgqdli815 Query : insert into wsbi2data (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut66daa9369966daa19183','aut66daa5280166daa1912a',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 = 'aut66daa5280166daa1912a'
20240906@073041.5950 d09qmmo1eiu8o6gjntgqdli815 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240906@073041.5971 d09qmmo1eiu8o6gjntgqdli815 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 5
20240906@073041.5992 d09qmmo1eiu8o6gjntgqdli815 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 'aut66daa9369966daa19183',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,10000 ,96,96*200.48,96,96*200.48 ,0,0,'un ','' ,bo.marcada,1 ,96*1.000,96*1.000*200.48 ,42.430000,42.430000*200.48 ,42.430000,42.430000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,96,96*200.48,96*1.000,96*1.000*200.48,'av24082759893.012000001 ',96,96*1.000,96,96*1.000,?,?,?,?,4 from wsbodata bo where bo.bostamp = 'aut66daa5280166daa1912a'
20240906@073041.6577 d09qmmo1eiu8o6gjntgqdli815 Query : use flama_phc
20240906@073041.6580 d09qmmo1eiu8o6gjntgqdli815 Query : select st.usalote valor from st where st.ref = '324.4585.00.1'
20240906@073041.6598 d09qmmo1eiu8o6gjntgqdli815 Query : use flama_phc
20240906@073041.6602 d09qmmo1eiu8o6gjntgqdli815 Query : select st.stns valor from st where st.ref = '324.4585.00.1'
20240906@073041.6619 d09qmmo1eiu8o6gjntgqdli815 Query : use flama_phc
20240906@073041.6622 d09qmmo1eiu8o6gjntgqdli815 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.4585.00.1' and sa.armazem = 133 
20240906@073041.6650 d09qmmo1eiu8o6gjntgqdli815 Query : use flama_phc
20240906@073041.6654 d09qmmo1eiu8o6gjntgqdli815 Query : select st.stns valor from st where st.ref = '324.4585.00.1'
20240906@073041.6678 d09qmmo1eiu8o6gjntgqdli815 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.4585.00.1'
20240906@073041.6696 d09qmmo1eiu8o6gjntgqdli815 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240906@073041.6717 d09qmmo1eiu8o6gjntgqdli815 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 5
20240906@073041.6733 d09qmmo1eiu8o6gjntgqdli815 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240906@073041.6751 d09qmmo1eiu8o6gjntgqdli815 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 5
20240906@073041.6761 d09qmmo1eiu8o6gjntgqdli815 Query : select sestamp valor from se where ref ='324.4585.00.1' and lote = 'r2300381200a'
20240906@073041.6776 d09qmmo1eiu8o6gjntgqdli815 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240906@073041.6791 d09qmmo1eiu8o6gjntgqdli815 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240906@073041.6808 d09qmmo1eiu8o6gjntgqdli815 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 5
20240906@073041.6823 d09qmmo1eiu8o6gjntgqdli815 Query : insert into wsbi2data (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut66daa4567366daa191a5','aut66daa5280166daa1912a',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 = 'aut66daa5280166daa1912a'
20240906@073041.6987 d09qmmo1eiu8o6gjntgqdli815 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240906@073041.7008 d09qmmo1eiu8o6gjntgqdli815 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 5
20240906@073041.7027 d09qmmo1eiu8o6gjntgqdli815 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 'aut66daa4567366daa191a5',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,20000 ,96,96*200.48,96,96*200.48 ,0,0,'un ','' ,bo.marcada,1 ,96*1.000,96*1.000*200.48 ,42.430000,42.430000*200.48 ,42.430000,42.430000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,96,96*200.48,96*1.000,96*1.000*200.48,'av24082759893.012000001 ',96,96*1.000,96,96*1.000,?,?,?,?,4 from wsbodata bo where bo.bostamp = 'aut66daa5280166daa1912a'
20240906@073041.7347 d09qmmo1eiu8o6gjntgqdli815 Query : use flama_phc
20240906@073041.7353 d09qmmo1eiu8o6gjntgqdli815 Query : select st.usalote valor from st where st.ref = '324.4521.00.1'
20240906@073041.7369 d09qmmo1eiu8o6gjntgqdli815 Query : use flama_phc
20240906@073041.7372 d09qmmo1eiu8o6gjntgqdli815 Query : select st.stns valor from st where st.ref = '324.4521.00.1'
20240906@073041.7391 d09qmmo1eiu8o6gjntgqdli815 Query : use flama_phc
20240906@073041.7394 d09qmmo1eiu8o6gjntgqdli815 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.4521.00.1' and sa.armazem = 133 
20240906@073041.7464 d09qmmo1eiu8o6gjntgqdli815 Query : use flama_phc
20240906@073041.7467 d09qmmo1eiu8o6gjntgqdli815 Query : select st.stns valor from st where st.ref = '324.4521.00.1'
20240906@073041.7488 d09qmmo1eiu8o6gjntgqdli815 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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'
20240906@073041.7641 d09qmmo1eiu8o6gjntgqdli815 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240906@073041.7659 d09qmmo1eiu8o6gjntgqdli815 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 5
20240906@073041.7673 d09qmmo1eiu8o6gjntgqdli815 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240906@073041.7689 d09qmmo1eiu8o6gjntgqdli815 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 5
20240906@073041.7699 d09qmmo1eiu8o6gjntgqdli815 Query : select sestamp valor from se where ref ='324.4521.00.1' and lote = 'r2400052200a'
20240906@073041.7721 d09qmmo1eiu8o6gjntgqdli815 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240906@073041.7735 d09qmmo1eiu8o6gjntgqdli815 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240906@073041.7755 d09qmmo1eiu8o6gjntgqdli815 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 5
20240906@073041.7769 d09qmmo1eiu8o6gjntgqdli815 Query : insert into wsbi2data (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut66daa2345666daa191bc','aut66daa5280166daa1912a',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 = 'aut66daa5280166daa1912a'
20240906@073041.8011 d09qmmo1eiu8o6gjntgqdli815 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240906@073041.8246 d09qmmo1eiu8o6gjntgqdli815 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 5
20240906@073041.8266 d09qmmo1eiu8o6gjntgqdli815 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 'aut66daa2345666daa191bc',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut',bo.obrano, 8.000, 8.000*.0000000 ,bo.no, bo.estab,bo.nmdos ,bo.ndos, bo.obranome,bo.fechada, bo.dataobra ,bo.dataobra ,bo.dataopen,bo.datafecho,bo.local, bo.morada ,bo.codpost, bo.nome,bo.bostamp,30000 ,41.6,41.6*200.48,41.6,41.6*200.48 ,0,0,'un ',' ' ,bo.marcada,1 ,41.6*8.000,41.6*8.000*200.48 ,15.785000,15.785000*200.48 ,15.785000,15.785000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,41.6,41.6*200.48,41.6*8.000,41.6*8.000*200.48,'av24082759921.104000002 ',41.6,41.6*8.000,41.6,41.6*8.000,?,?,?,?,4 from wsbodata bo where bo.bostamp = 'aut66daa5280166daa1912a'
20240906@073041.8597 d09qmmo1eiu8o6gjntgqdli815 Query : use flama_phc
20240906@073041.8601 d09qmmo1eiu8o6gjntgqdli815 Query : select st.usalote valor from st where st.ref = '324.4960.00.1'
20240906@073041.8617 d09qmmo1eiu8o6gjntgqdli815 Query : use flama_phc
20240906@073041.8620 d09qmmo1eiu8o6gjntgqdli815 Query : select st.stns valor from st where st.ref = '324.4960.00.1'
20240906@073041.8637 d09qmmo1eiu8o6gjntgqdli815 Query : use flama_phc
20240906@073041.8640 d09qmmo1eiu8o6gjntgqdli815 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.4960.00.1' and sa.armazem = 133 
20240906@073041.8710 d09qmmo1eiu8o6gjntgqdli815 Query : use flama_phc
20240906@073041.8713 d09qmmo1eiu8o6gjntgqdli815 Query : select st.stns valor from st where st.ref = '324.4960.00.1'
20240906@073041.8733 d09qmmo1eiu8o6gjntgqdli815 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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'
20240906@073041.8885 d09qmmo1eiu8o6gjntgqdli815 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240906@073041.8902 d09qmmo1eiu8o6gjntgqdli815 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 5
20240906@073041.8919 d09qmmo1eiu8o6gjntgqdli815 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240906@073041.8936 d09qmmo1eiu8o6gjntgqdli815 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 5
20240906@073041.8965 d09qmmo1eiu8o6gjntgqdli815 Query : select sestamp valor from se where ref ='324.4960.00.1' and lote = 'r2100754100a'
20240906@073041.9235 d09qmmo1eiu8o6gjntgqdli815 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240906@073041.9252 d09qmmo1eiu8o6gjntgqdli815 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240906@073041.9273 d09qmmo1eiu8o6gjntgqdli815 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 5
20240906@073041.9368 d09qmmo1eiu8o6gjntgqdli815 Query : insert into wsbi2data (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut66daa0221766daa191e1','aut66daa5280166daa1912a',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 = 'aut66daa5280166daa1912a'
20240906@073041.9541 d09qmmo1eiu8o6gjntgqdli815 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240906@073041.9604 d09qmmo1eiu8o6gjntgqdli815 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 5
20240906@073041.9622 d09qmmo1eiu8o6gjntgqdli815 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 'aut66daa0221766daa191e1',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,40000 ,19.2,19.2*200.48,19.2,19.2*200.48 ,0,0,'un ','' ,bo.marcada,1 ,19.2*6.000,19.2*6.000*200.48 ,6.102000,6.102000*200.48 ,6.102000,6.102000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,19.2,19.2*200.48,19.2*6.000,19.2*6.000*200.48,'av24082759950.180000003 ',19.2,19.2*6.000,19.2,19.2*6.000,?,?,?,?,4 from wsbodata bo where bo.bostamp = 'aut66daa5280166daa1912a'
20240906@073041.9988 d09qmmo1eiu8o6gjntgqdli815 Query : use flama_phc
20240906@073041.9993 d09qmmo1eiu8o6gjntgqdli815 Query : select st.usalote valor from st where st.ref = '324.4988.00.1'
20240906@073042.1200 d09qmmo1eiu8o6gjntgqdli815 Query : use flama_phc
20240906@073042.2600 d09qmmo1eiu8o6gjntgqdli815 Query : select st.stns valor from st where st.ref = '324.4988.00.1'
20240906@073042.4700 d09qmmo1eiu8o6gjntgqdli815 Query : use flama_phc
20240906@073042.5000 d09qmmo1eiu8o6gjntgqdli815 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.4988.00.1' and sa.armazem = 133 
20240906@073042.1250 d09qmmo1eiu8o6gjntgqdli815 Query : use flama_phc
20240906@073042.1270 d09qmmo1eiu8o6gjntgqdli815 Query : select st.stns valor from st where st.ref = '324.4988.00.1'
20240906@073042.1680 d09qmmo1eiu8o6gjntgqdli815 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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.4988.00.1'
20240906@073042.3290 d09qmmo1eiu8o6gjntgqdli815 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240906@073042.3460 d09qmmo1eiu8o6gjntgqdli815 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 5
20240906@073042.3640 d09qmmo1eiu8o6gjntgqdli815 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240906@073042.3810 d09qmmo1eiu8o6gjntgqdli815 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 5
20240906@073042.3900 d09qmmo1eiu8o6gjntgqdli815 Query : select sestamp valor from se where ref ='324.4988.00.1' and lote = 'r2100754100a'
20240906@073042.4080 d09qmmo1eiu8o6gjntgqdli815 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240906@073042.4210 d09qmmo1eiu8o6gjntgqdli815 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240906@073042.4380 d09qmmo1eiu8o6gjntgqdli815 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 5
20240906@073042.4860 d09qmmo1eiu8o6gjntgqdli815 Query : insert into wsbi2data (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut66daa5726966daa1920a','aut66daa5280166daa1912a',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 = 'aut66daa5280166daa1912a'
20240906@073042.6480 d09qmmo1eiu8o6gjntgqdli815 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240906@073042.6680 d09qmmo1eiu8o6gjntgqdli815 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 5
20240906@073042.6840 d09qmmo1eiu8o6gjntgqdli815 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 'aut66daa5726966daa1920a',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut',bo.obrano, 8.000, 8.000*.0000000 ,bo.no, bo.estab,bo.nmdos ,bo.ndos, bo.obranome,bo.fechada, bo.dataobra ,bo.dataobra ,bo.dataopen,bo.datafecho,bo.local, bo.morada ,bo.codpost, bo.nome,bo.bostamp,50000 ,28.8,28.8*200.48,28.8,28.8*200.48 ,0,0,'un ','' ,bo.marcada,1 ,28.8*8.000,28.8*8.000*200.48 ,8.445000,8.445000*200.48 ,8.445000,8.445000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,28.8,28.8*200.48,28.8*8.000,28.8*8.000*200.48,'av24082759973.881000004 ',28.8,28.8*8.000,28.8,28.8*8.000,?,?,?,?,4 from wsbodata bo where bo.bostamp = 'aut66daa5280166daa1912a'
20240906@073042.1018 d09qmmo1eiu8o6gjntgqdli815 Query : use flama_phc
20240906@073042.1024 d09qmmo1eiu8o6gjntgqdli815 Query : select st.usalote valor from st where st.ref = '324.719.00.01'
20240906@073042.1040 d09qmmo1eiu8o6gjntgqdli815 Query : use flama_phc
20240906@073042.1056 d09qmmo1eiu8o6gjntgqdli815 Query : select st.stns valor from st where st.ref = '324.719.00.01'
20240906@073042.1117 d09qmmo1eiu8o6gjntgqdli815 Query : use flama_phc
20240906@073042.1121 d09qmmo1eiu8o6gjntgqdli815 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.719.00.01' and sa.armazem = 133 
20240906@073042.1217 d09qmmo1eiu8o6gjntgqdli815 Query : use flama_phc
20240906@073042.1221 d09qmmo1eiu8o6gjntgqdli815 Query : select st.stns valor from st where st.ref = '324.719.00.01'
20240906@073042.1243 d09qmmo1eiu8o6gjntgqdli815 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.719.00.01'
20240906@073042.1447 d09qmmo1eiu8o6gjntgqdli815 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240906@073042.1466 d09qmmo1eiu8o6gjntgqdli815 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 5
20240906@073042.1480 d09qmmo1eiu8o6gjntgqdli815 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240906@073042.1511 d09qmmo1eiu8o6gjntgqdli815 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 5
20240906@073042.1523 d09qmmo1eiu8o6gjntgqdli815 Query : select sestamp valor from se where ref ='324.719.00.01' and lote = 'r2300383300a'
20240906@073042.1539 d09qmmo1eiu8o6gjntgqdli815 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240906@073042.1578 d09qmmo1eiu8o6gjntgqdli815 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240906@073042.1596 d09qmmo1eiu8o6gjntgqdli815 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 5
20240906@073042.1611 d09qmmo1eiu8o6gjntgqdli815 Query : insert into wsbi2data (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut66daa6389666daa19226','aut66daa5280166daa1912a',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 = 'aut66daa5280166daa1912a'
20240906@073042.1795 d09qmmo1eiu8o6gjntgqdli815 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240906@073042.1820 d09qmmo1eiu8o6gjntgqdli815 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 5
20240906@073042.1842 d09qmmo1eiu8o6gjntgqdli815 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 'aut66daa6389666daa19226',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut',bo.obrano, 8.000, 8.000*.0000000 ,bo.no, bo.estab,bo.nmdos ,bo.ndos, bo.obranome,bo.fechada, bo.dataobra ,bo.dataobra ,bo.dataopen,bo.datafecho,bo.local, bo.morada ,bo.codpost, bo.nome,bo.bostamp,60000 ,16,16*200.48,16,16*200.48 ,0,0,'un ','' ,bo.marcada,1 ,16*8.000,16*8.000*200.48 ,5.932000,5.932000*200.48 ,5.932000,5.932000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,16,16*200.48,16*8.000,16*8.000*200.48,'av24082760000.192000005 ',16,16*8.000,16,16*8.000,?,?,?,?,4 from wsbodata bo where bo.bostamp = 'aut66daa5280166daa1912a'
20240906@073042.2228 d09qmmo1eiu8o6gjntgqdli815 Query : use flama_phc
20240906@073042.2234 d09qmmo1eiu8o6gjntgqdli815 Query : select st.usalote valor from st where st.ref = '324.4964.00.1'
20240906@073042.2288 d09qmmo1eiu8o6gjntgqdli815 Query : use flama_phc
20240906@073042.2293 d09qmmo1eiu8o6gjntgqdli815 Query : select st.stns valor from st where st.ref = '324.4964.00.1'
20240906@073042.2352 d09qmmo1eiu8o6gjntgqdli815 Query : use flama_phc
20240906@073042.2391 d09qmmo1eiu8o6gjntgqdli815 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.4964.00.1' and sa.armazem = 133 
20240906@073042.2518 d09qmmo1eiu8o6gjntgqdli815 Query : use flama_phc
20240906@073042.2522 d09qmmo1eiu8o6gjntgqdli815 Query : select st.stns valor from st where st.ref = '324.4964.00.1'
20240906@073042.2543 d09qmmo1eiu8o6gjntgqdli815 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.4964.00.1'
20240906@073042.2731 d09qmmo1eiu8o6gjntgqdli815 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240906@073042.2749 d09qmmo1eiu8o6gjntgqdli815 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 5
20240906@073042.2767 d09qmmo1eiu8o6gjntgqdli815 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240906@073042.2787 d09qmmo1eiu8o6gjntgqdli815 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 5
20240906@073042.2856 d09qmmo1eiu8o6gjntgqdli815 Query : select sestamp valor from se where ref ='324.4964.00.1' and lote = 'r2300717100a'
20240906@073042.2883 d09qmmo1eiu8o6gjntgqdli815 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240906@073042.2900 d09qmmo1eiu8o6gjntgqdli815 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240906@073042.2919 d09qmmo1eiu8o6gjntgqdli815 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 5
20240906@073042.2943 d09qmmo1eiu8o6gjntgqdli815 Query : insert into wsbi2data (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut66daa5828566daa19246','aut66daa5280166daa1912a',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 = 'aut66daa5280166daa1912a'
20240906@073042.3114 d09qmmo1eiu8o6gjntgqdli815 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240906@073042.3133 d09qmmo1eiu8o6gjntgqdli815 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 5
20240906@073042.3160 d09qmmo1eiu8o6gjntgqdli815 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 'aut66daa5828566daa19246',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,70000 ,32,32*200.48,32,32*200.48 ,0,0,'un ',' ' ,bo.marcada,1 ,32*4.000,32*4.000*200.48 ,11.761000,11.761000*200.48 ,11.761000,11.761000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,32,32*200.48,32*4.000,32*4.000*200.48,'av24082760009.738000006 ',32,32*4.000,32,32*4.000,?,?,?,?,4 from wsbodata bo where bo.bostamp = 'aut66daa5280166daa1912a'
20240906@073042.3647 d09qmmo1eiu8o6gjntgqdli815 Query : use flama_phc
20240906@073042.3655 d09qmmo1eiu8o6gjntgqdli815 Query : select st.usalote valor from st where st.ref = '324.4961.00.1'
20240906@073042.3675 d09qmmo1eiu8o6gjntgqdli815 Query : use flama_phc
20240906@073042.3678 d09qmmo1eiu8o6gjntgqdli815 Query : select st.stns valor from st where st.ref = '324.4961.00.1'
20240906@073042.3807 d09qmmo1eiu8o6gjntgqdli815 Query : use flama_phc
20240906@073042.3813 d09qmmo1eiu8o6gjntgqdli815 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.4961.00.1' and sa.armazem = 133 
20240906@073042.3998 d09qmmo1eiu8o6gjntgqdli815 Query : use flama_phc
20240906@073042.4003 d09qmmo1eiu8o6gjntgqdli815 Query : select st.stns valor from st where st.ref = '324.4961.00.1'
20240906@073042.4026 d09qmmo1eiu8o6gjntgqdli815 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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.4961.00.1'
20240906@073042.4204 d09qmmo1eiu8o6gjntgqdli815 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240906@073042.4230 d09qmmo1eiu8o6gjntgqdli815 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 5
20240906@073042.4246 d09qmmo1eiu8o6gjntgqdli815 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240906@073042.4265 d09qmmo1eiu8o6gjntgqdli815 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 5
20240906@073042.4276 d09qmmo1eiu8o6gjntgqdli815 Query : select sestamp valor from se where ref ='324.4961.00.1' and lote = 'r2101092200a'
20240906@073042.4305 d09qmmo1eiu8o6gjntgqdli815 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240906@073042.4322 d09qmmo1eiu8o6gjntgqdli815 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240906@073042.4348 d09qmmo1eiu8o6gjntgqdli815 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 5
20240906@073042.4414 d09qmmo1eiu8o6gjntgqdli815 Query : insert into wsbi2data (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut66daa2298266daa19269','aut66daa5280166daa1912a',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 = 'aut66daa5280166daa1912a'
20240906@073042.4633 d09qmmo1eiu8o6gjntgqdli815 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240906@073042.4656 d09qmmo1eiu8o6gjntgqdli815 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 5
20240906@073042.4675 d09qmmo1eiu8o6gjntgqdli815 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 'aut66daa2298266daa19269',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,80000 ,32,32*200.48,32,32*200.48 ,0,0,'un ','' ,bo.marcada,1 ,32*4.000,32*4.000*200.48 ,13.698000,13.698000*200.48 ,13.698000,13.698000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,32,32*200.48,32*4.000,32*4.000*200.48,'av24082760015.300000007 ',32,32*4.000,32,32*4.000,?,?,?,?,4 from wsbodata bo where bo.bostamp = 'aut66daa5280166daa1912a'
20240906@073042.5023 d09qmmo1eiu8o6gjntgqdli815 Query : use flama_phc
20240906@073042.5027 d09qmmo1eiu8o6gjntgqdli815 Query : select st.usalote valor from st where st.ref = '324.497.00.01'
20240906@073042.5044 d09qmmo1eiu8o6gjntgqdli815 Query : use flama_phc
20240906@073042.5049 d09qmmo1eiu8o6gjntgqdli815 Query : select st.stns valor from st where st.ref = '324.497.00.01'
20240906@073042.5070 d09qmmo1eiu8o6gjntgqdli815 Query : use flama_phc
20240906@073042.5073 d09qmmo1eiu8o6gjntgqdli815 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.497.00.01' and sa.armazem = 133 
20240906@073042.5152 d09qmmo1eiu8o6gjntgqdli815 Query : use flama_phc
20240906@073042.5155 d09qmmo1eiu8o6gjntgqdli815 Query : select st.stns valor from st where st.ref = '324.497.00.01'
20240906@073042.5177 d09qmmo1eiu8o6gjntgqdli815 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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'
20240906@073042.5355 d09qmmo1eiu8o6gjntgqdli815 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240906@073042.5378 d09qmmo1eiu8o6gjntgqdli815 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 5
20240906@073042.5395 d09qmmo1eiu8o6gjntgqdli815 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240906@073042.5413 d09qmmo1eiu8o6gjntgqdli815 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 5
20240906@073042.5425 d09qmmo1eiu8o6gjntgqdli815 Query : select sestamp valor from se where ref ='324.497.00.01' and lote = 'r2300022100a'
20240906@073042.5454 d09qmmo1eiu8o6gjntgqdli815 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240906@073042.5468 d09qmmo1eiu8o6gjntgqdli815 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240906@073042.5486 d09qmmo1eiu8o6gjntgqdli815 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 5
20240906@073042.5501 d09qmmo1eiu8o6gjntgqdli815 Query : insert into wsbi2data (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut66daa1792766daa19285','aut66daa5280166daa1912a',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 = 'aut66daa5280166daa1912a'
20240906@073042.5662 d09qmmo1eiu8o6gjntgqdli815 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240906@073042.5686 d09qmmo1eiu8o6gjntgqdli815 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 5
20240906@073042.5706 d09qmmo1eiu8o6gjntgqdli815 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 'aut66daa1792766daa19285',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut',bo.obrano, 12.000, 12.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 ,19.2,19.2*200.48,19.2,19.2*200.48 ,0,0,'un',' ' ,bo.marcada,1 ,19.2*12.000,19.2*12.000*200.48 ,8.279000,8.279000*200.48 ,8.279000,8.279000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,19.2,19.2*200.48,19.2*12.000,19.2*12.000*200.48,'av24082760024.034000008 ',19.2,19.2*12.000,19.2,19.2*12.000,?,?,?,?,4 from wsbodata bo where bo.bostamp = 'aut66daa5280166daa1912a'
20240906@073042.6041 d09qmmo1eiu8o6gjntgqdli815 Query : use flama_phc
20240906@073042.6046 d09qmmo1eiu8o6gjntgqdli815 Query : select st.usalote valor from st where st.ref = '324.4970.00.1'
20240906@073042.6065 d09qmmo1eiu8o6gjntgqdli815 Query : use flama_phc
20240906@073042.6068 d09qmmo1eiu8o6gjntgqdli815 Query : select st.stns valor from st where st.ref = '324.4970.00.1'
20240906@073042.6086 d09qmmo1eiu8o6gjntgqdli815 Query : use flama_phc
20240906@073042.6090 d09qmmo1eiu8o6gjntgqdli815 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.4970.00.1' and sa.armazem = 133 
20240906@073042.6164 d09qmmo1eiu8o6gjntgqdli815 Query : use flama_phc
20240906@073042.6168 d09qmmo1eiu8o6gjntgqdli815 Query : select st.stns valor from st where st.ref = '324.4970.00.1'
20240906@073042.6190 d09qmmo1eiu8o6gjntgqdli815 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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'
20240906@073042.6349 d09qmmo1eiu8o6gjntgqdli815 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240906@073042.6366 d09qmmo1eiu8o6gjntgqdli815 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 5
20240906@073042.6381 d09qmmo1eiu8o6gjntgqdli815 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240906@073042.6397 d09qmmo1eiu8o6gjntgqdli815 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 5
