20241001@181932.2864 0fbfnnh6s1ik2frnqogc9el9i6 Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut66fc28537866fc2f22b2','2406370','wait',39,'adm09112754980.682000002')
20241001@181932.4631 0fbfnnh6s1ik2frnqogc9el9i6 Query : use flama_phc
20241001@181932.4673 0fbfnnh6s1ik2frnqogc9el9i6 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20241001@181932.4921 0fbfnnh6s1ik2frnqogc9el9i6 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2364';
20241001@181932.5220 0fbfnnh6s1ik2frnqogc9el9i6 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2364';
20241001@181932.5479 0fbfnnh6s1ik2frnqogc9el9i6 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2364';
20241001@181932.5778 0fbfnnh6s1ik2frnqogc9el9i6 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2364';
20241001@181932.8130 pq5pugik0eff51dkckjqclpqlj Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20241001@181932.8213 pq5pugik0eff51dkckjqclpqlj Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20241001@181932.8799 pq5pugik0eff51dkckjqclpqlj Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2365';
20241001@181932.9206 pq5pugik0eff51dkckjqclpqlj Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2365';
20241001@181932.9576 pq5pugik0eff51dkckjqclpqlj Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2365';
20241001@181932.9875 pq5pugik0eff51dkckjqclpqlj Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2365';
20241001@181933.2170 pq5pugik0eff51dkckjqclpqlj Query : use flama_phc
20241001@181933.2590 pq5pugik0eff51dkckjqclpqlj Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20241001@181933.8780 pq5pugik0eff51dkckjqclpqlj Query : use flama_phc
20241001@181933.9190 pq5pugik0eff51dkckjqclpqlj Query : select no, estab,szadrsdesc from szadrs where u_coddest=11
20241001@181933.1312 pq5pugik0eff51dkckjqclpqlj Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1317.00.1'
20241001@181933.1600 pq5pugik0eff51dkckjqclpqlj Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1317.00.1'
20241001@181933.1889 pq5pugik0eff51dkckjqclpqlj Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1317.00.1'
20241001@181933.2177 pq5pugik0eff51dkckjqclpqlj Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1329.00.1'
20241001@181933.2325 pq5pugik0eff51dkckjqclpqlj Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1329.00.1'
20241001@181933.2418 pq5pugik0eff51dkckjqclpqlj Query : use flama_phc
20241001@181933.2459 pq5pugik0eff51dkckjqclpqlj Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20241001@181933.2833 pq5pugik0eff51dkckjqclpqlj Query : use flama_phc
20241001@181933.2875 pq5pugik0eff51dkckjqclpqlj Query : select top 1 1 valor from td where td.ndoc = 39
20241001@181933.3200 pq5pugik0eff51dkckjqclpqlj Query : use flama_phc
20241001@181933.3203 pq5pugik0eff51dkckjqclpqlj 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')
20241001@181933.3425 pq5pugik0eff51dkckjqclpqlj 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
20241001@181933.5710 pq5pugik0eff51dkckjqclpqlj Query : use flama_phc
20241001@181933.5908 pq5pugik0eff51dkckjqclpqlj Query : select top 1 ~inactivo valor from cl where no = '102265' and estab = 0 order by inactivo desc
20241001@181933.6458 pq5pugik0eff51dkckjqclpqlj Query : use flama_phc
20241001@181933.6499 pq5pugik0eff51dkckjqclpqlj Query : select top 1 tipodoc,regrd from td where ndoc = 39
20241001@181933.6872 pq5pugik0eff51dkckjqclpqlj Query : use flama_phc
20241001@181933.6913 pq5pugik0eff51dkckjqclpqlj Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20241001@181933.8558 pq5pugik0eff51dkckjqclpqlj Query : use flama_phc
20241001@181933.8641 pq5pugik0eff51dkckjqclpqlj Query : select szadrsstamp valor from szadrs where szadrsdesc='best sell electrodomÉsticos, lda.'
20241001@181933.9254 pq5pugik0eff51dkckjqclpqlj Query : use flama_phc
20241001@181933.9295 pq5pugik0eff51dkckjqclpqlj Query : select 1 valor from td where ndoc = 39
20241001@181933.9542 pq5pugik0eff51dkckjqclpqlj Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20241001@181933.9830 pq5pugik0eff51dkckjqclpqlj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241001@181934.8100 pq5pugik0eff51dkckjqclpqlj Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20241001@181934.4920 pq5pugik0eff51dkckjqclpqlj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241001@181934.7440 pq5pugik0eff51dkckjqclpqlj Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20241001@181934.1404 pq5pugik0eff51dkckjqclpqlj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241001@181934.1657 pq5pugik0eff51dkckjqclpqlj Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20241001@181934.1905 pq5pugik0eff51dkckjqclpqlj Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20241001@181934.2243 pq5pugik0eff51dkckjqclpqlj Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20241001@181934.2491 pq5pugik0eff51dkckjqclpqlj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241001@181934.2741 pq5pugik0eff51dkckjqclpqlj Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20241001@181934.3030 pq5pugik0eff51dkckjqclpqlj Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut66fc22422266fc2f262e' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20241001@181934.3422 pq5pugik0eff51dkckjqclpqlj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241001@181934.3672 pq5pugik0eff51dkckjqclpqlj Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20241001@181934.5522 pq5pugik0eff51dkckjqclpqlj Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20241001@181934.5729 pq5pugik0eff51dkckjqclpqlj Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20241001@181934.5936 pq5pugik0eff51dkckjqclpqlj Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20241001@181934.6142 pq5pugik0eff51dkckjqclpqlj Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20241001@181934.6348 pq5pugik0eff51dkckjqclpqlj Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20241001@181934.6555 pq5pugik0eff51dkckjqclpqlj Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20241001@181934.6762 pq5pugik0eff51dkckjqclpqlj Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut66fc22422266fc2f262e',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20241001@181934.7317 pq5pugik0eff51dkckjqclpqlj Query : select top 1 fno valor from wsftdata order by fno desc
20241001@181934.7571 pq5pugik0eff51dkckjqclpqlj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241001@181934.7826 pq5pugik0eff51dkckjqclpqlj Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20241001@181934.8281 pq5pugik0eff51dkckjqclpqlj Query : select 'normal' from dummy
20241001@181934.8571 pq5pugik0eff51dkckjqclpqlj Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut66fc22422266fc2f262e',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',1040,102265,0,'2024-10-01',39,'euro',0,0,2024 ,?,?)
20241001@181934.9391 pq5pugik0eff51dkckjqclpqlj Query : use flama_phc
20241001@181934.9431 pq5pugik0eff51dkckjqclpqlj Query : select st.usalote valor from st where st.ref = '324.1317.00.1'
20241001@181934.9763 pq5pugik0eff51dkckjqclpqlj Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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'
20241001@181935.1200 pq5pugik0eff51dkckjqclpqlj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241001@181935.2640 pq5pugik0eff51dkckjqclpqlj Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241001@181935.1373 pq5pugik0eff51dkckjqclpqlj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241001@181935.1719 pq5pugik0eff51dkckjqclpqlj Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241001@181935.1885 pq5pugik0eff51dkckjqclpqlj Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241001@181935.2133 pq5pugik0eff51dkckjqclpqlj Query : select sestamp valor from se where ref ='324.1317.00.1' and lote = 'r2400458200a'
20241001@181935.2381 pq5pugik0eff51dkckjqclpqlj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241001@181935.2632 pq5pugik0eff51dkckjqclpqlj Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241001@181935.2839 pq5pugik0eff51dkckjqclpqlj Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66fc24529766fc2f273a','aut66fc22422266fc2f262e' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241001@181935.2883 pq5pugik0eff51dkckjqclpqlj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241001@181935.3133 pq5pugik0eff51dkckjqclpqlj Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241001@181935.3751 pq5pugik0eff51dkckjqclpqlj Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem) values ('aut66fc24529766fc2f273a',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',3.000 ,'aut66fc22422266fc2f262e' ,0,0 ,2,23.00,10000,?,?,?,?)
20241001@181935.4735 pq5pugik0eff51dkckjqclpqlj Query : use flama_phc
20241001@181935.4923 pq5pugik0eff51dkckjqclpqlj Query : select st.usalote valor from st where st.ref = '324.1317.00.1'
20241001@181935.5387 pq5pugik0eff51dkckjqclpqlj Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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'
20241001@181935.5404 pq5pugik0eff51dkckjqclpqlj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241001@181935.5620 pq5pugik0eff51dkckjqclpqlj Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241001@181935.6414 pq5pugik0eff51dkckjqclpqlj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241001@181935.6873 pq5pugik0eff51dkckjqclpqlj Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241001@181935.7156 pq5pugik0eff51dkckjqclpqlj Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241001@181935.7646 pq5pugik0eff51dkckjqclpqlj Query : select sestamp valor from se where ref ='324.1317.00.1' and lote = 'r2400458200a'
20241001@181935.8276 pq5pugik0eff51dkckjqclpqlj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241001@181935.8529 pq5pugik0eff51dkckjqclpqlj Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241001@181935.8735 pq5pugik0eff51dkckjqclpqlj Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66fc22909066fc2f27ca','aut66fc22422266fc2f262e' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241001@181935.8778 pq5pugik0eff51dkckjqclpqlj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241001@181935.9029 pq5pugik0eff51dkckjqclpqlj Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241001@181935.9763 pq5pugik0eff51dkckjqclpqlj Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem) values ('aut66fc22909066fc2f27ca',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',21.000 ,'aut66fc22422266fc2f262e' ,0,0 ,2,23.00,20000,?,?,?,?)
20241001@181936.5850 pq5pugik0eff51dkckjqclpqlj Query : use flama_phc
20241001@181936.6270 pq5pugik0eff51dkckjqclpqlj Query : select st.usalote valor from st where st.ref = '324.1317.00.1'
20241001@181936.9600 pq5pugik0eff51dkckjqclpqlj Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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'
20241001@181936.1211 pq5pugik0eff51dkckjqclpqlj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241001@181936.1463 pq5pugik0eff51dkckjqclpqlj Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241001@181936.2040 pq5pugik0eff51dkckjqclpqlj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241001@181936.2292 pq5pugik0eff51dkckjqclpqlj Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241001@181936.2457 pq5pugik0eff51dkckjqclpqlj Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241001@181936.2704 pq5pugik0eff51dkckjqclpqlj Query : select sestamp valor from se where ref ='324.1317.00.1' and lote = 'r2400458200a'
20241001@181936.2953 pq5pugik0eff51dkckjqclpqlj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241001@181936.3352 pq5pugik0eff51dkckjqclpqlj Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241001@181936.3622 pq5pugik0eff51dkckjqclpqlj Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66fc21594866fc2f2848','aut66fc22422266fc2f262e' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241001@181936.3665 pq5pugik0eff51dkckjqclpqlj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241001@181936.3917 pq5pugik0eff51dkckjqclpqlj Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241001@181936.4537 pq5pugik0eff51dkckjqclpqlj Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem) values ('aut66fc21594866fc2f2848',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',1.000 ,'aut66fc22422266fc2f262e' ,0,0 ,2,23.00,30000,?,?,?,?)
20241001@181936.5121 pq5pugik0eff51dkckjqclpqlj Query : use flama_phc
20241001@181936.5163 pq5pugik0eff51dkckjqclpqlj Query : select st.usalote valor from st where st.ref = '324.1329.00.1'
20241001@181936.5496 pq5pugik0eff51dkckjqclpqlj Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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.1329.00.1'
20241001@181936.6847 pq5pugik0eff51dkckjqclpqlj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241001@181936.7133 pq5pugik0eff51dkckjqclpqlj Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241001@181936.7709 pq5pugik0eff51dkckjqclpqlj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241001@181936.7962 pq5pugik0eff51dkckjqclpqlj Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241001@181936.8128 pq5pugik0eff51dkckjqclpqlj Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241001@181936.8376 pq5pugik0eff51dkckjqclpqlj Query : select sestamp valor from se where ref ='324.1329.00.1' and lote = 'r2400496300a'
20241001@181936.8625 pq5pugik0eff51dkckjqclpqlj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241001@181936.8877 pq5pugik0eff51dkckjqclpqlj Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241001@181936.9085 pq5pugik0eff51dkckjqclpqlj Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66fc21136766fc2f28d2','aut66fc22422266fc2f262e' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241001@181936.9128 pq5pugik0eff51dkckjqclpqlj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241001@181936.9380 pq5pugik0eff51dkckjqclpqlj Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241001@181937.1180 pq5pugik0eff51dkckjqclpqlj Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem) values ('aut66fc21136766fc2f28d2',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',14.000 ,'aut66fc22422266fc2f262e' ,0,0 ,2,23.00,40000,?,?,?,?)
20241001@181937.7050 pq5pugik0eff51dkckjqclpqlj Query : use flama_phc
20241001@181937.7470 pq5pugik0eff51dkckjqclpqlj Query : select st.usalote valor from st where st.ref = '324.1329.00.1'
20241001@181937.1077 pq5pugik0eff51dkckjqclpqlj Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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.1329.00.1'
20241001@181937.1328 pq5pugik0eff51dkckjqclpqlj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241001@181937.1580 pq5pugik0eff51dkckjqclpqlj Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241001@181937.2157 pq5pugik0eff51dkckjqclpqlj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241001@181937.2408 pq5pugik0eff51dkckjqclpqlj Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241001@181937.2573 pq5pugik0eff51dkckjqclpqlj Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241001@181937.2820 pq5pugik0eff51dkckjqclpqlj Query : select sestamp valor from se where ref ='324.1329.00.1' and lote = 'r2400496300a'
20241001@181937.3068 pq5pugik0eff51dkckjqclpqlj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241001@181937.3320 pq5pugik0eff51dkckjqclpqlj Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241001@181937.3528 pq5pugik0eff51dkckjqclpqlj Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66fc27534366fc2f294a','aut66fc22422266fc2f262e' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241001@181937.3571 pq5pugik0eff51dkckjqclpqlj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241001@181937.3823 pq5pugik0eff51dkckjqclpqlj Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241001@181937.4439 pq5pugik0eff51dkckjqclpqlj Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem) values ('aut66fc27534366fc2f294a',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',1.000 ,'aut66fc22422266fc2f262e' ,0,0 ,2,23.00,50000,?,?,?,?)
20241001@181937.5018 pq5pugik0eff51dkckjqclpqlj Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut66fc22422266fc2f262e','2406372','wait',39,'adm09112754980.682000002')
20241001@181937.5660 pq5pugik0eff51dkckjqclpqlj Query : use flama_phc
20241001@181937.5702 pq5pugik0eff51dkckjqclpqlj Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20241001@181937.5955 pq5pugik0eff51dkckjqclpqlj Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2365';
20241001@181937.7422 pq5pugik0eff51dkckjqclpqlj Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2365';
20241001@181937.7682 pq5pugik0eff51dkckjqclpqlj Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2365';
20241001@181937.7774 pq5pugik0eff51dkckjqclpqlj Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2365';
20241001@181937.8403 ldr3r49r0snpl9jm7kcjg4m5am Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20241001@181937.8414 ldr3r49r0snpl9jm7kcjg4m5am Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20241001@181937.8499 ldr3r49r0snpl9jm7kcjg4m5am Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2366';
20241001@181937.8557 ldr3r49r0snpl9jm7kcjg4m5am Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2366';
20241001@181937.8613 ldr3r49r0snpl9jm7kcjg4m5am Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2366';
20241001@181937.8639 ldr3r49r0snpl9jm7kcjg4m5am Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2366';
20241001@181937.8687 ldr3r49r0snpl9jm7kcjg4m5am Query : use flama_phc
20241001@181937.8690 ldr3r49r0snpl9jm7kcjg4m5am Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20241001@181937.8761 ldr3r49r0snpl9jm7kcjg4m5am Query : use flama_phc
20241001@181937.8764 ldr3r49r0snpl9jm7kcjg4m5am Query : select no, estab,szadrsdesc from szadrs where u_coddest=2114
20241001@181937.8845 ldr3r49r0snpl9jm7kcjg4m5am Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.2300.00.1'
20241001@181937.9003 ldr3r49r0snpl9jm7kcjg4m5am Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1317.00.1'
20241001@181937.9022 ldr3r49r0snpl9jm7kcjg4m5am Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1329.00.1'
20241001@181937.9042 ldr3r49r0snpl9jm7kcjg4m5am Query : use flama_phc
20241001@181937.9045 ldr3r49r0snpl9jm7kcjg4m5am Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20241001@181937.9076 ldr3r49r0snpl9jm7kcjg4m5am Query : use flama_phc
20241001@181937.9079 ldr3r49r0snpl9jm7kcjg4m5am Query : select top 1 1 valor from td where td.ndoc = 39
20241001@181937.9110 ldr3r49r0snpl9jm7kcjg4m5am Query : use flama_phc
20241001@181937.9112 ldr3r49r0snpl9jm7kcjg4m5am 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')
20241001@181937.9140 ldr3r49r0snpl9jm7kcjg4m5am 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
20241001@181937.9174 ldr3r49r0snpl9jm7kcjg4m5am Query : use flama_phc
20241001@181937.9177 ldr3r49r0snpl9jm7kcjg4m5am Query : select top 1 ~inactivo valor from cl where no = '101850' and estab = 0 order by inactivo desc
20241001@181937.9293 ldr3r49r0snpl9jm7kcjg4m5am Query : use flama_phc
20241001@181937.9296 ldr3r49r0snpl9jm7kcjg4m5am Query : select top 1 tipodoc,regrd from td where ndoc = 39
20241001@181937.9325 ldr3r49r0snpl9jm7kcjg4m5am Query : use flama_phc
20241001@181937.9328 ldr3r49r0snpl9jm7kcjg4m5am Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20241001@181937.9368 ldr3r49r0snpl9jm7kcjg4m5am Query : use flama_phc
20241001@181937.9371 ldr3r49r0snpl9jm7kcjg4m5am Query : select szadrsstamp valor from szadrs where szadrsdesc='os jerÓnimos-ind.e com.de mÓveis,lda.'
20241001@181937.9416 ldr3r49r0snpl9jm7kcjg4m5am Query : use flama_phc
20241001@181937.9418 ldr3r49r0snpl9jm7kcjg4m5am Query : select 1 valor from td where ndoc = 39
20241001@181937.9430 ldr3r49r0snpl9jm7kcjg4m5am Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20241001@181937.9442 ldr3r49r0snpl9jm7kcjg4m5am Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241001@181937.9458 ldr3r49r0snpl9jm7kcjg4m5am Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20241001@181937.9476 ldr3r49r0snpl9jm7kcjg4m5am Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241001@181937.9489 ldr3r49r0snpl9jm7kcjg4m5am Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20241001@181937.9517 ldr3r49r0snpl9jm7kcjg4m5am Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241001@181937.9531 ldr3r49r0snpl9jm7kcjg4m5am Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20241001@181937.9543 ldr3r49r0snpl9jm7kcjg4m5am Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20241001@181937.9606 ldr3r49r0snpl9jm7kcjg4m5am Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20241001@181937.9619 ldr3r49r0snpl9jm7kcjg4m5am Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241001@181937.9633 ldr3r49r0snpl9jm7kcjg4m5am Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20241001@181937.9647 ldr3r49r0snpl9jm7kcjg4m5am Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut66fc20301066fc2f29e8' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20241001@181937.9824 ldr3r49r0snpl9jm7kcjg4m5am Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241001@181937.9840 ldr3r49r0snpl9jm7kcjg4m5am Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20241001@181937.9871 ldr3r49r0snpl9jm7kcjg4m5am Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20241001@181937.9882 ldr3r49r0snpl9jm7kcjg4m5am Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20241001@181937.9893 ldr3r49r0snpl9jm7kcjg4m5am Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20241001@181937.9904 ldr3r49r0snpl9jm7kcjg4m5am Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20241001@181937.9915 ldr3r49r0snpl9jm7kcjg4m5am Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20241001@181937.9926 ldr3r49r0snpl9jm7kcjg4m5am Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20241001@181937.9936 ldr3r49r0snpl9jm7kcjg4m5am Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut66fc20301066fc2f29e8',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20241001@181938.1760 ldr3r49r0snpl9jm7kcjg4m5am Query : select top 1 fno valor from wsftdata order by fno desc
20241001@181938.1950 ldr3r49r0snpl9jm7kcjg4m5am Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241001@181938.2100 ldr3r49r0snpl9jm7kcjg4m5am Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20241001@181938.2310 ldr3r49r0snpl9jm7kcjg4m5am Query : select 'normal' from dummy
20241001@181938.2450 ldr3r49r0snpl9jm7kcjg4m5am Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut66fc20301066fc2f29e8',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',1041,101850,0,'2024-10-01',39,'euro',0,0,2024 ,?,?)
20241001@181938.5260 ldr3r49r0snpl9jm7kcjg4m5am Query : use flama_phc
20241001@181938.5290 ldr3r49r0snpl9jm7kcjg4m5am Query : select st.usalote valor from st where st.ref = '324.2300.00.1'
20241001@181938.5500 ldr3r49r0snpl9jm7kcjg4m5am Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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.2300.00.1'
20241001@181938.7060 ldr3r49r0snpl9jm7kcjg4m5am Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241001@181938.7220 ldr3r49r0snpl9jm7kcjg4m5am Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241001@181938.7460 ldr3r49r0snpl9jm7kcjg4m5am Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241001@181938.7610 ldr3r49r0snpl9jm7kcjg4m5am Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241001@181938.7690 ldr3r49r0snpl9jm7kcjg4m5am Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241001@181938.7800 ldr3r49r0snpl9jm7kcjg4m5am Query : select sestamp valor from se where ref ='324.2300.00.1' and lote = 'r2400497200a'
20241001@181938.7930 ldr3r49r0snpl9jm7kcjg4m5am Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241001@181938.8070 ldr3r49r0snpl9jm7kcjg4m5am Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241001@181938.8180 ldr3r49r0snpl9jm7kcjg4m5am Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66fc28782766fc2f2a13','aut66fc20301066fc2f29e8' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241001@181938.8220 ldr3r49r0snpl9jm7kcjg4m5am Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241001@181938.8360 ldr3r49r0snpl9jm7kcjg4m5am Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241001@181938.8630 ldr3r49r0snpl9jm7kcjg4m5am Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem) values ('aut66fc28782766fc2f2a13',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',6.000 ,'aut66fc20301066fc2f29e8' ,0,0 ,2,23.00,10000,?,?,?,?)
20241001@181938.1127 ldr3r49r0snpl9jm7kcjg4m5am Query : use flama_phc
20241001@181938.1130 ldr3r49r0snpl9jm7kcjg4m5am Query : select st.usalote valor from st where st.ref = '324.1317.00.1'
20241001@181938.1149 ldr3r49r0snpl9jm7kcjg4m5am Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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'
20241001@181938.1162 ldr3r49r0snpl9jm7kcjg4m5am Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241001@181938.1177 ldr3r49r0snpl9jm7kcjg4m5am Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241001@181938.1208 ldr3r49r0snpl9jm7kcjg4m5am Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241001@181938.1222 ldr3r49r0snpl9jm7kcjg4m5am Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241001@181938.1230 ldr3r49r0snpl9jm7kcjg4m5am Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241001@181938.1241 ldr3r49r0snpl9jm7kcjg4m5am Query : select sestamp valor from se where ref ='324.1317.00.1' and lote = 'r2400458200a'
20241001@181938.1252 ldr3r49r0snpl9jm7kcjg4m5am Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241001@181938.1265 ldr3r49r0snpl9jm7kcjg4m5am Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241001@181938.1276 ldr3r49r0snpl9jm7kcjg4m5am Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66fc22675966fc2f2a1e','aut66fc20301066fc2f29e8' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241001@181938.1281 ldr3r49r0snpl9jm7kcjg4m5am Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241001@181938.1294 ldr3r49r0snpl9jm7kcjg4m5am Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241001@181938.1321 ldr3r49r0snpl9jm7kcjg4m5am Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem) values ('aut66fc22675966fc2f2a1e',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',4.000 ,'aut66fc20301066fc2f29e8' ,0,0 ,2,23.00,20000,?,?,?,?)
20241001@181938.1571 ldr3r49r0snpl9jm7kcjg4m5am Query : use flama_phc
20241001@181938.1573 ldr3r49r0snpl9jm7kcjg4m5am Query : select st.usalote valor from st where st.ref = '324.1329.00.1'
20241001@181938.1595 ldr3r49r0snpl9jm7kcjg4m5am Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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.1329.00.1'
20241001@181938.1610 ldr3r49r0snpl9jm7kcjg4m5am Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241001@181938.1625 ldr3r49r0snpl9jm7kcjg4m5am Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241001@181938.1652 ldr3r49r0snpl9jm7kcjg4m5am Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241001@181938.1690 ldr3r49r0snpl9jm7kcjg4m5am Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241001@181938.1699 ldr3r49r0snpl9jm7kcjg4m5am Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241001@181938.1711 ldr3r49r0snpl9jm7kcjg4m5am Query : select sestamp valor from se where ref ='324.1329.00.1' and lote = 'r2400496300a'
20241001@181938.1724 ldr3r49r0snpl9jm7kcjg4m5am Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241001@181938.1739 ldr3r49r0snpl9jm7kcjg4m5am Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241001@181938.1751 ldr3r49r0snpl9jm7kcjg4m5am Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66fc24588866fc2f2a2a','aut66fc20301066fc2f29e8' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241001@181938.1755 ldr3r49r0snpl9jm7kcjg4m5am Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241001@181938.1771 ldr3r49r0snpl9jm7kcjg4m5am Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241001@181938.1800 ldr3r49r0snpl9jm7kcjg4m5am Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem) values ('aut66fc24588866fc2f2a2a',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',8.000 ,'aut66fc20301066fc2f29e8' ,0,0 ,2,23.00,30000,?,?,?,?)
20241001@181938.2049 ldr3r49r0snpl9jm7kcjg4m5am Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut66fc20301066fc2f29e8','2406378','wait',39,'adm09112754980.682000002')
20241001@181938.2120 ldr3r49r0snpl9jm7kcjg4m5am Query : use flama_phc
20241001@181938.2123 ldr3r49r0snpl9jm7kcjg4m5am Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20241001@181938.2152 ldr3r49r0snpl9jm7kcjg4m5am Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2366';
20241001@181938.2183 ldr3r49r0snpl9jm7kcjg4m5am Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2366';
20241001@181938.2225 ldr3r49r0snpl9jm7kcjg4m5am Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2366';
20241001@181938.2251 ldr3r49r0snpl9jm7kcjg4m5am Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2366';
20241001@181938.3841 9nsna6ethbpfvrm9eki7jacgb8 Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20241001@181938.3962 9nsna6ethbpfvrm9eki7jacgb8 Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20241001@181938.4575 9nsna6ethbpfvrm9eki7jacgb8 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2367';
20241001@181938.4903 9nsna6ethbpfvrm9eki7jacgb8 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2367';
20241001@181938.5246 9nsna6ethbpfvrm9eki7jacgb8 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2367';
20241001@181938.5545 9nsna6ethbpfvrm9eki7jacgb8 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2367';
20241001@181938.5887 9nsna6ethbpfvrm9eki7jacgb8 Query : use flama_phc
20241001@181938.5929 9nsna6ethbpfvrm9eki7jacgb8 Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20241001@181938.6547 9nsna6ethbpfvrm9eki7jacgb8 Query : use flama_phc
20241001@181938.6588 9nsna6ethbpfvrm9eki7jacgb8 Query : select no, estab,szadrsdesc from szadrs where u_coddest=635
20241001@181938.6982 9nsna6ethbpfvrm9eki7jacgb8 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'
20241001@181938.7269 9nsna6ethbpfvrm9eki7jacgb8 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.958.00.01'
20241001@181938.7558 9nsna6ethbpfvrm9eki7jacgb8 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.958.00.01'
20241001@181938.8059 9nsna6ethbpfvrm9eki7jacgb8 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1608.00.1'
20241001@181938.8580 9nsna6ethbpfvrm9eki7jacgb8 Query : use flama_phc
20241001@181938.8685 9nsna6ethbpfvrm9eki7jacgb8 Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20241001@181938.9057 9nsna6ethbpfvrm9eki7jacgb8 Query : use flama_phc
20241001@181938.9098 9nsna6ethbpfvrm9eki7jacgb8 Query : select top 1 1 valor from td where td.ndoc = 39
20241001@181938.9720 9nsna6ethbpfvrm9eki7jacgb8 Query : use flama_phc
20241001@181938.9760 9nsna6ethbpfvrm9eki7jacgb8 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')
20241001@181939.3350 9nsna6ethbpfvrm9eki7jacgb8 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
20241001@181939.7880 9nsna6ethbpfvrm9eki7jacgb8 Query : use flama_phc
20241001@181939.8300 9nsna6ethbpfvrm9eki7jacgb8 Query : select top 1 ~inactivo valor from cl where no = '100053' and estab = 0 order by inactivo desc
20241001@181939.1385 9nsna6ethbpfvrm9eki7jacgb8 Query : use flama_phc
20241001@181939.1426 9nsna6ethbpfvrm9eki7jacgb8 Query : select top 1 tipodoc,regrd from td where ndoc = 39
20241001@181939.1797 9nsna6ethbpfvrm9eki7jacgb8 Query : use flama_phc
20241001@181939.1839 9nsna6ethbpfvrm9eki7jacgb8 Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20241001@181939.2294 9nsna6ethbpfvrm9eki7jacgb8 Query : use flama_phc
20241001@181939.2362 9nsna6ethbpfvrm9eki7jacgb8 Query : select szadrsstamp valor from szadrs where szadrsdesc='irmaos peixoto, s.a.'
20241001@181939.3018 9nsna6ethbpfvrm9eki7jacgb8 Query : use flama_phc
20241001@181939.3060 9nsna6ethbpfvrm9eki7jacgb8 Query : select 1 valor from td where ndoc = 39
20241001@181939.3308 9nsna6ethbpfvrm9eki7jacgb8 Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20241001@181939.3597 9nsna6ethbpfvrm9eki7jacgb8 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241001@181939.3849 9nsna6ethbpfvrm9eki7jacgb8 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20241001@181939.5427 9nsna6ethbpfvrm9eki7jacgb8 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241001@181939.5679 9nsna6ethbpfvrm9eki7jacgb8 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20241001@181939.6338 9nsna6ethbpfvrm9eki7jacgb8 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241001@181939.6590 9nsna6ethbpfvrm9eki7jacgb8 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20241001@181939.6965 9nsna6ethbpfvrm9eki7jacgb8 Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20241001@181939.7484 9nsna6ethbpfvrm9eki7jacgb8 Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20241001@181939.7734 9nsna6ethbpfvrm9eki7jacgb8 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241001@181939.7985 9nsna6ethbpfvrm9eki7jacgb8 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20241001@181939.8276 9nsna6ethbpfvrm9eki7jacgb8 Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut66fc29577466fc2f2baa' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20241001@181939.8663 9nsna6ethbpfvrm9eki7jacgb8 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241001@181939.8914 9nsna6ethbpfvrm9eki7jacgb8 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20241001@181939.9613 9nsna6ethbpfvrm9eki7jacgb8 Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20241001@181939.9819 9nsna6ethbpfvrm9eki7jacgb8 Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20241001@181940.2500 9nsna6ethbpfvrm9eki7jacgb8 Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20241001@181940.2320 9nsna6ethbpfvrm9eki7jacgb8 Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20241001@181940.5580 9nsna6ethbpfvrm9eki7jacgb8 Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20241001@181940.7650 9nsna6ethbpfvrm9eki7jacgb8 Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20241001@181940.9910 9nsna6ethbpfvrm9eki7jacgb8 Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut66fc29577466fc2f2baa',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20241001@181940.1533 9nsna6ethbpfvrm9eki7jacgb8 Query : select top 1 fno valor from wsftdata order by fno desc
20241001@181940.1795 9nsna6ethbpfvrm9eki7jacgb8 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241001@181940.2046 9nsna6ethbpfvrm9eki7jacgb8 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20241001@181940.2499 9nsna6ethbpfvrm9eki7jacgb8 Query : select 'normal' from dummy
20241001@181940.2787 9nsna6ethbpfvrm9eki7jacgb8 Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut66fc29577466fc2f2baa',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',1042,100053,0,'2024-10-01',39,'euro',0,0,2024 ,?,?)
20241001@181940.4237 9nsna6ethbpfvrm9eki7jacgb8 Query : use flama_phc
20241001@181940.4280 9nsna6ethbpfvrm9eki7jacgb8 Query : select st.usalote valor from st where st.ref = '324.4970.00.1'
20241001@181940.4612 9nsna6ethbpfvrm9eki7jacgb8 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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'
20241001@181940.4862 9nsna6ethbpfvrm9eki7jacgb8 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241001@181940.5117 9nsna6ethbpfvrm9eki7jacgb8 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241001@181940.5695 9nsna6ethbpfvrm9eki7jacgb8 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241001@181940.5950 9nsna6ethbpfvrm9eki7jacgb8 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241001@181940.6116 9nsna6ethbpfvrm9eki7jacgb8 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241001@181940.6364 9nsna6ethbpfvrm9eki7jacgb8 Query : select sestamp valor from se where ref ='324.4970.00.1' and lote = 'r2400205200a'
20241001@181940.6612 9nsna6ethbpfvrm9eki7jacgb8 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241001@181940.6864 9nsna6ethbpfvrm9eki7jacgb8 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241001@181940.7071 9nsna6ethbpfvrm9eki7jacgb8 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66fc25333766fc2f2ca1','aut66fc29577466fc2f2baa' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241001@181940.7114 9nsna6ethbpfvrm9eki7jacgb8 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241001@181940.7364 9nsna6ethbpfvrm9eki7jacgb8 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241001@181940.7982 9nsna6ethbpfvrm9eki7jacgb8 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem) values ('aut66fc25333766fc2f2ca1',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',4.000 ,'aut66fc29577466fc2f2baa' ,0,0 ,2,23.00,10000,?,?,?,?)
20241001@181940.8586 9nsna6ethbpfvrm9eki7jacgb8 Query : use flama_phc
20241001@181940.8627 9nsna6ethbpfvrm9eki7jacgb8 Query : select st.usalote valor from st where st.ref = '324.958.00.01'
20241001@181940.8959 9nsna6ethbpfvrm9eki7jacgb8 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.958.00.01'
20241001@181941.1800 9nsna6ethbpfvrm9eki7jacgb8 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241001@181941.6720 9nsna6ethbpfvrm9eki7jacgb8 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241001@181941.1288 9nsna6ethbpfvrm9eki7jacgb8 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241001@181941.1540 9nsna6ethbpfvrm9eki7jacgb8 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241001@181941.1705 9nsna6ethbpfvrm9eki7jacgb8 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241001@181941.1953 9nsna6ethbpfvrm9eki7jacgb8 Query : select sestamp valor from se where ref ='324.958.00.01' and lote = 'r2400240200a'
20241001@181941.2201 9nsna6ethbpfvrm9eki7jacgb8 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241001@181941.2453 9nsna6ethbpfvrm9eki7jacgb8 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241001@181941.2658 9nsna6ethbpfvrm9eki7jacgb8 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66fc22372466fc2f2d35','aut66fc29577466fc2f2baa' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241001@181941.2702 9nsna6ethbpfvrm9eki7jacgb8 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241001@181941.2952 9nsna6ethbpfvrm9eki7jacgb8 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241001@181941.3570 9nsna6ethbpfvrm9eki7jacgb8 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem) values ('aut66fc22372466fc2f2d35',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',4.000 ,'aut66fc29577466fc2f2baa' ,0,0 ,2,23.00,20000,?,?,?,?)
20241001@181941.4157 9nsna6ethbpfvrm9eki7jacgb8 Query : use flama_phc
20241001@181941.4199 9nsna6ethbpfvrm9eki7jacgb8 Query : select st.usalote valor from st where st.ref = '324.958.00.01'
20241001@181941.4530 9nsna6ethbpfvrm9eki7jacgb8 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.958.00.01'
20241001@181941.4778 9nsna6ethbpfvrm9eki7jacgb8 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241001@181941.5028 9nsna6ethbpfvrm9eki7jacgb8 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241001@181941.5603 9nsna6ethbpfvrm9eki7jacgb8 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241001@181941.5854 9nsna6ethbpfvrm9eki7jacgb8 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241001@181941.6020 9nsna6ethbpfvrm9eki7jacgb8 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241001@181941.6268 9nsna6ethbpfvrm9eki7jacgb8 Query : select sestamp valor from se where ref ='324.958.00.01' and lote = 'r2400240200a'
20241001@181941.6516 9nsna6ethbpfvrm9eki7jacgb8 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241001@181941.6768 9nsna6ethbpfvrm9eki7jacgb8 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241001@181941.6975 9nsna6ethbpfvrm9eki7jacgb8 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66fc25326066fc2f2d9f','aut66fc29577466fc2f2baa' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241001@181941.7018 9nsna6ethbpfvrm9eki7jacgb8 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241001@181941.7268 9nsna6ethbpfvrm9eki7jacgb8 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241001@181941.7884 9nsna6ethbpfvrm9eki7jacgb8 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem) values ('aut66fc25326066fc2f2d9f',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',4.000 ,'aut66fc29577466fc2f2baa' ,0,0 ,2,23.00,30000,?,?,?,?)
20241001@181941.8492 9nsna6ethbpfvrm9eki7jacgb8 Query : use flama_phc
20241001@181941.8534 9nsna6ethbpfvrm9eki7jacgb8 Query : select st.usalote valor from st where st.ref = '324.1608.00.1'
20241001@181941.8865 9nsna6ethbpfvrm9eki7jacgb8 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.1608.00.1'
20241001@181941.9740 9nsna6ethbpfvrm9eki7jacgb8 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241001@181942.3590 9nsna6ethbpfvrm9eki7jacgb8 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241001@181942.1057 9nsna6ethbpfvrm9eki7jacgb8 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241001@181942.1309 9nsna6ethbpfvrm9eki7jacgb8 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241001@181942.1475 9nsna6ethbpfvrm9eki7jacgb8 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241001@181942.1722 9nsna6ethbpfvrm9eki7jacgb8 Query : select sestamp valor from se where ref ='324.1608.00.1' and lote = 'r2400237100a'
20241001@181942.1970 9nsna6ethbpfvrm9eki7jacgb8 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241001@181942.2222 9nsna6ethbpfvrm9eki7jacgb8 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241001@181942.2428 9nsna6ethbpfvrm9eki7jacgb8 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66fc28600966fc2f2e30','aut66fc29577466fc2f2baa' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241001@181942.2471 9nsna6ethbpfvrm9eki7jacgb8 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241001@181942.2723 9nsna6ethbpfvrm9eki7jacgb8 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241001@181942.3630 9nsna6ethbpfvrm9eki7jacgb8 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem) values ('aut66fc28600966fc2f2e30',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',6.000 ,'aut66fc29577466fc2f2baa' ,0,0 ,2,23.00,40000,?,?,?,?)
20241001@181942.4214 9nsna6ethbpfvrm9eki7jacgb8 Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut66fc29577466fc2f2baa','2406379','wait',39,'adm09112754980.682000002')
20241001@181942.4831 9nsna6ethbpfvrm9eki7jacgb8 Query : use flama_phc
20241001@181942.4873 9nsna6ethbpfvrm9eki7jacgb8 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20241001@181942.5119 9nsna6ethbpfvrm9eki7jacgb8 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2367';
20241001@181942.5419 9nsna6ethbpfvrm9eki7jacgb8 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2367';
20241001@181942.5681 9nsna6ethbpfvrm9eki7jacgb8 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2367';
20241001@181942.7171 9nsna6ethbpfvrm9eki7jacgb8 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2367';

20241002@180943.8167 ovh3hf1qtfg1q25vi3hgkfvt45 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2368';
20241002@180943.8243 ovh3hf1qtfg1q25vi3hgkfvt45 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2368';
20241002@180943.8276 ovh3hf1qtfg1q25vi3hgkfvt45 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2368';
20241002@180943.8317 ovh3hf1qtfg1q25vi3hgkfvt45 Query : use flama_phc
20241002@180943.8320 ovh3hf1qtfg1q25vi3hgkfvt45 Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20241002@180943.8456 ovh3hf1qtfg1q25vi3hgkfvt45 Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.2335.00.1'
20241002@180943.8589 ovh3hf1qtfg1q25vi3hgkfvt45 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 = 2400468 and bi.ref ='324.2335.00.1' and bi.lordem =30000
20241002@180943.8974 ovh3hf1qtfg1q25vi3hgkfvt45 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 = 'cps24042942144,115000003 ' 
20241002@180943.9290 ovh3hf1qtfg1q25vi3hgkfvt45 Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.2335.00.1'
20241002@180943.9311 ovh3hf1qtfg1q25vi3hgkfvt45 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 = 2400468 and bi.ref ='324.2335.00.1' and bi.lordem =30000
20241002@180943.9333 ovh3hf1qtfg1q25vi3hgkfvt45 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 = 'cps24042942144,115000003 ' 
20241002@180943.9371 ovh3hf1qtfg1q25vi3hgkfvt45 Query : use flama_phc
20241002@180943.9375 ovh3hf1qtfg1q25vi3hgkfvt45 Query : select top 1 1 valor from ts where ts.ndos = 61
20241002@180943.9481 ovh3hf1qtfg1q25vi3hgkfvt45 Query : use flama_phc
20241002@180943.9484 ovh3hf1qtfg1q25vi3hgkfvt45 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')
20241002@180943.9560 ovh3hf1qtfg1q25vi3hgkfvt45 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
20241002@180944.1620 ovh3hf1qtfg1q25vi3hgkfvt45 Query : use flama_phc
20241002@180944.1660 ovh3hf1qtfg1q25vi3hgkfvt45 Query : select top 1 ~inactivo valor from fl where no = '202496' and estab = 00 order by inactivo desc
20241002@180944.3020 ovh3hf1qtfg1q25vi3hgkfvt45 Query : use flama_phc
20241002@180944.3050 ovh3hf1qtfg1q25vi3hgkfvt45 Query : select 1 valor from ts where ndos = 61
20241002@180944.3870 ovh3hf1qtfg1q25vi3hgkfvt45 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241002@180944.7000 ovh3hf1qtfg1q25vi3hgkfvt45 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bo' and documentnumber = 61
20241002@180944.7620 ovh3hf1qtfg1q25vi3hgkfvt45 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241002@180944.7770 ovh3hf1qtfg1q25vi3hgkfvt45 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bo2' and documentnumber = 61
20241002@180944.7870 ovh3hf1qtfg1q25vi3hgkfvt45 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241002@180944.8020 ovh3hf1qtfg1q25vi3hgkfvt45 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bo3' and documentnumber = 61
20241002@180944.8120 ovh3hf1qtfg1q25vi3hgkfvt45 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
20241002@180944.1496 ovh3hf1qtfg1q25vi3hgkfvt45 Query : select top 1 bo.obrano valor from bo bo where bo.ndos = 61 and boano=2024 order by obrano desc
20241002@180944.2101 ovh3hf1qtfg1q25vi3hgkfvt45 Query : select top 1 bo.obrano valor from bo bo where bo.ndos = 61 and boano=2024 order by obrano desc
20241002@180944.2126 ovh3hf1qtfg1q25vi3hgkfvt45 Query : use flama_phc
20241002@180944.2136 ovh3hf1qtfg1q25vi3hgkfvt45 Query : select top 1 no,estab,nome, morada, local,codpost,ncont,pncont,pais,inactivo,motiseimp,codmotiseimp from fl where no='202496' and estab=00
20241002@180944.2263 ovh3hf1qtfg1q25vi3hgkfvt45 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241002@180944.2282 ovh3hf1qtfg1q25vi3hgkfvt45 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bo3' and documentnumber = 61
20241002@180944.2326 ovh3hf1qtfg1q25vi3hgkfvt45 Query : insert into bo3 (bo3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66fd76757366fd7e5833',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut')
20241002@180944.2388 ovh3hf1qtfg1q25vi3hgkfvt45 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241002@180944.2409 ovh3hf1qtfg1q25vi3hgkfvt45 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bo2' and documentnumber = 61
20241002@180944.2423 ovh3hf1qtfg1q25vi3hgkfvt45 Query : insert into bo2 (bo2stamp, tiposaft, idserie,cambio,cambiofixo,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66fd76757366fd7e5833','--','bo',7.8651685393258426966 ,1,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut')
20241002@180944.2625 ovh3hf1qtfg1q25vi3hgkfvt45 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241002@180944.2644 ovh3hf1qtfg1q25vi3hgkfvt45 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bo' and documentnumber = 61
20241002@180944.2661 ovh3hf1qtfg1q25vi3hgkfvt45 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 ('aut66fd76757366fd7e5833','guia r. fornecedor','2024-10-02',61,2402879,?,?,?,?,?,?,?,?,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')
20241002@180948.1879 ovh3hf1qtfg1q25vi3hgkfvt45 Query : use flama_phc
20241002@180948.1884 ovh3hf1qtfg1q25vi3hgkfvt45 Query : select st.usalote valor from st where st.ref = '324.2335.00.1'
20241002@180948.2016 ovh3hf1qtfg1q25vi3hgkfvt45 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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.2335.00.1'
20241002@180948.2163 ovh3hf1qtfg1q25vi3hgkfvt45 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241002@180948.2180 ovh3hf1qtfg1q25vi3hgkfvt45 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 61
20241002@180948.2197 ovh3hf1qtfg1q25vi3hgkfvt45 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241002@180948.2213 ovh3hf1qtfg1q25vi3hgkfvt45 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 61
20241002@180948.2224 ovh3hf1qtfg1q25vi3hgkfvt45 Query : select sestamp valor from se where ref ='324.2335.00.1' and lote = 'r2400468300a'
20241002@180948.2280 ovh3hf1qtfg1q25vi3hgkfvt45 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241002@180948.2296 ovh3hf1qtfg1q25vi3hgkfvt45 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'se' and documentnumber = 0
20241002@180948.2305 ovh3hf1qtfg1q25vi3hgkfvt45 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241002@180948.2320 ovh3hf1qtfg1q25vi3hgkfvt45 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'se' and documentnumber = 0
20241002@180948.2334 ovh3hf1qtfg1q25vi3hgkfvt45 Query : insert into se (sestamp,ref, lote, data,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66fd75010866fd7e5c38',?,?,'20241002',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut;','aut;')
20241002@180948.3304 ovh3hf1qtfg1q25vi3hgkfvt45 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241002@180948.3364 ovh3hf1qtfg1q25vi3hgkfvt45 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241002@180948.3380 ovh3hf1qtfg1q25vi3hgkfvt45 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 61
20241002@180948.3393 ovh3hf1qtfg1q25vi3hgkfvt45 Query : insert into bi2 (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut66fd75727866fd7e5c52','aut66fd76757366fd7e5833',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 = 'aut66fd76757366fd7e5833'
20241002@180948.3574 ovh3hf1qtfg1q25vi3hgkfvt45 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241002@180948.3595 ovh3hf1qtfg1q25vi3hgkfvt45 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 61
20241002@180948.3618 ovh3hf1qtfg1q25vi3hgkfvt45 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 'aut66fd75727866fd7e5c52',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut',bo.obrano, 1142, 1142*.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 ,26.7,26.7*200.48,26.7,26.7*200.48 ,0,0,'un',' ' ,bo.marcada,1 ,26.7*1142,26.7*1142*200.48 ,34.150000,34.150000*200.48 ,34.150000,34.150000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,26.7,26.7*200.48,26.7*1142,26.7*1142*200.48,'cps24042942144,115000003 ',210,210*1142,210,210*1142,?,?,?,4 from bo bo where bo.bostamp = 'aut66fd76757366fd7e5833'
20241002@181010.8366 ovh3hf1qtfg1q25vi3hgkfvt45 Query : use flama_phc
20241002@181010.8373 ovh3hf1qtfg1q25vi3hgkfvt45 Query : select st.usalote valor from st where st.ref = '324.2335.00.1'
20241002@181010.8403 ovh3hf1qtfg1q25vi3hgkfvt45 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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.2335.00.1'
20241002@181010.8417 ovh3hf1qtfg1q25vi3hgkfvt45 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241002@181010.8434 ovh3hf1qtfg1q25vi3hgkfvt45 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 61
20241002@181010.8448 ovh3hf1qtfg1q25vi3hgkfvt45 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241002@181010.8463 ovh3hf1qtfg1q25vi3hgkfvt45 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 61
20241002@181010.8472 ovh3hf1qtfg1q25vi3hgkfvt45 Query : select sestamp valor from se where ref ='324.2335.00.1' and lote = 'r2400468300a'
20241002@181010.8486 ovh3hf1qtfg1q25vi3hgkfvt45 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241002@181010.8499 ovh3hf1qtfg1q25vi3hgkfvt45 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241002@181010.8515 ovh3hf1qtfg1q25vi3hgkfvt45 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 61
20241002@181010.8527 ovh3hf1qtfg1q25vi3hgkfvt45 Query : insert into bi2 (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut66fd77625266fd7e72cf','aut66fd76757366fd7e5833',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 = 'aut66fd76757366fd7e5833'
20241002@181010.8695 ovh3hf1qtfg1q25vi3hgkfvt45 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241002@181010.8711 ovh3hf1qtfg1q25vi3hgkfvt45 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 61
20241002@181010.8727 ovh3hf1qtfg1q25vi3hgkfvt45 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 'aut66fd77625266fd7e72cf',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut',bo.obrano, 12, 12*.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 ,26.7,26.7*200.48,26.7,26.7*200.48 ,0,0,'un',' ' ,bo.marcada,1 ,26.7*12,26.7*12*200.48 ,31.219000,31.219000*200.48 ,31.219000,31.219000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,26.7,26.7*200.48,26.7*12,26.7*12*200.48,'cps24042942144,115000003 ',210,210*12,210,210*12,?,?,?,4 from bo bo where bo.bostamp = 'aut66fd76757366fd7e5833'
20241002@181012.1178 ovh3hf1qtfg1q25vi3hgkfvt45 Query : use flama_phc
20241002@181012.1183 ovh3hf1qtfg1q25vi3hgkfvt45 Query : declare @bostamp varchar(25) = 'aut66fd76757366fd7e5833' ,@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 
20241002@181018.7113 ovh3hf1qtfg1q25vi3hgkfvt45 Query : use flama_phc
20241002@181018.7116 ovh3hf1qtfg1q25vi3hgkfvt45 Query : select 1 valor from bo where bo.bostamp = 'aut66fd76757366fd7e5833'
20241002@181018.7223 ovh3hf1qtfg1q25vi3hgkfvt45 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) = 'aut66fd76757366fd7e5833' 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 
20241002@181019.3049 ovh3hf1qtfg1q25vi3hgkfvt45 Query : use flama_phc
20241002@181019.3100 ovh3hf1qtfg1q25vi3hgkfvt45 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20241002@181019.3443 ovh3hf1qtfg1q25vi3hgkfvt45 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2368';
20241002@181019.3708 ovh3hf1qtfg1q25vi3hgkfvt45 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2368';
20241002@181019.4760 1fc9talmhi3u91pn527srgk5ig Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20241002@181019.4785 1fc9talmhi3u91pn527srgk5ig Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20241002@181019.4906 1fc9talmhi3u91pn527srgk5ig Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2369';
20241002@181019.4986 1fc9talmhi3u91pn527srgk5ig Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2369';
20241002@181019.5123 1fc9talmhi3u91pn527srgk5ig Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2369';
20241002@181019.5183 1fc9talmhi3u91pn527srgk5ig Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2369';
20241002@181019.5327 1fc9talmhi3u91pn527srgk5ig Query : use flama_phc
20241002@181019.5332 1fc9talmhi3u91pn527srgk5ig Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20241002@181019.5475 1fc9talmhi3u91pn527srgk5ig Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.958.00.01'
20241002@181019.5630 1fc9talmhi3u91pn527srgk5ig 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 = 2400704 and bi.ref ='324.958.00.01' and bi.lordem =20000
20241002@181019.6045 1fc9talmhi3u91pn527srgk5ig 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 = 'cps24060733336,588000002 ' 
20241002@181019.6427 1fc9talmhi3u91pn527srgk5ig Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.958.00.01'
20241002@181019.6454 1fc9talmhi3u91pn527srgk5ig 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 = 2400704 and bi.ref ='324.958.00.01' and bi.lordem =20000
20241002@181019.6480 1fc9talmhi3u91pn527srgk5ig 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 = 'cps24060733336,588000002 ' 
20241002@181019.6530 1fc9talmhi3u91pn527srgk5ig Query : use flama_phc
20241002@181019.6534 1fc9talmhi3u91pn527srgk5ig Query : select top 1 1 valor from ts where ts.ndos = 61
20241002@181019.6583 1fc9talmhi3u91pn527srgk5ig Query : use flama_phc
20241002@181019.6587 1fc9talmhi3u91pn527srgk5ig 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')
20241002@181019.6620 1fc9talmhi3u91pn527srgk5ig 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
20241002@181019.6682 1fc9talmhi3u91pn527srgk5ig Query : use flama_phc
20241002@181019.6686 1fc9talmhi3u91pn527srgk5ig Query : select top 1 ~inactivo valor from fl where no = '202300' and estab = 00 order by inactivo desc
20241002@181019.6847 1fc9talmhi3u91pn527srgk5ig Query : use flama_phc
20241002@181019.6851 1fc9talmhi3u91pn527srgk5ig Query : select 1 valor from ts where ndos = 61
20241002@181019.6864 1fc9talmhi3u91pn527srgk5ig Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241002@181019.6882 1fc9talmhi3u91pn527srgk5ig Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bo' and documentnumber = 61
20241002@181019.6891 1fc9talmhi3u91pn527srgk5ig Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241002@181019.6907 1fc9talmhi3u91pn527srgk5ig Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bo2' and documentnumber = 61
20241002@181019.6916 1fc9talmhi3u91pn527srgk5ig Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241002@181019.6933 1fc9talmhi3u91pn527srgk5ig Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bo3' and documentnumber = 61
20241002@181019.6942 1fc9talmhi3u91pn527srgk5ig 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
20241002@181019.6957 1fc9talmhi3u91pn527srgk5ig Query : select top 1 bo.obrano valor from bo bo where bo.ndos = 61 and boano=2024 order by obrano desc
20241002@181019.6977 1fc9talmhi3u91pn527srgk5ig Query : select top 1 bo.obrano valor from bo bo where bo.ndos = 61 and boano=2024 order by obrano desc
20241002@181019.6996 1fc9talmhi3u91pn527srgk5ig Query : use flama_phc
20241002@181019.7005 1fc9talmhi3u91pn527srgk5ig Query : select top 1 no,estab,nome, morada, local,codpost,ncont,pncont,pais,inactivo,motiseimp,codmotiseimp from fl where no='202300' and estab=00
20241002@181019.7119 1fc9talmhi3u91pn527srgk5ig Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241002@181019.7136 1fc9talmhi3u91pn527srgk5ig Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bo3' and documentnumber = 61
20241002@181019.7148 1fc9talmhi3u91pn527srgk5ig Query : insert into bo3 (bo3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66fd79912166fd7e7baa',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut')
20241002@181019.7153 1fc9talmhi3u91pn527srgk5ig Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241002@181019.7168 1fc9talmhi3u91pn527srgk5ig Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bo2' and documentnumber = 61
20241002@181019.7179 1fc9talmhi3u91pn527srgk5ig Query : insert into bo2 (bo2stamp, tiposaft, idserie,cambio,cambiofixo,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66fd79912166fd7e7baa','--','bo',7.8778135048231511254 ,1,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut')
20241002@181019.7185 1fc9talmhi3u91pn527srgk5ig Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241002@181019.7199 1fc9talmhi3u91pn527srgk5ig Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bo' and documentnumber = 61
20241002@181019.7210 1fc9talmhi3u91pn527srgk5ig 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 ('aut66fd79912166fd7e7baa','guia r. fornecedor','2024-10-02',61,2402880,?,?,?,?,?,?,?,?,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')
20241002@181021.5025 1fc9talmhi3u91pn527srgk5ig Query : use flama_phc
20241002@181021.5029 1fc9talmhi3u91pn527srgk5ig Query : select st.usalote valor from st where st.ref = '324.958.00.01'
20241002@181021.5059 1fc9talmhi3u91pn527srgk5ig Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.958.00.01'
20241002@181021.5228 1fc9talmhi3u91pn527srgk5ig Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241002@181021.5245 1fc9talmhi3u91pn527srgk5ig Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 61
20241002@181021.5261 1fc9talmhi3u91pn527srgk5ig Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241002@181021.5276 1fc9talmhi3u91pn527srgk5ig Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 61
20241002@181021.5285 1fc9talmhi3u91pn527srgk5ig Query : select sestamp valor from se where ref ='324.958.00.01' and lote = 'r2400704200a'
20241002@181021.5299 1fc9talmhi3u91pn527srgk5ig Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241002@181021.5314 1fc9talmhi3u91pn527srgk5ig Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'se' and documentnumber = 0
20241002@181021.5323 1fc9talmhi3u91pn527srgk5ig Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241002@181021.5339 1fc9talmhi3u91pn527srgk5ig Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'se' and documentnumber = 0
20241002@181021.5352 1fc9talmhi3u91pn527srgk5ig Query : insert into se (sestamp,ref, lote, data,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66fd73836266fd7e7d81',?,?,'20241002',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut;','aut;')
20241002@181021.5419 1fc9talmhi3u91pn527srgk5ig Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241002@181021.5432 1fc9talmhi3u91pn527srgk5ig Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241002@181021.5448 1fc9talmhi3u91pn527srgk5ig Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 61
20241002@181021.5461 1fc9talmhi3u91pn527srgk5ig Query : insert into bi2 (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut66fd73505466fd7e7d84','aut66fd79912166fd7e7baa',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 = 'aut66fd79912166fd7e7baa'
20241002@181021.5630 1fc9talmhi3u91pn527srgk5ig Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241002@181021.5697 1fc9talmhi3u91pn527srgk5ig Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 61
20241002@181021.5714 1fc9talmhi3u91pn527srgk5ig 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 'aut66fd73505466fd7e7d84',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut',bo.obrano, 20, 20*.0000000 ,bo.no, bo.estab,bo.nmdos ,bo.ndos, bo.obranome,bo.fechada, bo.dataobra ,bo.dataobra ,bo.dataopen,bo.datafecho,bo.local, bo.morada ,bo.codpost, bo.nome,bo.bostamp,10000 ,6.22,6.22*200.48,6.22,6.22*200.48 ,0,0,'un',' ' ,bo.marcada,1 ,6.22*20,6.22*20*200.48 ,8.335000,8.335000*200.48 ,8.335000,8.335000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,6.22,6.22*200.48,6.22*20,6.22*20*200.48,'cps24060733336,588000002 ',49,49*20,49,49*20,?,?,?,4 from bo bo where bo.bostamp = 'aut66fd79912166fd7e7baa'
20241002@181021.6728 1fc9talmhi3u91pn527srgk5ig Query : use flama_phc
20241002@181021.6733 1fc9talmhi3u91pn527srgk5ig Query : select st.usalote valor from st where st.ref = '324.958.00.01'
20241002@181021.6756 1fc9talmhi3u91pn527srgk5ig Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.958.00.01'
20241002@181021.6772 1fc9talmhi3u91pn527srgk5ig Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241002@181021.6789 1fc9talmhi3u91pn527srgk5ig Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 61
20241002@181021.6802 1fc9talmhi3u91pn527srgk5ig Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241002@181021.6816 1fc9talmhi3u91pn527srgk5ig Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 61
20241002@181021.6825 1fc9talmhi3u91pn527srgk5ig Query : select sestamp valor from se where ref ='324.958.00.01' and lote = 'r2400704200a'
20241002@181021.6837 1fc9talmhi3u91pn527srgk5ig Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241002@181021.6848 1fc9talmhi3u91pn527srgk5ig Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241002@181021.6865 1fc9talmhi3u91pn527srgk5ig Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 61
20241002@181021.6878 1fc9talmhi3u91pn527srgk5ig Query : insert into bi2 (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut66fd76236366fd7e7da7','aut66fd79912166fd7e7baa',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 = 'aut66fd79912166fd7e7baa'
20241002@181021.7053 1fc9talmhi3u91pn527srgk5ig Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241002@181021.7071 1fc9talmhi3u91pn527srgk5ig Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 61
20241002@181021.7086 1fc9talmhi3u91pn527srgk5ig 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 'aut66fd76236366fd7e7da7',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut',bo.obrano, 4248, 4248*.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 ,6.22,6.22*200.48,6.22,6.22*200.48 ,0,0,'un',' ' ,bo.marcada,1 ,6.22*4248,6.22*4248*200.48 ,8.302000,8.302000*200.48 ,8.302000,8.302000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,6.22,6.22*200.48,6.22*4248,6.22*4248*200.48,'cps24060733336,588000002 ',49,49*4248,49,49*4248,?,?,?,4 from bo bo where bo.bostamp = 'aut66fd79912166fd7e7baa'
20241002@181021.7722 1fc9talmhi3u91pn527srgk5ig Query : use flama_phc
20241002@181021.7726 1fc9talmhi3u91pn527srgk5ig Query : declare @bostamp varchar(25) = 'aut66fd79912166fd7e7baa' ,@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 
20241002@181022.1850 1fc9talmhi3u91pn527srgk5ig Query : use flama_phc
20241002@181022.1900 1fc9talmhi3u91pn527srgk5ig Query : select 1 valor from bo where bo.bostamp = 'aut66fd79912166fd7e7baa'
20241002@181022.2080 1fc9talmhi3u91pn527srgk5ig 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) = 'aut66fd79912166fd7e7baa' 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 
20241002@181022.2342 1fc9talmhi3u91pn527srgk5ig Query : use flama_phc
20241002@181022.2346 1fc9talmhi3u91pn527srgk5ig Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20241002@181022.2396 1fc9talmhi3u91pn527srgk5ig Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2369';
20241002@181022.2427 1fc9talmhi3u91pn527srgk5ig Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2369';

20241002@182444.3902 2ih4damtcl16nqtmlitdsdbue8 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2370';
20241002@182444.3954 2ih4damtcl16nqtmlitdsdbue8 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2370';
20241002@182444.3979 2ih4damtcl16nqtmlitdsdbue8 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2370';
20241002@182444.4027 2ih4damtcl16nqtmlitdsdbue8 Query : use flama_phc
20241002@182444.4030 2ih4damtcl16nqtmlitdsdbue8 Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20241002@182444.4096 2ih4damtcl16nqtmlitdsdbue8 Query : use flama_phc
20241002@182444.4099 2ih4damtcl16nqtmlitdsdbue8 Query : select no, estab,szadrsdesc from szadrs where u_coddest=4740
20241002@182444.4186 2ih4damtcl16nqtmlitdsdbue8 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.711.00.01'
20241002@182444.4346 2ih4damtcl16nqtmlitdsdbue8 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.711.00.01'
20241002@182444.4365 2ih4damtcl16nqtmlitdsdbue8 Query : use flama_phc
20241002@182444.4368 2ih4damtcl16nqtmlitdsdbue8 Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20241002@182444.4555 2ih4damtcl16nqtmlitdsdbue8 Query : use flama_phc
20241002@182444.4558 2ih4damtcl16nqtmlitdsdbue8 Query : select top 1 1 valor from td where td.ndoc = 39
20241002@182444.4647 2ih4damtcl16nqtmlitdsdbue8 Query : use flama_phc
20241002@182444.4650 2ih4damtcl16nqtmlitdsdbue8 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')
20241002@182444.4677 2ih4damtcl16nqtmlitdsdbue8 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
20241002@182444.4809 2ih4damtcl16nqtmlitdsdbue8 Query : use flama_phc
20241002@182444.4812 2ih4damtcl16nqtmlitdsdbue8 Query : select top 1 ~inactivo valor from cl where no = '100810' and estab = 0 order by inactivo desc
20241002@182444.4939 2ih4damtcl16nqtmlitdsdbue8 Query : use flama_phc
20241002@182444.4943 2ih4damtcl16nqtmlitdsdbue8 Query : select top 1 tipodoc,regrd from td where ndoc = 39
20241002@182444.5033 2ih4damtcl16nqtmlitdsdbue8 Query : use flama_phc
20241002@182444.5036 2ih4damtcl16nqtmlitdsdbue8 Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20241002@182444.5105 2ih4damtcl16nqtmlitdsdbue8 Query : use flama_phc
20241002@182444.5107 2ih4damtcl16nqtmlitdsdbue8 Query : select szadrsstamp valor from szadrs where szadrsdesc='100810 - worten-equipamentos para o lar,sa.'
20241002@182444.5154 2ih4damtcl16nqtmlitdsdbue8 Query : use flama_phc
20241002@182444.5157 2ih4damtcl16nqtmlitdsdbue8 Query : select 1 valor from td where ndoc = 39
20241002@182444.5304 2ih4damtcl16nqtmlitdsdbue8 Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20241002@182444.5377 2ih4damtcl16nqtmlitdsdbue8 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241002@182444.5392 2ih4damtcl16nqtmlitdsdbue8 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20241002@182444.5412 2ih4damtcl16nqtmlitdsdbue8 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241002@182444.5430 2ih4damtcl16nqtmlitdsdbue8 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20241002@182444.5460 2ih4damtcl16nqtmlitdsdbue8 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241002@182444.5473 2ih4damtcl16nqtmlitdsdbue8 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20241002@182444.5487 2ih4damtcl16nqtmlitdsdbue8 Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20241002@182444.5678 2ih4damtcl16nqtmlitdsdbue8 Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20241002@182444.5775 2ih4damtcl16nqtmlitdsdbue8 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241002@182444.5790 2ih4damtcl16nqtmlitdsdbue8 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20241002@182444.5807 2ih4damtcl16nqtmlitdsdbue8 Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut66fd86494366fd81dc85' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20241002@182444.6154 2ih4damtcl16nqtmlitdsdbue8 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241002@182444.6173 2ih4damtcl16nqtmlitdsdbue8 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20241002@182444.6208 2ih4damtcl16nqtmlitdsdbue8 Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20241002@182444.6316 2ih4damtcl16nqtmlitdsdbue8 Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20241002@182444.6397 2ih4damtcl16nqtmlitdsdbue8 Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20241002@182444.6469 2ih4damtcl16nqtmlitdsdbue8 Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20241002@182444.6539 2ih4damtcl16nqtmlitdsdbue8 Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20241002@182444.6607 2ih4damtcl16nqtmlitdsdbue8 Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20241002@182444.6678 2ih4damtcl16nqtmlitdsdbue8 Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut66fd86494366fd81dc85',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20241002@182444.7370 2ih4damtcl16nqtmlitdsdbue8 Query : select top 1 fno valor from wsftdata order by fno desc
20241002@182444.7476 2ih4damtcl16nqtmlitdsdbue8 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241002@182444.7494 2ih4damtcl16nqtmlitdsdbue8 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20241002@182444.7520 2ih4damtcl16nqtmlitdsdbue8 Query : select 'normal' from dummy
20241002@182444.7568 2ih4damtcl16nqtmlitdsdbue8 Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut66fd86494366fd81dc85',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',1043,100810,0,'2024-10-02',39,'euro',0,0,2024 ,?,?)
20241002@182444.8047 2ih4damtcl16nqtmlitdsdbue8 Query : use flama_phc
20241002@182444.8050 2ih4damtcl16nqtmlitdsdbue8 Query : select st.usalote valor from st where st.ref = '324.711.00.01'
20241002@182444.8074 2ih4damtcl16nqtmlitdsdbue8 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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.711.00.01'
20241002@182444.8226 2ih4damtcl16nqtmlitdsdbue8 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241002@182444.8243 2ih4damtcl16nqtmlitdsdbue8 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241002@182444.8270 2ih4damtcl16nqtmlitdsdbue8 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241002@182444.8284 2ih4damtcl16nqtmlitdsdbue8 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241002@182444.8293 2ih4damtcl16nqtmlitdsdbue8 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241002@182444.8305 2ih4damtcl16nqtmlitdsdbue8 Query : select sestamp valor from se where ref ='324.711.00.01' and lote = 'r2301222100a'
20241002@182444.8318 2ih4damtcl16nqtmlitdsdbue8 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241002@182444.8333 2ih4damtcl16nqtmlitdsdbue8 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241002@182444.8345 2ih4damtcl16nqtmlitdsdbue8 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66fd82005066fd81dccb','aut66fd86494366fd81dc85' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241002@182444.8401 2ih4damtcl16nqtmlitdsdbue8 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241002@182444.8416 2ih4damtcl16nqtmlitdsdbue8 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241002@182444.8448 2ih4damtcl16nqtmlitdsdbue8 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem) values ('aut66fd82005066fd81dccb',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',72.000 ,'aut66fd86494366fd81dc85' ,0,0 ,2,23.00,10000,?,?,?,?)
20241002@182444.9076 2ih4damtcl16nqtmlitdsdbue8 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241002@182444.9093 2ih4damtcl16nqtmlitdsdbue8 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241002@182444.9117 2ih4damtcl16nqtmlitdsdbue8 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241002@182444.9131 2ih4damtcl16nqtmlitdsdbue8 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241002@182444.9140 2ih4damtcl16nqtmlitdsdbue8 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241002@182444.9151 2ih4damtcl16nqtmlitdsdbue8 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241002@182444.9166 2ih4damtcl16nqtmlitdsdbue8 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241002@182444.9178 2ih4damtcl16nqtmlitdsdbue8 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66fd80683166fd81dcdf','aut66fd86494366fd81dc85' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241002@182444.9182 2ih4damtcl16nqtmlitdsdbue8 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241002@182444.9197 2ih4damtcl16nqtmlitdsdbue8 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241002@182444.9225 2ih4damtcl16nqtmlitdsdbue8 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66fd80683166fd81dcdf',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66fd86494366fd81dc85' ,0,0 ,2,23.00,20000,?,?,?)
20241002@182444.9480 2ih4damtcl16nqtmlitdsdbue8 Query : use flama_phc
20241002@182444.9483 2ih4damtcl16nqtmlitdsdbue8 Query : select st.usalote valor from st where st.ref = '324.711.00.01'
20241002@182444.9502 2ih4damtcl16nqtmlitdsdbue8 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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.711.00.01'
20241002@182444.9516 2ih4damtcl16nqtmlitdsdbue8 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241002@182444.9532 2ih4damtcl16nqtmlitdsdbue8 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241002@182444.9557 2ih4damtcl16nqtmlitdsdbue8 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241002@182444.9571 2ih4damtcl16nqtmlitdsdbue8 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241002@182444.9580 2ih4damtcl16nqtmlitdsdbue8 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241002@182444.9591 2ih4damtcl16nqtmlitdsdbue8 Query : select sestamp valor from se where ref ='324.711.00.01' and lote = 'r2301222100a'
20241002@182444.9603 2ih4damtcl16nqtmlitdsdbue8 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241002@182444.9617 2ih4damtcl16nqtmlitdsdbue8 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241002@182444.9629 2ih4damtcl16nqtmlitdsdbue8 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66fd83824266fd81dcea','aut66fd86494366fd81dc85' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241002@182444.9633 2ih4damtcl16nqtmlitdsdbue8 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241002@182444.9648 2ih4damtcl16nqtmlitdsdbue8 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241002@182444.9676 2ih4damtcl16nqtmlitdsdbue8 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem) values ('aut66fd83824266fd81dcea',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',128.000 ,'aut66fd86494366fd81dc85' ,0,0 ,2,23.00,40000,?,?,?,?)
20241002@182444.9967 2ih4damtcl16nqtmlitdsdbue8 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241002@182444.9984 2ih4damtcl16nqtmlitdsdbue8 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241002@182445.8000 2ih4damtcl16nqtmlitdsdbue8 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241002@182445.2200 2ih4damtcl16nqtmlitdsdbue8 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241002@182445.3000 2ih4damtcl16nqtmlitdsdbue8 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241002@182445.4200 2ih4damtcl16nqtmlitdsdbue8 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241002@182445.5600 2ih4damtcl16nqtmlitdsdbue8 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241002@182445.6700 2ih4damtcl16nqtmlitdsdbue8 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66fd88434466fd81dd01','aut66fd86494366fd81dc85' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241002@182445.7100 2ih4damtcl16nqtmlitdsdbue8 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241002@182445.8500 2ih4damtcl16nqtmlitdsdbue8 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241002@182445.1120 2ih4damtcl16nqtmlitdsdbue8 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66fd88434466fd81dd01',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66fd86494366fd81dc85' ,0,0 ,2,23.00,50000,?,?,?)
20241002@182445.3530 2ih4damtcl16nqtmlitdsdbue8 Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut66fd86494366fd81dc85','2406363','wait',39,'adm09112754980.682000002')
20241002@182445.4450 2ih4damtcl16nqtmlitdsdbue8 Query : use flama_phc
20241002@182445.4490 2ih4damtcl16nqtmlitdsdbue8 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20241002@182445.4790 2ih4damtcl16nqtmlitdsdbue8 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2370';
20241002@182445.5100 2ih4damtcl16nqtmlitdsdbue8 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2370';
20241002@182445.5550 2ih4damtcl16nqtmlitdsdbue8 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2370';
20241002@182445.5800 2ih4damtcl16nqtmlitdsdbue8 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2370';
20241002@182445.2756 ig796na0egh7sr0r0qsi5trm1p Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20241002@182445.2766 ig796na0egh7sr0r0qsi5trm1p Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20241002@182445.2820 ig796na0egh7sr0r0qsi5trm1p Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2371';
20241002@182445.2873 ig796na0egh7sr0r0qsi5trm1p Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2371';
20241002@182445.2932 ig796na0egh7sr0r0qsi5trm1p Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2371';
20241002@182445.2956 ig796na0egh7sr0r0qsi5trm1p Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2371';
20241002@182445.3003 ig796na0egh7sr0r0qsi5trm1p Query : use flama_phc
20241002@182445.3007 ig796na0egh7sr0r0qsi5trm1p Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20241002@182445.3072 ig796na0egh7sr0r0qsi5trm1p Query : use flama_phc
20241002@182445.3074 ig796na0egh7sr0r0qsi5trm1p Query : select no, estab,szadrsdesc from szadrs where u_coddest=4740
20241002@182445.3113 ig796na0egh7sr0r0qsi5trm1p Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1690.00.1'
20241002@182445.3277 ig796na0egh7sr0r0qsi5trm1p Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1690.00.1'
20241002@182445.3298 ig796na0egh7sr0r0qsi5trm1p Query : use flama_phc
20241002@182445.3301 ig796na0egh7sr0r0qsi5trm1p Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20241002@182445.3336 ig796na0egh7sr0r0qsi5trm1p Query : use flama_phc
20241002@182445.3339 ig796na0egh7sr0r0qsi5trm1p Query : select top 1 1 valor from td where td.ndoc = 39
20241002@182445.3369 ig796na0egh7sr0r0qsi5trm1p Query : use flama_phc
20241002@182445.3372 ig796na0egh7sr0r0qsi5trm1p 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')
20241002@182445.3402 ig796na0egh7sr0r0qsi5trm1p 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
20241002@182445.3439 ig796na0egh7sr0r0qsi5trm1p Query : use flama_phc
20241002@182445.3442 ig796na0egh7sr0r0qsi5trm1p Query : select top 1 ~inactivo valor from cl where no = '100810' and estab = 0 order by inactivo desc
20241002@182445.3471 ig796na0egh7sr0r0qsi5trm1p Query : use flama_phc
20241002@182445.3474 ig796na0egh7sr0r0qsi5trm1p Query : select top 1 tipodoc,regrd from td where ndoc = 39
20241002@182445.3504 ig796na0egh7sr0r0qsi5trm1p Query : use flama_phc
20241002@182445.3507 ig796na0egh7sr0r0qsi5trm1p Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20241002@182445.3548 ig796na0egh7sr0r0qsi5trm1p Query : use flama_phc
20241002@182445.3552 ig796na0egh7sr0r0qsi5trm1p Query : select szadrsstamp valor from szadrs where szadrsdesc='100810 - worten-equipamentos para o lar,sa.'
20241002@182445.3596 ig796na0egh7sr0r0qsi5trm1p Query : use flama_phc
20241002@182445.3599 ig796na0egh7sr0r0qsi5trm1p Query : select 1 valor from td where ndoc = 39
20241002@182445.3610 ig796na0egh7sr0r0qsi5trm1p Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20241002@182445.3624 ig796na0egh7sr0r0qsi5trm1p Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241002@182445.3640 ig796na0egh7sr0r0qsi5trm1p Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20241002@182445.3659 ig796na0egh7sr0r0qsi5trm1p Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241002@182445.3673 ig796na0egh7sr0r0qsi5trm1p Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20241002@182445.3700 ig796na0egh7sr0r0qsi5trm1p Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241002@182445.3714 ig796na0egh7sr0r0qsi5trm1p Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20241002@182445.3726 ig796na0egh7sr0r0qsi5trm1p Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20241002@182445.3791 ig796na0egh7sr0r0qsi5trm1p Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20241002@182445.3803 ig796na0egh7sr0r0qsi5trm1p Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241002@182445.3817 ig796na0egh7sr0r0qsi5trm1p Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20241002@182445.3831 ig796na0egh7sr0r0qsi5trm1p Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut66fd89179066fd81dd5a' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20241002@182445.4009 ig796na0egh7sr0r0qsi5trm1p Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241002@182445.4025 ig796na0egh7sr0r0qsi5trm1p Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20241002@182445.4059 ig796na0egh7sr0r0qsi5trm1p Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20241002@182445.4071 ig796na0egh7sr0r0qsi5trm1p Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20241002@182445.4083 ig796na0egh7sr0r0qsi5trm1p Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20241002@182445.4095 ig796na0egh7sr0r0qsi5trm1p Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20241002@182445.4107 ig796na0egh7sr0r0qsi5trm1p Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20241002@182445.4119 ig796na0egh7sr0r0qsi5trm1p Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20241002@182445.4131 ig796na0egh7sr0r0qsi5trm1p Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut66fd89179066fd81dd5a',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20241002@182445.4384 ig796na0egh7sr0r0qsi5trm1p Query : select top 1 fno valor from wsftdata order by fno desc
20241002@182445.4406 ig796na0egh7sr0r0qsi5trm1p Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241002@182445.4422 ig796na0egh7sr0r0qsi5trm1p Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20241002@182445.4446 ig796na0egh7sr0r0qsi5trm1p Query : select 'normal' from dummy
20241002@182445.4461 ig796na0egh7sr0r0qsi5trm1p Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut66fd89179066fd81dd5a',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',1044,100810,0,'2024-10-02',39,'euro',0,0,2024 ,?,?)
20241002@182445.4778 ig796na0egh7sr0r0qsi5trm1p Query : use flama_phc
20241002@182445.4782 ig796na0egh7sr0r0qsi5trm1p Query : select st.usalote valor from st where st.ref = '324.1690.00.1'
20241002@182445.4806 ig796na0egh7sr0r0qsi5trm1p Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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.1690.00.1'
20241002@182445.4966 ig796na0egh7sr0r0qsi5trm1p Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241002@182445.4984 ig796na0egh7sr0r0qsi5trm1p Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241002@182445.5010 ig796na0egh7sr0r0qsi5trm1p Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241002@182445.5029 ig796na0egh7sr0r0qsi5trm1p Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241002@182445.5038 ig796na0egh7sr0r0qsi5trm1p Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241002@182445.5051 ig796na0egh7sr0r0qsi5trm1p Query : select sestamp valor from se where ref ='324.1690.00.1' and lote = 'r2100755200a'
20241002@182445.5066 ig796na0egh7sr0r0qsi5trm1p Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241002@182445.5082 ig796na0egh7sr0r0qsi5trm1p Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241002@182445.5094 ig796na0egh7sr0r0qsi5trm1p Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66fd84886366fd81dd7b','aut66fd89179066fd81dd5a' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241002@182445.5098 ig796na0egh7sr0r0qsi5trm1p Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241002@182445.5114 ig796na0egh7sr0r0qsi5trm1p Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241002@182445.5141 ig796na0egh7sr0r0qsi5trm1p Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem) values ('aut66fd84886366fd81dd7b',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',5.000 ,'aut66fd89179066fd81dd5a' ,0,0 ,2,23.00,10000,?,?,?,?)
20241002@182445.5406 ig796na0egh7sr0r0qsi5trm1p Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241002@182445.5426 ig796na0egh7sr0r0qsi5trm1p Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241002@182445.5456 ig796na0egh7sr0r0qsi5trm1p Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241002@182445.5471 ig796na0egh7sr0r0qsi5trm1p Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241002@182445.5483 ig796na0egh7sr0r0qsi5trm1p Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241002@182445.5495 ig796na0egh7sr0r0qsi5trm1p Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241002@182445.5510 ig796na0egh7sr0r0qsi5trm1p Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241002@182445.5522 ig796na0egh7sr0r0qsi5trm1p Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66fd83336266fd81dd86','aut66fd89179066fd81dd5a' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241002@182445.5527 ig796na0egh7sr0r0qsi5trm1p Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241002@182445.5542 ig796na0egh7sr0r0qsi5trm1p Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241002@182445.5569 ig796na0egh7sr0r0qsi5trm1p Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66fd83336266fd81dd86',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66fd89179066fd81dd5a' ,0,0 ,2,23.00,20000,?,?,?)
20241002@182445.5831 ig796na0egh7sr0r0qsi5trm1p Query : use flama_phc
20241002@182445.5835 ig796na0egh7sr0r0qsi5trm1p Query : select st.usalote valor from st where st.ref = '324.1690.00.1'
20241002@182445.5860 ig796na0egh7sr0r0qsi5trm1p Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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.1690.00.1'
20241002@182445.5890 ig796na0egh7sr0r0qsi5trm1p Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241002@182445.5913 ig796na0egh7sr0r0qsi5trm1p Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241002@182445.5945 ig796na0egh7sr0r0qsi5trm1p Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241002@182445.5960 ig796na0egh7sr0r0qsi5trm1p Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241002@182445.5970 ig796na0egh7sr0r0qsi5trm1p Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241002@182445.5985 ig796na0egh7sr0r0qsi5trm1p Query : select sestamp valor from se where ref ='324.1690.00.1' and lote = 'r2100755200a'
20241002@182445.5998 ig796na0egh7sr0r0qsi5trm1p Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241002@182445.6015 ig796na0egh7sr0r0qsi5trm1p Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241002@182445.6032 ig796na0egh7sr0r0qsi5trm1p Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66fd80146666fd81dd92','aut66fd89179066fd81dd5a' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241002@182445.6037 ig796na0egh7sr0r0qsi5trm1p Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241002@182445.6055 ig796na0egh7sr0r0qsi5trm1p Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241002@182445.6091 ig796na0egh7sr0r0qsi5trm1p Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem) values ('aut66fd80146666fd81dd92',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',15.000 ,'aut66fd89179066fd81dd5a' ,0,0 ,2,23.00,40000,?,?,?,?)
20241002@182445.6378 ig796na0egh7sr0r0qsi5trm1p Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241002@182445.6395 ig796na0egh7sr0r0qsi5trm1p Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241002@182445.6427 ig796na0egh7sr0r0qsi5trm1p Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241002@182445.6443 ig796na0egh7sr0r0qsi5trm1p Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241002@182445.6452 ig796na0egh7sr0r0qsi5trm1p Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241002@182445.6465 ig796na0egh7sr0r0qsi5trm1p Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241002@182445.6479 ig796na0egh7sr0r0qsi5trm1p Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241002@182445.6490 ig796na0egh7sr0r0qsi5trm1p Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66fd85230466fd81dd9d','aut66fd89179066fd81dd5a' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241002@182445.6495 ig796na0egh7sr0r0qsi5trm1p Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241002@182445.6511 ig796na0egh7sr0r0qsi5trm1p Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241002@182445.6546 ig796na0egh7sr0r0qsi5trm1p Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66fd85230466fd81dd9d',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66fd89179066fd81dd5a' ,0,0 ,2,23.00,50000,?,?,?)
20241002@182445.6831 ig796na0egh7sr0r0qsi5trm1p Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut66fd89179066fd81dd5a','2406364','wait',39,'adm09112754980.682000002')
20241002@182445.6898 ig796na0egh7sr0r0qsi5trm1p Query : use flama_phc
20241002@182445.6902 ig796na0egh7sr0r0qsi5trm1p Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20241002@182445.6933 ig796na0egh7sr0r0qsi5trm1p Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2371';
20241002@182445.6965 ig796na0egh7sr0r0qsi5trm1p Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2371';
20241002@182445.7007 ig796na0egh7sr0r0qsi5trm1p Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2371';
20241002@182445.7039 ig796na0egh7sr0r0qsi5trm1p Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2371';
20241002@182445.7588 ur731f2rd2h83t5gpv87tuh93b Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20241002@182445.7599 ur731f2rd2h83t5gpv87tuh93b Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20241002@182445.7655 ur731f2rd2h83t5gpv87tuh93b Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2372';
20241002@182445.7715 ur731f2rd2h83t5gpv87tuh93b Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2372';
20241002@182445.7784 ur731f2rd2h83t5gpv87tuh93b Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2372';
20241002@182445.7811 ur731f2rd2h83t5gpv87tuh93b Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2372';
20241002@182445.7861 ur731f2rd2h83t5gpv87tuh93b Query : use flama_phc
20241002@182445.7864 ur731f2rd2h83t5gpv87tuh93b Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20241002@182445.7991 ur731f2rd2h83t5gpv87tuh93b Query : use flama_phc
20241002@182445.8034 ur731f2rd2h83t5gpv87tuh93b Query : select no, estab,szadrsdesc from szadrs where u_coddest=4740
20241002@182445.9249 ur731f2rd2h83t5gpv87tuh93b Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.657.00.01'
20241002@182445.9420 ur731f2rd2h83t5gpv87tuh93b Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.657.00.01'
20241002@182445.9443 ur731f2rd2h83t5gpv87tuh93b Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.657.00.01'
20241002@182445.9466 ur731f2rd2h83t5gpv87tuh93b Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.657.00.01'
20241002@182445.9490 ur731f2rd2h83t5gpv87tuh93b Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.657.00.01'
20241002@182445.9513 ur731f2rd2h83t5gpv87tuh93b Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.657.00.01'
20241002@182445.9535 ur731f2rd2h83t5gpv87tuh93b Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.657.00.01'
20241002@182445.9557 ur731f2rd2h83t5gpv87tuh93b Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.657.00.01'
20241002@182445.9576 ur731f2rd2h83t5gpv87tuh93b Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.657.00.01'
20241002@182445.9597 ur731f2rd2h83t5gpv87tuh93b Query : use flama_phc
20241002@182445.9602 ur731f2rd2h83t5gpv87tuh93b Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20241002@182445.9639 ur731f2rd2h83t5gpv87tuh93b Query : use flama_phc
20241002@182445.9642 ur731f2rd2h83t5gpv87tuh93b Query : select top 1 1 valor from td where td.ndoc = 39
20241002@182445.9674 ur731f2rd2h83t5gpv87tuh93b Query : use flama_phc
20241002@182445.9677 ur731f2rd2h83t5gpv87tuh93b 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')
20241002@182445.9712 ur731f2rd2h83t5gpv87tuh93b 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
20241002@182445.9750 ur731f2rd2h83t5gpv87tuh93b Query : use flama_phc
20241002@182445.9753 ur731f2rd2h83t5gpv87tuh93b Query : select top 1 ~inactivo valor from cl where no = '100810' and estab = 0 order by inactivo desc
20241002@182445.9784 ur731f2rd2h83t5gpv87tuh93b Query : use flama_phc
20241002@182445.9787 ur731f2rd2h83t5gpv87tuh93b Query : select top 1 tipodoc,regrd from td where ndoc = 39
20241002@182445.9817 ur731f2rd2h83t5gpv87tuh93b Query : use flama_phc
20241002@182445.9820 ur731f2rd2h83t5gpv87tuh93b Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20241002@182445.9863 ur731f2rd2h83t5gpv87tuh93b Query : use flama_phc
20241002@182445.9866 ur731f2rd2h83t5gpv87tuh93b Query : select szadrsstamp valor from szadrs where szadrsdesc='100810 - worten-equipamentos para o lar,sa.'
20241002@182445.9912 ur731f2rd2h83t5gpv87tuh93b Query : use flama_phc
20241002@182445.9915 ur731f2rd2h83t5gpv87tuh93b Query : select 1 valor from td where ndoc = 39
20241002@182445.9929 ur731f2rd2h83t5gpv87tuh93b Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20241002@182445.9945 ur731f2rd2h83t5gpv87tuh93b Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241002@182445.9962 ur731f2rd2h83t5gpv87tuh93b Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20241002@182445.9983 ur731f2rd2h83t5gpv87tuh93b Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241002@182445.9999 ur731f2rd2h83t5gpv87tuh93b Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20241002@182446.3000 ur731f2rd2h83t5gpv87tuh93b Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241002@182446.4500 ur731f2rd2h83t5gpv87tuh93b Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20241002@182446.5900 ur731f2rd2h83t5gpv87tuh93b Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20241002@182446.1260 ur731f2rd2h83t5gpv87tuh93b Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20241002@182446.1400 ur731f2rd2h83t5gpv87tuh93b Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241002@182446.1760 ur731f2rd2h83t5gpv87tuh93b Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20241002@182446.1940 ur731f2rd2h83t5gpv87tuh93b Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut66fd89915266fd81de01' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20241002@182446.3730 ur731f2rd2h83t5gpv87tuh93b Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241002@182446.3940 ur731f2rd2h83t5gpv87tuh93b Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20241002@182446.4320 ur731f2rd2h83t5gpv87tuh93b Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20241002@182446.4440 ur731f2rd2h83t5gpv87tuh93b Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20241002@182446.4730 ur731f2rd2h83t5gpv87tuh93b Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20241002@182446.4860 ur731f2rd2h83t5gpv87tuh93b Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20241002@182446.5000 ur731f2rd2h83t5gpv87tuh93b Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20241002@182446.5140 ur731f2rd2h83t5gpv87tuh93b Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20241002@182446.5280 ur731f2rd2h83t5gpv87tuh93b Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut66fd89915266fd81de01',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20241002@182446.8020 ur731f2rd2h83t5gpv87tuh93b Query : select top 1 fno valor from wsftdata order by fno desc
20241002@182446.8340 ur731f2rd2h83t5gpv87tuh93b Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241002@182446.8540 ur731f2rd2h83t5gpv87tuh93b Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20241002@182446.8800 ur731f2rd2h83t5gpv87tuh93b Query : select 'normal' from dummy
20241002@182446.8960 ur731f2rd2h83t5gpv87tuh93b Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut66fd89915266fd81de01',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',1045,100810,0,'2024-10-02',39,'euro',0,0,2024 ,?,?)
20241002@182446.1225 ur731f2rd2h83t5gpv87tuh93b Query : use flama_phc
20241002@182446.1229 ur731f2rd2h83t5gpv87tuh93b Query : select st.usalote valor from st where st.ref = '324.657.00.01'
20241002@182446.1256 ur731f2rd2h83t5gpv87tuh93b Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.657.00.01'
20241002@182446.1446 ur731f2rd2h83t5gpv87tuh93b Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241002@182446.1464 ur731f2rd2h83t5gpv87tuh93b Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241002@182446.1495 ur731f2rd2h83t5gpv87tuh93b Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241002@182446.1512 ur731f2rd2h83t5gpv87tuh93b Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241002@182446.1521 ur731f2rd2h83t5gpv87tuh93b Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241002@182446.1536 ur731f2rd2h83t5gpv87tuh93b Query : select sestamp valor from se where ref ='324.657.00.01' and lote = 'r2301261100a'
20241002@182446.1564 ur731f2rd2h83t5gpv87tuh93b Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241002@182446.1580 ur731f2rd2h83t5gpv87tuh93b Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241002@182446.1592 ur731f2rd2h83t5gpv87tuh93b Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66fd89566466fd81de26','aut66fd89915266fd81de01' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241002@182446.1597 ur731f2rd2h83t5gpv87tuh93b Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241002@182446.1613 ur731f2rd2h83t5gpv87tuh93b Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241002@182446.1644 ur731f2rd2h83t5gpv87tuh93b Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem) values ('aut66fd89566466fd81de26',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',8.000 ,'aut66fd89915266fd81de01' ,0,0 ,2,23.00,10000,?,?,?,?)
20241002@182446.1920 ur731f2rd2h83t5gpv87tuh93b Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241002@182446.1940 ur731f2rd2h83t5gpv87tuh93b Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241002@182446.1969 ur731f2rd2h83t5gpv87tuh93b Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241002@182446.1985 ur731f2rd2h83t5gpv87tuh93b Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241002@182446.1994 ur731f2rd2h83t5gpv87tuh93b Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241002@182446.2008 ur731f2rd2h83t5gpv87tuh93b Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241002@182446.2023 ur731f2rd2h83t5gpv87tuh93b Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241002@182446.2039 ur731f2rd2h83t5gpv87tuh93b Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66fd80227866fd81de31','aut66fd89915266fd81de01' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241002@182446.2045 ur731f2rd2h83t5gpv87tuh93b Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241002@182446.2085 ur731f2rd2h83t5gpv87tuh93b Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241002@182446.2118 ur731f2rd2h83t5gpv87tuh93b Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66fd80227866fd81de31',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66fd89915266fd81de01' ,0,0 ,2,23.00,20000,?,?,?)
20241002@182446.2447 ur731f2rd2h83t5gpv87tuh93b Query : use flama_phc
20241002@182446.2451 ur731f2rd2h83t5gpv87tuh93b Query : select st.usalote valor from st where st.ref = '324.657.00.01'
20241002@182446.2472 ur731f2rd2h83t5gpv87tuh93b Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.657.00.01'
20241002@182446.2490 ur731f2rd2h83t5gpv87tuh93b Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241002@182446.2510 ur731f2rd2h83t5gpv87tuh93b Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241002@182446.2537 ur731f2rd2h83t5gpv87tuh93b Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241002@182446.2553 ur731f2rd2h83t5gpv87tuh93b Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241002@182446.2563 ur731f2rd2h83t5gpv87tuh93b Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241002@182446.2577 ur731f2rd2h83t5gpv87tuh93b Query : select sestamp valor from se where ref ='324.657.00.01' and lote = 'r2400056200a'
20241002@182446.2593 ur731f2rd2h83t5gpv87tuh93b Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241002@182446.2610 ur731f2rd2h83t5gpv87tuh93b Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241002@182446.2623 ur731f2rd2h83t5gpv87tuh93b Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66fd85454266fd81de3f','aut66fd89915266fd81de01' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241002@182446.2627 ur731f2rd2h83t5gpv87tuh93b Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241002@182446.2643 ur731f2rd2h83t5gpv87tuh93b Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241002@182446.2672 ur731f2rd2h83t5gpv87tuh93b Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem) values ('aut66fd85454266fd81de3f',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',24.000 ,'aut66fd89915266fd81de01' ,0,0 ,2,23.00,40000,?,?,?,?)
20241002@182446.3002 ur731f2rd2h83t5gpv87tuh93b Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241002@182446.3020 ur731f2rd2h83t5gpv87tuh93b Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241002@182446.3048 ur731f2rd2h83t5gpv87tuh93b Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241002@182446.3063 ur731f2rd2h83t5gpv87tuh93b Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241002@182446.3071 ur731f2rd2h83t5gpv87tuh93b Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241002@182446.3085 ur731f2rd2h83t5gpv87tuh93b Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241002@182446.3099 ur731f2rd2h83t5gpv87tuh93b Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241002@182446.3112 ur731f2rd2h83t5gpv87tuh93b Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66fd81171266fd81de4b','aut66fd89915266fd81de01' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241002@182446.3116 ur731f2rd2h83t5gpv87tuh93b Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241002@182446.3130 ur731f2rd2h83t5gpv87tuh93b Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241002@182446.3163 ur731f2rd2h83t5gpv87tuh93b Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66fd81171266fd81de4b',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66fd89915266fd81de01' ,0,0 ,2,23.00,50000,?,?,?)
20241002@182446.3423 ur731f2rd2h83t5gpv87tuh93b Query : use flama_phc
20241002@182446.3427 ur731f2rd2h83t5gpv87tuh93b Query : select st.usalote valor from st where st.ref = '324.657.00.01'
20241002@182446.3452 ur731f2rd2h83t5gpv87tuh93b Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.657.00.01'
20241002@182446.3469 ur731f2rd2h83t5gpv87tuh93b Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241002@182446.3489 ur731f2rd2h83t5gpv87tuh93b Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241002@182446.3526 ur731f2rd2h83t5gpv87tuh93b Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241002@182446.3541 ur731f2rd2h83t5gpv87tuh93b Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241002@182446.3549 ur731f2rd2h83t5gpv87tuh93b Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241002@182446.3562 ur731f2rd2h83t5gpv87tuh93b Query : select sestamp valor from se where ref ='324.657.00.01' and lote = 'r2400056200a'
20241002@182446.3575 ur731f2rd2h83t5gpv87tuh93b Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241002@182446.3590 ur731f2rd2h83t5gpv87tuh93b Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241002@182446.3602 ur731f2rd2h83t5gpv87tuh93b Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66fd87398766fd81de57','aut66fd89915266fd81de01' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241002@182446.3607 ur731f2rd2h83t5gpv87tuh93b Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241002@182446.3622 ur731f2rd2h83t5gpv87tuh93b Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241002@182446.3655 ur731f2rd2h83t5gpv87tuh93b Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem) values ('aut66fd87398766fd81de57',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',24.000 ,'aut66fd89915266fd81de01' ,0,0 ,2,23.00,70000,?,?,?,?)
20241002@182446.3949 ur731f2rd2h83t5gpv87tuh93b Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241002@182446.3966 ur731f2rd2h83t5gpv87tuh93b Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241002@182446.3996 ur731f2rd2h83t5gpv87tuh93b Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241002@182446.4012 ur731f2rd2h83t5gpv87tuh93b Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241002@182446.4021 ur731f2rd2h83t5gpv87tuh93b Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241002@182446.4034 ur731f2rd2h83t5gpv87tuh93b Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241002@182446.4049 ur731f2rd2h83t5gpv87tuh93b Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241002@182446.4062 ur731f2rd2h83t5gpv87tuh93b Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66fd81767666fd81de62','aut66fd89915266fd81de01' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241002@182446.4067 ur731f2rd2h83t5gpv87tuh93b Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241002@182446.4082 ur731f2rd2h83t5gpv87tuh93b Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241002@182446.4112 ur731f2rd2h83t5gpv87tuh93b Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66fd81767666fd81de62',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66fd89915266fd81de01' ,0,0 ,2,23.00,80000,?,?,?)
20241002@182446.4411 ur731f2rd2h83t5gpv87tuh93b Query : use flama_phc
20241002@182446.4414 ur731f2rd2h83t5gpv87tuh93b Query : select st.usalote valor from st where st.ref = '324.657.00.01'
20241002@182446.4434 ur731f2rd2h83t5gpv87tuh93b Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.657.00.01'
20241002@182446.4448 ur731f2rd2h83t5gpv87tuh93b Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241002@182446.4465 ur731f2rd2h83t5gpv87tuh93b Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241002@182446.4491 ur731f2rd2h83t5gpv87tuh93b Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241002@182446.4505 ur731f2rd2h83t5gpv87tuh93b Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241002@182446.4513 ur731f2rd2h83t5gpv87tuh93b Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241002@182446.4525 ur731f2rd2h83t5gpv87tuh93b Query : select sestamp valor from se where ref ='324.657.00.01' and lote = 'r2400056200a'
20241002@182446.4537 ur731f2rd2h83t5gpv87tuh93b Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241002@182446.4551 ur731f2rd2h83t5gpv87tuh93b Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241002@182446.4562 ur731f2rd2h83t5gpv87tuh93b Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66fd89407366fd81de6e','aut66fd89915266fd81de01' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241002@182446.4566 ur731f2rd2h83t5gpv87tuh93b Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241002@182446.4580 ur731f2rd2h83t5gpv87tuh93b Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241002@182446.4607 ur731f2rd2h83t5gpv87tuh93b Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem) values ('aut66fd89407366fd81de6e',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',24.000 ,'aut66fd89915266fd81de01' ,0,0 ,2,23.00,100000,?,?,?,?)
20241002@182446.4873 ur731f2rd2h83t5gpv87tuh93b Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241002@182446.4888 ur731f2rd2h83t5gpv87tuh93b Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241002@182446.4914 ur731f2rd2h83t5gpv87tuh93b Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241002@182446.4929 ur731f2rd2h83t5gpv87tuh93b Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241002@182446.4937 ur731f2rd2h83t5gpv87tuh93b Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241002@182446.4949 ur731f2rd2h83t5gpv87tuh93b Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241002@182446.4965 ur731f2rd2h83t5gpv87tuh93b Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241002@182446.4976 ur731f2rd2h83t5gpv87tuh93b Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66fd80634566fd81de78','aut66fd89915266fd81de01' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241002@182446.4980 ur731f2rd2h83t5gpv87tuh93b Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241002@182446.4995 ur731f2rd2h83t5gpv87tuh93b Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241002@182446.5023 ur731f2rd2h83t5gpv87tuh93b Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66fd80634566fd81de78',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66fd89915266fd81de01' ,0,0 ,2,23.00,110000,?,?,?)
20241002@182446.5265 ur731f2rd2h83t5gpv87tuh93b Query : use flama_phc
20241002@182446.5268 ur731f2rd2h83t5gpv87tuh93b Query : select st.usalote valor from st where st.ref = '324.657.00.01'
20241002@182446.5287 ur731f2rd2h83t5gpv87tuh93b Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.657.00.01'
20241002@182446.5301 ur731f2rd2h83t5gpv87tuh93b Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241002@182446.5316 ur731f2rd2h83t5gpv87tuh93b Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241002@182446.5343 ur731f2rd2h83t5gpv87tuh93b Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241002@182446.5358 ur731f2rd2h83t5gpv87tuh93b Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241002@182446.5366 ur731f2rd2h83t5gpv87tuh93b Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241002@182446.5379 ur731f2rd2h83t5gpv87tuh93b Query : select sestamp valor from se where ref ='324.657.00.01' and lote = 'r2400056200a'
20241002@182446.5391 ur731f2rd2h83t5gpv87tuh93b Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241002@182446.5406 ur731f2rd2h83t5gpv87tuh93b Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241002@182446.5419 ur731f2rd2h83t5gpv87tuh93b Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66fd88340366fd81de83','aut66fd89915266fd81de01' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241002@182446.5423 ur731f2rd2h83t5gpv87tuh93b Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241002@182446.5438 ur731f2rd2h83t5gpv87tuh93b Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241002@182446.5470 ur731f2rd2h83t5gpv87tuh93b Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem) values ('aut66fd88340366fd81de83',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',24.000 ,'aut66fd89915266fd81de01' ,0,0 ,2,23.00,130000,?,?,?,?)
20241002@182446.5963 ur731f2rd2h83t5gpv87tuh93b Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241002@182446.5980 ur731f2rd2h83t5gpv87tuh93b Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241002@182446.6006 ur731f2rd2h83t5gpv87tuh93b Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241002@182446.6021 ur731f2rd2h83t5gpv87tuh93b Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241002@182446.6029 ur731f2rd2h83t5gpv87tuh93b Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241002@182446.6041 ur731f2rd2h83t5gpv87tuh93b Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241002@182446.6056 ur731f2rd2h83t5gpv87tuh93b Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241002@182446.6068 ur731f2rd2h83t5gpv87tuh93b Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66fd81206066fd81de93','aut66fd89915266fd81de01' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241002@182446.6073 ur731f2rd2h83t5gpv87tuh93b Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241002@182446.6088 ur731f2rd2h83t5gpv87tuh93b Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241002@182446.6116 ur731f2rd2h83t5gpv87tuh93b Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66fd81206066fd81de93',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66fd89915266fd81de01' ,0,0 ,2,23.00,140000,?,?,?)
20241002@182446.6693 ur731f2rd2h83t5gpv87tuh93b Query : use flama_phc
20241002@182446.6816 ur731f2rd2h83t5gpv87tuh93b Query : select st.usalote valor from st where st.ref = '324.657.00.01'
20241002@182446.7594 ur731f2rd2h83t5gpv87tuh93b Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.657.00.01'
20241002@182446.7609 ur731f2rd2h83t5gpv87tuh93b Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241002@182446.7626 ur731f2rd2h83t5gpv87tuh93b Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241002@182446.7651 ur731f2rd2h83t5gpv87tuh93b Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241002@182446.7665 ur731f2rd2h83t5gpv87tuh93b Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241002@182446.7673 ur731f2rd2h83t5gpv87tuh93b Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241002@182446.7686 ur731f2rd2h83t5gpv87tuh93b Query : select sestamp valor from se where ref ='324.657.00.01' and lote = 'r2400056200a'
20241002@182446.7700 ur731f2rd2h83t5gpv87tuh93b Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241002@182446.7917 ur731f2rd2h83t5gpv87tuh93b Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241002@182446.7930 ur731f2rd2h83t5gpv87tuh93b Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66fd82997166fd81debb','aut66fd89915266fd81de01' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241002@182446.7935 ur731f2rd2h83t5gpv87tuh93b Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241002@182446.7954 ur731f2rd2h83t5gpv87tuh93b Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241002@182446.8012 ur731f2rd2h83t5gpv87tuh93b Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem) values ('aut66fd82997166fd81debb',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',24.000 ,'aut66fd89915266fd81de01' ,0,0 ,2,23.00,160000,?,?,?,?)
20241002@182446.8292 ur731f2rd2h83t5gpv87tuh93b Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241002@182446.8309 ur731f2rd2h83t5gpv87tuh93b Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241002@182446.8336 ur731f2rd2h83t5gpv87tuh93b Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241002@182446.8350 ur731f2rd2h83t5gpv87tuh93b Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241002@182446.8359 ur731f2rd2h83t5gpv87tuh93b Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241002@182446.8371 ur731f2rd2h83t5gpv87tuh93b Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241002@182446.8386 ur731f2rd2h83t5gpv87tuh93b Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241002@182446.8399 ur731f2rd2h83t5gpv87tuh93b Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66fd84346366fd81decc','aut66fd89915266fd81de01' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241002@182446.8403 ur731f2rd2h83t5gpv87tuh93b Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241002@182446.8418 ur731f2rd2h83t5gpv87tuh93b Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241002@182446.8448 ur731f2rd2h83t5gpv87tuh93b Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66fd84346366fd81decc',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66fd89915266fd81de01' ,0,0 ,2,23.00,170000,?,?,?)
20241002@182446.8728 ur731f2rd2h83t5gpv87tuh93b Query : use flama_phc
20241002@182446.8731 ur731f2rd2h83t5gpv87tuh93b Query : select st.usalote valor from st where st.ref = '324.657.00.01'
20241002@182446.8751 ur731f2rd2h83t5gpv87tuh93b Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.657.00.01'
20241002@182446.8765 ur731f2rd2h83t5gpv87tuh93b Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241002@182446.8782 ur731f2rd2h83t5gpv87tuh93b Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241002@182446.8807 ur731f2rd2h83t5gpv87tuh93b Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241002@182446.8822 ur731f2rd2h83t5gpv87tuh93b Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241002@182446.8831 ur731f2rd2h83t5gpv87tuh93b Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241002@182446.8843 ur731f2rd2h83t5gpv87tuh93b Query : select sestamp valor from se where ref ='324.657.00.01' and lote = 'r2400056200a'
20241002@182446.8856 ur731f2rd2h83t5gpv87tuh93b Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241002@182446.8870 ur731f2rd2h83t5gpv87tuh93b Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241002@182446.8881 ur731f2rd2h83t5gpv87tuh93b Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66fd87241066fd81ded8','aut66fd89915266fd81de01' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241002@182446.8885 ur731f2rd2h83t5gpv87tuh93b Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241002@182446.8900 ur731f2rd2h83t5gpv87tuh93b Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241002@182446.8928 ur731f2rd2h83t5gpv87tuh93b Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem) values ('aut66fd87241066fd81ded8',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',24.000 ,'aut66fd89915266fd81de01' ,0,0 ,2,23.00,190000,?,?,?,?)
20241002@182446.9199 ur731f2rd2h83t5gpv87tuh93b Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241002@182446.9215 ur731f2rd2h83t5gpv87tuh93b Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241002@182446.9241 ur731f2rd2h83t5gpv87tuh93b Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241002@182446.9256 ur731f2rd2h83t5gpv87tuh93b Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241002@182446.9264 ur731f2rd2h83t5gpv87tuh93b Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241002@182446.9276 ur731f2rd2h83t5gpv87tuh93b Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241002@182446.9291 ur731f2rd2h83t5gpv87tuh93b Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241002@182446.9303 ur731f2rd2h83t5gpv87tuh93b Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66fd88071066fd81dee2','aut66fd89915266fd81de01' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241002@182446.9307 ur731f2rd2h83t5gpv87tuh93b Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241002@182446.9322 ur731f2rd2h83t5gpv87tuh93b Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241002@182446.9350 ur731f2rd2h83t5gpv87tuh93b Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66fd88071066fd81dee2',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66fd89915266fd81de01' ,0,0 ,2,23.00,200000,?,?,?)
20241002@182446.9612 ur731f2rd2h83t5gpv87tuh93b Query : use flama_phc
20241002@182446.9615 ur731f2rd2h83t5gpv87tuh93b Query : select st.usalote valor from st where st.ref = '324.657.00.01'
20241002@182446.9634 ur731f2rd2h83t5gpv87tuh93b Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.657.00.01'
20241002@182446.9647 ur731f2rd2h83t5gpv87tuh93b Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241002@182446.9662 ur731f2rd2h83t5gpv87tuh93b Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241002@182446.9689 ur731f2rd2h83t5gpv87tuh93b Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241002@182446.9703 ur731f2rd2h83t5gpv87tuh93b Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241002@182446.9711 ur731f2rd2h83t5gpv87tuh93b Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241002@182446.9723 ur731f2rd2h83t5gpv87tuh93b Query : select sestamp valor from se where ref ='324.657.00.01' and lote = 'r2400056200a'
20241002@182446.9736 ur731f2rd2h83t5gpv87tuh93b Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241002@182446.9750 ur731f2rd2h83t5gpv87tuh93b Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241002@182446.9761 ur731f2rd2h83t5gpv87tuh93b Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66fd81111266fd81deed','aut66fd89915266fd81de01' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241002@182446.9765 ur731f2rd2h83t5gpv87tuh93b Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241002@182446.9779 ur731f2rd2h83t5gpv87tuh93b Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241002@182446.9806 ur731f2rd2h83t5gpv87tuh93b Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem) values ('aut66fd81111266fd81deed',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',24.000 ,'aut66fd89915266fd81de01' ,0,0 ,2,23.00,220000,?,?,?,?)
20241002@182447.6600 ur731f2rd2h83t5gpv87tuh93b Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241002@182447.8000 ur731f2rd2h83t5gpv87tuh93b Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241002@182447.1150 ur731f2rd2h83t5gpv87tuh93b Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241002@182447.1330 ur731f2rd2h83t5gpv87tuh93b Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241002@182447.1430 ur731f2rd2h83t5gpv87tuh93b Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241002@182447.1580 ur731f2rd2h83t5gpv87tuh93b Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241002@182447.1770 ur731f2rd2h83t5gpv87tuh93b Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241002@182447.1930 ur731f2rd2h83t5gpv87tuh93b Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66fd87434266fd81df03','aut66fd89915266fd81de01' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241002@182447.1990 ur731f2rd2h83t5gpv87tuh93b Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241002@182447.2150 ur731f2rd2h83t5gpv87tuh93b Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241002@182447.2450 ur731f2rd2h83t5gpv87tuh93b Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66fd87434266fd81df03',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66fd89915266fd81de01' ,0,0 ,2,23.00,230000,?,?,?)
20241002@182447.7360 ur731f2rd2h83t5gpv87tuh93b Query : use flama_phc
20241002@182447.8130 ur731f2rd2h83t5gpv87tuh93b Query : select st.usalote valor from st where st.ref = '324.657.00.01'
20241002@182447.8370 ur731f2rd2h83t5gpv87tuh93b Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.657.00.01'
20241002@182447.8520 ur731f2rd2h83t5gpv87tuh93b Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241002@182447.8690 ur731f2rd2h83t5gpv87tuh93b Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241002@182447.8950 ur731f2rd2h83t5gpv87tuh93b Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241002@182447.9100 ur731f2rd2h83t5gpv87tuh93b Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241002@182447.9190 ur731f2rd2h83t5gpv87tuh93b Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241002@182447.9310 ur731f2rd2h83t5gpv87tuh93b Query : select sestamp valor from se where ref ='324.657.00.01' and lote = 'r2400056200a'
20241002@182447.9460 ur731f2rd2h83t5gpv87tuh93b Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241002@182447.9610 ur731f2rd2h83t5gpv87tuh93b Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241002@182447.9730 ur731f2rd2h83t5gpv87tuh93b Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66fd86337966fd81df17','aut66fd89915266fd81de01' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241002@182447.9780 ur731f2rd2h83t5gpv87tuh93b Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241002@182447.9930 ur731f2rd2h83t5gpv87tuh93b Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241002@182447.1023 ur731f2rd2h83t5gpv87tuh93b Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem) values ('aut66fd86337966fd81df17',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',24.000 ,'aut66fd89915266fd81de01' ,0,0 ,2,23.00,250000,?,?,?,?)
20241002@182447.1342 ur731f2rd2h83t5gpv87tuh93b Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241002@182447.1360 ur731f2rd2h83t5gpv87tuh93b Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241002@182447.1388 ur731f2rd2h83t5gpv87tuh93b Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241002@182447.1405 ur731f2rd2h83t5gpv87tuh93b Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241002@182447.1416 ur731f2rd2h83t5gpv87tuh93b Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241002@182447.1432 ur731f2rd2h83t5gpv87tuh93b Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241002@182447.1448 ur731f2rd2h83t5gpv87tuh93b Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241002@182447.1463 ur731f2rd2h83t5gpv87tuh93b Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66fd89556966fd81df22','aut66fd89915266fd81de01' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241002@182447.1468 ur731f2rd2h83t5gpv87tuh93b Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241002@182447.1486 ur731f2rd2h83t5gpv87tuh93b Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241002@182447.1520 ur731f2rd2h83t5gpv87tuh93b Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66fd89556966fd81df22',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66fd89915266fd81de01' ,0,0 ,2,23.00,260000,?,?,?)
20241002@182447.1868 ur731f2rd2h83t5gpv87tuh93b Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut66fd89915266fd81de01','2406365','wait',39,'adm09112754980.682000002')
20241002@182447.1939 ur731f2rd2h83t5gpv87tuh93b Query : use flama_phc
20241002@182447.1943 ur731f2rd2h83t5gpv87tuh93b Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20241002@182447.1972 ur731f2rd2h83t5gpv87tuh93b Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2372';
20241002@182447.2004 ur731f2rd2h83t5gpv87tuh93b Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2372';
20241002@182447.2048 ur731f2rd2h83t5gpv87tuh93b Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2372';
20241002@182447.2076 ur731f2rd2h83t5gpv87tuh93b Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2372';
20241002@182447.2701 oi4ji4p9ukmq3lvll2qn4u7hnk Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20241002@182447.2713 oi4ji4p9ukmq3lvll2qn4u7hnk Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20241002@182447.2771 oi4ji4p9ukmq3lvll2qn4u7hnk Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2373';
20241002@182447.2836 oi4ji4p9ukmq3lvll2qn4u7hnk Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2373';
20241002@182447.2890 oi4ji4p9ukmq3lvll2qn4u7hnk Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2373';
20241002@182447.2917 oi4ji4p9ukmq3lvll2qn4u7hnk Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2373';
20241002@182447.2966 oi4ji4p9ukmq3lvll2qn4u7hnk Query : use flama_phc
20241002@182447.2969 oi4ji4p9ukmq3lvll2qn4u7hnk Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20241002@182447.3033 oi4ji4p9ukmq3lvll2qn4u7hnk Query : use flama_phc
20241002@182447.3036 oi4ji4p9ukmq3lvll2qn4u7hnk Query : select no, estab,szadrsdesc from szadrs where u_coddest=4740
20241002@182447.3082 oi4ji4p9ukmq3lvll2qn4u7hnk Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '326.595.00.01'
20241002@182447.3248 oi4ji4p9ukmq3lvll2qn4u7hnk Query : use flama_phc
20241002@182447.3253 oi4ji4p9ukmq3lvll2qn4u7hnk Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20241002@182447.3293 oi4ji4p9ukmq3lvll2qn4u7hnk Query : use flama_phc
20241002@182447.3297 oi4ji4p9ukmq3lvll2qn4u7hnk Query : select top 1 1 valor from td where td.ndoc = 39
20241002@182447.3329 oi4ji4p9ukmq3lvll2qn4u7hnk Query : use flama_phc
20241002@182447.3333 oi4ji4p9ukmq3lvll2qn4u7hnk 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')
20241002@182447.3363 oi4ji4p9ukmq3lvll2qn4u7hnk 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
20241002@182447.3401 oi4ji4p9ukmq3lvll2qn4u7hnk Query : use flama_phc
20241002@182447.3404 oi4ji4p9ukmq3lvll2qn4u7hnk Query : select top 1 ~inactivo valor from cl where no = '100810' and estab = 0 order by inactivo desc
20241002@182447.3434 oi4ji4p9ukmq3lvll2qn4u7hnk Query : use flama_phc
20241002@182447.3439 oi4ji4p9ukmq3lvll2qn4u7hnk Query : select top 1 tipodoc,regrd from td where ndoc = 39
20241002@182447.3470 oi4ji4p9ukmq3lvll2qn4u7hnk Query : use flama_phc
20241002@182447.3473 oi4ji4p9ukmq3lvll2qn4u7hnk Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20241002@182447.3512 oi4ji4p9ukmq3lvll2qn4u7hnk Query : use flama_phc
20241002@182447.3515 oi4ji4p9ukmq3lvll2qn4u7hnk Query : select szadrsstamp valor from szadrs where szadrsdesc='100810 - worten-equipamentos para o lar,sa.'
20241002@182447.3559 oi4ji4p9ukmq3lvll2qn4u7hnk Query : use flama_phc
20241002@182447.3561 oi4ji4p9ukmq3lvll2qn4u7hnk Query : select 1 valor from td where ndoc = 39
20241002@182447.3576 oi4ji4p9ukmq3lvll2qn4u7hnk Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20241002@182447.3591 oi4ji4p9ukmq3lvll2qn4u7hnk Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241002@182447.3608 oi4ji4p9ukmq3lvll2qn4u7hnk Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20241002@182447.3627 oi4ji4p9ukmq3lvll2qn4u7hnk Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241002@182447.3643 oi4ji4p9ukmq3lvll2qn4u7hnk Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20241002@182447.3671 oi4ji4p9ukmq3lvll2qn4u7hnk Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241002@182447.3686 oi4ji4p9ukmq3lvll2qn4u7hnk Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20241002@182447.3699 oi4ji4p9ukmq3lvll2qn4u7hnk Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20241002@182447.3764 oi4ji4p9ukmq3lvll2qn4u7hnk Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20241002@182447.3777 oi4ji4p9ukmq3lvll2qn4u7hnk Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241002@182447.3793 oi4ji4p9ukmq3lvll2qn4u7hnk Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20241002@182447.3808 oi4ji4p9ukmq3lvll2qn4u7hnk Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut66fd87638166fd81df5a' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20241002@182447.4169 oi4ji4p9ukmq3lvll2qn4u7hnk Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241002@182447.4243 oi4ji4p9ukmq3lvll2qn4u7hnk Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20241002@182447.4279 oi4ji4p9ukmq3lvll2qn4u7hnk Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20241002@182447.4291 oi4ji4p9ukmq3lvll2qn4u7hnk Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20241002@182447.4302 oi4ji4p9ukmq3lvll2qn4u7hnk Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20241002@182447.4313 oi4ji4p9ukmq3lvll2qn4u7hnk Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20241002@182447.4324 oi4ji4p9ukmq3lvll2qn4u7hnk Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20241002@182447.4336 oi4ji4p9ukmq3lvll2qn4u7hnk Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20241002@182447.4349 oi4ji4p9ukmq3lvll2qn4u7hnk Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut66fd87638166fd81df5a',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20241002@182447.4609 oi4ji4p9ukmq3lvll2qn4u7hnk Query : select top 1 fno valor from wsftdata order by fno desc
20241002@182447.4630 oi4ji4p9ukmq3lvll2qn4u7hnk Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241002@182447.4645 oi4ji4p9ukmq3lvll2qn4u7hnk Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20241002@182447.4667 oi4ji4p9ukmq3lvll2qn4u7hnk Query : select 'normal' from dummy
20241002@182447.4681 oi4ji4p9ukmq3lvll2qn4u7hnk Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut66fd87638166fd81df5a',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',1046,100810,0,'2024-10-02',39,'euro',0,0,2024 ,?,?)
20241002@182447.5208 oi4ji4p9ukmq3lvll2qn4u7hnk Query : use flama_phc
20241002@182447.5211 oi4ji4p9ukmq3lvll2qn4u7hnk Query : select st.usalote valor from st where st.ref = '326.595.00.01'
20241002@182447.5236 oi4ji4p9ukmq3lvll2qn4u7hnk Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '326.595.00.01'
20241002@182447.5393 oi4ji4p9ukmq3lvll2qn4u7hnk Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241002@182447.5430 oi4ji4p9ukmq3lvll2qn4u7hnk Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241002@182447.5456 oi4ji4p9ukmq3lvll2qn4u7hnk Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241002@182447.5471 oi4ji4p9ukmq3lvll2qn4u7hnk Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241002@182447.5479 oi4ji4p9ukmq3lvll2qn4u7hnk Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241002@182447.5493 oi4ji4p9ukmq3lvll2qn4u7hnk Query : select sestamp valor from se where ref ='326.595.00.01' and lote = 'r2400411200a'
20241002@182447.5515 oi4ji4p9ukmq3lvll2qn4u7hnk Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241002@182447.5533 oi4ji4p9ukmq3lvll2qn4u7hnk Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241002@182447.5545 oi4ji4p9ukmq3lvll2qn4u7hnk Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66fd85097966fd81df86','aut66fd87638166fd81df5a' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241002@182447.5549 oi4ji4p9ukmq3lvll2qn4u7hnk Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241002@182447.5565 oi4ji4p9ukmq3lvll2qn4u7hnk Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241002@182447.5593 oi4ji4p9ukmq3lvll2qn4u7hnk Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem) values ('aut66fd85097966fd81df86',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',6.000 ,'aut66fd87638166fd81df5a' ,0,0 ,2,23.00,10000,?,?,?,?)
20241002@182447.5855 oi4ji4p9ukmq3lvll2qn4u7hnk Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut66fd87638166fd81df5a','2406381','wait',39,'adm09112754980.682000002')
20241002@182447.5926 oi4ji4p9ukmq3lvll2qn4u7hnk Query : use flama_phc
20241002@182447.5929 oi4ji4p9ukmq3lvll2qn4u7hnk Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20241002@182447.5960 oi4ji4p9ukmq3lvll2qn4u7hnk Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2373';
20241002@182447.5991 oi4ji4p9ukmq3lvll2qn4u7hnk Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2373';
20241002@182447.6031 oi4ji4p9ukmq3lvll2qn4u7hnk Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2373';
20241002@182447.6057 oi4ji4p9ukmq3lvll2qn4u7hnk Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2373';
20241002@182447.6604 1t7t83e02bastgec94ffactekm Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20241002@182447.6614 1t7t83e02bastgec94ffactekm Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20241002@182447.6670 1t7t83e02bastgec94ffactekm Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2374';
20241002@182447.6733 1t7t83e02bastgec94ffactekm Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2374';
20241002@182447.6797 1t7t83e02bastgec94ffactekm Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2374';
20241002@182447.6824 1t7t83e02bastgec94ffactekm Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2374';
20241002@182447.6875 1t7t83e02bastgec94ffactekm Query : use flama_phc
20241002@182447.6878 1t7t83e02bastgec94ffactekm Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20241002@182447.6939 1t7t83e02bastgec94ffactekm Query : use flama_phc
20241002@182447.6942 1t7t83e02bastgec94ffactekm Query : select no, estab,szadrsdesc from szadrs where u_coddest=1179
20241002@182447.7027 1t7t83e02bastgec94ffactekm Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.734.00.02'
20241002@182447.7204 1t7t83e02bastgec94ffactekm Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1824.00.1'
20241002@182447.7372 1t7t83e02bastgec94ffactekm Query : use flama_phc
20241002@182447.7376 1t7t83e02bastgec94ffactekm Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20241002@182447.7409 1t7t83e02bastgec94ffactekm Query : use flama_phc
20241002@182447.7412 1t7t83e02bastgec94ffactekm Query : select top 1 1 valor from td where td.ndoc = 39
20241002@182447.7442 1t7t83e02bastgec94ffactekm Query : use flama_phc
20241002@182447.7445 1t7t83e02bastgec94ffactekm 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')
20241002@182447.7500 1t7t83e02bastgec94ffactekm 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
20241002@182447.8690 1t7t83e02bastgec94ffactekm Query : use flama_phc
20241002@182447.8696 1t7t83e02bastgec94ffactekm Query : select top 1 ~inactivo valor from cl where no = '102332' and estab = 0 order by inactivo desc
20241002@182447.8830 1t7t83e02bastgec94ffactekm Query : use flama_phc
20241002@182447.8833 1t7t83e02bastgec94ffactekm Query : select top 1 tipodoc,regrd from td where ndoc = 39
20241002@182447.8864 1t7t83e02bastgec94ffactekm Query : use flama_phc
20241002@182447.8867 1t7t83e02bastgec94ffactekm Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20241002@182447.8905 1t7t83e02bastgec94ffactekm Query : use flama_phc
20241002@182447.8908 1t7t83e02bastgec94ffactekm Query : select szadrsstamp valor from szadrs where szadrsdesc='o varandÃo,lda (grijÓ)'
20241002@182447.8953 1t7t83e02bastgec94ffactekm Query : use flama_phc
20241002@182447.8956 1t7t83e02bastgec94ffactekm Query : select 1 valor from td where ndoc = 39
20241002@182447.8968 1t7t83e02bastgec94ffactekm Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20241002@182447.8982 1t7t83e02bastgec94ffactekm Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241002@182447.8999 1t7t83e02bastgec94ffactekm Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20241002@182447.9018 1t7t83e02bastgec94ffactekm Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241002@182447.9032 1t7t83e02bastgec94ffactekm Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20241002@182447.9061 1t7t83e02bastgec94ffactekm Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241002@182447.9076 1t7t83e02bastgec94ffactekm Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20241002@182447.9088 1t7t83e02bastgec94ffactekm Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20241002@182447.9153 1t7t83e02bastgec94ffactekm Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20241002@182447.9165 1t7t83e02bastgec94ffactekm Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241002@182447.9202 1t7t83e02bastgec94ffactekm Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20241002@182447.9218 1t7t83e02bastgec94ffactekm Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut66fd89684566fd81dfdd' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20241002@182447.9404 1t7t83e02bastgec94ffactekm Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241002@182447.9424 1t7t83e02bastgec94ffactekm Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20241002@182447.9459 1t7t83e02bastgec94ffactekm Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20241002@182447.9472 1t7t83e02bastgec94ffactekm Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20241002@182447.9484 1t7t83e02bastgec94ffactekm Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20241002@182447.9496 1t7t83e02bastgec94ffactekm Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20241002@182447.9508 1t7t83e02bastgec94ffactekm Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20241002@182447.9520 1t7t83e02bastgec94ffactekm Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20241002@182447.9532 1t7t83e02bastgec94ffactekm Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut66fd89684566fd81dfdd',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20241002@182447.9773 1t7t83e02bastgec94ffactekm Query : select top 1 fno valor from wsftdata order by fno desc
20241002@182447.9796 1t7t83e02bastgec94ffactekm Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241002@182447.9812 1t7t83e02bastgec94ffactekm Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20241002@182447.9837 1t7t83e02bastgec94ffactekm Query : select 'normal' from dummy
20241002@182447.9855 1t7t83e02bastgec94ffactekm Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut66fd89684566fd81dfdd',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',1047,102332,0,'2024-10-02',39,'euro',0,0,2024 ,?,?)
20241002@182448.1500 1t7t83e02bastgec94ffactekm Query : use flama_phc
20241002@182448.1530 1t7t83e02bastgec94ffactekm Query : select st.usalote valor from st where st.ref = '324.734.00.02'
20241002@182448.1760 1t7t83e02bastgec94ffactekm Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.734.00.02'
20241002@182448.3240 1t7t83e02bastgec94ffactekm Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241002@182448.3430 1t7t83e02bastgec94ffactekm Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241002@182448.3730 1t7t83e02bastgec94ffactekm Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241002@182448.3910 1t7t83e02bastgec94ffactekm Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241002@182448.4000 1t7t83e02bastgec94ffactekm Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241002@182448.4130 1t7t83e02bastgec94ffactekm Query : select sestamp valor from se where ref ='324.734.00.02' and lote = 'r2400471100a'
20241002@182448.4280 1t7t83e02bastgec94ffactekm Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241002@182448.4430 1t7t83e02bastgec94ffactekm Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241002@182448.4550 1t7t83e02bastgec94ffactekm Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66fd88820466fd81e00a','aut66fd89684566fd81dfdd' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241002@182448.4590 1t7t83e02bastgec94ffactekm Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241002@182448.4740 1t7t83e02bastgec94ffactekm Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241002@182448.5040 1t7t83e02bastgec94ffactekm Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem) values ('aut66fd88820466fd81e00a',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',8.000 ,'aut66fd89684566fd81dfdd' ,0,0 ,2,23.00,10000,?,?,?,?)
20241002@182448.7600 1t7t83e02bastgec94ffactekm Query : use flama_phc
20241002@182448.7640 1t7t83e02bastgec94ffactekm Query : select st.usalote valor from st where st.ref = '324.1824.00.1'
20241002@182448.7860 1t7t83e02bastgec94ffactekm Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.1824.00.1'
20241002@182448.9410 1t7t83e02bastgec94ffactekm Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241002@182448.9560 1t7t83e02bastgec94ffactekm Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241002@182448.9830 1t7t83e02bastgec94ffactekm Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241002@182448.9980 1t7t83e02bastgec94ffactekm Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241002@182448.1007 1t7t83e02bastgec94ffactekm Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241002@182448.1019 1t7t83e02bastgec94ffactekm Query : select sestamp valor from se where ref ='324.1824.00.1' and lote = 'r2301209200a'
20241002@182448.1033 1t7t83e02bastgec94ffactekm Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241002@182448.1048 1t7t83e02bastgec94ffactekm Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241002@182448.1060 1t7t83e02bastgec94ffactekm Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66fd88250466fd81e019','aut66fd89684566fd81dfdd' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241002@182448.1064 1t7t83e02bastgec94ffactekm Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241002@182448.1077 1t7t83e02bastgec94ffactekm Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241002@182448.1104 1t7t83e02bastgec94ffactekm Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem) values ('aut66fd88250466fd81e019',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',8.000 ,'aut66fd89684566fd81dfdd' ,0,0 ,2,23.00,20000,?,?,?,?)
20241002@182448.1392 1t7t83e02bastgec94ffactekm Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241002@182448.1412 1t7t83e02bastgec94ffactekm Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241002@182448.1461 1t7t83e02bastgec94ffactekm Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241002@182448.1476 1t7t83e02bastgec94ffactekm Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241002@182448.1486 1t7t83e02bastgec94ffactekm Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241002@182448.1499 1t7t83e02bastgec94ffactekm Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241002@182448.1515 1t7t83e02bastgec94ffactekm Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241002@182448.1527 1t7t83e02bastgec94ffactekm Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66fd83066966fd81e024','aut66fd89684566fd81dfdd' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241002@182448.1531 1t7t83e02bastgec94ffactekm Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241002@182448.1548 1t7t83e02bastgec94ffactekm Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241002@182448.1590 1t7t83e02bastgec94ffactekm Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66fd83066966fd81e024',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66fd89684566fd81dfdd' ,0,0 ,2,23.00,30000,?,?,?)
20241002@182448.1927 1t7t83e02bastgec94ffactekm Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut66fd89684566fd81dfdd','2406382','wait',39,'adm09112754980.682000002')
20241002@182448.2074 1t7t83e02bastgec94ffactekm Query : use flama_phc
20241002@182448.2078 1t7t83e02bastgec94ffactekm Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20241002@182448.2108 1t7t83e02bastgec94ffactekm Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2374';
20241002@182448.2140 1t7t83e02bastgec94ffactekm Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2374';
20241002@182448.2183 1t7t83e02bastgec94ffactekm Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2374';
20241002@182448.2213 1t7t83e02bastgec94ffactekm Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2374';
20241002@182448.2783 qc0phbu7vo189mkdj0mrtq4sbd Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20241002@182448.2794 qc0phbu7vo189mkdj0mrtq4sbd Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20241002@182448.2859 qc0phbu7vo189mkdj0mrtq4sbd Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2375';
20241002@182448.2914 qc0phbu7vo189mkdj0mrtq4sbd Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2375';
20241002@182448.2966 qc0phbu7vo189mkdj0mrtq4sbd Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2375';
20241002@182448.2990 qc0phbu7vo189mkdj0mrtq4sbd Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2375';
20241002@182448.3036 qc0phbu7vo189mkdj0mrtq4sbd Query : use flama_phc
20241002@182448.3039 qc0phbu7vo189mkdj0mrtq4sbd Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20241002@182448.3099 qc0phbu7vo189mkdj0mrtq4sbd Query : use flama_phc
20241002@182448.3102 qc0phbu7vo189mkdj0mrtq4sbd Query : select no, estab,szadrsdesc from szadrs where u_coddest=4740
20241002@182448.3161 qc0phbu7vo189mkdj0mrtq4sbd 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'
20241002@182448.3336 qc0phbu7vo189mkdj0mrtq4sbd Query : use flama_phc
20241002@182448.3340 qc0phbu7vo189mkdj0mrtq4sbd Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20241002@182448.3376 qc0phbu7vo189mkdj0mrtq4sbd Query : use flama_phc
20241002@182448.3379 qc0phbu7vo189mkdj0mrtq4sbd Query : select top 1 1 valor from td where td.ndoc = 39
20241002@182448.3409 qc0phbu7vo189mkdj0mrtq4sbd Query : use flama_phc
20241002@182448.3411 qc0phbu7vo189mkdj0mrtq4sbd 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')
20241002@182448.3441 qc0phbu7vo189mkdj0mrtq4sbd 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
20241002@182448.3475 qc0phbu7vo189mkdj0mrtq4sbd Query : use flama_phc
20241002@182448.3478 qc0phbu7vo189mkdj0mrtq4sbd Query : select top 1 ~inactivo valor from cl where no = '100810' and estab = 0 order by inactivo desc
20241002@182448.3510 qc0phbu7vo189mkdj0mrtq4sbd Query : use flama_phc
20241002@182448.3514 qc0phbu7vo189mkdj0mrtq4sbd Query : select top 1 tipodoc,regrd from td where ndoc = 39
20241002@182448.3545 qc0phbu7vo189mkdj0mrtq4sbd Query : use flama_phc
20241002@182448.3549 qc0phbu7vo189mkdj0mrtq4sbd Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20241002@182448.3587 qc0phbu7vo189mkdj0mrtq4sbd Query : use flama_phc
20241002@182448.3590 qc0phbu7vo189mkdj0mrtq4sbd Query : select szadrsstamp valor from szadrs where szadrsdesc='100810 - worten-equipamentos para o lar,sa.'
20241002@182448.3632 qc0phbu7vo189mkdj0mrtq4sbd Query : use flama_phc
20241002@182448.3635 qc0phbu7vo189mkdj0mrtq4sbd Query : select 1 valor from td where ndoc = 39
20241002@182448.3648 qc0phbu7vo189mkdj0mrtq4sbd Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20241002@182448.3662 qc0phbu7vo189mkdj0mrtq4sbd Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241002@182448.3679 qc0phbu7vo189mkdj0mrtq4sbd Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20241002@182448.3699 qc0phbu7vo189mkdj0mrtq4sbd Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241002@182448.3717 qc0phbu7vo189mkdj0mrtq4sbd Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20241002@182448.3748 qc0phbu7vo189mkdj0mrtq4sbd Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241002@182448.3763 qc0phbu7vo189mkdj0mrtq4sbd Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20241002@182448.3775 qc0phbu7vo189mkdj0mrtq4sbd Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20241002@182448.3842 qc0phbu7vo189mkdj0mrtq4sbd Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20241002@182448.3856 qc0phbu7vo189mkdj0mrtq4sbd Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241002@182448.3871 qc0phbu7vo189mkdj0mrtq4sbd Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20241002@182448.3887 qc0phbu7vo189mkdj0mrtq4sbd Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut66fd87898566fd81e05c' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20241002@182448.4065 qc0phbu7vo189mkdj0mrtq4sbd Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241002@182448.4081 qc0phbu7vo189mkdj0mrtq4sbd Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20241002@182448.4116 qc0phbu7vo189mkdj0mrtq4sbd Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20241002@182448.4129 qc0phbu7vo189mkdj0mrtq4sbd Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20241002@182448.4142 qc0phbu7vo189mkdj0mrtq4sbd Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20241002@182448.4154 qc0phbu7vo189mkdj0mrtq4sbd Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20241002@182448.4167 qc0phbu7vo189mkdj0mrtq4sbd Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20241002@182448.4179 qc0phbu7vo189mkdj0mrtq4sbd Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20241002@182448.4193 qc0phbu7vo189mkdj0mrtq4sbd Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut66fd87898566fd81e05c',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20241002@182448.4455 qc0phbu7vo189mkdj0mrtq4sbd Query : select top 1 fno valor from wsftdata order by fno desc
20241002@182448.4478 qc0phbu7vo189mkdj0mrtq4sbd Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241002@182448.4495 qc0phbu7vo189mkdj0mrtq4sbd Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20241002@182448.4517 qc0phbu7vo189mkdj0mrtq4sbd Query : select 'normal' from dummy
20241002@182448.4532 qc0phbu7vo189mkdj0mrtq4sbd Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut66fd87898566fd81e05c',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',1048,100810,0,'2024-10-02',39,'euro',0,0,2024 ,?,?)
20241002@182448.4827 qc0phbu7vo189mkdj0mrtq4sbd Query : use flama_phc
20241002@182448.4831 qc0phbu7vo189mkdj0mrtq4sbd Query : select st.usalote valor from st where st.ref = '324.1667.00.1'
20241002@182448.4855 qc0phbu7vo189mkdj0mrtq4sbd Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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'
20241002@182448.5010 qc0phbu7vo189mkdj0mrtq4sbd Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241002@182448.5027 qc0phbu7vo189mkdj0mrtq4sbd Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241002@182448.5055 qc0phbu7vo189mkdj0mrtq4sbd Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241002@182448.5071 qc0phbu7vo189mkdj0mrtq4sbd Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241002@182448.5101 qc0phbu7vo189mkdj0mrtq4sbd Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241002@182448.5112 qc0phbu7vo189mkdj0mrtq4sbd Query : select sestamp valor from se where ref ='324.1667.00.1' and lote = 'r2400065200a'
20241002@182448.5134 qc0phbu7vo189mkdj0mrtq4sbd Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241002@182448.5149 qc0phbu7vo189mkdj0mrtq4sbd Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241002@182448.5162 qc0phbu7vo189mkdj0mrtq4sbd Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66fd82629466fd81e07d','aut66fd87898566fd81e05c' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241002@182448.5167 qc0phbu7vo189mkdj0mrtq4sbd Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241002@182448.5182 qc0phbu7vo189mkdj0mrtq4sbd Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241002@182448.5215 qc0phbu7vo189mkdj0mrtq4sbd Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem) values ('aut66fd82629466fd81e07d',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',1.000 ,'aut66fd87898566fd81e05c' ,0,0 ,2,23.00,10000,?,?,?,?)
20241002@182448.5488 qc0phbu7vo189mkdj0mrtq4sbd Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241002@182448.5508 qc0phbu7vo189mkdj0mrtq4sbd Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241002@182448.5532 qc0phbu7vo189mkdj0mrtq4sbd Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241002@182448.5567 qc0phbu7vo189mkdj0mrtq4sbd Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241002@182448.5576 qc0phbu7vo189mkdj0mrtq4sbd Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241002@182448.5588 qc0phbu7vo189mkdj0mrtq4sbd Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241002@182448.5602 qc0phbu7vo189mkdj0mrtq4sbd Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241002@182448.5613 qc0phbu7vo189mkdj0mrtq4sbd Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66fd80549466fd81e088','aut66fd87898566fd81e05c' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241002@182448.5618 qc0phbu7vo189mkdj0mrtq4sbd Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241002@182448.5632 qc0phbu7vo189mkdj0mrtq4sbd Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241002@182448.5661 qc0phbu7vo189mkdj0mrtq4sbd Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66fd80549466fd81e088',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66fd87898566fd81e05c' ,0,0 ,2,23.00,20000,?,?,?)
20241002@182448.5930 qc0phbu7vo189mkdj0mrtq4sbd Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut66fd87898566fd81e05c','2406383','wait',39,'adm09112754980.682000002')
20241002@182448.6001 qc0phbu7vo189mkdj0mrtq4sbd Query : use flama_phc
20241002@182448.6004 qc0phbu7vo189mkdj0mrtq4sbd Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20241002@182448.6033 qc0phbu7vo189mkdj0mrtq4sbd Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2375';
20241002@182448.6065 qc0phbu7vo189mkdj0mrtq4sbd Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2375';
20241002@182448.6107 qc0phbu7vo189mkdj0mrtq4sbd Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2375';
20241002@182448.6137 qc0phbu7vo189mkdj0mrtq4sbd Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2375';
20241002@182448.7862 2mhv8scnvdrclmtq33prc0dprp Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20241002@182448.7873 2mhv8scnvdrclmtq33prc0dprp Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20241002@182448.7927 2mhv8scnvdrclmtq33prc0dprp Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2376';
20241002@182448.7985 2mhv8scnvdrclmtq33prc0dprp Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2376';
20241002@182448.8038 2mhv8scnvdrclmtq33prc0dprp Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2376';
20241002@182448.8067 2mhv8scnvdrclmtq33prc0dprp Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2376';
20241002@182448.8124 2mhv8scnvdrclmtq33prc0dprp Query : use flama_phc
20241002@182448.8127 2mhv8scnvdrclmtq33prc0dprp Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20241002@182448.8186 2mhv8scnvdrclmtq33prc0dprp Query : use flama_phc
20241002@182448.8189 2mhv8scnvdrclmtq33prc0dprp Query : select no, estab,szadrsdesc from szadrs where u_coddest=6737
20241002@182448.8282 2mhv8scnvdrclmtq33prc0dprp Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '328.9326.00.1'
20241002@182448.8454 2mhv8scnvdrclmtq33prc0dprp Query : use flama_phc
20241002@182448.8457 2mhv8scnvdrclmtq33prc0dprp Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20241002@182448.8492 2mhv8scnvdrclmtq33prc0dprp Query : use flama_phc
20241002@182448.8495 2mhv8scnvdrclmtq33prc0dprp Query : select top 1 1 valor from td where td.ndoc = 39
20241002@182448.8523 2mhv8scnvdrclmtq33prc0dprp Query : use flama_phc
20241002@182448.8526 2mhv8scnvdrclmtq33prc0dprp 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')
20241002@182448.8554 2mhv8scnvdrclmtq33prc0dprp 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
20241002@182448.8588 2mhv8scnvdrclmtq33prc0dprp Query : use flama_phc
20241002@182448.8591 2mhv8scnvdrclmtq33prc0dprp Query : select top 1 ~inactivo valor from cl where no = '100810' and estab = 0 order by inactivo desc
20241002@182448.8621 2mhv8scnvdrclmtq33prc0dprp Query : use flama_phc
20241002@182448.8624 2mhv8scnvdrclmtq33prc0dprp Query : select top 1 tipodoc,regrd from td where ndoc = 39
20241002@182448.8655 2mhv8scnvdrclmtq33prc0dprp Query : use flama_phc
20241002@182448.8658 2mhv8scnvdrclmtq33prc0dprp Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20241002@182448.8700 2mhv8scnvdrclmtq33prc0dprp Query : use flama_phc
20241002@182448.8703 2mhv8scnvdrclmtq33prc0dprp Query : select szadrsstamp valor from szadrs where szadrsdesc='100810 - worten-plaza large formats rainha'
20241002@182448.8749 2mhv8scnvdrclmtq33prc0dprp Query : use flama_phc
20241002@182448.8752 2mhv8scnvdrclmtq33prc0dprp Query : select 1 valor from td where ndoc = 39
20241002@182448.8765 2mhv8scnvdrclmtq33prc0dprp Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20241002@182448.8780 2mhv8scnvdrclmtq33prc0dprp Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241002@182448.8797 2mhv8scnvdrclmtq33prc0dprp Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20241002@182448.8816 2mhv8scnvdrclmtq33prc0dprp Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241002@182448.8831 2mhv8scnvdrclmtq33prc0dprp Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20241002@182448.8859 2mhv8scnvdrclmtq33prc0dprp Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241002@182448.8873 2mhv8scnvdrclmtq33prc0dprp Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20241002@182448.8885 2mhv8scnvdrclmtq33prc0dprp Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20241002@182448.8951 2mhv8scnvdrclmtq33prc0dprp Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20241002@182448.8964 2mhv8scnvdrclmtq33prc0dprp Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241002@182448.8977 2mhv8scnvdrclmtq33prc0dprp Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20241002@182448.8993 2mhv8scnvdrclmtq33prc0dprp Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut66fd87347866fd81e0d8' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20241002@182448.9205 2mhv8scnvdrclmtq33prc0dprp Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241002@182448.9223 2mhv8scnvdrclmtq33prc0dprp Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20241002@182448.9261 2mhv8scnvdrclmtq33prc0dprp Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20241002@182448.9274 2mhv8scnvdrclmtq33prc0dprp Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20241002@182448.9288 2mhv8scnvdrclmtq33prc0dprp Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20241002@182448.9303 2mhv8scnvdrclmtq33prc0dprp Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20241002@182448.9317 2mhv8scnvdrclmtq33prc0dprp Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20241002@182448.9330 2mhv8scnvdrclmtq33prc0dprp Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20241002@182448.9345 2mhv8scnvdrclmtq33prc0dprp Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut66fd87347866fd81e0d8',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20241002@182448.9660 2mhv8scnvdrclmtq33prc0dprp Query : select top 1 fno valor from wsftdata order by fno desc
20241002@182448.9693 2mhv8scnvdrclmtq33prc0dprp Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241002@182448.9712 2mhv8scnvdrclmtq33prc0dprp Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20241002@182448.9738 2mhv8scnvdrclmtq33prc0dprp Query : select 'normal' from dummy
20241002@182448.9755 2mhv8scnvdrclmtq33prc0dprp Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut66fd87347866fd81e0d8',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',1049,100810,0,'2024-10-02',39,'euro',0,0,2024 ,?,?)
20241002@182449.7900 2mhv8scnvdrclmtq33prc0dprp Query : use flama_phc
20241002@182449.8200 2mhv8scnvdrclmtq33prc0dprp Query : select st.usalote valor from st where st.ref = '328.9326.00.1'
20241002@182449.1060 2mhv8scnvdrclmtq33prc0dprp Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '328.9326.00.1'
20241002@182449.2590 2mhv8scnvdrclmtq33prc0dprp Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241002@182449.2770 2mhv8scnvdrclmtq33prc0dprp Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241002@182449.3060 2mhv8scnvdrclmtq33prc0dprp Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241002@182449.3210 2mhv8scnvdrclmtq33prc0dprp Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241002@182449.3300 2mhv8scnvdrclmtq33prc0dprp Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241002@182449.3460 2mhv8scnvdrclmtq33prc0dprp Query : select sestamp valor from se where ref ='328.9326.00.1' and lote = 'r2300691100a'
20241002@182449.3670 2mhv8scnvdrclmtq33prc0dprp Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241002@182449.3820 2mhv8scnvdrclmtq33prc0dprp Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241002@182449.3950 2mhv8scnvdrclmtq33prc0dprp Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66fd86062366fd81e108','aut66fd87347866fd81e0d8' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241002@182449.3990 2mhv8scnvdrclmtq33prc0dprp Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241002@182449.4140 2mhv8scnvdrclmtq33prc0dprp Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241002@182449.4470 2mhv8scnvdrclmtq33prc0dprp Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem) values ('aut66fd86062366fd81e108',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',3.000 ,'aut66fd87347866fd81e0d8' ,0,0 ,2,23.00,10000,?,?,?,?)
20241002@182449.7270 2mhv8scnvdrclmtq33prc0dprp Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241002@182449.7440 2mhv8scnvdrclmtq33prc0dprp Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241002@182449.7710 2mhv8scnvdrclmtq33prc0dprp Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241002@182449.7860 2mhv8scnvdrclmtq33prc0dprp Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241002@182449.7950 2mhv8scnvdrclmtq33prc0dprp Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241002@182449.8070 2mhv8scnvdrclmtq33prc0dprp Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241002@182449.8220 2mhv8scnvdrclmtq33prc0dprp Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241002@182449.8340 2mhv8scnvdrclmtq33prc0dprp Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66fd84033766fd81e113','aut66fd87347866fd81e0d8' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241002@182449.8380 2mhv8scnvdrclmtq33prc0dprp Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241002@182449.8530 2mhv8scnvdrclmtq33prc0dprp Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241002@182449.8830 2mhv8scnvdrclmtq33prc0dprp Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66fd84033766fd81e113',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66fd87347866fd81e0d8' ,0,0 ,2,23.00,20000,?,?,?)
20241002@182449.1153 2mhv8scnvdrclmtq33prc0dprp Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut66fd87347866fd81e0d8','2406384','wait',39,'adm09112754980.682000002')
20241002@182449.1230 2mhv8scnvdrclmtq33prc0dprp Query : use flama_phc
20241002@182449.1255 2mhv8scnvdrclmtq33prc0dprp Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20241002@182449.1286 2mhv8scnvdrclmtq33prc0dprp Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2376';
20241002@182449.1317 2mhv8scnvdrclmtq33prc0dprp Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2376';
20241002@182449.1359 2mhv8scnvdrclmtq33prc0dprp Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2376';
20241002@182449.1386 2mhv8scnvdrclmtq33prc0dprp Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2376';
20241002@182449.1977 drf862c1n06b50ul0qbnf9kbjo Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20241002@182449.1988 drf862c1n06b50ul0qbnf9kbjo Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20241002@182449.2043 drf862c1n06b50ul0qbnf9kbjo Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2377';
20241002@182449.2261 drf862c1n06b50ul0qbnf9kbjo Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2377';
20241002@182449.2316 drf862c1n06b50ul0qbnf9kbjo Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2377';
20241002@182449.2346 drf862c1n06b50ul0qbnf9kbjo Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2377';
20241002@182449.2396 drf862c1n06b50ul0qbnf9kbjo Query : use flama_phc
20241002@182449.2400 drf862c1n06b50ul0qbnf9kbjo Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20241002@182449.2460 drf862c1n06b50ul0qbnf9kbjo Query : use flama_phc
20241002@182449.2464 drf862c1n06b50ul0qbnf9kbjo Query : select no, estab,szadrsdesc from szadrs where u_coddest=6737
20241002@182449.2507 drf862c1n06b50ul0qbnf9kbjo Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '328.9326.00.1'
20241002@182449.2527 drf862c1n06b50ul0qbnf9kbjo Query : use flama_phc
20241002@182449.2530 drf862c1n06b50ul0qbnf9kbjo Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20241002@182449.2565 drf862c1n06b50ul0qbnf9kbjo Query : use flama_phc
20241002@182449.2569 drf862c1n06b50ul0qbnf9kbjo Query : select top 1 1 valor from td where td.ndoc = 39
20241002@182449.2600 drf862c1n06b50ul0qbnf9kbjo Query : use flama_phc
20241002@182449.2604 drf862c1n06b50ul0qbnf9kbjo 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')
20241002@182449.2632 drf862c1n06b50ul0qbnf9kbjo 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
20241002@182449.2690 drf862c1n06b50ul0qbnf9kbjo Query : use flama_phc
20241002@182449.2693 drf862c1n06b50ul0qbnf9kbjo Query : select top 1 ~inactivo valor from cl where no = '100810' and estab = 0 order by inactivo desc
20241002@182449.2722 drf862c1n06b50ul0qbnf9kbjo Query : use flama_phc
20241002@182449.2726 drf862c1n06b50ul0qbnf9kbjo Query : select top 1 tipodoc,regrd from td where ndoc = 39
20241002@182449.2755 drf862c1n06b50ul0qbnf9kbjo Query : use flama_phc
20241002@182449.2758 drf862c1n06b50ul0qbnf9kbjo Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20241002@182449.2799 drf862c1n06b50ul0qbnf9kbjo Query : use flama_phc
20241002@182449.2802 drf862c1n06b50ul0qbnf9kbjo Query : select szadrsstamp valor from szadrs where szadrsdesc='100810 - worten-plaza large formats rainha'
20241002@182449.2846 drf862c1n06b50ul0qbnf9kbjo Query : use flama_phc
20241002@182449.2850 drf862c1n06b50ul0qbnf9kbjo Query : select 1 valor from td where ndoc = 39
20241002@182449.2863 drf862c1n06b50ul0qbnf9kbjo Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20241002@182449.2877 drf862c1n06b50ul0qbnf9kbjo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241002@182449.2895 drf862c1n06b50ul0qbnf9kbjo Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20241002@182449.2914 drf862c1n06b50ul0qbnf9kbjo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241002@182449.2928 drf862c1n06b50ul0qbnf9kbjo Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20241002@182449.2957 drf862c1n06b50ul0qbnf9kbjo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241002@182449.2974 drf862c1n06b50ul0qbnf9kbjo Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20241002@182449.2986 drf862c1n06b50ul0qbnf9kbjo Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20241002@182449.3053 drf862c1n06b50ul0qbnf9kbjo Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20241002@182449.3065 drf862c1n06b50ul0qbnf9kbjo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241002@182449.3081 drf862c1n06b50ul0qbnf9kbjo Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20241002@182449.3096 drf862c1n06b50ul0qbnf9kbjo Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut66fd84273266fd81e148' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20241002@182449.3294 drf862c1n06b50ul0qbnf9kbjo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241002@182449.3311 drf862c1n06b50ul0qbnf9kbjo Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20241002@182449.3344 drf862c1n06b50ul0qbnf9kbjo Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20241002@182449.3356 drf862c1n06b50ul0qbnf9kbjo Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20241002@182449.3368 drf862c1n06b50ul0qbnf9kbjo Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20241002@182449.3381 drf862c1n06b50ul0qbnf9kbjo Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20241002@182449.3393 drf862c1n06b50ul0qbnf9kbjo Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20241002@182449.3405 drf862c1n06b50ul0qbnf9kbjo Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20241002@182449.3416 drf862c1n06b50ul0qbnf9kbjo Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut66fd84273266fd81e148',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20241002@182449.3672 drf862c1n06b50ul0qbnf9kbjo Query : select top 1 fno valor from wsftdata order by fno desc
20241002@182449.3699 drf862c1n06b50ul0qbnf9kbjo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241002@182449.3720 drf862c1n06b50ul0qbnf9kbjo Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20241002@182449.3749 drf862c1n06b50ul0qbnf9kbjo Query : select 'normal' from dummy
20241002@182449.3764 drf862c1n06b50ul0qbnf9kbjo Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut66fd84273266fd81e148',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',1050,100810,0,'2024-10-02',39,'euro',0,0,2024 ,?,?)
20241002@182449.4093 drf862c1n06b50ul0qbnf9kbjo Query : use flama_phc
20241002@182449.4097 drf862c1n06b50ul0qbnf9kbjo Query : select st.usalote valor from st where st.ref = '328.9326.00.1'
20241002@182449.4119 drf862c1n06b50ul0qbnf9kbjo Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '328.9326.00.1'
20241002@182449.4160 drf862c1n06b50ul0qbnf9kbjo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241002@182449.4176 drf862c1n06b50ul0qbnf9kbjo Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241002@182449.4202 drf862c1n06b50ul0qbnf9kbjo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241002@182449.4216 drf862c1n06b50ul0qbnf9kbjo Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241002@182449.4225 drf862c1n06b50ul0qbnf9kbjo Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241002@182449.4238 drf862c1n06b50ul0qbnf9kbjo Query : select sestamp valor from se where ref ='328.9326.00.1' and lote = 'r2300691100a'
20241002@182449.4251 drf862c1n06b50ul0qbnf9kbjo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241002@182449.4268 drf862c1n06b50ul0qbnf9kbjo Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241002@182449.4281 drf862c1n06b50ul0qbnf9kbjo Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66fd80303866fd81e167','aut66fd84273266fd81e148' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241002@182449.4286 drf862c1n06b50ul0qbnf9kbjo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241002@182449.4302 drf862c1n06b50ul0qbnf9kbjo Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241002@182449.4331 drf862c1n06b50ul0qbnf9kbjo Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem) values ('aut66fd80303866fd81e167',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',1.000 ,'aut66fd84273266fd81e148' ,0,0 ,2,23.00,10000,?,?,?,?)
20241002@182449.4635 drf862c1n06b50ul0qbnf9kbjo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241002@182449.4653 drf862c1n06b50ul0qbnf9kbjo Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241002@182449.4679 drf862c1n06b50ul0qbnf9kbjo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241002@182449.4700 drf862c1n06b50ul0qbnf9kbjo Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241002@182449.4709 drf862c1n06b50ul0qbnf9kbjo Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241002@182449.4722 drf862c1n06b50ul0qbnf9kbjo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241002@182449.4737 drf862c1n06b50ul0qbnf9kbjo Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241002@182449.4749 drf862c1n06b50ul0qbnf9kbjo Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66fd87471866fd81e173','aut66fd84273266fd81e148' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241002@182449.4754 drf862c1n06b50ul0qbnf9kbjo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241002@182449.4769 drf862c1n06b50ul0qbnf9kbjo Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241002@182449.4798 drf862c1n06b50ul0qbnf9kbjo Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66fd87471866fd81e173',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66fd84273266fd81e148' ,0,0 ,2,23.00,20000,?,?,?)
20241002@182449.5064 drf862c1n06b50ul0qbnf9kbjo Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut66fd84273266fd81e148','2406385','wait',39,'adm09112754980.682000002')
20241002@182449.5132 drf862c1n06b50ul0qbnf9kbjo Query : use flama_phc
20241002@182449.5136 drf862c1n06b50ul0qbnf9kbjo Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20241002@182449.5166 drf862c1n06b50ul0qbnf9kbjo Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2377';
20241002@182449.5197 drf862c1n06b50ul0qbnf9kbjo Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2377';
20241002@182449.5238 drf862c1n06b50ul0qbnf9kbjo Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2377';
20241002@182449.5263 drf862c1n06b50ul0qbnf9kbjo Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2377';
20241002@182449.5794 b2or70ba8f1lcq1nfnbji5h1d2 Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20241002@182449.5805 b2or70ba8f1lcq1nfnbji5h1d2 Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20241002@182449.5858 b2or70ba8f1lcq1nfnbji5h1d2 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2378';
20241002@182449.5913 b2or70ba8f1lcq1nfnbji5h1d2 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2378';
20241002@182449.5967 b2or70ba8f1lcq1nfnbji5h1d2 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2378';
20241002@182449.5997 b2or70ba8f1lcq1nfnbji5h1d2 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2378';
20241002@182449.6047 b2or70ba8f1lcq1nfnbji5h1d2 Query : use flama_phc
20241002@182449.6051 b2or70ba8f1lcq1nfnbji5h1d2 Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20241002@182449.6111 b2or70ba8f1lcq1nfnbji5h1d2 Query : use flama_phc
20241002@182449.6114 b2or70ba8f1lcq1nfnbji5h1d2 Query : select no, estab,szadrsdesc from szadrs where u_coddest=6852
20241002@182449.6206 b2or70ba8f1lcq1nfnbji5h1d2 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1805.00.1'
20241002@182449.6382 b2or70ba8f1lcq1nfnbji5h1d2 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1805.00.1'
20241002@182449.6401 b2or70ba8f1lcq1nfnbji5h1d2 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '323.318.09.00'
20241002@182449.6564 b2or70ba8f1lcq1nfnbji5h1d2 Query : use flama_phc
20241002@182449.6567 b2or70ba8f1lcq1nfnbji5h1d2 Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20241002@182449.6601 b2or70ba8f1lcq1nfnbji5h1d2 Query : use flama_phc
20241002@182449.6604 b2or70ba8f1lcq1nfnbji5h1d2 Query : select top 1 1 valor from td where td.ndoc = 39
20241002@182449.6633 b2or70ba8f1lcq1nfnbji5h1d2 Query : use flama_phc
20241002@182449.6636 b2or70ba8f1lcq1nfnbji5h1d2 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')
20241002@182449.6664 b2or70ba8f1lcq1nfnbji5h1d2 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
20241002@182449.6698 b2or70ba8f1lcq1nfnbji5h1d2 Query : use flama_phc
20241002@182449.6701 b2or70ba8f1lcq1nfnbji5h1d2 Query : select top 1 ~inactivo valor from cl where no = '102265' and estab = 0 order by inactivo desc
20241002@182449.6890 b2or70ba8f1lcq1nfnbji5h1d2 Query : use flama_phc
20241002@182449.6893 b2or70ba8f1lcq1nfnbji5h1d2 Query : select top 1 tipodoc,regrd from td where ndoc = 39
20241002@182449.6922 b2or70ba8f1lcq1nfnbji5h1d2 Query : use flama_phc
20241002@182449.6925 b2or70ba8f1lcq1nfnbji5h1d2 Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20241002@182449.6964 b2or70ba8f1lcq1nfnbji5h1d2 Query : use flama_phc
20241002@182449.6966 b2or70ba8f1lcq1nfnbji5h1d2 Query : select szadrsstamp valor from szadrs where szadrsdesc='espaço 85'
20241002@182449.7011 b2or70ba8f1lcq1nfnbji5h1d2 Query : use flama_phc
20241002@182449.7014 b2or70ba8f1lcq1nfnbji5h1d2 Query : select 1 valor from td where ndoc = 39
20241002@182449.7026 b2or70ba8f1lcq1nfnbji5h1d2 Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20241002@182449.7042 b2or70ba8f1lcq1nfnbji5h1d2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241002@182449.7058 b2or70ba8f1lcq1nfnbji5h1d2 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20241002@182449.7077 b2or70ba8f1lcq1nfnbji5h1d2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241002@182449.7092 b2or70ba8f1lcq1nfnbji5h1d2 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20241002@182449.7119 b2or70ba8f1lcq1nfnbji5h1d2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241002@182449.7133 b2or70ba8f1lcq1nfnbji5h1d2 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20241002@182449.7148 b2or70ba8f1lcq1nfnbji5h1d2 Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20241002@182449.7239 b2or70ba8f1lcq1nfnbji5h1d2 Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20241002@182449.7253 b2or70ba8f1lcq1nfnbji5h1d2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241002@182449.7268 b2or70ba8f1lcq1nfnbji5h1d2 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20241002@182449.7284 b2or70ba8f1lcq1nfnbji5h1d2 Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut66fd81207666fd81e1ae' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20241002@182449.7467 b2or70ba8f1lcq1nfnbji5h1d2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241002@182449.7483 b2or70ba8f1lcq1nfnbji5h1d2 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20241002@182449.7520 b2or70ba8f1lcq1nfnbji5h1d2 Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20241002@182449.7532 b2or70ba8f1lcq1nfnbji5h1d2 Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20241002@182449.7564 b2or70ba8f1lcq1nfnbji5h1d2 Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20241002@182449.7576 b2or70ba8f1lcq1nfnbji5h1d2 Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20241002@182449.7589 b2or70ba8f1lcq1nfnbji5h1d2 Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20241002@182449.7600 b2or70ba8f1lcq1nfnbji5h1d2 Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20241002@182449.7611 b2or70ba8f1lcq1nfnbji5h1d2 Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut66fd81207666fd81e1ae',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20241002@182449.7864 b2or70ba8f1lcq1nfnbji5h1d2 Query : select top 1 fno valor from wsftdata order by fno desc
20241002@182449.7888 b2or70ba8f1lcq1nfnbji5h1d2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241002@182449.7905 b2or70ba8f1lcq1nfnbji5h1d2 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20241002@182449.7927 b2or70ba8f1lcq1nfnbji5h1d2 Query : select 'normal' from dummy
20241002@182449.7944 b2or70ba8f1lcq1nfnbji5h1d2 Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut66fd81207666fd81e1ae',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',1051,102265,0,'2024-10-02',39,'euro',0,0,2024 ,?,?)
20241002@182449.8229 b2or70ba8f1lcq1nfnbji5h1d2 Query : use flama_phc
20241002@182449.8233 b2or70ba8f1lcq1nfnbji5h1d2 Query : select st.usalote valor from st where st.ref = '324.1805.00.1'
20241002@182449.8257 b2or70ba8f1lcq1nfnbji5h1d2 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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'
20241002@182449.8412 b2or70ba8f1lcq1nfnbji5h1d2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241002@182449.8429 b2or70ba8f1lcq1nfnbji5h1d2 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241002@182449.8461 b2or70ba8f1lcq1nfnbji5h1d2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241002@182449.8477 b2or70ba8f1lcq1nfnbji5h1d2 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241002@182449.8486 b2or70ba8f1lcq1nfnbji5h1d2 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241002@182449.8500 b2or70ba8f1lcq1nfnbji5h1d2 Query : select sestamp valor from se where ref ='324.1805.00.1' and lote = 'r2400290200a'
20241002@182449.8515 b2or70ba8f1lcq1nfnbji5h1d2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241002@182449.8531 b2or70ba8f1lcq1nfnbji5h1d2 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241002@182449.8544 b2or70ba8f1lcq1nfnbji5h1d2 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66fd83340566fd81e1cf','aut66fd81207666fd81e1ae' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241002@182449.8548 b2or70ba8f1lcq1nfnbji5h1d2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241002@182449.8565 b2or70ba8f1lcq1nfnbji5h1d2 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241002@182449.8598 b2or70ba8f1lcq1nfnbji5h1d2 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem) values ('aut66fd83340566fd81e1cf',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',7.000 ,'aut66fd81207666fd81e1ae' ,0,0 ,2,23.00,10000,?,?,?,?)
20241002@182449.8869 b2or70ba8f1lcq1nfnbji5h1d2 Query : use flama_phc
20241002@182449.8873 b2or70ba8f1lcq1nfnbji5h1d2 Query : select st.usalote valor from st where st.ref = '324.1805.00.1'
20241002@182449.8896 b2or70ba8f1lcq1nfnbji5h1d2 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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'
20241002@182449.8912 b2or70ba8f1lcq1nfnbji5h1d2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241002@182449.8931 b2or70ba8f1lcq1nfnbji5h1d2 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241002@182449.9001 b2or70ba8f1lcq1nfnbji5h1d2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241002@182449.9196 b2or70ba8f1lcq1nfnbji5h1d2 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241002@182449.9206 b2or70ba8f1lcq1nfnbji5h1d2 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241002@182449.9220 b2or70ba8f1lcq1nfnbji5h1d2 Query : select sestamp valor from se where ref ='324.1805.00.1' and lote = 'r2400290200a'
20241002@182449.9234 b2or70ba8f1lcq1nfnbji5h1d2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241002@182449.9254 b2or70ba8f1lcq1nfnbji5h1d2 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241002@182449.9267 b2or70ba8f1lcq1nfnbji5h1d2 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66fd81905066fd81e1e1','aut66fd81207666fd81e1ae' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241002@182449.9272 b2or70ba8f1lcq1nfnbji5h1d2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241002@182449.9288 b2or70ba8f1lcq1nfnbji5h1d2 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241002@182449.9321 b2or70ba8f1lcq1nfnbji5h1d2 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem) values ('aut66fd81905066fd81e1e1',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',1.000 ,'aut66fd81207666fd81e1ae' ,0,0 ,2,23.00,20000,?,?,?,?)
20241002@182449.9626 b2or70ba8f1lcq1nfnbji5h1d2 Query : use flama_phc
20241002@182449.9631 b2or70ba8f1lcq1nfnbji5h1d2 Query : select st.usalote valor from st where st.ref = '323.318.09.00'
20241002@182449.9693 b2or70ba8f1lcq1nfnbji5h1d2 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '323.318.09.00'
20241002@182449.9866 b2or70ba8f1lcq1nfnbji5h1d2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241002@182449.9884 b2or70ba8f1lcq1nfnbji5h1d2 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241002@182449.9912 b2or70ba8f1lcq1nfnbji5h1d2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241002@182449.9926 b2or70ba8f1lcq1nfnbji5h1d2 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241002@182449.9934 b2or70ba8f1lcq1nfnbji5h1d2 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241002@182449.9947 b2or70ba8f1lcq1nfnbji5h1d2 Query : select sestamp valor from se where ref ='323.318.09.00' and lote = 'r2400053200a'
20241002@182449.9967 b2or70ba8f1lcq1nfnbji5h1d2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241002@182449.9983 b2or70ba8f1lcq1nfnbji5h1d2 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241002@182449.9998 b2or70ba8f1lcq1nfnbji5h1d2 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66fd86505366fd81e1f3','aut66fd81207666fd81e1ae' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241002@182450.2000 b2or70ba8f1lcq1nfnbji5h1d2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241002@182450.1700 b2or70ba8f1lcq1nfnbji5h1d2 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241002@182450.4600 b2or70ba8f1lcq1nfnbji5h1d2 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem) values ('aut66fd86505366fd81e1f3',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',2.000 ,'aut66fd81207666fd81e1ae' ,0,0 ,2,23.00,30000,?,?,?,?)
20241002@182450.3220 b2or70ba8f1lcq1nfnbji5h1d2 Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut66fd81207666fd81e1ae','2406390','wait',39,'adm09112754980.682000002')
20241002@182450.4030 b2or70ba8f1lcq1nfnbji5h1d2 Query : use flama_phc
20241002@182450.4070 b2or70ba8f1lcq1nfnbji5h1d2 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20241002@182450.4370 b2or70ba8f1lcq1nfnbji5h1d2 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2378';
20241002@182450.4690 b2or70ba8f1lcq1nfnbji5h1d2 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2378';
20241002@182450.1061 b2or70ba8f1lcq1nfnbji5h1d2 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2378';
20241002@182450.1826 b2or70ba8f1lcq1nfnbji5h1d2 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2378';
20241002@182450.2750 hnfhjqic54gb6n4esnco5u6ig3 Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20241002@182450.2761 hnfhjqic54gb6n4esnco5u6ig3 Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20241002@182450.2825 hnfhjqic54gb6n4esnco5u6ig3 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2379';
20241002@182450.2881 hnfhjqic54gb6n4esnco5u6ig3 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2379';
20241002@182450.2942 hnfhjqic54gb6n4esnco5u6ig3 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2379';
20241002@182450.2969 hnfhjqic54gb6n4esnco5u6ig3 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2379';
20241002@182450.3016 hnfhjqic54gb6n4esnco5u6ig3 Query : use flama_phc
20241002@182450.3020 hnfhjqic54gb6n4esnco5u6ig3 Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20241002@182450.3080 hnfhjqic54gb6n4esnco5u6ig3 Query : use flama_phc
20241002@182450.3083 hnfhjqic54gb6n4esnco5u6ig3 Query : select no, estab,szadrsdesc from szadrs where u_coddest=6737
20241002@182450.3124 hnfhjqic54gb6n4esnco5u6ig3 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '328.9326.00.1'
20241002@182450.3145 hnfhjqic54gb6n4esnco5u6ig3 Query : use flama_phc
20241002@182450.3148 hnfhjqic54gb6n4esnco5u6ig3 Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20241002@182450.3182 hnfhjqic54gb6n4esnco5u6ig3 Query : use flama_phc
20241002@182450.3186 hnfhjqic54gb6n4esnco5u6ig3 Query : select top 1 1 valor from td where td.ndoc = 39
20241002@182450.3214 hnfhjqic54gb6n4esnco5u6ig3 Query : use flama_phc
20241002@182450.3217 hnfhjqic54gb6n4esnco5u6ig3 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')
20241002@182450.3245 hnfhjqic54gb6n4esnco5u6ig3 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
20241002@182450.3281 hnfhjqic54gb6n4esnco5u6ig3 Query : use flama_phc
20241002@182450.3284 hnfhjqic54gb6n4esnco5u6ig3 Query : select top 1 ~inactivo valor from cl where no = '100810' and estab = 0 order by inactivo desc
20241002@182450.3312 hnfhjqic54gb6n4esnco5u6ig3 Query : use flama_phc
20241002@182450.3314 hnfhjqic54gb6n4esnco5u6ig3 Query : select top 1 tipodoc,regrd from td where ndoc = 39
20241002@182450.3344 hnfhjqic54gb6n4esnco5u6ig3 Query : use flama_phc
20241002@182450.3346 hnfhjqic54gb6n4esnco5u6ig3 Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20241002@182450.3385 hnfhjqic54gb6n4esnco5u6ig3 Query : use flama_phc
20241002@182450.3388 hnfhjqic54gb6n4esnco5u6ig3 Query : select szadrsstamp valor from szadrs where szadrsdesc='100810 - worten-plaza large formats rainha'
20241002@182450.3434 hnfhjqic54gb6n4esnco5u6ig3 Query : use flama_phc
20241002@182450.3441 hnfhjqic54gb6n4esnco5u6ig3 Query : select 1 valor from td where ndoc = 39
20241002@182450.3454 hnfhjqic54gb6n4esnco5u6ig3 Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20241002@182450.3467 hnfhjqic54gb6n4esnco5u6ig3 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241002@182450.3483 hnfhjqic54gb6n4esnco5u6ig3 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20241002@182450.3502 hnfhjqic54gb6n4esnco5u6ig3 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241002@182450.3516 hnfhjqic54gb6n4esnco5u6ig3 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20241002@182450.3544 hnfhjqic54gb6n4esnco5u6ig3 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241002@182450.3558 hnfhjqic54gb6n4esnco5u6ig3 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20241002@182450.3570 hnfhjqic54gb6n4esnco5u6ig3 Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20241002@182450.3635 hnfhjqic54gb6n4esnco5u6ig3 Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20241002@182450.3647 hnfhjqic54gb6n4esnco5u6ig3 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241002@182450.3661 hnfhjqic54gb6n4esnco5u6ig3 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20241002@182450.3675 hnfhjqic54gb6n4esnco5u6ig3 Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut66fd85761966fd81e257' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20241002@182450.3877 hnfhjqic54gb6n4esnco5u6ig3 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241002@182450.3897 hnfhjqic54gb6n4esnco5u6ig3 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20241002@182450.3930 hnfhjqic54gb6n4esnco5u6ig3 Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20241002@182450.3942 hnfhjqic54gb6n4esnco5u6ig3 Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20241002@182450.3960 hnfhjqic54gb6n4esnco5u6ig3 Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20241002@182450.3972 hnfhjqic54gb6n4esnco5u6ig3 Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20241002@182450.3984 hnfhjqic54gb6n4esnco5u6ig3 Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20241002@182450.3997 hnfhjqic54gb6n4esnco5u6ig3 Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20241002@182450.4009 hnfhjqic54gb6n4esnco5u6ig3 Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut66fd85761966fd81e257',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20241002@182450.4256 hnfhjqic54gb6n4esnco5u6ig3 Query : select top 1 fno valor from wsftdata order by fno desc
20241002@182450.4278 hnfhjqic54gb6n4esnco5u6ig3 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241002@182450.4295 hnfhjqic54gb6n4esnco5u6ig3 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20241002@182450.4318 hnfhjqic54gb6n4esnco5u6ig3 Query : select 'normal' from dummy
20241002@182450.4333 hnfhjqic54gb6n4esnco5u6ig3 Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut66fd85761966fd81e257',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',1052,100810,0,'2024-10-02',39,'euro',0,0,2024 ,?,?)
20241002@182450.4638 hnfhjqic54gb6n4esnco5u6ig3 Query : use flama_phc
20241002@182450.4641 hnfhjqic54gb6n4esnco5u6ig3 Query : select st.usalote valor from st where st.ref = '328.9326.00.1'
20241002@182450.4663 hnfhjqic54gb6n4esnco5u6ig3 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '328.9326.00.1'
20241002@182450.4677 hnfhjqic54gb6n4esnco5u6ig3 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241002@182450.4695 hnfhjqic54gb6n4esnco5u6ig3 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241002@182450.4742 hnfhjqic54gb6n4esnco5u6ig3 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241002@182450.4757 hnfhjqic54gb6n4esnco5u6ig3 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241002@182450.4766 hnfhjqic54gb6n4esnco5u6ig3 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241002@182450.4778 hnfhjqic54gb6n4esnco5u6ig3 Query : select sestamp valor from se where ref ='328.9326.00.1' and lote = 'r2300691100a'
20241002@182450.4790 hnfhjqic54gb6n4esnco5u6ig3 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241002@182450.4806 hnfhjqic54gb6n4esnco5u6ig3 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241002@182450.4818 hnfhjqic54gb6n4esnco5u6ig3 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66fd81630066fd81e274','aut66fd85761966fd81e257' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241002@182450.4822 hnfhjqic54gb6n4esnco5u6ig3 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241002@182450.4836 hnfhjqic54gb6n4esnco5u6ig3 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241002@182450.4867 hnfhjqic54gb6n4esnco5u6ig3 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem) values ('aut66fd81630066fd81e274',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',3.000 ,'aut66fd85761966fd81e257' ,0,0 ,2,23.00,10000,?,?,?,?)
20241002@182450.5136 hnfhjqic54gb6n4esnco5u6ig3 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241002@182450.5151 hnfhjqic54gb6n4esnco5u6ig3 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241002@182450.5177 hnfhjqic54gb6n4esnco5u6ig3 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241002@182450.5191 hnfhjqic54gb6n4esnco5u6ig3 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241002@182450.5200 hnfhjqic54gb6n4esnco5u6ig3 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241002@182450.5212 hnfhjqic54gb6n4esnco5u6ig3 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241002@182450.5227 hnfhjqic54gb6n4esnco5u6ig3 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241002@182450.5239 hnfhjqic54gb6n4esnco5u6ig3 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66fd81125666fd81e27f','aut66fd85761966fd81e257' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241002@182450.5243 hnfhjqic54gb6n4esnco5u6ig3 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241002@182450.5259 hnfhjqic54gb6n4esnco5u6ig3 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241002@182450.5288 hnfhjqic54gb6n4esnco5u6ig3 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66fd81125666fd81e27f',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66fd85761966fd81e257' ,0,0 ,2,23.00,20000,?,?,?)
20241002@182450.5538 hnfhjqic54gb6n4esnco5u6ig3 Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut66fd85761966fd81e257','2406394','wait',39,'adm09112754980.682000002')
20241002@182450.5614 hnfhjqic54gb6n4esnco5u6ig3 Query : use flama_phc
20241002@182450.5617 hnfhjqic54gb6n4esnco5u6ig3 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20241002@182450.5649 hnfhjqic54gb6n4esnco5u6ig3 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2379';
20241002@182450.5680 hnfhjqic54gb6n4esnco5u6ig3 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2379';
20241002@182450.5728 hnfhjqic54gb6n4esnco5u6ig3 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2379';
20241002@182450.5756 hnfhjqic54gb6n4esnco5u6ig3 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2379';
20241002@182450.6302 ink8ag1mhvdl7l48g64jpp5ejv Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20241002@182450.6314 ink8ag1mhvdl7l48g64jpp5ejv Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20241002@182450.6385 ink8ag1mhvdl7l48g64jpp5ejv Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2380';
20241002@182450.6446 ink8ag1mhvdl7l48g64jpp5ejv Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2380';
20241002@182450.6499 ink8ag1mhvdl7l48g64jpp5ejv Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2380';
20241002@182450.6526 ink8ag1mhvdl7l48g64jpp5ejv Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2380';
20241002@182450.6586 ink8ag1mhvdl7l48g64jpp5ejv Query : use flama_phc
20241002@182450.6589 ink8ag1mhvdl7l48g64jpp5ejv Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20241002@182450.6652 ink8ag1mhvdl7l48g64jpp5ejv Query : use flama_phc
20241002@182450.6655 ink8ag1mhvdl7l48g64jpp5ejv Query : select no, estab,szadrsdesc from szadrs where u_coddest=4740
20241002@182450.6695 ink8ag1mhvdl7l48g64jpp5ejv 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'
20241002@182450.6716 ink8ag1mhvdl7l48g64jpp5ejv Query : use flama_phc
20241002@182450.6719 ink8ag1mhvdl7l48g64jpp5ejv Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20241002@182450.6756 ink8ag1mhvdl7l48g64jpp5ejv Query : use flama_phc
20241002@182450.6759 ink8ag1mhvdl7l48g64jpp5ejv Query : select top 1 1 valor from td where td.ndoc = 39
20241002@182450.8154 ink8ag1mhvdl7l48g64jpp5ejv Query : use flama_phc
20241002@182450.8158 ink8ag1mhvdl7l48g64jpp5ejv 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')
20241002@182450.8187 ink8ag1mhvdl7l48g64jpp5ejv 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
20241002@182450.8220 ink8ag1mhvdl7l48g64jpp5ejv Query : use flama_phc
20241002@182450.8223 ink8ag1mhvdl7l48g64jpp5ejv Query : select top 1 ~inactivo valor from cl where no = '100810' and estab = 0 order by inactivo desc
20241002@182450.8255 ink8ag1mhvdl7l48g64jpp5ejv Query : use flama_phc
20241002@182450.8258 ink8ag1mhvdl7l48g64jpp5ejv Query : select top 1 tipodoc,regrd from td where ndoc = 39
20241002@182450.8287 ink8ag1mhvdl7l48g64jpp5ejv Query : use flama_phc
20241002@182450.8290 ink8ag1mhvdl7l48g64jpp5ejv Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20241002@182450.8328 ink8ag1mhvdl7l48g64jpp5ejv Query : use flama_phc
20241002@182450.8331 ink8ag1mhvdl7l48g64jpp5ejv Query : select szadrsstamp valor from szadrs where szadrsdesc='100810 - worten-equipamentos para o lar,sa.'
20241002@182450.8374 ink8ag1mhvdl7l48g64jpp5ejv Query : use flama_phc
20241002@182450.8376 ink8ag1mhvdl7l48g64jpp5ejv Query : select 1 valor from td where ndoc = 39
20241002@182450.8388 ink8ag1mhvdl7l48g64jpp5ejv Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20241002@182450.8400 ink8ag1mhvdl7l48g64jpp5ejv Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241002@182450.8416 ink8ag1mhvdl7l48g64jpp5ejv Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20241002@182450.8433 ink8ag1mhvdl7l48g64jpp5ejv Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241002@182450.8449 ink8ag1mhvdl7l48g64jpp5ejv Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20241002@182450.8475 ink8ag1mhvdl7l48g64jpp5ejv Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241002@182450.8489 ink8ag1mhvdl7l48g64jpp5ejv Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20241002@182450.8500 ink8ag1mhvdl7l48g64jpp5ejv Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20241002@182450.8564 ink8ag1mhvdl7l48g64jpp5ejv Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20241002@182450.8577 ink8ag1mhvdl7l48g64jpp5ejv Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241002@182450.8594 ink8ag1mhvdl7l48g64jpp5ejv Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20241002@182450.8609 ink8ag1mhvdl7l48g64jpp5ejv Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut66fd88033066fd81e2cf' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20241002@182450.8815 ink8ag1mhvdl7l48g64jpp5ejv Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241002@182450.8834 ink8ag1mhvdl7l48g64jpp5ejv Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20241002@182450.8868 ink8ag1mhvdl7l48g64jpp5ejv Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20241002@182450.8880 ink8ag1mhvdl7l48g64jpp5ejv Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20241002@182450.8893 ink8ag1mhvdl7l48g64jpp5ejv Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20241002@182450.8904 ink8ag1mhvdl7l48g64jpp5ejv Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20241002@182450.8916 ink8ag1mhvdl7l48g64jpp5ejv Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20241002@182450.8927 ink8ag1mhvdl7l48g64jpp5ejv Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20241002@182450.8939 ink8ag1mhvdl7l48g64jpp5ejv Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut66fd88033066fd81e2cf',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20241002@182450.9190 ink8ag1mhvdl7l48g64jpp5ejv Query : select top 1 fno valor from wsftdata order by fno desc
20241002@182450.9214 ink8ag1mhvdl7l48g64jpp5ejv Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241002@182450.9230 ink8ag1mhvdl7l48g64jpp5ejv Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20241002@182450.9255 ink8ag1mhvdl7l48g64jpp5ejv Query : select 'normal' from dummy
20241002@182450.9270 ink8ag1mhvdl7l48g64jpp5ejv Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut66fd88033066fd81e2cf',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',1053,100810,0,'2024-10-02',39,'euro',0,0,2024 ,?,?)
20241002@182450.9586 ink8ag1mhvdl7l48g64jpp5ejv Query : use flama_phc
20241002@182450.9589 ink8ag1mhvdl7l48g64jpp5ejv Query : select st.usalote valor from st where st.ref = '324.1667.00.1'
20241002@182450.9610 ink8ag1mhvdl7l48g64jpp5ejv Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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'
20241002@182450.9624 ink8ag1mhvdl7l48g64jpp5ejv Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241002@182450.9640 ink8ag1mhvdl7l48g64jpp5ejv Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241002@182450.9666 ink8ag1mhvdl7l48g64jpp5ejv Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241002@182450.9680 ink8ag1mhvdl7l48g64jpp5ejv Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241002@182450.9691 ink8ag1mhvdl7l48g64jpp5ejv Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241002@182450.9704 ink8ag1mhvdl7l48g64jpp5ejv Query : select sestamp valor from se where ref ='324.1667.00.1' and lote = 'r2400065200a'
20241002@182450.9717 ink8ag1mhvdl7l48g64jpp5ejv Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241002@182450.9731 ink8ag1mhvdl7l48g64jpp5ejv Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241002@182450.9743 ink8ag1mhvdl7l48g64jpp5ejv Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66fd83976466fd81e2ed','aut66fd88033066fd81e2cf' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241002@182450.9747 ink8ag1mhvdl7l48g64jpp5ejv Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241002@182450.9762 ink8ag1mhvdl7l48g64jpp5ejv Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241002@182450.9789 ink8ag1mhvdl7l48g64jpp5ejv Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem) values ('aut66fd83976466fd81e2ed',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',2.000 ,'aut66fd88033066fd81e2cf' ,0,0 ,2,23.00,10000,?,?,?,?)
20241002@182451.6800 ink8ag1mhvdl7l48g64jpp5ejv Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241002@182451.8400 ink8ag1mhvdl7l48g64jpp5ejv Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241002@182451.1090 ink8ag1mhvdl7l48g64jpp5ejv Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241002@182451.1360 ink8ag1mhvdl7l48g64jpp5ejv Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241002@182451.1450 ink8ag1mhvdl7l48g64jpp5ejv Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241002@182451.1570 ink8ag1mhvdl7l48g64jpp5ejv Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241002@182451.1720 ink8ag1mhvdl7l48g64jpp5ejv Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241002@182451.1840 ink8ag1mhvdl7l48g64jpp5ejv Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66fd80887366fd81e303','aut66fd88033066fd81e2cf' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241002@182451.1890 ink8ag1mhvdl7l48g64jpp5ejv Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241002@182451.2030 ink8ag1mhvdl7l48g64jpp5ejv Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241002@182451.2300 ink8ag1mhvdl7l48g64jpp5ejv Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66fd80887366fd81e303',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66fd88033066fd81e2cf' ,0,0 ,2,23.00,20000,?,?,?)
20241002@182451.4870 ink8ag1mhvdl7l48g64jpp5ejv Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut66fd88033066fd81e2cf','2406396','wait',39,'adm09112754980.682000002')
20241002@182451.5580 ink8ag1mhvdl7l48g64jpp5ejv Query : use flama_phc
20241002@182451.5610 ink8ag1mhvdl7l48g64jpp5ejv Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20241002@182451.5920 ink8ag1mhvdl7l48g64jpp5ejv Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2380';
20241002@182451.6240 ink8ag1mhvdl7l48g64jpp5ejv Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2380';
20241002@182451.6690 ink8ag1mhvdl7l48g64jpp5ejv Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2380';
20241002@182451.6940 ink8ag1mhvdl7l48g64jpp5ejv Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2380';
20241002@182451.1271 or75v4fo9en9006j9r4bgbo85q Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20241002@182451.1285 or75v4fo9en9006j9r4bgbo85q Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20241002@182451.1347 or75v4fo9en9006j9r4bgbo85q Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2381';
20241002@182451.1406 or75v4fo9en9006j9r4bgbo85q Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2381';
20241002@182451.1462 or75v4fo9en9006j9r4bgbo85q Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2381';
20241002@182451.1488 or75v4fo9en9006j9r4bgbo85q Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2381';
20241002@182451.1537 or75v4fo9en9006j9r4bgbo85q Query : use flama_phc
20241002@182451.1540 or75v4fo9en9006j9r4bgbo85q Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20241002@182451.1609 or75v4fo9en9006j9r4bgbo85q Query : use flama_phc
20241002@182451.1611 or75v4fo9en9006j9r4bgbo85q Query : select no, estab,szadrsdesc from szadrs where u_coddest=1899
20241002@182451.2461 or75v4fo9en9006j9r4bgbo85q Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '328.9902.00.1'
20241002@182451.2919 or75v4fo9en9006j9r4bgbo85q Query : use flama_phc
20241002@182451.2922 or75v4fo9en9006j9r4bgbo85q Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20241002@182451.2958 or75v4fo9en9006j9r4bgbo85q Query : use flama_phc
20241002@182451.2960 or75v4fo9en9006j9r4bgbo85q Query : select top 1 1 valor from td where td.ndoc = 39
20241002@182451.2992 or75v4fo9en9006j9r4bgbo85q Query : use flama_phc
20241002@182451.2995 or75v4fo9en9006j9r4bgbo85q 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')
20241002@182451.3021 or75v4fo9en9006j9r4bgbo85q 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
20241002@182451.3053 or75v4fo9en9006j9r4bgbo85q Query : use flama_phc
20241002@182451.3056 or75v4fo9en9006j9r4bgbo85q Query : select top 1 ~inactivo valor from cl where no = '101621' and estab = 0 order by inactivo desc
20241002@182451.3184 or75v4fo9en9006j9r4bgbo85q Query : use flama_phc
20241002@182451.3188 or75v4fo9en9006j9r4bgbo85q Query : select top 1 tipodoc,regrd from td where ndoc = 39
20241002@182451.3217 or75v4fo9en9006j9r4bgbo85q Query : use flama_phc
20241002@182451.3220 or75v4fo9en9006j9r4bgbo85q Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20241002@182451.3262 or75v4fo9en9006j9r4bgbo85q Query : use flama_phc
20241002@182451.3266 or75v4fo9en9006j9r4bgbo85q Query : select szadrsstamp valor from szadrs where szadrsdesc='j.o.m'
20241002@182451.3311 or75v4fo9en9006j9r4bgbo85q Query : use flama_phc
20241002@182451.3314 or75v4fo9en9006j9r4bgbo85q Query : select 1 valor from td where ndoc = 39
20241002@182451.3325 or75v4fo9en9006j9r4bgbo85q Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20241002@182451.3338 or75v4fo9en9006j9r4bgbo85q Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241002@182451.3354 or75v4fo9en9006j9r4bgbo85q Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20241002@182451.3373 or75v4fo9en9006j9r4bgbo85q Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241002@182451.3387 or75v4fo9en9006j9r4bgbo85q Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20241002@182451.3415 or75v4fo9en9006j9r4bgbo85q Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241002@182451.3428 or75v4fo9en9006j9r4bgbo85q Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20241002@182451.3443 or75v4fo9en9006j9r4bgbo85q Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20241002@182451.3507 or75v4fo9en9006j9r4bgbo85q Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20241002@182451.3518 or75v4fo9en9006j9r4bgbo85q Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241002@182451.3532 or75v4fo9en9006j9r4bgbo85q Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20241002@182451.3547 or75v4fo9en9006j9r4bgbo85q Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut66fd83248966fd81e354' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20241002@182451.3760 or75v4fo9en9006j9r4bgbo85q Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241002@182451.3779 or75v4fo9en9006j9r4bgbo85q Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20241002@182451.3811 or75v4fo9en9006j9r4bgbo85q Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20241002@182451.3822 or75v4fo9en9006j9r4bgbo85q Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20241002@182451.3834 or75v4fo9en9006j9r4bgbo85q Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20241002@182451.3846 or75v4fo9en9006j9r4bgbo85q Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20241002@182451.3858 or75v4fo9en9006j9r4bgbo85q Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20241002@182451.3876 or75v4fo9en9006j9r4bgbo85q Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20241002@182451.3887 or75v4fo9en9006j9r4bgbo85q Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut66fd83248966fd81e354',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20241002@182451.4142 or75v4fo9en9006j9r4bgbo85q Query : select top 1 fno valor from wsftdata order by fno desc
20241002@182451.4165 or75v4fo9en9006j9r4bgbo85q Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241002@182451.4180 or75v4fo9en9006j9r4bgbo85q Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20241002@182451.4201 or75v4fo9en9006j9r4bgbo85q Query : select 'normal' from dummy
20241002@182451.4216 or75v4fo9en9006j9r4bgbo85q Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut66fd83248966fd81e354',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',1054,101621,0,'2024-10-02',39,'euro',0,0,2024 ,?,?)
20241002@182451.4500 or75v4fo9en9006j9r4bgbo85q Query : use flama_phc
20241002@182451.4503 or75v4fo9en9006j9r4bgbo85q Query : select st.usalote valor from st where st.ref = '328.9902.00.1'
20241002@182451.4524 or75v4fo9en9006j9r4bgbo85q Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '328.9902.00.1'
20241002@182451.4672 or75v4fo9en9006j9r4bgbo85q Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241002@182451.4687 or75v4fo9en9006j9r4bgbo85q Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241002@182451.4714 or75v4fo9en9006j9r4bgbo85q Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241002@182451.4727 or75v4fo9en9006j9r4bgbo85q Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241002@182451.4735 or75v4fo9en9006j9r4bgbo85q Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241002@182451.4747 or75v4fo9en9006j9r4bgbo85q Query : select sestamp valor from se where ref ='328.9902.00.1' and lote = 'r2300777100a'
20241002@182451.4766 or75v4fo9en9006j9r4bgbo85q Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241002@182451.4779 or75v4fo9en9006j9r4bgbo85q Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241002@182451.4791 or75v4fo9en9006j9r4bgbo85q Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66fd83612766fd81e374','aut66fd83248966fd81e354' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241002@182451.4795 or75v4fo9en9006j9r4bgbo85q Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241002@182451.4808 or75v4fo9en9006j9r4bgbo85q Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241002@182451.4834 or75v4fo9en9006j9r4bgbo85q Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem) values ('aut66fd83612766fd81e374',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',1.000 ,'aut66fd83248966fd81e354' ,0,0 ,2,23.00,10000,?,?,?,?)
20241002@182451.5111 or75v4fo9en9006j9r4bgbo85q Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241002@182451.5126 or75v4fo9en9006j9r4bgbo85q Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241002@182451.5150 or75v4fo9en9006j9r4bgbo85q Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241002@182451.5164 or75v4fo9en9006j9r4bgbo85q Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241002@182451.5172 or75v4fo9en9006j9r4bgbo85q Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241002@182451.5183 or75v4fo9en9006j9r4bgbo85q Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241002@182451.5197 or75v4fo9en9006j9r4bgbo85q Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241002@182451.5208 or75v4fo9en9006j9r4bgbo85q Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66fd85247066fd81e37e','aut66fd83248966fd81e354' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241002@182451.5212 or75v4fo9en9006j9r4bgbo85q Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241002@182451.5226 or75v4fo9en9006j9r4bgbo85q Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241002@182451.5252 or75v4fo9en9006j9r4bgbo85q Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66fd85247066fd81e37e',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66fd83248966fd81e354' ,0,0 ,2,23.00,20000,?,?,?)
20241002@182451.5506 or75v4fo9en9006j9r4bgbo85q Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut66fd83248966fd81e354','2406398','wait',39,'adm09112754980.682000002')
20241002@182451.5578 or75v4fo9en9006j9r4bgbo85q Query : use flama_phc
20241002@182451.5581 or75v4fo9en9006j9r4bgbo85q Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20241002@182451.5613 or75v4fo9en9006j9r4bgbo85q Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2381';
20241002@182451.5644 or75v4fo9en9006j9r4bgbo85q Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2381';
20241002@182451.5686 or75v4fo9en9006j9r4bgbo85q Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2381';
20241002@182451.5710 or75v4fo9en9006j9r4bgbo85q Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2381';
20241002@182451.6277 61i24k1t6f20vlqlers3a3uraf Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20241002@182451.6289 61i24k1t6f20vlqlers3a3uraf Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20241002@182451.6351 61i24k1t6f20vlqlers3a3uraf Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2382';
20241002@182451.6415 61i24k1t6f20vlqlers3a3uraf Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2382';
20241002@182451.6470 61i24k1t6f20vlqlers3a3uraf Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2382';
20241002@182451.6495 61i24k1t6f20vlqlers3a3uraf Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2382';
20241002@182451.6547 61i24k1t6f20vlqlers3a3uraf Query : use flama_phc
20241002@182451.6550 61i24k1t6f20vlqlers3a3uraf Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20241002@182451.6616 61i24k1t6f20vlqlers3a3uraf Query : use flama_phc
20241002@182451.6619 61i24k1t6f20vlqlers3a3uraf Query : select no, estab,szadrsdesc from szadrs where u_coddest=170
20241002@182451.6707 61i24k1t6f20vlqlers3a3uraf Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.675.00.01'
20241002@182451.6870 61i24k1t6f20vlqlers3a3uraf Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.675.00.01'
20241002@182451.6892 61i24k1t6f20vlqlers3a3uraf Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.675.00.01'
20241002@182451.6912 61i24k1t6f20vlqlers3a3uraf Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1317.00.1'
20241002@182451.7055 61i24k1t6f20vlqlers3a3uraf Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1317.00.1'
20241002@182451.7076 61i24k1t6f20vlqlers3a3uraf Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1321.00.1'
20241002@182451.7216 61i24k1t6f20vlqlers3a3uraf Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1321.00.1'
20241002@182451.7234 61i24k1t6f20vlqlers3a3uraf Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1321.00.1'
20241002@182451.7254 61i24k1t6f20vlqlers3a3uraf Query : use flama_phc
20241002@182451.7257 61i24k1t6f20vlqlers3a3uraf Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20241002@182451.7293 61i24k1t6f20vlqlers3a3uraf Query : use flama_phc
20241002@182451.7296 61i24k1t6f20vlqlers3a3uraf Query : select top 1 1 valor from td where td.ndoc = 39
20241002@182451.7325 61i24k1t6f20vlqlers3a3uraf Query : use flama_phc
20241002@182451.7328 61i24k1t6f20vlqlers3a3uraf 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')
20241002@182451.7355 61i24k1t6f20vlqlers3a3uraf 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
20241002@182451.7388 61i24k1t6f20vlqlers3a3uraf Query : use flama_phc
20241002@182451.7391 61i24k1t6f20vlqlers3a3uraf Query : select top 1 ~inactivo valor from cl where no = '102068' and estab = 0 order by inactivo desc
20241002@182451.7520 61i24k1t6f20vlqlers3a3uraf Query : use flama_phc
20241002@182451.7523 61i24k1t6f20vlqlers3a3uraf Query : select top 1 tipodoc,regrd from td where ndoc = 39
20241002@182451.7578 61i24k1t6f20vlqlers3a3uraf Query : use flama_phc
20241002@182451.7581 61i24k1t6f20vlqlers3a3uraf Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20241002@182451.7624 61i24k1t6f20vlqlers3a3uraf Query : use flama_phc
20241002@182451.7628 61i24k1t6f20vlqlers3a3uraf Query : select szadrsstamp valor from szadrs where szadrsdesc='magalhÃes & vinha, lda.'
20241002@182451.7675 61i24k1t6f20vlqlers3a3uraf Query : use flama_phc
20241002@182451.7678 61i24k1t6f20vlqlers3a3uraf Query : select 1 valor from td where ndoc = 39
20241002@182451.7690 61i24k1t6f20vlqlers3a3uraf Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20241002@182451.7704 61i24k1t6f20vlqlers3a3uraf Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241002@182451.7720 61i24k1t6f20vlqlers3a3uraf Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20241002@182451.7740 61i24k1t6f20vlqlers3a3uraf Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241002@182451.7754 61i24k1t6f20vlqlers3a3uraf Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20241002@182451.7783 61i24k1t6f20vlqlers3a3uraf Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241002@182451.7798 61i24k1t6f20vlqlers3a3uraf Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20241002@182451.7810 61i24k1t6f20vlqlers3a3uraf Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20241002@182451.7876 61i24k1t6f20vlqlers3a3uraf Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20241002@182451.7888 61i24k1t6f20vlqlers3a3uraf Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241002@182451.7903 61i24k1t6f20vlqlers3a3uraf Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20241002@182451.7918 61i24k1t6f20vlqlers3a3uraf Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut66fd89745366fd81e3be' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20241002@182451.8097 61i24k1t6f20vlqlers3a3uraf Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241002@182451.8177 61i24k1t6f20vlqlers3a3uraf Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20241002@182451.8209 61i24k1t6f20vlqlers3a3uraf Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20241002@182451.8221 61i24k1t6f20vlqlers3a3uraf Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20241002@182451.8233 61i24k1t6f20vlqlers3a3uraf Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20241002@182451.8245 61i24k1t6f20vlqlers3a3uraf Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20241002@182451.8257 61i24k1t6f20vlqlers3a3uraf Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20241002@182451.8269 61i24k1t6f20vlqlers3a3uraf Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20241002@182451.8280 61i24k1t6f20vlqlers3a3uraf Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut66fd89745366fd81e3be',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20241002@182451.8553 61i24k1t6f20vlqlers3a3uraf Query : select top 1 fno valor from wsftdata order by fno desc
20241002@182451.8576 61i24k1t6f20vlqlers3a3uraf Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241002@182451.8592 61i24k1t6f20vlqlers3a3uraf Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20241002@182451.8614 61i24k1t6f20vlqlers3a3uraf Query : select 'normal' from dummy
20241002@182451.8629 61i24k1t6f20vlqlers3a3uraf Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut66fd89745366fd81e3be',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',1055,102068,0,'2024-10-02',39,'euro',0,0,2024 ,?,?)
20241002@182451.9967 61i24k1t6f20vlqlers3a3uraf Query : use flama_phc
20241002@182451.9971 61i24k1t6f20vlqlers3a3uraf Query : select st.usalote valor from st where st.ref = '324.675.00.01'
20241002@182451.9995 61i24k1t6f20vlqlers3a3uraf Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.675.00.01'
20241002@182452.1520 61i24k1t6f20vlqlers3a3uraf Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241002@182452.1670 61i24k1t6f20vlqlers3a3uraf Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241002@182452.1930 61i24k1t6f20vlqlers3a3uraf Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241002@182452.2070 61i24k1t6f20vlqlers3a3uraf Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241002@182452.2160 61i24k1t6f20vlqlers3a3uraf Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241002@182452.2290 61i24k1t6f20vlqlers3a3uraf Query : select sestamp valor from se where ref ='324.675.00.01' and lote = 'r2400282200a'
20241002@182452.2430 61i24k1t6f20vlqlers3a3uraf Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241002@182452.3290 61i24k1t6f20vlqlers3a3uraf Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241002@182452.3440 61i24k1t6f20vlqlers3a3uraf Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66fd84280866fd81e405','aut66fd89745366fd81e3be' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241002@182452.3590 61i24k1t6f20vlqlers3a3uraf Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241002@182452.3780 61i24k1t6f20vlqlers3a3uraf Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241002@182452.4140 61i24k1t6f20vlqlers3a3uraf Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem) values ('aut66fd84280866fd81e405',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',2.000 ,'aut66fd89745366fd81e3be' ,0,0 ,2,23.00,10000,?,?,?,?)
20241002@182452.7030 61i24k1t6f20vlqlers3a3uraf Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241002@182452.7200 61i24k1t6f20vlqlers3a3uraf Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241002@182452.7470 61i24k1t6f20vlqlers3a3uraf Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241002@182452.7620 61i24k1t6f20vlqlers3a3uraf Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241002@182452.7700 61i24k1t6f20vlqlers3a3uraf Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241002@182452.7820 61i24k1t6f20vlqlers3a3uraf Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241002@182452.7970 61i24k1t6f20vlqlers3a3uraf Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241002@182452.8080 61i24k1t6f20vlqlers3a3uraf Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66fd82037666fd81e413','aut66fd89745366fd81e3be' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241002@182452.8120 61i24k1t6f20vlqlers3a3uraf Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241002@182452.8270 61i24k1t6f20vlqlers3a3uraf Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241002@182452.8540 61i24k1t6f20vlqlers3a3uraf Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66fd82037666fd81e413',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66fd89745366fd81e3be' ,0,0 ,2,23.00,20000,?,?,?)
20241002@182452.1111 61i24k1t6f20vlqlers3a3uraf Query : use flama_phc
20241002@182452.1114 61i24k1t6f20vlqlers3a3uraf Query : select st.usalote valor from st where st.ref = '324.675.00.01'
20241002@182452.1133 61i24k1t6f20vlqlers3a3uraf Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.675.00.01'
20241002@182452.1147 61i24k1t6f20vlqlers3a3uraf Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241002@182452.1163 61i24k1t6f20vlqlers3a3uraf Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241002@182452.1189 61i24k1t6f20vlqlers3a3uraf Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241002@182452.1203 61i24k1t6f20vlqlers3a3uraf Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241002@182452.1211 61i24k1t6f20vlqlers3a3uraf Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241002@182452.1223 61i24k1t6f20vlqlers3a3uraf Query : select sestamp valor from se where ref ='324.675.00.01' and lote = 'r2400407200a'
20241002@182452.1237 61i24k1t6f20vlqlers3a3uraf Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241002@182452.1251 61i24k1t6f20vlqlers3a3uraf Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241002@182452.1262 61i24k1t6f20vlqlers3a3uraf Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66fd81720966fd81e41e','aut66fd89745366fd81e3be' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241002@182452.1266 61i24k1t6f20vlqlers3a3uraf Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241002@182452.1280 61i24k1t6f20vlqlers3a3uraf Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241002@182452.1314 61i24k1t6f20vlqlers3a3uraf Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem) values ('aut66fd81720966fd81e41e',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',3.000 ,'aut66fd89745366fd81e3be' ,0,0 ,2,23.00,40000,?,?,?,?)
20241002@182452.1598 61i24k1t6f20vlqlers3a3uraf Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241002@182452.1614 61i24k1t6f20vlqlers3a3uraf Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241002@182452.1640 61i24k1t6f20vlqlers3a3uraf Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241002@182452.1655 61i24k1t6f20vlqlers3a3uraf Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241002@182452.1663 61i24k1t6f20vlqlers3a3uraf Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241002@182452.1675 61i24k1t6f20vlqlers3a3uraf Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241002@182452.1689 61i24k1t6f20vlqlers3a3uraf Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241002@182452.1701 61i24k1t6f20vlqlers3a3uraf Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66fd83981866fd81e428','aut66fd89745366fd81e3be' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241002@182452.1705 61i24k1t6f20vlqlers3a3uraf Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241002@182452.1719 61i24k1t6f20vlqlers3a3uraf Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241002@182452.1749 61i24k1t6f20vlqlers3a3uraf Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66fd83981866fd81e428',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66fd89745366fd81e3be' ,0,0 ,2,23.00,50000,?,?,?)
20241002@182452.1996 61i24k1t6f20vlqlers3a3uraf Query : use flama_phc
20241002@182452.1999 61i24k1t6f20vlqlers3a3uraf Query : select st.usalote valor from st where st.ref = '324.675.00.01'
20241002@182452.2018 61i24k1t6f20vlqlers3a3uraf Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.675.00.01'
20241002@182452.2032 61i24k1t6f20vlqlers3a3uraf Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241002@182452.2047 61i24k1t6f20vlqlers3a3uraf Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241002@182452.2072 61i24k1t6f20vlqlers3a3uraf Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241002@182452.2087 61i24k1t6f20vlqlers3a3uraf Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241002@182452.2096 61i24k1t6f20vlqlers3a3uraf Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241002@182452.2111 61i24k1t6f20vlqlers3a3uraf Query : select sestamp valor from se where ref ='324.675.00.01' and lote = 'r2400407200a'
20241002@182452.2124 61i24k1t6f20vlqlers3a3uraf Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241002@182452.2139 61i24k1t6f20vlqlers3a3uraf Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241002@182452.2151 61i24k1t6f20vlqlers3a3uraf Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66fd86959366fd81e433','aut66fd89745366fd81e3be' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241002@182452.2155 61i24k1t6f20vlqlers3a3uraf Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241002@182452.2169 61i24k1t6f20vlqlers3a3uraf Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241002@182452.2199 61i24k1t6f20vlqlers3a3uraf Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem) values ('aut66fd86959366fd81e433',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',3.000 ,'aut66fd89745366fd81e3be' ,0,0 ,2,23.00,70000,?,?,?,?)
20241002@182452.2459 61i24k1t6f20vlqlers3a3uraf Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241002@182452.2475 61i24k1t6f20vlqlers3a3uraf Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241002@182452.2502 61i24k1t6f20vlqlers3a3uraf Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241002@182452.2516 61i24k1t6f20vlqlers3a3uraf Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241002@182452.2525 61i24k1t6f20vlqlers3a3uraf Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241002@182452.2538 61i24k1t6f20vlqlers3a3uraf Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241002@182452.2552 61i24k1t6f20vlqlers3a3uraf Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241002@182452.2564 61i24k1t6f20vlqlers3a3uraf Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66fd82785566fd81e43d','aut66fd89745366fd81e3be' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241002@182452.2568 61i24k1t6f20vlqlers3a3uraf Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241002@182452.2582 61i24k1t6f20vlqlers3a3uraf Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241002@182452.2609 61i24k1t6f20vlqlers3a3uraf Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66fd82785566fd81e43d',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66fd89745366fd81e3be' ,0,0 ,2,23.00,80000,?,?,?)
20241002@182452.2875 61i24k1t6f20vlqlers3a3uraf Query : use flama_phc
20241002@182452.2878 61i24k1t6f20vlqlers3a3uraf Query : select st.usalote valor from st where st.ref = '324.1317.00.1'
20241002@182452.2899 61i24k1t6f20vlqlers3a3uraf Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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'
20241002@182452.3048 61i24k1t6f20vlqlers3a3uraf Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241002@182452.3063 61i24k1t6f20vlqlers3a3uraf Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241002@182452.3087 61i24k1t6f20vlqlers3a3uraf Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241002@182452.3101 61i24k1t6f20vlqlers3a3uraf Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241002@182452.3109 61i24k1t6f20vlqlers3a3uraf Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241002@182452.3120 61i24k1t6f20vlqlers3a3uraf Query : select sestamp valor from se where ref ='324.1317.00.1' and lote = 'r2400458200a'
20241002@182452.3133 61i24k1t6f20vlqlers3a3uraf Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241002@182452.3147 61i24k1t6f20vlqlers3a3uraf Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241002@182452.3158 61i24k1t6f20vlqlers3a3uraf Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66fd85477566fd81e44c','aut66fd89745366fd81e3be' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241002@182452.3162 61i24k1t6f20vlqlers3a3uraf Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241002@182452.3176 61i24k1t6f20vlqlers3a3uraf Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241002@182452.3202 61i24k1t6f20vlqlers3a3uraf Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem) values ('aut66fd85477566fd81e44c',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',33.000 ,'aut66fd89745366fd81e3be' ,0,0 ,2,23.00,100000,?,?,?,?)
20241002@182452.3455 61i24k1t6f20vlqlers3a3uraf Query : use flama_phc
20241002@182452.3458 61i24k1t6f20vlqlers3a3uraf Query : select st.usalote valor from st where st.ref = '324.1317.00.1'
20241002@182452.3477 61i24k1t6f20vlqlers3a3uraf Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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'
20241002@182452.3490 61i24k1t6f20vlqlers3a3uraf Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241002@182452.3505 61i24k1t6f20vlqlers3a3uraf Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241002@182452.3530 61i24k1t6f20vlqlers3a3uraf Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241002@182452.3544 61i24k1t6f20vlqlers3a3uraf Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241002@182452.3553 61i24k1t6f20vlqlers3a3uraf Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241002@182452.3565 61i24k1t6f20vlqlers3a3uraf Query : select sestamp valor from se where ref ='324.1317.00.1' and lote = 'r2400458200a'
20241002@182452.3577 61i24k1t6f20vlqlers3a3uraf Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241002@182452.3591 61i24k1t6f20vlqlers3a3uraf Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241002@182452.3602 61i24k1t6f20vlqlers3a3uraf Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66fd86671666fd81e457','aut66fd89745366fd81e3be' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241002@182452.3606 61i24k1t6f20vlqlers3a3uraf Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241002@182452.3621 61i24k1t6f20vlqlers3a3uraf Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241002@182452.3649 61i24k1t6f20vlqlers3a3uraf Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem) values ('aut66fd86671666fd81e457',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',3.000 ,'aut66fd89745366fd81e3be' ,0,0 ,2,23.00,110000,?,?,?,?)
20241002@182452.3926 61i24k1t6f20vlqlers3a3uraf Query : use flama_phc
20241002@182452.3929 61i24k1t6f20vlqlers3a3uraf Query : select st.usalote valor from st where st.ref = '324.1321.00.1'
20241002@182452.3950 61i24k1t6f20vlqlers3a3uraf Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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'
20241002@182452.4114 61i24k1t6f20vlqlers3a3uraf Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241002@182452.4129 61i24k1t6f20vlqlers3a3uraf Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241002@182452.4154 61i24k1t6f20vlqlers3a3uraf Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241002@182452.4167 61i24k1t6f20vlqlers3a3uraf Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241002@182452.4175 61i24k1t6f20vlqlers3a3uraf Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241002@182452.4187 61i24k1t6f20vlqlers3a3uraf Query : select sestamp valor from se where ref ='324.1321.00.1' and lote = 'r2400495200a'
20241002@182452.4199 61i24k1t6f20vlqlers3a3uraf Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241002@182452.4213 61i24k1t6f20vlqlers3a3uraf Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241002@182452.4225 61i24k1t6f20vlqlers3a3uraf Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66fd83243066fd81e466','aut66fd89745366fd81e3be' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241002@182452.4228 61i24k1t6f20vlqlers3a3uraf Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241002@182452.4242 61i24k1t6f20vlqlers3a3uraf Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241002@182452.4272 61i24k1t6f20vlqlers3a3uraf Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem) values ('aut66fd83243066fd81e466',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',1.000 ,'aut66fd89745366fd81e3be' ,0,0 ,2,23.00,120000,?,?,?,?)
20241002@182452.4521 61i24k1t6f20vlqlers3a3uraf Query : use flama_phc
20241002@182452.4524 61i24k1t6f20vlqlers3a3uraf Query : select st.usalote valor from st where st.ref = '324.1321.00.1'
20241002@182452.4543 61i24k1t6f20vlqlers3a3uraf Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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'
20241002@182452.4557 61i24k1t6f20vlqlers3a3uraf Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241002@182452.4572 61i24k1t6f20vlqlers3a3uraf Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241002@182452.4598 61i24k1t6f20vlqlers3a3uraf Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241002@182452.4614 61i24k1t6f20vlqlers3a3uraf Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241002@182452.4622 61i24k1t6f20vlqlers3a3uraf Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241002@182452.4634 61i24k1t6f20vlqlers3a3uraf Query : select sestamp valor from se where ref ='324.1321.00.1' and lote = 'r2400495200a'
20241002@182452.4646 61i24k1t6f20vlqlers3a3uraf Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241002@182452.4661 61i24k1t6f20vlqlers3a3uraf Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241002@182452.4673 61i24k1t6f20vlqlers3a3uraf Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66fd84735066fd81e471','aut66fd89745366fd81e3be' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241002@182452.4678 61i24k1t6f20vlqlers3a3uraf Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241002@182452.4694 61i24k1t6f20vlqlers3a3uraf Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241002@182452.4723 61i24k1t6f20vlqlers3a3uraf Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem) values ('aut66fd84735066fd81e471',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',21.000 ,'aut66fd89745366fd81e3be' ,0,0 ,2,23.00,130000,?,?,?,?)
20241002@182452.4999 61i24k1t6f20vlqlers3a3uraf Query : use flama_phc
20241002@182452.5003 61i24k1t6f20vlqlers3a3uraf Query : select st.usalote valor from st where st.ref = '324.1321.00.1'
20241002@182452.5021 61i24k1t6f20vlqlers3a3uraf Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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'
20241002@182452.5034 61i24k1t6f20vlqlers3a3uraf Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241002@182452.5050 61i24k1t6f20vlqlers3a3uraf Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241002@182452.5074 61i24k1t6f20vlqlers3a3uraf Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241002@182452.5089 61i24k1t6f20vlqlers3a3uraf Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241002@182452.5097 61i24k1t6f20vlqlers3a3uraf Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241002@182452.5109 61i24k1t6f20vlqlers3a3uraf Query : select sestamp valor from se where ref ='324.1321.00.1' and lote = 'r2400495200a'
20241002@182452.5121 61i24k1t6f20vlqlers3a3uraf Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241002@182452.5139 61i24k1t6f20vlqlers3a3uraf Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241002@182452.5150 61i24k1t6f20vlqlers3a3uraf Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66fd86917066fd81e47d','aut66fd89745366fd81e3be' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241002@182452.5155 61i24k1t6f20vlqlers3a3uraf Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241002@182452.5168 61i24k1t6f20vlqlers3a3uraf Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241002@182452.5195 61i24k1t6f20vlqlers3a3uraf Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem) values ('aut66fd86917066fd81e47d',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',2.000 ,'aut66fd89745366fd81e3be' ,0,0 ,2,23.00,140000,?,?,?,?)
20241002@182452.5440 61i24k1t6f20vlqlers3a3uraf Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut66fd89745366fd81e3be','2406399','wait',39,'adm09112754980.682000002')
20241002@182452.5513 61i24k1t6f20vlqlers3a3uraf Query : use flama_phc
20241002@182452.5516 61i24k1t6f20vlqlers3a3uraf Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20241002@182452.5548 61i24k1t6f20vlqlers3a3uraf Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2382';
20241002@182452.5578 61i24k1t6f20vlqlers3a3uraf Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2382';
20241002@182452.5624 61i24k1t6f20vlqlers3a3uraf Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2382';
20241002@182452.5650 61i24k1t6f20vlqlers3a3uraf Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2382';
20241002@182452.6214 fs1m0sthgpigstapkdiqufbo1d Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20241002@182452.6225 fs1m0sthgpigstapkdiqufbo1d Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20241002@182452.6283 fs1m0sthgpigstapkdiqufbo1d Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2383';
20241002@182452.7540 fs1m0sthgpigstapkdiqufbo1d Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2383';
20241002@182452.7600 fs1m0sthgpigstapkdiqufbo1d Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2383';
20241002@182452.7629 fs1m0sthgpigstapkdiqufbo1d Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2383';
20241002@182452.7699 fs1m0sthgpigstapkdiqufbo1d Query : use flama_phc
20241002@182452.7702 fs1m0sthgpigstapkdiqufbo1d Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20241002@182452.7763 fs1m0sthgpigstapkdiqufbo1d Query : use flama_phc
20241002@182452.7766 fs1m0sthgpigstapkdiqufbo1d Query : select no, estab,szadrsdesc from szadrs where u_coddest=323
20241002@182452.7855 fs1m0sthgpigstapkdiqufbo1d Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1831.00.2'
20241002@182452.8013 fs1m0sthgpigstapkdiqufbo1d Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1831.00.2'
20241002@182452.8035 fs1m0sthgpigstapkdiqufbo1d Query : use flama_phc
20241002@182452.8038 fs1m0sthgpigstapkdiqufbo1d Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20241002@182452.8074 fs1m0sthgpigstapkdiqufbo1d Query : use flama_phc
20241002@182452.8077 fs1m0sthgpigstapkdiqufbo1d Query : select top 1 1 valor from td where td.ndoc = 39
20241002@182452.8108 fs1m0sthgpigstapkdiqufbo1d Query : use flama_phc
20241002@182452.8111 fs1m0sthgpigstapkdiqufbo1d 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')
20241002@182452.8138 fs1m0sthgpigstapkdiqufbo1d 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
20241002@182452.8173 fs1m0sthgpigstapkdiqufbo1d Query : use flama_phc
20241002@182452.8176 fs1m0sthgpigstapkdiqufbo1d Query : select top 1 ~inactivo valor from cl where no = '101621' and estab = 0 order by inactivo desc
20241002@182452.8208 fs1m0sthgpigstapkdiqufbo1d Query : use flama_phc
20241002@182452.8210 fs1m0sthgpigstapkdiqufbo1d Query : select top 1 tipodoc,regrd from td where ndoc = 39
20241002@182452.8239 fs1m0sthgpigstapkdiqufbo1d Query : use flama_phc
20241002@182452.8242 fs1m0sthgpigstapkdiqufbo1d Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20241002@182452.8283 fs1m0sthgpigstapkdiqufbo1d Query : use flama_phc
20241002@182452.8288 fs1m0sthgpigstapkdiqufbo1d Query : select szadrsstamp valor from szadrs where szadrsdesc='joaquim oliveira mendes,lda jom- brg retail'
20241002@182452.8334 fs1m0sthgpigstapkdiqufbo1d Query : use flama_phc
20241002@182452.8338 fs1m0sthgpigstapkdiqufbo1d Query : select 1 valor from td where ndoc = 39
20241002@182452.8350 fs1m0sthgpigstapkdiqufbo1d Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20241002@182452.8364 fs1m0sthgpigstapkdiqufbo1d Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241002@182452.8381 fs1m0sthgpigstapkdiqufbo1d Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20241002@182452.8401 fs1m0sthgpigstapkdiqufbo1d Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241002@182452.8416 fs1m0sthgpigstapkdiqufbo1d Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20241002@182452.8448 fs1m0sthgpigstapkdiqufbo1d Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241002@182452.8463 fs1m0sthgpigstapkdiqufbo1d Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20241002@182452.8476 fs1m0sthgpigstapkdiqufbo1d Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20241002@182452.8544 fs1m0sthgpigstapkdiqufbo1d Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20241002@182452.8557 fs1m0sthgpigstapkdiqufbo1d Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241002@182452.8571 fs1m0sthgpigstapkdiqufbo1d Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20241002@182452.8588 fs1m0sthgpigstapkdiqufbo1d Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut66fd84030166fd81e4ce' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20241002@182452.8772 fs1m0sthgpigstapkdiqufbo1d Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241002@182452.8791 fs1m0sthgpigstapkdiqufbo1d Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20241002@182452.8830 fs1m0sthgpigstapkdiqufbo1d Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20241002@182452.8843 fs1m0sthgpigstapkdiqufbo1d Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20241002@182452.8855 fs1m0sthgpigstapkdiqufbo1d Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20241002@182452.8867 fs1m0sthgpigstapkdiqufbo1d Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20241002@182452.8880 fs1m0sthgpigstapkdiqufbo1d Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20241002@182452.8912 fs1m0sthgpigstapkdiqufbo1d Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20241002@182452.8924 fs1m0sthgpigstapkdiqufbo1d Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut66fd84030166fd81e4ce',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20241002@182452.9192 fs1m0sthgpigstapkdiqufbo1d Query : select top 1 fno valor from wsftdata order by fno desc
20241002@182452.9218 fs1m0sthgpigstapkdiqufbo1d Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241002@182452.9235 fs1m0sthgpigstapkdiqufbo1d Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20241002@182452.9259 fs1m0sthgpigstapkdiqufbo1d Query : select 'normal' from dummy
20241002@182452.9275 fs1m0sthgpigstapkdiqufbo1d Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut66fd84030166fd81e4ce',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',1056,101621,0,'2024-10-02',39,'euro',0,0,2024 ,?,?)
20241002@182452.9591 fs1m0sthgpigstapkdiqufbo1d Query : use flama_phc
20241002@182452.9595 fs1m0sthgpigstapkdiqufbo1d Query : select st.usalote valor from st where st.ref = '324.1831.00.2'
20241002@182452.9619 fs1m0sthgpigstapkdiqufbo1d Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.1831.00.2'
20241002@182452.9782 fs1m0sthgpigstapkdiqufbo1d Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241002@182452.9799 fs1m0sthgpigstapkdiqufbo1d Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241002@182452.9825 fs1m0sthgpigstapkdiqufbo1d Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241002@182452.9839 fs1m0sthgpigstapkdiqufbo1d Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241002@182452.9848 fs1m0sthgpigstapkdiqufbo1d Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241002@182452.9862 fs1m0sthgpigstapkdiqufbo1d Query : select sestamp valor from se where ref ='324.1831.00.2' and lote = 'r2400401175a'
20241002@182452.9877 fs1m0sthgpigstapkdiqufbo1d Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241002@182452.9893 fs1m0sthgpigstapkdiqufbo1d Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241002@182452.9907 fs1m0sthgpigstapkdiqufbo1d Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66fd86038266fd81e4f1','aut66fd84030166fd81e4ce' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241002@182452.9912 fs1m0sthgpigstapkdiqufbo1d Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241002@182452.9927 fs1m0sthgpigstapkdiqufbo1d Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241002@182452.9957 fs1m0sthgpigstapkdiqufbo1d Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem) values ('aut66fd86038266fd81e4f1',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',3.000 ,'aut66fd84030166fd81e4ce' ,0,0 ,2,23.00,10000,?,?,?,?)
20241002@182453.2390 fs1m0sthgpigstapkdiqufbo1d Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241002@182453.2570 fs1m0sthgpigstapkdiqufbo1d Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241002@182453.2830 fs1m0sthgpigstapkdiqufbo1d Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241002@182453.3010 fs1m0sthgpigstapkdiqufbo1d Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241002@182453.3110 fs1m0sthgpigstapkdiqufbo1d Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241002@182453.3240 fs1m0sthgpigstapkdiqufbo1d Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241002@182453.3400 fs1m0sthgpigstapkdiqufbo1d Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241002@182453.3530 fs1m0sthgpigstapkdiqufbo1d Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66fd86834866fd81e507','aut66fd84030166fd81e4ce' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241002@182453.3570 fs1m0sthgpigstapkdiqufbo1d Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241002@182453.3730 fs1m0sthgpigstapkdiqufbo1d Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241002@182453.4050 fs1m0sthgpigstapkdiqufbo1d Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66fd86834866fd81e507',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66fd84030166fd81e4ce' ,0,0 ,2,23.00,20000,?,?,?)
20241002@182453.6850 fs1m0sthgpigstapkdiqufbo1d Query : use flama_phc
20241002@182453.6890 fs1m0sthgpigstapkdiqufbo1d Query : select st.usalote valor from st where st.ref = '324.1831.00.2'
20241002@182453.7110 fs1m0sthgpigstapkdiqufbo1d Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.1831.00.2'
20241002@182453.7270 fs1m0sthgpigstapkdiqufbo1d Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241002@182453.7460 fs1m0sthgpigstapkdiqufbo1d Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241002@182453.7760 fs1m0sthgpigstapkdiqufbo1d Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241002@182453.7930 fs1m0sthgpigstapkdiqufbo1d Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241002@182453.8040 fs1m0sthgpigstapkdiqufbo1d Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241002@182453.8180 fs1m0sthgpigstapkdiqufbo1d Query : select sestamp valor from se where ref ='324.1831.00.2' and lote = 'r2400401175a'
20241002@182453.8330 fs1m0sthgpigstapkdiqufbo1d Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241002@182453.8510 fs1m0sthgpigstapkdiqufbo1d Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241002@182453.8820 fs1m0sthgpigstapkdiqufbo1d Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66fd87965266fd81e514','aut66fd84030166fd81e4ce' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241002@182453.8870 fs1m0sthgpigstapkdiqufbo1d Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241002@182453.9040 fs1m0sthgpigstapkdiqufbo1d Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241002@182453.9380 fs1m0sthgpigstapkdiqufbo1d Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem) values ('aut66fd87965266fd81e514',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',1.000 ,'aut66fd84030166fd81e4ce' ,0,0 ,2,23.00,40000,?,?,?,?)
20241002@182453.1231 fs1m0sthgpigstapkdiqufbo1d Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241002@182453.1248 fs1m0sthgpigstapkdiqufbo1d Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241002@182453.1278 fs1m0sthgpigstapkdiqufbo1d Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241002@182453.1293 fs1m0sthgpigstapkdiqufbo1d Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241002@182453.1303 fs1m0sthgpigstapkdiqufbo1d Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241002@182453.1316 fs1m0sthgpigstapkdiqufbo1d Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241002@182453.1334 fs1m0sthgpigstapkdiqufbo1d Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241002@182453.1348 fs1m0sthgpigstapkdiqufbo1d Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66fd80486066fd81e520','aut66fd84030166fd81e4ce' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241002@182453.1353 fs1m0sthgpigstapkdiqufbo1d Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241002@182453.1371 fs1m0sthgpigstapkdiqufbo1d Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241002@182453.1402 fs1m0sthgpigstapkdiqufbo1d Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66fd80486066fd81e520',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66fd84030166fd81e4ce' ,0,0 ,2,23.00,50000,?,?,?)
20241002@182453.1694 fs1m0sthgpigstapkdiqufbo1d Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut66fd84030166fd81e4ce','2406400','wait',39,'adm09112754980.682000002')
20241002@182453.1767 fs1m0sthgpigstapkdiqufbo1d Query : use flama_phc
20241002@182453.1771 fs1m0sthgpigstapkdiqufbo1d Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20241002@182453.1802 fs1m0sthgpigstapkdiqufbo1d Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2383';
20241002@182453.1836 fs1m0sthgpigstapkdiqufbo1d Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2383';
20241002@182453.1881 fs1m0sthgpigstapkdiqufbo1d Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2383';
20241002@182453.1913 fs1m0sthgpigstapkdiqufbo1d Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2383';
20241002@182453.3671 h5pqois944s02j6p5speub21n8 Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20241002@182453.3682 h5pqois944s02j6p5speub21n8 Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20241002@182453.3733 h5pqois944s02j6p5speub21n8 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2384';
20241002@182453.3789 h5pqois944s02j6p5speub21n8 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2384';
20241002@182453.3869 h5pqois944s02j6p5speub21n8 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2384';
20241002@182453.3900 h5pqois944s02j6p5speub21n8 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2384';
20241002@182453.3984 h5pqois944s02j6p5speub21n8 Query : use flama_phc
20241002@182453.3988 h5pqois944s02j6p5speub21n8 Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20241002@182453.4046 h5pqois944s02j6p5speub21n8 Query : use flama_phc
20241002@182453.4049 h5pqois944s02j6p5speub21n8 Query : select no, estab,szadrsdesc from szadrs where u_coddest=2448
20241002@182453.4136 h5pqois944s02j6p5speub21n8 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'
20241002@182453.4306 h5pqois944s02j6p5speub21n8 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'
20241002@182453.4454 h5pqois944s02j6p5speub21n8 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1407.00.1'
20241002@182453.4585 h5pqois944s02j6p5speub21n8 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1417.00.1'
20241002@182453.4708 h5pqois944s02j6p5speub21n8 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1879.00.1'
20241002@182453.4834 h5pqois944s02j6p5speub21n8 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1879.00.1'
20241002@182453.4853 h5pqois944s02j6p5speub21n8 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.2221.00.1'
20241002@182453.5018 h5pqois944s02j6p5speub21n8 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.2222.00.1'
20241002@182453.5148 h5pqois944s02j6p5speub21n8 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.2223.00.1'
20241002@182453.5269 h5pqois944s02j6p5speub21n8 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.2224.00.1'
20241002@182453.5390 h5pqois944s02j6p5speub21n8 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.691.00.01'
20241002@182453.5519 h5pqois944s02j6p5speub21n8 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.5501.00.1'
20241002@182453.5726 h5pqois944s02j6p5speub21n8 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.5501.00.1'
20241002@182453.5750 h5pqois944s02j6p5speub21n8 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'
20241002@182453.5945 h5pqois944s02j6p5speub21n8 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'
20241002@182453.6089 h5pqois944s02j6p5speub21n8 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'
