20241003@172837.2639 vofvv29daul02aq2vd6fcodd4u Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241003@172837.2653 vofvv29daul02aq2vd6fcodd4u Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241003@172837.2667 vofvv29daul02aq2vd6fcodd4u Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66fec4202266fec63540','aut66fec6421866fec63483' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241003@172837.2671 vofvv29daul02aq2vd6fcodd4u Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241003@172837.2686 vofvv29daul02aq2vd6fcodd4u Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241003@172837.2716 vofvv29daul02aq2vd6fcodd4u Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem) values ('aut66fec4202266fec63540',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',2.000 ,'aut66fec6421866fec63483' ,0,0 ,2,23.00,100000,?,?,?,?)
20241003@172837.2964 vofvv29daul02aq2vd6fcodd4u Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut66fec6421866fec63483','2406421','wait',39,'adm09112754980.682000002')
20241003@172837.3034 vofvv29daul02aq2vd6fcodd4u Query : use flama_phc
20241003@172837.3037 vofvv29daul02aq2vd6fcodd4u Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20241003@172837.3067 vofvv29daul02aq2vd6fcodd4u Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2401';
20241003@172837.3097 vofvv29daul02aq2vd6fcodd4u Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2401';
20241003@172837.3140 vofvv29daul02aq2vd6fcodd4u Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2401';
20241003@172837.3166 vofvv29daul02aq2vd6fcodd4u Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2401';
20241003@172837.3742 4i7v84gsc50pafn6t7a73s2kno Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20241003@172837.3753 4i7v84gsc50pafn6t7a73s2kno Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20241003@172837.3811 4i7v84gsc50pafn6t7a73s2kno Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2402';
20241003@172837.3869 4i7v84gsc50pafn6t7a73s2kno Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2402';
20241003@172837.3922 4i7v84gsc50pafn6t7a73s2kno Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2402';
20241003@172837.3948 4i7v84gsc50pafn6t7a73s2kno Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2402';
20241003@172837.3995 4i7v84gsc50pafn6t7a73s2kno Query : use flama_phc
20241003@172837.3998 4i7v84gsc50pafn6t7a73s2kno Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20241003@172837.4058 4i7v84gsc50pafn6t7a73s2kno Query : use flama_phc
20241003@172837.4061 4i7v84gsc50pafn6t7a73s2kno Query : select no, estab,szadrsdesc from szadrs where u_coddest=6258
20241003@172837.4149 4i7v84gsc50pafn6t7a73s2kno 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'
20241003@172837.4169 4i7v84gsc50pafn6t7a73s2kno Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.966.00.01'
20241003@172837.4189 4i7v84gsc50pafn6t7a73s2kno Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.945.00.01'
20241003@172837.4210 4i7v84gsc50pafn6t7a73s2kno Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '325.1290.1003'
20241003@172837.4367 4i7v84gsc50pafn6t7a73s2kno Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1642.00.2'
20241003@172837.4508 4i7v84gsc50pafn6t7a73s2kno Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1642.00.2'
20241003@172837.4529 4i7v84gsc50pafn6t7a73s2kno Query : use flama_phc
20241003@172837.4532 4i7v84gsc50pafn6t7a73s2kno Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20241003@172837.4564 4i7v84gsc50pafn6t7a73s2kno Query : use flama_phc
20241003@172837.4567 4i7v84gsc50pafn6t7a73s2kno Query : select top 1 1 valor from td where td.ndoc = 39
20241003@172837.4598 4i7v84gsc50pafn6t7a73s2kno Query : use flama_phc
20241003@172837.4601 4i7v84gsc50pafn6t7a73s2kno 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')
20241003@172837.4631 4i7v84gsc50pafn6t7a73s2kno 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
20241003@172837.4666 4i7v84gsc50pafn6t7a73s2kno Query : use flama_phc
20241003@172837.4669 4i7v84gsc50pafn6t7a73s2kno Query : select top 1 ~inactivo valor from cl where no = '200500' and estab = 0 order by inactivo desc
20241003@172837.4699 4i7v84gsc50pafn6t7a73s2kno Query : use flama_phc
20241003@172837.4701 4i7v84gsc50pafn6t7a73s2kno Query : select top 1 tipodoc,regrd from td where ndoc = 39
20241003@172837.4731 4i7v84gsc50pafn6t7a73s2kno Query : use flama_phc
20241003@172837.4734 4i7v84gsc50pafn6t7a73s2kno Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20241003@172837.4774 4i7v84gsc50pafn6t7a73s2kno Query : use flama_phc
20241003@172837.4777 4i7v84gsc50pafn6t7a73s2kno Query : select szadrsstamp valor from szadrs where szadrsdesc='iiruñadis sl'
20241003@172837.4844 4i7v84gsc50pafn6t7a73s2kno Query : use flama_phc
20241003@172837.4847 4i7v84gsc50pafn6t7a73s2kno Query : select 1 valor from td where ndoc = 39
20241003@172837.4860 4i7v84gsc50pafn6t7a73s2kno Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20241003@172837.4886 4i7v84gsc50pafn6t7a73s2kno Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241003@172837.4904 4i7v84gsc50pafn6t7a73s2kno Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20241003@172837.4923 4i7v84gsc50pafn6t7a73s2kno Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241003@172837.4939 4i7v84gsc50pafn6t7a73s2kno Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20241003@172837.4974 4i7v84gsc50pafn6t7a73s2kno Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241003@172837.4988 4i7v84gsc50pafn6t7a73s2kno Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20241003@172837.5002 4i7v84gsc50pafn6t7a73s2kno Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20241003@172837.5066 4i7v84gsc50pafn6t7a73s2kno Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20241003@172837.5079 4i7v84gsc50pafn6t7a73s2kno Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241003@172837.5097 4i7v84gsc50pafn6t7a73s2kno Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20241003@172837.5112 4i7v84gsc50pafn6t7a73s2kno Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut66fec5411366fec6357a' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20241003@172837.5294 4i7v84gsc50pafn6t7a73s2kno Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241003@172837.5309 4i7v84gsc50pafn6t7a73s2kno Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20241003@172837.5342 4i7v84gsc50pafn6t7a73s2kno Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20241003@172837.5354 4i7v84gsc50pafn6t7a73s2kno Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20241003@172837.5365 4i7v84gsc50pafn6t7a73s2kno Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20241003@172837.5377 4i7v84gsc50pafn6t7a73s2kno Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20241003@172837.5388 4i7v84gsc50pafn6t7a73s2kno Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20241003@172837.5402 4i7v84gsc50pafn6t7a73s2kno Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20241003@172837.5413 4i7v84gsc50pafn6t7a73s2kno Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut66fec5411366fec6357a',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20241003@172837.5704 4i7v84gsc50pafn6t7a73s2kno Query : select top 1 fno valor from wsftdata order by fno desc
20241003@172837.5726 4i7v84gsc50pafn6t7a73s2kno Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241003@172837.5742 4i7v84gsc50pafn6t7a73s2kno Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20241003@172837.5764 4i7v84gsc50pafn6t7a73s2kno Query : select 'normal' from dummy
20241003@172837.5780 4i7v84gsc50pafn6t7a73s2kno Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut66fec5411366fec6357a',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',1072,200500,0,'2024-10-03',39,'euro',0,0,2024 ,?,?)
20241003@172837.6065 4i7v84gsc50pafn6t7a73s2kno Query : use flama_phc
20241003@172837.6068 4i7v84gsc50pafn6t7a73s2kno Query : select st.usalote valor from st where st.ref = '324.969.00.01'
20241003@172837.6088 4i7v84gsc50pafn6t7a73s2kno Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.969.00.01'
20241003@172837.6102 4i7v84gsc50pafn6t7a73s2kno Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241003@172837.6118 4i7v84gsc50pafn6t7a73s2kno Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241003@172837.6145 4i7v84gsc50pafn6t7a73s2kno Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241003@172837.6159 4i7v84gsc50pafn6t7a73s2kno Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241003@172837.6167 4i7v84gsc50pafn6t7a73s2kno Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241003@172837.6179 4i7v84gsc50pafn6t7a73s2kno Query : select sestamp valor from se where ref ='324.969.00.01' and lote = 'r2100601100a'
20241003@172837.6192 4i7v84gsc50pafn6t7a73s2kno Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241003@172837.6207 4i7v84gsc50pafn6t7a73s2kno Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241003@172837.6220 4i7v84gsc50pafn6t7a73s2kno Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66fec1914866fec63597','aut66fec5411366fec6357a' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241003@172837.6225 4i7v84gsc50pafn6t7a73s2kno Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241003@172837.6243 4i7v84gsc50pafn6t7a73s2kno Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241003@172837.6279 4i7v84gsc50pafn6t7a73s2kno Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem) values ('aut66fec1914866fec63597',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',8.000 ,'aut66fec5411366fec6357a' ,0,0 ,2,23.00,10000,?,?,?,?)
20241003@172837.6549 4i7v84gsc50pafn6t7a73s2kno Query : use flama_phc
20241003@172837.6552 4i7v84gsc50pafn6t7a73s2kno Query : select st.usalote valor from st where st.ref = '324.966.00.01'
20241003@172837.6574 4i7v84gsc50pafn6t7a73s2kno Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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.966.00.01'
20241003@172837.6722 4i7v84gsc50pafn6t7a73s2kno Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241003@172837.6739 4i7v84gsc50pafn6t7a73s2kno Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241003@172837.6767 4i7v84gsc50pafn6t7a73s2kno Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241003@172837.6799 4i7v84gsc50pafn6t7a73s2kno Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241003@172837.6808 4i7v84gsc50pafn6t7a73s2kno Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241003@172837.6821 4i7v84gsc50pafn6t7a73s2kno Query : select sestamp valor from se where ref ='324.966.00.01' and lote = 'r2400743200a'
20241003@172837.6835 4i7v84gsc50pafn6t7a73s2kno Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241003@172837.6849 4i7v84gsc50pafn6t7a73s2kno Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241003@172837.6860 4i7v84gsc50pafn6t7a73s2kno Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66fec3122066fec635a6','aut66fec5411366fec6357a' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241003@172837.6865 4i7v84gsc50pafn6t7a73s2kno Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241003@172837.6879 4i7v84gsc50pafn6t7a73s2kno Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241003@172837.6907 4i7v84gsc50pafn6t7a73s2kno Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem) values ('aut66fec3122066fec635a6',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',8.000 ,'aut66fec5411366fec6357a' ,0,0 ,2,23.00,20000,?,?,?,?)
20241003@172837.7163 4i7v84gsc50pafn6t7a73s2kno Query : use flama_phc
20241003@172837.7166 4i7v84gsc50pafn6t7a73s2kno Query : select st.usalote valor from st where st.ref = '324.945.00.01'
20241003@172837.7185 4i7v84gsc50pafn6t7a73s2kno Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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.945.00.01'
20241003@172837.7200 4i7v84gsc50pafn6t7a73s2kno Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241003@172837.7216 4i7v84gsc50pafn6t7a73s2kno Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241003@172837.7242 4i7v84gsc50pafn6t7a73s2kno Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241003@172837.7256 4i7v84gsc50pafn6t7a73s2kno Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241003@172837.7264 4i7v84gsc50pafn6t7a73s2kno Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241003@172837.7276 4i7v84gsc50pafn6t7a73s2kno Query : select sestamp valor from se where ref ='324.945.00.01' and lote = 'r2200799100a'
20241003@172837.7288 4i7v84gsc50pafn6t7a73s2kno Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241003@172837.7302 4i7v84gsc50pafn6t7a73s2kno Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241003@172837.7313 4i7v84gsc50pafn6t7a73s2kno Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66fec0206666fec635b1','aut66fec5411366fec6357a' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241003@172837.7317 4i7v84gsc50pafn6t7a73s2kno Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241003@172837.7332 4i7v84gsc50pafn6t7a73s2kno Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241003@172837.7362 4i7v84gsc50pafn6t7a73s2kno Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem) values ('aut66fec0206666fec635b1',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',12.000 ,'aut66fec5411366fec6357a' ,0,0 ,2,23.00,30000,?,?,?,?)
20241003@172837.7614 4i7v84gsc50pafn6t7a73s2kno Query : use flama_phc
20241003@172837.7617 4i7v84gsc50pafn6t7a73s2kno Query : select st.usalote valor from st where st.ref = '325.1290.1003'
20241003@172837.7637 4i7v84gsc50pafn6t7a73s2kno Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '325.1290.1003'
20241003@172837.7774 4i7v84gsc50pafn6t7a73s2kno Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241003@172837.7789 4i7v84gsc50pafn6t7a73s2kno Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241003@172837.7816 4i7v84gsc50pafn6t7a73s2kno Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241003@172837.7830 4i7v84gsc50pafn6t7a73s2kno Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241003@172837.7838 4i7v84gsc50pafn6t7a73s2kno Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241003@172837.7849 4i7v84gsc50pafn6t7a73s2kno Query : select sestamp valor from se where ref ='325.1290.1003' and lote = 'r2400796200a'
20241003@172837.7862 4i7v84gsc50pafn6t7a73s2kno Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241003@172837.7876 4i7v84gsc50pafn6t7a73s2kno Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241003@172837.7887 4i7v84gsc50pafn6t7a73s2kno Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66fec4071466fec635bf','aut66fec5411366fec6357a' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241003@172837.7891 4i7v84gsc50pafn6t7a73s2kno Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241003@172837.7906 4i7v84gsc50pafn6t7a73s2kno Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241003@172837.7933 4i7v84gsc50pafn6t7a73s2kno Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem) values ('aut66fec4071466fec635bf',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',18.000 ,'aut66fec5411366fec6357a' ,0,0 ,2,23.00,40000,?,?,?,?)
20241003@172837.8307 4i7v84gsc50pafn6t7a73s2kno Query : use flama_phc
20241003@172837.8326 4i7v84gsc50pafn6t7a73s2kno Query : select st.usalote valor from st where st.ref = '324.1642.00.2'
20241003@172837.8349 4i7v84gsc50pafn6t7a73s2kno Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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.1642.00.2'
20241003@172837.8500 4i7v84gsc50pafn6t7a73s2kno Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241003@172837.8516 4i7v84gsc50pafn6t7a73s2kno Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241003@172837.8540 4i7v84gsc50pafn6t7a73s2kno Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241003@172837.8555 4i7v84gsc50pafn6t7a73s2kno Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241003@172837.8563 4i7v84gsc50pafn6t7a73s2kno Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241003@172837.8575 4i7v84gsc50pafn6t7a73s2kno Query : select sestamp valor from se where ref ='324.1642.00.2' and lote = 'r2400526200a'
20241003@172837.8588 4i7v84gsc50pafn6t7a73s2kno Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241003@172837.8602 4i7v84gsc50pafn6t7a73s2kno Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241003@172837.8615 4i7v84gsc50pafn6t7a73s2kno Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66fec3117966fec635d1','aut66fec5411366fec6357a' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241003@172837.8620 4i7v84gsc50pafn6t7a73s2kno Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241003@172837.8634 4i7v84gsc50pafn6t7a73s2kno Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241003@172837.8663 4i7v84gsc50pafn6t7a73s2kno Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem) values ('aut66fec3117966fec635d1',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',2.000 ,'aut66fec5411366fec6357a' ,0,0 ,2,23.00,50000,?,?,?,?)
20241003@172837.8923 4i7v84gsc50pafn6t7a73s2kno Query : use flama_phc
20241003@172837.8926 4i7v84gsc50pafn6t7a73s2kno Query : select st.usalote valor from st where st.ref = '324.1642.00.2'
20241003@172837.8945 4i7v84gsc50pafn6t7a73s2kno Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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.1642.00.2'
20241003@172837.8959 4i7v84gsc50pafn6t7a73s2kno Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241003@172837.8976 4i7v84gsc50pafn6t7a73s2kno Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241003@172837.9003 4i7v84gsc50pafn6t7a73s2kno Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241003@172837.9017 4i7v84gsc50pafn6t7a73s2kno Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241003@172837.9026 4i7v84gsc50pafn6t7a73s2kno Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241003@172837.9037 4i7v84gsc50pafn6t7a73s2kno Query : select sestamp valor from se where ref ='324.1642.00.2' and lote = 'r2400526200a'
20241003@172837.9049 4i7v84gsc50pafn6t7a73s2kno Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241003@172837.9064 4i7v84gsc50pafn6t7a73s2kno Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241003@172837.9074 4i7v84gsc50pafn6t7a73s2kno Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66fec2301166fec635dc','aut66fec5411366fec6357a' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241003@172837.9078 4i7v84gsc50pafn6t7a73s2kno Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241003@172837.9093 4i7v84gsc50pafn6t7a73s2kno Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241003@172837.9123 4i7v84gsc50pafn6t7a73s2kno Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem) values ('aut66fec2301166fec635dc',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',6.000 ,'aut66fec5411366fec6357a' ,0,0 ,2,23.00,60000,?,?,?,?)
20241003@172837.9382 4i7v84gsc50pafn6t7a73s2kno Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut66fec5411366fec6357a','2406422','wait',39,'adm09112754980.682000002')
20241003@172837.9456 4i7v84gsc50pafn6t7a73s2kno Query : use flama_phc
20241003@172837.9459 4i7v84gsc50pafn6t7a73s2kno Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20241003@172837.9491 4i7v84gsc50pafn6t7a73s2kno Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2402';
20241003@172837.9526 4i7v84gsc50pafn6t7a73s2kno Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2402';
20241003@172837.9570 4i7v84gsc50pafn6t7a73s2kno Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2402';
20241003@172837.9597 4i7v84gsc50pafn6t7a73s2kno Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2402';
20241003@172838.2660 k6g6n8rscijc69ri94m1h8hqm0 Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20241003@172838.2810 k6g6n8rscijc69ri94m1h8hqm0 Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20241003@172838.3390 k6g6n8rscijc69ri94m1h8hqm0 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2403';
20241003@172838.3950 k6g6n8rscijc69ri94m1h8hqm0 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2403';
20241003@172838.4840 k6g6n8rscijc69ri94m1h8hqm0 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2403';
20241003@172838.5150 k6g6n8rscijc69ri94m1h8hqm0 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2403';
20241003@172838.5700 k6g6n8rscijc69ri94m1h8hqm0 Query : use flama_phc
20241003@172838.5730 k6g6n8rscijc69ri94m1h8hqm0 Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20241003@172838.6380 k6g6n8rscijc69ri94m1h8hqm0 Query : use flama_phc
20241003@172838.6410 k6g6n8rscijc69ri94m1h8hqm0 Query : select no, estab,szadrsdesc from szadrs where u_coddest=2117
20241003@172838.7230 k6g6n8rscijc69ri94m1h8hqm0 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.2326.00.1'
20241003@172838.7430 k6g6n8rscijc69ri94m1h8hqm0 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'
20241003@172838.9090 k6g6n8rscijc69ri94m1h8hqm0 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.2366.00.1'
20241003@172838.1085 k6g6n8rscijc69ri94m1h8hqm0 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.2362.00.1'
20241003@172838.1265 k6g6n8rscijc69ri94m1h8hqm0 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.2362.00.1'
20241003@172838.1289 k6g6n8rscijc69ri94m1h8hqm0 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.2357.00.1'
20241003@172838.1458 k6g6n8rscijc69ri94m1h8hqm0 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.2335.00.1'
20241003@172838.1480 k6g6n8rscijc69ri94m1h8hqm0 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.2330.00.1'
20241003@172838.1639 k6g6n8rscijc69ri94m1h8hqm0 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'
20241003@172838.1801 k6g6n8rscijc69ri94m1h8hqm0 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'
20241003@172838.1846 k6g6n8rscijc69ri94m1h8hqm0 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'
20241003@172838.2003 k6g6n8rscijc69ri94m1h8hqm0 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'
20241003@172838.2147 k6g6n8rscijc69ri94m1h8hqm0 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'
20241003@172838.2169 k6g6n8rscijc69ri94m1h8hqm0 Query : use flama_phc
20241003@172838.2173 k6g6n8rscijc69ri94m1h8hqm0 Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20241003@172838.2258 k6g6n8rscijc69ri94m1h8hqm0 Query : use flama_phc
20241003@172838.2261 k6g6n8rscijc69ri94m1h8hqm0 Query : select top 1 1 valor from td where td.ndoc = 39
20241003@172838.2542 k6g6n8rscijc69ri94m1h8hqm0 Query : use flama_phc
20241003@172838.2545 k6g6n8rscijc69ri94m1h8hqm0 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')
20241003@172838.2588 k6g6n8rscijc69ri94m1h8hqm0 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
20241003@172838.2665 k6g6n8rscijc69ri94m1h8hqm0 Query : use flama_phc
20241003@172838.2668 k6g6n8rscijc69ri94m1h8hqm0 Query : select top 1 ~inactivo valor from cl where no = '102420' and estab = 0 order by inactivo desc
20241003@172838.2830 k6g6n8rscijc69ri94m1h8hqm0 Query : use flama_phc
20241003@172838.2852 k6g6n8rscijc69ri94m1h8hqm0 Query : select top 1 tipodoc,regrd from td where ndoc = 39
20241003@172838.2952 k6g6n8rscijc69ri94m1h8hqm0 Query : use flama_phc
20241003@172838.2955 k6g6n8rscijc69ri94m1h8hqm0 Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20241003@172838.3028 k6g6n8rscijc69ri94m1h8hqm0 Query : use flama_phc
20241003@172838.3031 k6g6n8rscijc69ri94m1h8hqm0 Query : select szadrsstamp valor from szadrs where szadrsdesc='ri - eletrodomesticos lda'
20241003@172838.3171 k6g6n8rscijc69ri94m1h8hqm0 Query : use flama_phc
20241003@172838.3176 k6g6n8rscijc69ri94m1h8hqm0 Query : select 1 valor from td where ndoc = 39
20241003@172838.3189 k6g6n8rscijc69ri94m1h8hqm0 Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20241003@172838.3203 k6g6n8rscijc69ri94m1h8hqm0 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241003@172838.3221 k6g6n8rscijc69ri94m1h8hqm0 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20241003@172838.3239 k6g6n8rscijc69ri94m1h8hqm0 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241003@172838.3511 k6g6n8rscijc69ri94m1h8hqm0 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20241003@172838.3544 k6g6n8rscijc69ri94m1h8hqm0 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241003@172838.3560 k6g6n8rscijc69ri94m1h8hqm0 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20241003@172838.3573 k6g6n8rscijc69ri94m1h8hqm0 Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20241003@172838.3691 k6g6n8rscijc69ri94m1h8hqm0 Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20241003@172838.3705 k6g6n8rscijc69ri94m1h8hqm0 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241003@172838.3722 k6g6n8rscijc69ri94m1h8hqm0 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20241003@172838.3739 k6g6n8rscijc69ri94m1h8hqm0 Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut66fec4386866fec63657' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20241003@172838.3938 k6g6n8rscijc69ri94m1h8hqm0 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241003@172838.3956 k6g6n8rscijc69ri94m1h8hqm0 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20241003@172838.3991 k6g6n8rscijc69ri94m1h8hqm0 Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20241003@172838.4004 k6g6n8rscijc69ri94m1h8hqm0 Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20241003@172838.4016 k6g6n8rscijc69ri94m1h8hqm0 Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20241003@172838.4029 k6g6n8rscijc69ri94m1h8hqm0 Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20241003@172838.4041 k6g6n8rscijc69ri94m1h8hqm0 Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20241003@172838.4052 k6g6n8rscijc69ri94m1h8hqm0 Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20241003@172838.4066 k6g6n8rscijc69ri94m1h8hqm0 Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut66fec4386866fec63657',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20241003@172838.4307 k6g6n8rscijc69ri94m1h8hqm0 Query : select top 1 fno valor from wsftdata order by fno desc
20241003@172838.4345 k6g6n8rscijc69ri94m1h8hqm0 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241003@172838.4361 k6g6n8rscijc69ri94m1h8hqm0 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20241003@172838.4383 k6g6n8rscijc69ri94m1h8hqm0 Query : select 'normal' from dummy
20241003@172838.4398 k6g6n8rscijc69ri94m1h8hqm0 Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut66fec4386866fec63657',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',1073,102420,0,'2024-10-03',39,'euro',0,0,2024 ,?,?)
20241003@172838.4682 k6g6n8rscijc69ri94m1h8hqm0 Query : use flama_phc
20241003@172838.4685 k6g6n8rscijc69ri94m1h8hqm0 Query : select st.usalote valor from st where st.ref = '324.2326.00.1'
20241003@172838.4706 k6g6n8rscijc69ri94m1h8hqm0 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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.2326.00.1'
20241003@172838.4720 k6g6n8rscijc69ri94m1h8hqm0 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241003@172838.4753 k6g6n8rscijc69ri94m1h8hqm0 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241003@172838.4780 k6g6n8rscijc69ri94m1h8hqm0 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241003@172838.4794 k6g6n8rscijc69ri94m1h8hqm0 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241003@172838.4803 k6g6n8rscijc69ri94m1h8hqm0 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241003@172838.4815 k6g6n8rscijc69ri94m1h8hqm0 Query : select sestamp valor from se where ref ='324.2326.00.1' and lote = 'r2100576400a'
20241003@172838.4828 k6g6n8rscijc69ri94m1h8hqm0 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241003@172838.4843 k6g6n8rscijc69ri94m1h8hqm0 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241003@172838.4854 k6g6n8rscijc69ri94m1h8hqm0 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66fec6619466fec63675','aut66fec4386866fec63657' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241003@172838.4858 k6g6n8rscijc69ri94m1h8hqm0 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241003@172838.4875 k6g6n8rscijc69ri94m1h8hqm0 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241003@172838.4904 k6g6n8rscijc69ri94m1h8hqm0 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem) values ('aut66fec6619466fec63675',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',6.000 ,'aut66fec4386866fec63657' ,0,0 ,2,23.00,10000,?,?,?,?)
20241003@172838.5189 k6g6n8rscijc69ri94m1h8hqm0 Query : use flama_phc
20241003@172838.5192 k6g6n8rscijc69ri94m1h8hqm0 Query : select st.usalote valor from st where st.ref = '324.2300.00.1'
20241003@172838.5213 k6g6n8rscijc69ri94m1h8hqm0 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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'
20241003@172838.5356 k6g6n8rscijc69ri94m1h8hqm0 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241003@172838.5372 k6g6n8rscijc69ri94m1h8hqm0 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241003@172838.5403 k6g6n8rscijc69ri94m1h8hqm0 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241003@172838.5418 k6g6n8rscijc69ri94m1h8hqm0 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241003@172838.5427 k6g6n8rscijc69ri94m1h8hqm0 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241003@172838.5440 k6g6n8rscijc69ri94m1h8hqm0 Query : select sestamp valor from se where ref ='324.2300.00.1' and lote = 'r2400497200a'
20241003@172838.5460 k6g6n8rscijc69ri94m1h8hqm0 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241003@172838.5477 k6g6n8rscijc69ri94m1h8hqm0 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241003@172838.5488 k6g6n8rscijc69ri94m1h8hqm0 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66fec1023966fec63685','aut66fec4386866fec63657' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241003@172838.5492 k6g6n8rscijc69ri94m1h8hqm0 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241003@172838.5506 k6g6n8rscijc69ri94m1h8hqm0 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241003@172838.5535 k6g6n8rscijc69ri94m1h8hqm0 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem) values ('aut66fec1023966fec63685',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',6.000 ,'aut66fec4386866fec63657' ,0,0 ,2,23.00,20000,?,?,?,?)
20241003@172838.5805 k6g6n8rscijc69ri94m1h8hqm0 Query : use flama_phc
20241003@172838.5808 k6g6n8rscijc69ri94m1h8hqm0 Query : select st.usalote valor from st where st.ref = '324.2366.00.1'
20241003@172838.5831 k6g6n8rscijc69ri94m1h8hqm0 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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.2366.00.1'
20241003@172838.5977 k6g6n8rscijc69ri94m1h8hqm0 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241003@172838.5993 k6g6n8rscijc69ri94m1h8hqm0 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241003@172838.6020 k6g6n8rscijc69ri94m1h8hqm0 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241003@172838.6035 k6g6n8rscijc69ri94m1h8hqm0 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241003@172838.6043 k6g6n8rscijc69ri94m1h8hqm0 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241003@172838.6054 k6g6n8rscijc69ri94m1h8hqm0 Query : select sestamp valor from se where ref ='324.2366.00.1' and lote = 'r2300548100a'
20241003@172838.6091 k6g6n8rscijc69ri94m1h8hqm0 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241003@172838.6106 k6g6n8rscijc69ri94m1h8hqm0 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241003@172838.6117 k6g6n8rscijc69ri94m1h8hqm0 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66fec5912766fec63694','aut66fec4386866fec63657' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241003@172838.6120 k6g6n8rscijc69ri94m1h8hqm0 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241003@172838.6134 k6g6n8rscijc69ri94m1h8hqm0 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241003@172838.6162 k6g6n8rscijc69ri94m1h8hqm0 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem) values ('aut66fec5912766fec63694',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',6.000 ,'aut66fec4386866fec63657' ,0,0 ,2,23.00,30000,?,?,?,?)
20241003@172838.6431 k6g6n8rscijc69ri94m1h8hqm0 Query : use flama_phc
20241003@172838.6434 k6g6n8rscijc69ri94m1h8hqm0 Query : select st.usalote valor from st where st.ref = '324.2362.00.1'
20241003@172838.6456 k6g6n8rscijc69ri94m1h8hqm0 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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.2362.00.1'
20241003@172838.6614 k6g6n8rscijc69ri94m1h8hqm0 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241003@172838.6631 k6g6n8rscijc69ri94m1h8hqm0 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241003@172838.6656 k6g6n8rscijc69ri94m1h8hqm0 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241003@172838.6671 k6g6n8rscijc69ri94m1h8hqm0 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241003@172838.6679 k6g6n8rscijc69ri94m1h8hqm0 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241003@172838.6692 k6g6n8rscijc69ri94m1h8hqm0 Query : select sestamp valor from se where ref ='324.2362.00.1' and lote = 'r2300548200a'
20241003@172838.6708 k6g6n8rscijc69ri94m1h8hqm0 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241003@172838.6723 k6g6n8rscijc69ri94m1h8hqm0 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241003@172838.6736 k6g6n8rscijc69ri94m1h8hqm0 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66fec3930966fec636a3','aut66fec4386866fec63657' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241003@172838.6740 k6g6n8rscijc69ri94m1h8hqm0 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241003@172838.6755 k6g6n8rscijc69ri94m1h8hqm0 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241003@172838.6799 k6g6n8rscijc69ri94m1h8hqm0 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem) values ('aut66fec3930966fec636a3',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',4.000 ,'aut66fec4386866fec63657' ,0,0 ,2,23.00,40000,?,?,?,?)
20241003@172838.7063 k6g6n8rscijc69ri94m1h8hqm0 Query : use flama_phc
20241003@172838.7066 k6g6n8rscijc69ri94m1h8hqm0 Query : select st.usalote valor from st where st.ref = '324.2362.00.1'
20241003@172838.7087 k6g6n8rscijc69ri94m1h8hqm0 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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.2362.00.1'
20241003@172838.7101 k6g6n8rscijc69ri94m1h8hqm0 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241003@172838.7119 k6g6n8rscijc69ri94m1h8hqm0 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241003@172838.7160 k6g6n8rscijc69ri94m1h8hqm0 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241003@172838.7175 k6g6n8rscijc69ri94m1h8hqm0 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241003@172838.7184 k6g6n8rscijc69ri94m1h8hqm0 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241003@172838.7196 k6g6n8rscijc69ri94m1h8hqm0 Query : select sestamp valor from se where ref ='324.2362.00.1' and lote = '324.2362.00.1'
20241003@172838.7206 k6g6n8rscijc69ri94m1h8hqm0 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241003@172838.7221 k6g6n8rscijc69ri94m1h8hqm0 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241003@172838.7232 k6g6n8rscijc69ri94m1h8hqm0 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66fec3533866fec636af','aut66fec4386866fec63657' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241003@172838.7251 k6g6n8rscijc69ri94m1h8hqm0 Query : use flama_phc
20241003@172838.7254 k6g6n8rscijc69ri94m1h8hqm0 Query : select top 1 errorresult result ,errornumber errornumber ,descriptionpt description ,isnull(descriptionen,'') descriptionen ,isnull(descriptionfr,'') descriptionfr from wserrorcodes where errornumber = -116
20241003@172838.7288 k6g6n8rscijc69ri94m1h8hqm0 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2403';
20241003@172838.7334 k6g6n8rscijc69ri94m1h8hqm0 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2403';
20241003@172838.8189 0s8hbbk4ubfukq81c2e4dcrekk Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20241003@172838.8203 0s8hbbk4ubfukq81c2e4dcrekk Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20241003@172838.8261 0s8hbbk4ubfukq81c2e4dcrekk Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2404';
20241003@172838.8374 0s8hbbk4ubfukq81c2e4dcrekk Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2404';
20241003@172838.9686 0s8hbbk4ubfukq81c2e4dcrekk Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2404';
20241003@172838.9719 0s8hbbk4ubfukq81c2e4dcrekk Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2404';
20241003@172838.9783 0s8hbbk4ubfukq81c2e4dcrekk Query : use flama_phc
20241003@172838.9786 0s8hbbk4ubfukq81c2e4dcrekk Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20241003@172838.9855 0s8hbbk4ubfukq81c2e4dcrekk Query : use flama_phc
20241003@172838.9858 0s8hbbk4ubfukq81c2e4dcrekk Query : select no, estab,szadrsdesc from szadrs where u_coddest=6324
20241003@172839.1000 0s8hbbk4ubfukq81c2e4dcrekk 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'
20241003@172839.1740 0s8hbbk4ubfukq81c2e4dcrekk 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'
20241003@172839.1960 0s8hbbk4ubfukq81c2e4dcrekk Query : use flama_phc
20241003@172839.1990 0s8hbbk4ubfukq81c2e4dcrekk Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20241003@172839.2310 0s8hbbk4ubfukq81c2e4dcrekk Query : use flama_phc
20241003@172839.2340 0s8hbbk4ubfukq81c2e4dcrekk Query : select top 1 1 valor from td where td.ndoc = 39
20241003@172839.2660 0s8hbbk4ubfukq81c2e4dcrekk Query : use flama_phc
20241003@172839.2690 0s8hbbk4ubfukq81c2e4dcrekk 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')
20241003@172839.3000 0s8hbbk4ubfukq81c2e4dcrekk 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
20241003@172839.3360 0s8hbbk4ubfukq81c2e4dcrekk Query : use flama_phc
20241003@172839.3390 0s8hbbk4ubfukq81c2e4dcrekk Query : select top 1 ~inactivo valor from cl where no = '100404' and estab = 0 order by inactivo desc
20241003@172839.4830 0s8hbbk4ubfukq81c2e4dcrekk Query : use flama_phc
20241003@172839.4860 0s8hbbk4ubfukq81c2e4dcrekk Query : select top 1 tipodoc,regrd from td where ndoc = 39
20241003@172839.5160 0s8hbbk4ubfukq81c2e4dcrekk Query : use flama_phc
20241003@172839.5190 0s8hbbk4ubfukq81c2e4dcrekk Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20241003@172839.5620 0s8hbbk4ubfukq81c2e4dcrekk Query : use flama_phc
20241003@172839.5650 0s8hbbk4ubfukq81c2e4dcrekk Query : select szadrsstamp valor from szadrs where szadrsdesc='worten madalena- aÇores'
20241003@172839.6130 0s8hbbk4ubfukq81c2e4dcrekk Query : use flama_phc
20241003@172839.6160 0s8hbbk4ubfukq81c2e4dcrekk Query : select 1 valor from td where ndoc = 39
20241003@172839.6290 0s8hbbk4ubfukq81c2e4dcrekk Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20241003@172839.6430 0s8hbbk4ubfukq81c2e4dcrekk Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241003@172839.6820 0s8hbbk4ubfukq81c2e4dcrekk Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20241003@172839.7010 0s8hbbk4ubfukq81c2e4dcrekk Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241003@172839.7150 0s8hbbk4ubfukq81c2e4dcrekk Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20241003@172839.8070 0s8hbbk4ubfukq81c2e4dcrekk Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241003@172839.8500 0s8hbbk4ubfukq81c2e4dcrekk Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20241003@172839.8650 0s8hbbk4ubfukq81c2e4dcrekk Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20241003@172839.9750 0s8hbbk4ubfukq81c2e4dcrekk Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20241003@172839.9870 0s8hbbk4ubfukq81c2e4dcrekk Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241003@172839.1003 0s8hbbk4ubfukq81c2e4dcrekk Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20241003@172839.1042 0s8hbbk4ubfukq81c2e4dcrekk Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut66fec8391766fec63715' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20241003@172839.1223 0s8hbbk4ubfukq81c2e4dcrekk Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241003@172839.1239 0s8hbbk4ubfukq81c2e4dcrekk Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20241003@172839.1287 0s8hbbk4ubfukq81c2e4dcrekk Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20241003@172839.1303 0s8hbbk4ubfukq81c2e4dcrekk Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20241003@172839.1315 0s8hbbk4ubfukq81c2e4dcrekk Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20241003@172839.1327 0s8hbbk4ubfukq81c2e4dcrekk Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20241003@172839.1370 0s8hbbk4ubfukq81c2e4dcrekk Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20241003@172839.1384 0s8hbbk4ubfukq81c2e4dcrekk Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20241003@172839.1396 0s8hbbk4ubfukq81c2e4dcrekk Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut66fec8391766fec63715',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20241003@172839.1642 0s8hbbk4ubfukq81c2e4dcrekk Query : select top 1 fno valor from wsftdata order by fno desc
20241003@172839.1696 0s8hbbk4ubfukq81c2e4dcrekk Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241003@172839.1717 0s8hbbk4ubfukq81c2e4dcrekk Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20241003@172839.1749 0s8hbbk4ubfukq81c2e4dcrekk Query : select 'normal' from dummy
20241003@172839.1765 0s8hbbk4ubfukq81c2e4dcrekk Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut66fec8391766fec63715',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',1073,100404,0,'2024-10-03',39,'euro',0,0,2024 ,?,?)
20241003@172839.2068 0s8hbbk4ubfukq81c2e4dcrekk Query : use flama_phc
20241003@172839.2071 0s8hbbk4ubfukq81c2e4dcrekk Query : select st.usalote valor from st where st.ref = '328.9902.00.1'
20241003@172839.2110 0s8hbbk4ubfukq81c2e4dcrekk Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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'
20241003@172839.2264 0s8hbbk4ubfukq81c2e4dcrekk Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241003@172839.2312 0s8hbbk4ubfukq81c2e4dcrekk Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241003@172839.2336 0s8hbbk4ubfukq81c2e4dcrekk Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241003@172839.2351 0s8hbbk4ubfukq81c2e4dcrekk Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241003@172839.2359 0s8hbbk4ubfukq81c2e4dcrekk Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241003@172839.2371 0s8hbbk4ubfukq81c2e4dcrekk Query : select sestamp valor from se where ref ='328.9902.00.1' and lote = 'r2300777100a'
20241003@172839.2384 0s8hbbk4ubfukq81c2e4dcrekk Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241003@172839.2399 0s8hbbk4ubfukq81c2e4dcrekk Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241003@172839.2411 0s8hbbk4ubfukq81c2e4dcrekk Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66fec8713966fec6373a','aut66fec8391766fec63715' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241003@172839.2415 0s8hbbk4ubfukq81c2e4dcrekk Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241003@172839.2429 0s8hbbk4ubfukq81c2e4dcrekk Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241003@172839.2480 0s8hbbk4ubfukq81c2e4dcrekk Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem) values ('aut66fec8713966fec6373a',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',2.000 ,'aut66fec8391766fec63715' ,0,0 ,2,23.00,10000,?,?,?,?)
20241003@172839.2741 0s8hbbk4ubfukq81c2e4dcrekk Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241003@172839.2759 0s8hbbk4ubfukq81c2e4dcrekk Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241003@172839.2788 0s8hbbk4ubfukq81c2e4dcrekk Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241003@172839.2804 0s8hbbk4ubfukq81c2e4dcrekk Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241003@172839.2814 0s8hbbk4ubfukq81c2e4dcrekk Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241003@172839.2828 0s8hbbk4ubfukq81c2e4dcrekk Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241003@172839.2844 0s8hbbk4ubfukq81c2e4dcrekk Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241003@172839.2858 0s8hbbk4ubfukq81c2e4dcrekk Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66fec2613466fec63745','aut66fec8391766fec63715' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241003@172839.2862 0s8hbbk4ubfukq81c2e4dcrekk Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241003@172839.2877 0s8hbbk4ubfukq81c2e4dcrekk Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241003@172839.2904 0s8hbbk4ubfukq81c2e4dcrekk Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66fec2613466fec63745',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66fec8391766fec63715' ,0,0 ,2,23.00,20000,?,?,?)
20241003@172839.3154 0s8hbbk4ubfukq81c2e4dcrekk Query : use flama_phc
20241003@172839.3157 0s8hbbk4ubfukq81c2e4dcrekk Query : select st.usalote valor from st where st.ref = '328.9902.00.1'
20241003@172839.3177 0s8hbbk4ubfukq81c2e4dcrekk Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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'
20241003@172839.3192 0s8hbbk4ubfukq81c2e4dcrekk Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241003@172839.3207 0s8hbbk4ubfukq81c2e4dcrekk Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241003@172839.3233 0s8hbbk4ubfukq81c2e4dcrekk Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241003@172839.3248 0s8hbbk4ubfukq81c2e4dcrekk Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241003@172839.3256 0s8hbbk4ubfukq81c2e4dcrekk Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241003@172839.3287 0s8hbbk4ubfukq81c2e4dcrekk Query : select sestamp valor from se where ref ='328.9902.00.1' and lote = 'r2301241100a'
20241003@172839.3301 0s8hbbk4ubfukq81c2e4dcrekk Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241003@172839.3315 0s8hbbk4ubfukq81c2e4dcrekk Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241003@172839.3327 0s8hbbk4ubfukq81c2e4dcrekk Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66fec7024966fec63750','aut66fec8391766fec63715' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241003@172839.3331 0s8hbbk4ubfukq81c2e4dcrekk Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241003@172839.3346 0s8hbbk4ubfukq81c2e4dcrekk Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241003@172839.3377 0s8hbbk4ubfukq81c2e4dcrekk Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem) values ('aut66fec7024966fec63750',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',1.000 ,'aut66fec8391766fec63715' ,0,0 ,2,23.00,40000,?,?,?,?)
20241003@172839.3633 0s8hbbk4ubfukq81c2e4dcrekk Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241003@172839.3648 0s8hbbk4ubfukq81c2e4dcrekk Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241003@172839.3675 0s8hbbk4ubfukq81c2e4dcrekk Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241003@172839.3690 0s8hbbk4ubfukq81c2e4dcrekk Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241003@172839.3699 0s8hbbk4ubfukq81c2e4dcrekk Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241003@172839.3711 0s8hbbk4ubfukq81c2e4dcrekk Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241003@172839.3726 0s8hbbk4ubfukq81c2e4dcrekk Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241003@172839.3739 0s8hbbk4ubfukq81c2e4dcrekk Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66fec4396466fec6375a','aut66fec8391766fec63715' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241003@172839.3743 0s8hbbk4ubfukq81c2e4dcrekk Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241003@172839.3757 0s8hbbk4ubfukq81c2e4dcrekk Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241003@172839.3789 0s8hbbk4ubfukq81c2e4dcrekk Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66fec4396466fec6375a',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66fec8391766fec63715' ,0,0 ,2,23.00,50000,?,?,?)
20241003@172839.4083 0s8hbbk4ubfukq81c2e4dcrekk Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut66fec8391766fec63715','2406426','wait',39,'adm09112754980.682000002')
20241003@172839.4162 0s8hbbk4ubfukq81c2e4dcrekk Query : use flama_phc
20241003@172839.4165 0s8hbbk4ubfukq81c2e4dcrekk Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20241003@172839.4207 0s8hbbk4ubfukq81c2e4dcrekk Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2404';
20241003@172839.4239 0s8hbbk4ubfukq81c2e4dcrekk Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2404';
20241003@172839.4293 0s8hbbk4ubfukq81c2e4dcrekk Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2404';
20241003@172839.4319 0s8hbbk4ubfukq81c2e4dcrekk Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2404';
20241003@172839.4844 q5lk45lkrvkn7t9geor5in7313 Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20241003@172839.4857 q5lk45lkrvkn7t9geor5in7313 Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20241003@172839.4987 q5lk45lkrvkn7t9geor5in7313 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2405';
20241003@172839.5049 q5lk45lkrvkn7t9geor5in7313 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2405';
20241003@172839.5142 q5lk45lkrvkn7t9geor5in7313 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2405';
20241003@172839.5175 q5lk45lkrvkn7t9geor5in7313 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2405';
20241003@172839.5270 q5lk45lkrvkn7t9geor5in7313 Query : use flama_phc
20241003@172839.5274 q5lk45lkrvkn7t9geor5in7313 Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20241003@172839.5378 q5lk45lkrvkn7t9geor5in7313 Query : use flama_phc
20241003@172839.5382 q5lk45lkrvkn7t9geor5in7313 Query : select no, estab,szadrsdesc from szadrs where u_coddest=4740
20241003@172839.5466 q5lk45lkrvkn7t9geor5in7313 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'
20241003@172839.5520 q5lk45lkrvkn7t9geor5in7313 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'
20241003@172839.5552 q5lk45lkrvkn7t9geor5in7313 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'
20241003@172839.5575 q5lk45lkrvkn7t9geor5in7313 Query : use flama_phc
20241003@172839.5578 q5lk45lkrvkn7t9geor5in7313 Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20241003@172839.5614 q5lk45lkrvkn7t9geor5in7313 Query : use flama_phc
20241003@172839.5618 q5lk45lkrvkn7t9geor5in7313 Query : select top 1 1 valor from td where td.ndoc = 39
20241003@172839.5657 q5lk45lkrvkn7t9geor5in7313 Query : use flama_phc
20241003@172839.5660 q5lk45lkrvkn7t9geor5in7313 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')
20241003@172839.5706 q5lk45lkrvkn7t9geor5in7313 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
20241003@172839.5768 q5lk45lkrvkn7t9geor5in7313 Query : use flama_phc
20241003@172839.5772 q5lk45lkrvkn7t9geor5in7313 Query : select top 1 ~inactivo valor from cl where no = '100810' and estab = 0 order by inactivo desc
20241003@172839.5805 q5lk45lkrvkn7t9geor5in7313 Query : use flama_phc
20241003@172839.5808 q5lk45lkrvkn7t9geor5in7313 Query : select top 1 tipodoc,regrd from td where ndoc = 39
20241003@172839.5862 q5lk45lkrvkn7t9geor5in7313 Query : use flama_phc
20241003@172839.5865 q5lk45lkrvkn7t9geor5in7313 Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20241003@172839.5909 q5lk45lkrvkn7t9geor5in7313 Query : use flama_phc
20241003@172839.5911 q5lk45lkrvkn7t9geor5in7313 Query : select szadrsstamp valor from szadrs where szadrsdesc='100810 - worten-equipamentos para o lar,sa.'
20241003@172839.5958 q5lk45lkrvkn7t9geor5in7313 Query : use flama_phc
20241003@172839.5961 q5lk45lkrvkn7t9geor5in7313 Query : select 1 valor from td where ndoc = 39
20241003@172839.5973 q5lk45lkrvkn7t9geor5in7313 Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20241003@172839.5985 q5lk45lkrvkn7t9geor5in7313 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241003@172839.6001 q5lk45lkrvkn7t9geor5in7313 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20241003@172839.6023 q5lk45lkrvkn7t9geor5in7313 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241003@172839.6037 q5lk45lkrvkn7t9geor5in7313 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20241003@172839.6066 q5lk45lkrvkn7t9geor5in7313 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241003@172839.6094 q5lk45lkrvkn7t9geor5in7313 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20241003@172839.6106 q5lk45lkrvkn7t9geor5in7313 Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20241003@172839.6170 q5lk45lkrvkn7t9geor5in7313 Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20241003@172839.6182 q5lk45lkrvkn7t9geor5in7313 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241003@172839.6197 q5lk45lkrvkn7t9geor5in7313 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20241003@172839.6213 q5lk45lkrvkn7t9geor5in7313 Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut66fec1246766fec63795' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20241003@172839.6391 q5lk45lkrvkn7t9geor5in7313 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241003@172839.6410 q5lk45lkrvkn7t9geor5in7313 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20241003@172839.6444 q5lk45lkrvkn7t9geor5in7313 Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20241003@172839.6456 q5lk45lkrvkn7t9geor5in7313 Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20241003@172839.6467 q5lk45lkrvkn7t9geor5in7313 Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20241003@172839.6497 q5lk45lkrvkn7t9geor5in7313 Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20241003@172839.6509 q5lk45lkrvkn7t9geor5in7313 Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20241003@172839.6520 q5lk45lkrvkn7t9geor5in7313 Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20241003@172839.6530 q5lk45lkrvkn7t9geor5in7313 Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut66fec1246766fec63795',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20241003@172839.6773 q5lk45lkrvkn7t9geor5in7313 Query : select top 1 fno valor from wsftdata order by fno desc
20241003@172839.6795 q5lk45lkrvkn7t9geor5in7313 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241003@172839.6810 q5lk45lkrvkn7t9geor5in7313 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20241003@172839.6835 q5lk45lkrvkn7t9geor5in7313 Query : select 'normal' from dummy
20241003@172839.6850 q5lk45lkrvkn7t9geor5in7313 Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut66fec1246766fec63795',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',1074,100810,0,'2024-10-03',39,'euro',0,0,2024 ,?,?)
20241003@172839.7158 q5lk45lkrvkn7t9geor5in7313 Query : use flama_phc
20241003@172839.7161 q5lk45lkrvkn7t9geor5in7313 Query : select st.usalote valor from st where st.ref = '324.1321.00.1'
20241003@172839.7183 q5lk45lkrvkn7t9geor5in7313 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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'
20241003@172839.7323 q5lk45lkrvkn7t9geor5in7313 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241003@172839.7339 q5lk45lkrvkn7t9geor5in7313 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241003@172839.7365 q5lk45lkrvkn7t9geor5in7313 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241003@172839.7379 q5lk45lkrvkn7t9geor5in7313 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241003@172839.7388 q5lk45lkrvkn7t9geor5in7313 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241003@172839.7417 q5lk45lkrvkn7t9geor5in7313 Query : select sestamp valor from se where ref ='324.1321.00.1' and lote = 'r2400495200a'
20241003@172839.7430 q5lk45lkrvkn7t9geor5in7313 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241003@172839.7444 q5lk45lkrvkn7t9geor5in7313 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241003@172839.7455 q5lk45lkrvkn7t9geor5in7313 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66fec0804366fec637b5','aut66fec1246766fec63795' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241003@172839.7459 q5lk45lkrvkn7t9geor5in7313 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241003@172839.7473 q5lk45lkrvkn7t9geor5in7313 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241003@172839.7500 q5lk45lkrvkn7t9geor5in7313 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem) values ('aut66fec0804366fec637b5',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',1.000 ,'aut66fec1246766fec63795' ,0,0 ,2,23.00,10000,?,?,?,?)
20241003@172839.7758 q5lk45lkrvkn7t9geor5in7313 Query : use flama_phc
20241003@172839.7761 q5lk45lkrvkn7t9geor5in7313 Query : select st.usalote valor from st where st.ref = '324.1321.00.1'
20241003@172839.7821 q5lk45lkrvkn7t9geor5in7313 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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'
20241003@172839.7857 q5lk45lkrvkn7t9geor5in7313 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241003@172839.7925 q5lk45lkrvkn7t9geor5in7313 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241003@172839.7952 q5lk45lkrvkn7t9geor5in7313 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241003@172839.7968 q5lk45lkrvkn7t9geor5in7313 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241003@172839.7977 q5lk45lkrvkn7t9geor5in7313 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241003@172839.8010 q5lk45lkrvkn7t9geor5in7313 Query : select sestamp valor from se where ref ='324.1321.00.1' and lote = 'r2400495200a'
20241003@172839.8022 q5lk45lkrvkn7t9geor5in7313 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241003@172839.8037 q5lk45lkrvkn7t9geor5in7313 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241003@172839.8049 q5lk45lkrvkn7t9geor5in7313 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66fec9826566fec637c3','aut66fec1246766fec63795' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241003@172839.8054 q5lk45lkrvkn7t9geor5in7313 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241003@172839.8068 q5lk45lkrvkn7t9geor5in7313 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241003@172839.8096 q5lk45lkrvkn7t9geor5in7313 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem) values ('aut66fec9826566fec637c3',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',7.000 ,'aut66fec1246766fec63795' ,0,0 ,2,23.00,20000,?,?,?,?)
20241003@172839.8359 q5lk45lkrvkn7t9geor5in7313 Query : use flama_phc
20241003@172839.8362 q5lk45lkrvkn7t9geor5in7313 Query : select st.usalote valor from st where st.ref = '324.1321.00.1'
20241003@172839.8385 q5lk45lkrvkn7t9geor5in7313 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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'
20241003@172839.8400 q5lk45lkrvkn7t9geor5in7313 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241003@172839.8415 q5lk45lkrvkn7t9geor5in7313 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241003@172839.8460 q5lk45lkrvkn7t9geor5in7313 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241003@172839.8475 q5lk45lkrvkn7t9geor5in7313 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241003@172839.8484 q5lk45lkrvkn7t9geor5in7313 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241003@172839.8496 q5lk45lkrvkn7t9geor5in7313 Query : select sestamp valor from se where ref ='324.1321.00.1' and lote = 'r2400495200a'
20241003@172839.8508 q5lk45lkrvkn7t9geor5in7313 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241003@172839.8522 q5lk45lkrvkn7t9geor5in7313 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241003@172839.8535 q5lk45lkrvkn7t9geor5in7313 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66fec2057166fec637cf','aut66fec1246766fec63795' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241003@172839.8540 q5lk45lkrvkn7t9geor5in7313 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241003@172839.8555 q5lk45lkrvkn7t9geor5in7313 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241003@172839.8587 q5lk45lkrvkn7t9geor5in7313 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem) values ('aut66fec2057166fec637cf',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',27.000 ,'aut66fec1246766fec63795' ,0,0 ,2,23.00,30000,?,?,?,?)
20241003@172839.9008 q5lk45lkrvkn7t9geor5in7313 Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut66fec1246766fec63795','2406427','wait',39,'adm09112754980.682000002')
20241003@172839.9108 q5lk45lkrvkn7t9geor5in7313 Query : use flama_phc
20241003@172839.9111 q5lk45lkrvkn7t9geor5in7313 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20241003@172839.9165 q5lk45lkrvkn7t9geor5in7313 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2405';
20241003@172839.9206 q5lk45lkrvkn7t9geor5in7313 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2405';
20241003@172839.9250 q5lk45lkrvkn7t9geor5in7313 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2405';
20241003@172839.9278 q5lk45lkrvkn7t9geor5in7313 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2405';
20241003@172839.9820 j2eu8vgt4u358flpio83g6tafm Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20241003@172839.9840 j2eu8vgt4u358flpio83g6tafm Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20241003@172839.9915 j2eu8vgt4u358flpio83g6tafm Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2406';
20241003@172839.9971 j2eu8vgt4u358flpio83g6tafm Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2406';
20241003@172840.3600 j2eu8vgt4u358flpio83g6tafm Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2406';
20241003@172840.7800 j2eu8vgt4u358flpio83g6tafm Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2406';
20241003@172840.1350 j2eu8vgt4u358flpio83g6tafm Query : use flama_phc
20241003@172840.1380 j2eu8vgt4u358flpio83g6tafm Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20241003@172840.2090 j2eu8vgt4u358flpio83g6tafm Query : use flama_phc
20241003@172840.2120 j2eu8vgt4u358flpio83g6tafm Query : select no, estab,szadrsdesc from szadrs where u_coddest=2543
20241003@172840.3110 j2eu8vgt4u358flpio83g6tafm Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1293.00.1'
20241003@172840.4640 j2eu8vgt4u358flpio83g6tafm 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'
20241003@172840.4950 j2eu8vgt4u358flpio83g6tafm Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1685.00.1'
20241003@172840.7040 j2eu8vgt4u358flpio83g6tafm Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1816.00.1'
20241003@172840.8580 j2eu8vgt4u358flpio83g6tafm Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1832.00.2'
20241003@172840.8800 j2eu8vgt4u358flpio83g6tafm Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1833.00.2'
20241003@172840.9030 j2eu8vgt4u358flpio83g6tafm 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'
20241003@172840.9460 j2eu8vgt4u358flpio83g6tafm Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '304.2187.00.1'
20241003@172840.1140 j2eu8vgt4u358flpio83g6tafm Query : use flama_phc
20241003@172840.1144 j2eu8vgt4u358flpio83g6tafm Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20241003@172840.1179 j2eu8vgt4u358flpio83g6tafm Query : use flama_phc
20241003@172840.1182 j2eu8vgt4u358flpio83g6tafm Query : select top 1 1 valor from td where td.ndoc = 39
20241003@172840.1228 j2eu8vgt4u358flpio83g6tafm Query : use flama_phc
20241003@172840.1231 j2eu8vgt4u358flpio83g6tafm 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')
20241003@172840.1261 j2eu8vgt4u358flpio83g6tafm 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
20241003@172840.1298 j2eu8vgt4u358flpio83g6tafm Query : use flama_phc
20241003@172840.1302 j2eu8vgt4u358flpio83g6tafm Query : select top 1 ~inactivo valor from cl where no = '200500' and estab = 0 order by inactivo desc
20241003@172840.1334 j2eu8vgt4u358flpio83g6tafm Query : use flama_phc
20241003@172840.1337 j2eu8vgt4u358flpio83g6tafm Query : select top 1 tipodoc,regrd from td where ndoc = 39
20241003@172840.1373 j2eu8vgt4u358flpio83g6tafm Query : use flama_phc
20241003@172840.1376 j2eu8vgt4u358flpio83g6tafm Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20241003@172840.1437 j2eu8vgt4u358flpio83g6tafm Query : use flama_phc
20241003@172840.1440 j2eu8vgt4u358flpio83g6tafm Query : select szadrsstamp valor from szadrs where szadrsdesc='casa cheliz'
20241003@172840.1493 j2eu8vgt4u358flpio83g6tafm Query : use flama_phc
20241003@172840.1496 j2eu8vgt4u358flpio83g6tafm Query : select 1 valor from td where ndoc = 39
20241003@172840.1512 j2eu8vgt4u358flpio83g6tafm Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20241003@172840.1528 j2eu8vgt4u358flpio83g6tafm Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241003@172840.1548 j2eu8vgt4u358flpio83g6tafm Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20241003@172840.1571 j2eu8vgt4u358flpio83g6tafm Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241003@172840.1587 j2eu8vgt4u358flpio83g6tafm Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20241003@172840.1620 j2eu8vgt4u358flpio83g6tafm Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241003@172840.1636 j2eu8vgt4u358flpio83g6tafm Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20241003@172840.1651 j2eu8vgt4u358flpio83g6tafm Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20241003@172840.1720 j2eu8vgt4u358flpio83g6tafm Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20241003@172840.1735 j2eu8vgt4u358flpio83g6tafm Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241003@172840.1753 j2eu8vgt4u358flpio83g6tafm Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20241003@172840.1771 j2eu8vgt4u358flpio83g6tafm Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut66fec1908666fec63828' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20241003@172840.1949 j2eu8vgt4u358flpio83g6tafm Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241003@172840.1966 j2eu8vgt4u358flpio83g6tafm Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20241003@172840.1999 j2eu8vgt4u358flpio83g6tafm Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20241003@172840.2013 j2eu8vgt4u358flpio83g6tafm Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20241003@172840.2024 j2eu8vgt4u358flpio83g6tafm Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20241003@172840.2035 j2eu8vgt4u358flpio83g6tafm Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20241003@172840.2046 j2eu8vgt4u358flpio83g6tafm Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20241003@172840.2060 j2eu8vgt4u358flpio83g6tafm Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20241003@172840.2073 j2eu8vgt4u358flpio83g6tafm Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut66fec1908666fec63828',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20241003@172840.2314 j2eu8vgt4u358flpio83g6tafm Query : select top 1 fno valor from wsftdata order by fno desc
20241003@172840.2334 j2eu8vgt4u358flpio83g6tafm Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241003@172840.2349 j2eu8vgt4u358flpio83g6tafm Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20241003@172840.2374 j2eu8vgt4u358flpio83g6tafm Query : select 'normal' from dummy
20241003@172840.2390 j2eu8vgt4u358flpio83g6tafm Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut66fec1908666fec63828',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',1075,200500,0,'2024-10-03',39,'euro',0,0,2024 ,?,?)
20241003@172840.2720 j2eu8vgt4u358flpio83g6tafm Query : use flama_phc
20241003@172840.2724 j2eu8vgt4u358flpio83g6tafm Query : select st.usalote valor from st where st.ref = '324.1293.00.1'
20241003@172840.2747 j2eu8vgt4u358flpio83g6tafm Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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.1293.00.1'
20241003@172840.2907 j2eu8vgt4u358flpio83g6tafm Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241003@172840.2922 j2eu8vgt4u358flpio83g6tafm Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241003@172840.2945 j2eu8vgt4u358flpio83g6tafm Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241003@172840.2961 j2eu8vgt4u358flpio83g6tafm Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241003@172840.2970 j2eu8vgt4u358flpio83g6tafm Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241003@172840.2983 j2eu8vgt4u358flpio83g6tafm Query : select sestamp valor from se where ref ='324.1293.00.1' and lote = 'r2101042200a'
20241003@172840.2997 j2eu8vgt4u358flpio83g6tafm Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241003@172840.3016 j2eu8vgt4u358flpio83g6tafm Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241003@172840.3027 j2eu8vgt4u358flpio83g6tafm Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66fec6880666fec63849','aut66fec1908666fec63828' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241003@172840.3030 j2eu8vgt4u358flpio83g6tafm Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241003@172840.3045 j2eu8vgt4u358flpio83g6tafm Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241003@172840.3098 j2eu8vgt4u358flpio83g6tafm Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem) values ('aut66fec6880666fec63849',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',1.000 ,'aut66fec1908666fec63828' ,0,0 ,2,23.00,10000,?,?,?,?)
20241003@172840.3416 j2eu8vgt4u358flpio83g6tafm Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241003@172840.3433 j2eu8vgt4u358flpio83g6tafm Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241003@172840.3464 j2eu8vgt4u358flpio83g6tafm Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241003@172840.3477 j2eu8vgt4u358flpio83g6tafm Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241003@172840.3486 j2eu8vgt4u358flpio83g6tafm Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241003@172840.3497 j2eu8vgt4u358flpio83g6tafm Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241003@172840.3511 j2eu8vgt4u358flpio83g6tafm Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241003@172840.3521 j2eu8vgt4u358flpio83g6tafm Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66fec5657866fec63855','aut66fec1908666fec63828' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241003@172840.3526 j2eu8vgt4u358flpio83g6tafm Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241003@172840.3542 j2eu8vgt4u358flpio83g6tafm Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241003@172840.3569 j2eu8vgt4u358flpio83g6tafm Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66fec5657866fec63855',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66fec1908666fec63828' ,0,0 ,2,23.00,20000,?,?,?)
20241003@172840.3876 j2eu8vgt4u358flpio83g6tafm Query : use flama_phc
20241003@172840.3879 j2eu8vgt4u358flpio83g6tafm Query : select st.usalote valor from st where st.ref = '324.1667.00.1'
20241003@172840.3899 j2eu8vgt4u358flpio83g6tafm Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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'
20241003@172840.3912 j2eu8vgt4u358flpio83g6tafm Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241003@172840.3927 j2eu8vgt4u358flpio83g6tafm Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241003@172840.3963 j2eu8vgt4u358flpio83g6tafm Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241003@172840.3977 j2eu8vgt4u358flpio83g6tafm Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241003@172840.3985 j2eu8vgt4u358flpio83g6tafm Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241003@172840.3999 j2eu8vgt4u358flpio83g6tafm Query : select sestamp valor from se where ref ='324.1667.00.1' and lote = 'r2400065200a'
20241003@172840.4011 j2eu8vgt4u358flpio83g6tafm Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241003@172840.4025 j2eu8vgt4u358flpio83g6tafm Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241003@172840.4037 j2eu8vgt4u358flpio83g6tafm Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66fec8060066fec63861','aut66fec1908666fec63828' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241003@172840.4041 j2eu8vgt4u358flpio83g6tafm Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241003@172840.4056 j2eu8vgt4u358flpio83g6tafm Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241003@172840.4083 j2eu8vgt4u358flpio83g6tafm Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem) values ('aut66fec8060066fec63861',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',1.000 ,'aut66fec1908666fec63828' ,0,0 ,2,23.00,40000,?,?,?,?)
20241003@172840.4344 j2eu8vgt4u358flpio83g6tafm Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241003@172840.4359 j2eu8vgt4u358flpio83g6tafm Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241003@172840.4386 j2eu8vgt4u358flpio83g6tafm Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241003@172840.4399 j2eu8vgt4u358flpio83g6tafm Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241003@172840.4409 j2eu8vgt4u358flpio83g6tafm Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241003@172840.4422 j2eu8vgt4u358flpio83g6tafm Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241003@172840.4435 j2eu8vgt4u358flpio83g6tafm Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241003@172840.4447 j2eu8vgt4u358flpio83g6tafm Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66fec5383166fec6386b','aut66fec1908666fec63828' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241003@172840.4451 j2eu8vgt4u358flpio83g6tafm Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241003@172840.4465 j2eu8vgt4u358flpio83g6tafm Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241003@172840.4492 j2eu8vgt4u358flpio83g6tafm Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66fec5383166fec6386b',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66fec1908666fec63828' ,0,0 ,2,23.00,50000,?,?,?)
20241003@172840.4735 j2eu8vgt4u358flpio83g6tafm Query : use flama_phc
20241003@172840.4738 j2eu8vgt4u358flpio83g6tafm Query : select st.usalote valor from st where st.ref = '324.1685.00.1'
20241003@172840.4786 j2eu8vgt4u358flpio83g6tafm Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.1685.00.1'
20241003@172840.4930 j2eu8vgt4u358flpio83g6tafm Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241003@172840.4946 j2eu8vgt4u358flpio83g6tafm Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241003@172840.4973 j2eu8vgt4u358flpio83g6tafm Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241003@172840.4988 j2eu8vgt4u358flpio83g6tafm Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241003@172840.4998 j2eu8vgt4u358flpio83g6tafm Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241003@172840.5010 j2eu8vgt4u358flpio83g6tafm Query : select sestamp valor from se where ref ='324.1685.00.1' and lote = 'r2400173100a'
20241003@172840.5024 j2eu8vgt4u358flpio83g6tafm Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241003@172840.5041 j2eu8vgt4u358flpio83g6tafm Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241003@172840.5052 j2eu8vgt4u358flpio83g6tafm Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66fec4215066fec6387a','aut66fec1908666fec63828' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241003@172840.5057 j2eu8vgt4u358flpio83g6tafm Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241003@172840.5073 j2eu8vgt4u358flpio83g6tafm Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241003@172840.5101 j2eu8vgt4u358flpio83g6tafm Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem) values ('aut66fec4215066fec6387a',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',1.000 ,'aut66fec1908666fec63828' ,0,0 ,2,23.00,70000,?,?,?,?)
20241003@172840.5356 j2eu8vgt4u358flpio83g6tafm Query : use flama_phc
20241003@172840.5359 j2eu8vgt4u358flpio83g6tafm Query : select st.usalote valor from st where st.ref = '324.1816.00.1'
20241003@172840.5382 j2eu8vgt4u358flpio83g6tafm Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.1816.00.1'
20241003@172840.5525 j2eu8vgt4u358flpio83g6tafm Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241003@172840.5540 j2eu8vgt4u358flpio83g6tafm Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241003@172840.5569 j2eu8vgt4u358flpio83g6tafm Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241003@172840.5584 j2eu8vgt4u358flpio83g6tafm Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241003@172840.5594 j2eu8vgt4u358flpio83g6tafm Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241003@172840.5606 j2eu8vgt4u358flpio83g6tafm Query : select sestamp valor from se where ref ='324.1816.00.1' and lote = 'r2400199200a'
20241003@172840.5620 j2eu8vgt4u358flpio83g6tafm Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241003@172840.5634 j2eu8vgt4u358flpio83g6tafm Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241003@172840.5646 j2eu8vgt4u358flpio83g6tafm Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66fec6237766fec63889','aut66fec1908666fec63828' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241003@172840.5650 j2eu8vgt4u358flpio83g6tafm Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241003@172840.5665 j2eu8vgt4u358flpio83g6tafm Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241003@172840.5694 j2eu8vgt4u358flpio83g6tafm Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem) values ('aut66fec6237766fec63889',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',5.000 ,'aut66fec1908666fec63828' ,0,0 ,2,23.00,80000,?,?,?,?)
20241003@172840.5958 j2eu8vgt4u358flpio83g6tafm Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241003@172840.5977 j2eu8vgt4u358flpio83g6tafm Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241003@172840.6006 j2eu8vgt4u358flpio83g6tafm Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241003@172840.6021 j2eu8vgt4u358flpio83g6tafm Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241003@172840.6030 j2eu8vgt4u358flpio83g6tafm Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241003@172840.6042 j2eu8vgt4u358flpio83g6tafm Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241003@172840.6057 j2eu8vgt4u358flpio83g6tafm Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241003@172840.6068 j2eu8vgt4u358flpio83g6tafm Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66fec7880066fec63893','aut66fec1908666fec63828' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241003@172840.6072 j2eu8vgt4u358flpio83g6tafm Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241003@172840.6086 j2eu8vgt4u358flpio83g6tafm Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241003@172840.6118 j2eu8vgt4u358flpio83g6tafm Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66fec7880066fec63893',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66fec1908666fec63828' ,0,0 ,2,23.00,90000,?,?,?)
20241003@172840.6374 j2eu8vgt4u358flpio83g6tafm Query : use flama_phc
20241003@172840.6377 j2eu8vgt4u358flpio83g6tafm Query : select st.usalote valor from st where st.ref = '324.1832.00.2'
20241003@172840.6400 j2eu8vgt4u358flpio83g6tafm Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.1832.00.2'
20241003@172840.6551 j2eu8vgt4u358flpio83g6tafm Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241003@172840.6568 j2eu8vgt4u358flpio83g6tafm Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241003@172840.6594 j2eu8vgt4u358flpio83g6tafm Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241003@172840.6611 j2eu8vgt4u358flpio83g6tafm Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241003@172840.6620 j2eu8vgt4u358flpio83g6tafm Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241003@172840.6632 j2eu8vgt4u358flpio83g6tafm Query : select sestamp valor from se where ref ='324.1832.00.2' and lote = 'r2301257100a'
20241003@172840.6648 j2eu8vgt4u358flpio83g6tafm Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241003@172840.6665 j2eu8vgt4u358flpio83g6tafm Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241003@172840.6677 j2eu8vgt4u358flpio83g6tafm Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66fec7691166fec638a2','aut66fec1908666fec63828' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241003@172840.6682 j2eu8vgt4u358flpio83g6tafm Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241003@172840.6698 j2eu8vgt4u358flpio83g6tafm Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241003@172840.6726 j2eu8vgt4u358flpio83g6tafm Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem) values ('aut66fec7691166fec638a2',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',1.000 ,'aut66fec1908666fec63828' ,0,0 ,2,23.00,110000,?,?,?,?)
20241003@172840.7007 j2eu8vgt4u358flpio83g6tafm Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241003@172840.7024 j2eu8vgt4u358flpio83g6tafm Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241003@172840.7053 j2eu8vgt4u358flpio83g6tafm Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241003@172840.7068 j2eu8vgt4u358flpio83g6tafm Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241003@172840.7077 j2eu8vgt4u358flpio83g6tafm Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241003@172840.7093 j2eu8vgt4u358flpio83g6tafm Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241003@172840.7110 j2eu8vgt4u358flpio83g6tafm Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241003@172840.7121 j2eu8vgt4u358flpio83g6tafm Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66fec0737066fec638ad','aut66fec1908666fec63828' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241003@172840.7125 j2eu8vgt4u358flpio83g6tafm Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241003@172840.7138 j2eu8vgt4u358flpio83g6tafm Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241003@172840.7167 j2eu8vgt4u358flpio83g6tafm Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66fec0737066fec638ad',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66fec1908666fec63828' ,0,0 ,2,23.00,120000,?,?,?)
20241003@172840.7427 j2eu8vgt4u358flpio83g6tafm Query : use flama_phc
20241003@172840.7431 j2eu8vgt4u358flpio83g6tafm Query : select st.usalote valor from st where st.ref = '324.1833.00.2'
20241003@172840.7454 j2eu8vgt4u358flpio83g6tafm Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.1833.00.2'
20241003@172840.9070 j2eu8vgt4u358flpio83g6tafm Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241003@172840.9148 j2eu8vgt4u358flpio83g6tafm Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241003@172840.9176 j2eu8vgt4u358flpio83g6tafm Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241003@172840.9192 j2eu8vgt4u358flpio83g6tafm Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241003@172840.9201 j2eu8vgt4u358flpio83g6tafm Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241003@172840.9214 j2eu8vgt4u358flpio83g6tafm Query : select sestamp valor from se where ref ='324.1833.00.2' and lote = 'r2301257100a'
20241003@172840.9231 j2eu8vgt4u358flpio83g6tafm Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241003@172840.9250 j2eu8vgt4u358flpio83g6tafm Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241003@172840.9267 j2eu8vgt4u358flpio83g6tafm Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66fec3382966fec638e1','aut66fec1908666fec63828' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241003@172840.9272 j2eu8vgt4u358flpio83g6tafm Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241003@172840.9289 j2eu8vgt4u358flpio83g6tafm Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241003@172840.9321 j2eu8vgt4u358flpio83g6tafm Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem) values ('aut66fec3382966fec638e1',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',1.000 ,'aut66fec1908666fec63828' ,0,0 ,2,23.00,140000,?,?,?,?)
20241003@172840.9587 j2eu8vgt4u358flpio83g6tafm Query : use flama_phc
20241003@172840.9591 j2eu8vgt4u358flpio83g6tafm Query : select st.usalote valor from st where st.ref = '324.691.00.01'
20241003@172840.9619 j2eu8vgt4u358flpio83g6tafm Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.691.00.01'
20241003@172840.9635 j2eu8vgt4u358flpio83g6tafm Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241003@172840.9656 j2eu8vgt4u358flpio83g6tafm Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241003@172840.9685 j2eu8vgt4u358flpio83g6tafm Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241003@172840.9702 j2eu8vgt4u358flpio83g6tafm Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241003@172840.9712 j2eu8vgt4u358flpio83g6tafm Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241003@172840.9726 j2eu8vgt4u358flpio83g6tafm Query : select sestamp valor from se where ref ='324.691.00.01' and lote = 'r2400209200a'
20241003@172840.9741 j2eu8vgt4u358flpio83g6tafm Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241003@172840.9758 j2eu8vgt4u358flpio83g6tafm Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241003@172840.9774 j2eu8vgt4u358flpio83g6tafm Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66fec6199666fec638ed','aut66fec1908666fec63828' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241003@172840.9778 j2eu8vgt4u358flpio83g6tafm Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241003@172840.9794 j2eu8vgt4u358flpio83g6tafm Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241003@172840.9827 j2eu8vgt4u358flpio83g6tafm Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem) values ('aut66fec6199666fec638ed',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',1.000 ,'aut66fec1908666fec63828' ,0,0 ,2,23.00,150000,?,?,?,?)
20241003@172841.1060 j2eu8vgt4u358flpio83g6tafm Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241003@172841.1220 j2eu8vgt4u358flpio83g6tafm Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241003@172841.1520 j2eu8vgt4u358flpio83g6tafm Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241003@172841.1680 j2eu8vgt4u358flpio83g6tafm Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241003@172841.1780 j2eu8vgt4u358flpio83g6tafm Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241003@172841.1950 j2eu8vgt4u358flpio83g6tafm Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241003@172841.2110 j2eu8vgt4u358flpio83g6tafm Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241003@172841.2250 j2eu8vgt4u358flpio83g6tafm Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66fec7867766fec63904','aut66fec1908666fec63828' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241003@172841.2300 j2eu8vgt4u358flpio83g6tafm Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241003@172841.2460 j2eu8vgt4u358flpio83g6tafm Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241003@172841.2790 j2eu8vgt4u358flpio83g6tafm Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66fec7867766fec63904',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66fec1908666fec63828' ,0,0 ,2,23.00,160000,?,?,?)
20241003@172841.5380 j2eu8vgt4u358flpio83g6tafm Query : use flama_phc
20241003@172841.5420 j2eu8vgt4u358flpio83g6tafm Query : select st.usalote valor from st where st.ref = '304.2187.00.1'
20241003@172841.5660 j2eu8vgt4u358flpio83g6tafm Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '304.2187.00.1'
20241003@172841.7780 j2eu8vgt4u358flpio83g6tafm Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241003@172841.7950 j2eu8vgt4u358flpio83g6tafm Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241003@172841.8230 j2eu8vgt4u358flpio83g6tafm Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241003@172841.8370 j2eu8vgt4u358flpio83g6tafm Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241003@172841.8460 j2eu8vgt4u358flpio83g6tafm Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241003@172841.8610 j2eu8vgt4u358flpio83g6tafm Query : select sestamp valor from se where ref ='304.2187.00.1' and lote = '210133'
20241003@172841.8750 j2eu8vgt4u358flpio83g6tafm Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241003@172841.8890 j2eu8vgt4u358flpio83g6tafm Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241003@172841.9020 j2eu8vgt4u358flpio83g6tafm Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66fec5067366fec63915','aut66fec1908666fec63828' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241003@172841.9060 j2eu8vgt4u358flpio83g6tafm Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241003@172841.9200 j2eu8vgt4u358flpio83g6tafm Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241003@172841.9710 j2eu8vgt4u358flpio83g6tafm Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem) values ('aut66fec5067366fec63915',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',1.000 ,'aut66fec1908666fec63828' ,0,0 ,2,23.00,180000,?,?,?,?)
20241003@172841.1231 j2eu8vgt4u358flpio83g6tafm Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241003@172841.1247 j2eu8vgt4u358flpio83g6tafm Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241003@172841.1271 j2eu8vgt4u358flpio83g6tafm Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241003@172841.1284 j2eu8vgt4u358flpio83g6tafm Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241003@172841.1292 j2eu8vgt4u358flpio83g6tafm Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241003@172841.1304 j2eu8vgt4u358flpio83g6tafm Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241003@172841.1318 j2eu8vgt4u358flpio83g6tafm Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241003@172841.1331 j2eu8vgt4u358flpio83g6tafm Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66fec8559866fec6391f','aut66fec1908666fec63828' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241003@172841.1335 j2eu8vgt4u358flpio83g6tafm Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241003@172841.1350 j2eu8vgt4u358flpio83g6tafm Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241003@172841.1376 j2eu8vgt4u358flpio83g6tafm Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66fec8559866fec6391f',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66fec1908666fec63828' ,0,0 ,2,23.00,190000,?,?,?)
20241003@172841.1638 j2eu8vgt4u358flpio83g6tafm Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut66fec1908666fec63828','2406435','wait',39,'adm09112754980.682000002')
20241003@172841.1722 j2eu8vgt4u358flpio83g6tafm Query : use flama_phc
20241003@172841.1725 j2eu8vgt4u358flpio83g6tafm Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20241003@172841.1758 j2eu8vgt4u358flpio83g6tafm Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2406';
20241003@172841.1789 j2eu8vgt4u358flpio83g6tafm Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2406';
20241003@172841.1844 j2eu8vgt4u358flpio83g6tafm Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2406';
20241003@172841.1872 j2eu8vgt4u358flpio83g6tafm Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2406';

20241004@142510.4641 fvegvetlvo32ofrd4so6pn20dl Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2407';
20241004@142510.4716 fvegvetlvo32ofrd4so6pn20dl Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2407';
20241004@142510.4744 fvegvetlvo32ofrd4so6pn20dl Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2407';
20241004@142510.4784 fvegvetlvo32ofrd4so6pn20dl Query : use flama_phc
20241004@142510.4787 fvegvetlvo32ofrd4so6pn20dl Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20241004@142510.4897 fvegvetlvo32ofrd4so6pn20dl Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.2308.00.1'
20241004@142510.5018 fvegvetlvo32ofrd4so6pn20dl 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 = 2400475 and bi.ref ='324.2308.00.1' and bi.lordem =70000
20241004@142510.5387 fvegvetlvo32ofrd4so6pn20dl 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 = 'cps24042954467,761000002 ' 
20241004@142510.5697 fvegvetlvo32ofrd4so6pn20dl Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.2326.00.1'
20241004@142510.5816 fvegvetlvo32ofrd4so6pn20dl 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 = 2400475 and bi.ref ='324.2326.00.1' and bi.lordem =60000
20241004@142510.6130 fvegvetlvo32ofrd4so6pn20dl 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 = 'cps24042954468,828000004 ' 
20241004@142510.6572 fvegvetlvo32ofrd4so6pn20dl Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.2317.00.1'
20241004@142510.6701 fvegvetlvo32ofrd4so6pn20dl 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 = 2400475 and bi.ref ='324.2317.00.1' and bi.lordem =10000
20241004@142510.7055 fvegvetlvo32ofrd4so6pn20dl 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 = 'cps24042954468,283000003 ' 
20241004@142510.7396 fvegvetlvo32ofrd4so6pn20dl Query : use flama_phc
20241004@142510.7399 fvegvetlvo32ofrd4so6pn20dl Query : select top 1 1 valor from ts where ts.ndos = 61
20241004@142510.7502 fvegvetlvo32ofrd4so6pn20dl Query : use flama_phc
20241004@142510.7505 fvegvetlvo32ofrd4so6pn20dl 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')
20241004@142510.7582 fvegvetlvo32ofrd4so6pn20dl 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
20241004@142510.7745 fvegvetlvo32ofrd4so6pn20dl Query : use flama_phc
20241004@142510.7748 fvegvetlvo32ofrd4so6pn20dl Query : select top 1 ~inactivo valor from fl where no = '202299' and estab = 00 order by inactivo desc
20241004@142510.7875 fvegvetlvo32ofrd4so6pn20dl Query : use flama_phc
20241004@142510.7878 fvegvetlvo32ofrd4so6pn20dl Query : select 1 valor from ts where ndos = 61
20241004@142510.7948 fvegvetlvo32ofrd4so6pn20dl Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@142510.8262 fvegvetlvo32ofrd4so6pn20dl Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bo' and documentnumber = 61
20241004@142510.8325 fvegvetlvo32ofrd4so6pn20dl Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@142510.8342 fvegvetlvo32ofrd4so6pn20dl Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bo2' and documentnumber = 61
20241004@142510.8356 fvegvetlvo32ofrd4so6pn20dl Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@142510.8371 fvegvetlvo32ofrd4so6pn20dl Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bo3' and documentnumber = 61
20241004@142510.8381 fvegvetlvo32ofrd4so6pn20dl 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
20241004@142510.8596 fvegvetlvo32ofrd4so6pn20dl Query : select top 1 bo.obrano valor from bo bo where bo.ndos = 61 and boano=2024 order by obrano desc
20241004@142510.8733 fvegvetlvo32ofrd4so6pn20dl Query : select top 1 bo.obrano valor from bo bo where bo.ndos = 61 and boano=2024 order by obrano desc
20241004@142510.8755 fvegvetlvo32ofrd4so6pn20dl Query : use flama_phc
20241004@142510.8761 fvegvetlvo32ofrd4so6pn20dl Query : select top 1 no,estab,nome, morada, local,codpost,ncont,pncont,pais,inactivo,motiseimp,codmotiseimp from fl where no='202299' and estab=00
20241004@142510.8854 fvegvetlvo32ofrd4so6pn20dl Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@142510.8881 fvegvetlvo32ofrd4so6pn20dl Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bo3' and documentnumber = 61
20241004@142510.8985 fvegvetlvo32ofrd4so6pn20dl Query : insert into bo3 (bo3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66ffe9913166ffecb6d5',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut')
20241004@142510.9054 fvegvetlvo32ofrd4so6pn20dl Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@142510.9229 fvegvetlvo32ofrd4so6pn20dl Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bo2' and documentnumber = 61
20241004@142510.9394 fvegvetlvo32ofrd4so6pn20dl Query : insert into bo2 (bo2stamp, tiposaft, idserie,cambio,cambiofixo,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66ffe9913166ffecb6d5','--','bo',1.1157718120805369127 ,1,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut')
20241004@142510.9731 fvegvetlvo32ofrd4so6pn20dl Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@142510.9906 fvegvetlvo32ofrd4so6pn20dl Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bo' and documentnumber = 61
20241004@142510.9922 fvegvetlvo32ofrd4so6pn20dl 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 ('aut66ffe9913166ffecb6d5','guia r. fornecedor','2024-10-04',61,2402917,?,?,?,?,?,?,?,?,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')
20241004@142513.9765 fvegvetlvo32ofrd4so6pn20dl Query : use flama_phc
20241004@142513.9769 fvegvetlvo32ofrd4so6pn20dl Query : select st.usalote valor from st where st.ref = '324.2308.00.1'
20241004@142513.9914 fvegvetlvo32ofrd4so6pn20dl Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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.2308.00.1'
20241004@142514.6300 fvegvetlvo32ofrd4so6pn20dl Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@142514.7900 fvegvetlvo32ofrd4so6pn20dl Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 61
20241004@142514.1610 fvegvetlvo32ofrd4so6pn20dl Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@142514.1800 fvegvetlvo32ofrd4so6pn20dl Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 61
20241004@142514.1890 fvegvetlvo32ofrd4so6pn20dl Query : select sestamp valor from se where ref ='324.2308.00.1' and lote = 'r2400475700a'
20241004@142514.2670 fvegvetlvo32ofrd4so6pn20dl Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@142514.2810 fvegvetlvo32ofrd4so6pn20dl Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'se' and documentnumber = 0
20241004@142514.2910 fvegvetlvo32ofrd4so6pn20dl Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@142514.3060 fvegvetlvo32ofrd4so6pn20dl Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'se' and documentnumber = 0
20241004@142514.3180 fvegvetlvo32ofrd4so6pn20dl Query : insert into se (sestamp,ref, lote, data,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66ffe9402366ffecba07',?,?,'20241004',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut;','aut;')
20241004@142514.8600 fvegvetlvo32ofrd4so6pn20dl Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241004@142514.9160 fvegvetlvo32ofrd4so6pn20dl Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@142514.9340 fvegvetlvo32ofrd4so6pn20dl Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 61
20241004@142514.1010 fvegvetlvo32ofrd4so6pn20dl Query : insert into bi2 (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut66ffe5990466ffecba16','aut66ffe9913166ffecb6d5',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 = 'aut66ffe9913166ffecb6d5'
20241004@142514.1288 fvegvetlvo32ofrd4so6pn20dl Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@142514.1407 fvegvetlvo32ofrd4so6pn20dl Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 61
20241004@142514.1510 fvegvetlvo32ofrd4so6pn20dl 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 'aut66ffe5990466ffecba16',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut',bo.obrano, 3000, 3000*.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 ,4.4812030075188,4.4812030075188*200.48,4.4812030075188,4.4812030075188*200.48 ,0,0,'un',' ' ,bo.marcada,1 ,4.4812030075188*3000,4.4812030075188*3000*200.48 ,5.420000,5.420000*200.48 ,5.420000,5.420000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,4.4812030075188,4.4812030075188*200.48,4.4812030075188*3000,4.4812030075188*3000*200.48,'cps24042954467,761000002 ',5,5*3000,5,5*3000,?,?,?,4 from bo bo where bo.bostamp = 'aut66ffe9913166ffecb6d5'
20241004@142521.8586 fvegvetlvo32ofrd4so6pn20dl Query : use flama_phc
20241004@142521.8591 fvegvetlvo32ofrd4so6pn20dl Query : select st.usalote valor from st where st.ref = '324.2326.00.1'
20241004@142521.8613 fvegvetlvo32ofrd4so6pn20dl Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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.2326.00.1'
20241004@142521.8782 fvegvetlvo32ofrd4so6pn20dl Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@142521.8798 fvegvetlvo32ofrd4so6pn20dl Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 61
20241004@142521.8811 fvegvetlvo32ofrd4so6pn20dl Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@142521.8826 fvegvetlvo32ofrd4so6pn20dl Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 61
20241004@142521.8836 fvegvetlvo32ofrd4so6pn20dl Query : select sestamp valor from se where ref ='324.2326.00.1' and lote = 'r2400475600a'
20241004@142521.8848 fvegvetlvo32ofrd4so6pn20dl Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@142521.8862 fvegvetlvo32ofrd4so6pn20dl Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'se' and documentnumber = 0
20241004@142521.8870 fvegvetlvo32ofrd4so6pn20dl Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@142521.8897 fvegvetlvo32ofrd4so6pn20dl Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'se' and documentnumber = 0
20241004@142521.8908 fvegvetlvo32ofrd4so6pn20dl Query : insert into se (sestamp,ref, lote, data,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66ffe7300366ffecc1d8',?,?,'20241004',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut;','aut;')
20241004@142521.8984 fvegvetlvo32ofrd4so6pn20dl Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241004@142521.8996 fvegvetlvo32ofrd4so6pn20dl Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@142521.9010 fvegvetlvo32ofrd4so6pn20dl Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 61
20241004@142521.9022 fvegvetlvo32ofrd4so6pn20dl Query : insert into bi2 (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut66ffe9248466ffecc1db','aut66ffe9913166ffecb6d5',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 = 'aut66ffe9913166ffecb6d5'
20241004@142521.9203 fvegvetlvo32ofrd4so6pn20dl Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@142521.9231 fvegvetlvo32ofrd4so6pn20dl Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 61
20241004@142521.9247 fvegvetlvo32ofrd4so6pn20dl 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 'aut66ffe9248466ffecc1db',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut',bo.obrano, 3180, 3180*.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 ,5.3774436090226,5.3774436090226*200.48,5.3774436090226,5.3774436090226*200.48 ,0,0,'un ','' ,bo.marcada,1 ,5.3774436090226*3180,5.3774436090226*3180*200.48 ,6.730000,6.730000*200.48 ,6.730000,6.730000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,5.3774436090226,5.3774436090226*200.48,5.3774436090226*3180,5.3774436090226*3180*200.48,'cps24042954468,828000004 ',6,6*3180,6,6*3180,?,?,?,4 from bo bo where bo.bostamp = 'aut66ffe9913166ffecb6d5'
20241004@142522.2240 fvegvetlvo32ofrd4so6pn20dl Query : use flama_phc
20241004@142522.2280 fvegvetlvo32ofrd4so6pn20dl Query : select st.usalote valor from st where st.ref = '324.2317.00.1'
20241004@142522.2510 fvegvetlvo32ofrd4so6pn20dl Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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.2317.00.1'
20241004@142522.4520 fvegvetlvo32ofrd4so6pn20dl Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@142522.4680 fvegvetlvo32ofrd4so6pn20dl Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 61
20241004@142522.4810 fvegvetlvo32ofrd4so6pn20dl Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@142522.4960 fvegvetlvo32ofrd4so6pn20dl Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 61
20241004@142522.5040 fvegvetlvo32ofrd4so6pn20dl Query : select sestamp valor from se where ref ='324.2317.00.1' and lote = 'r2400475100a'
20241004@142522.5300 fvegvetlvo32ofrd4so6pn20dl Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@142522.5440 fvegvetlvo32ofrd4so6pn20dl Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'se' and documentnumber = 0
20241004@142522.5530 fvegvetlvo32ofrd4so6pn20dl Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@142522.5690 fvegvetlvo32ofrd4so6pn20dl Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'se' and documentnumber = 0
20241004@142522.5800 fvegvetlvo32ofrd4so6pn20dl Query : insert into se (sestamp,ref, lote, data,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66ffe3095466ffecc20d',?,?,'20241004',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut;','aut;')
20241004@142522.6610 fvegvetlvo32ofrd4so6pn20dl Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241004@142522.6770 fvegvetlvo32ofrd4so6pn20dl Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@142522.6940 fvegvetlvo32ofrd4so6pn20dl Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 61
20241004@142522.7050 fvegvetlvo32ofrd4so6pn20dl Query : insert into bi2 (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut66ffe4332866ffecc210','aut66ffe9913166ffecb6d5',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 = 'aut66ffe9913166ffecb6d5'
20241004@142522.8880 fvegvetlvo32ofrd4so6pn20dl Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@142522.9180 fvegvetlvo32ofrd4so6pn20dl Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 61
20241004@142522.9340 fvegvetlvo32ofrd4so6pn20dl 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 'aut66ffe4332866ffecc210',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut',bo.obrano, 3000, 3000*.0000000 ,bo.no, bo.estab,bo.nmdos ,bo.ndos, bo.obranome,bo.fechada, bo.dataobra ,bo.dataobra ,bo.dataopen,bo.datafecho,bo.local, bo.morada ,bo.codpost, bo.nome,bo.bostamp,30000 ,5.96,5.96*200.48,5.96,5.96*200.48 ,0,0,'un ','' ,bo.marcada,1 ,5.96*3000,5.96*3000*200.48 ,8.359000,8.359000*200.48 ,8.359000,8.359000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,5.96,5.96*200.48,5.96*3000,5.96*3000*200.48,'cps24042954468,283000003 ',6.65,6.65*3000,6.65,6.65*3000,?,?,?,4 from bo bo where bo.bostamp = 'aut66ffe9913166ffecb6d5'
20241004@142522.1908 fvegvetlvo32ofrd4so6pn20dl Query : use flama_phc
20241004@142522.1912 fvegvetlvo32ofrd4so6pn20dl Query : declare @bostamp varchar(25) = 'aut66ffe9913166ffecb6d5' ,@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 
20241004@142530.6694 fvegvetlvo32ofrd4so6pn20dl Query : use flama_phc
20241004@142530.6698 fvegvetlvo32ofrd4so6pn20dl Query : select 1 valor from bo where bo.bostamp = 'aut66ffe9913166ffecb6d5'
20241004@142530.6976 fvegvetlvo32ofrd4so6pn20dl 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) = 'aut66ffe9913166ffecb6d5' 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 
20241004@142533.3880 fvegvetlvo32ofrd4so6pn20dl Query : use flama_phc
20241004@142533.3910 fvegvetlvo32ofrd4so6pn20dl Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20241004@142533.4430 fvegvetlvo32ofrd4so6pn20dl Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2407';
20241004@142533.4750 fvegvetlvo32ofrd4so6pn20dl Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2407';

20241004@151012.9960 tj1nqftt0629da802nhftsamuq Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2408';
20241004@151012.1049 tj1nqftt0629da802nhftsamuq Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2408';
20241004@151012.1075 tj1nqftt0629da802nhftsamuq Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2408';
20241004@151012.1115 tj1nqftt0629da802nhftsamuq Query : use flama_phc
20241004@151012.1118 tj1nqftt0629da802nhftsamuq Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20241004@151012.1181 tj1nqftt0629da802nhftsamuq Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.1332.00.1'
20241004@151012.1304 tj1nqftt0629da802nhftsamuq 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 = 2400759 and bi.ref ='324.1332.00.1' and bi.lordem =20000
20241004@151012.1834 tj1nqftt0629da802nhftsamuq 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 = 'cps24061952890,460000002 ' 
20241004@151012.2233 tj1nqftt0629da802nhftsamuq Query : use flama_phc
20241004@151012.2237 tj1nqftt0629da802nhftsamuq Query : select top 1 1 valor from ts where ts.ndos = 61
20241004@151012.2268 tj1nqftt0629da802nhftsamuq Query : use flama_phc
20241004@151012.2271 tj1nqftt0629da802nhftsamuq 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')
20241004@151012.2300 tj1nqftt0629da802nhftsamuq 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
20241004@151012.2336 tj1nqftt0629da802nhftsamuq Query : use flama_phc
20241004@151012.2339 tj1nqftt0629da802nhftsamuq Query : select top 1 ~inactivo valor from fl where no = '202410' and estab = 00 order by inactivo desc
20241004@151012.2472 tj1nqftt0629da802nhftsamuq Query : use flama_phc
20241004@151012.2475 tj1nqftt0629da802nhftsamuq Query : select 1 valor from ts where ndos = 61
20241004@151012.2514 tj1nqftt0629da802nhftsamuq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@151012.2531 tj1nqftt0629da802nhftsamuq Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bo' and documentnumber = 61
20241004@151012.2540 tj1nqftt0629da802nhftsamuq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@151012.2555 tj1nqftt0629da802nhftsamuq Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bo2' and documentnumber = 61
20241004@151012.2563 tj1nqftt0629da802nhftsamuq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@151012.2578 tj1nqftt0629da802nhftsamuq Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bo3' and documentnumber = 61
20241004@151012.2587 tj1nqftt0629da802nhftsamuq 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
20241004@151012.2609 tj1nqftt0629da802nhftsamuq Query : select top 1 bo.obrano valor from bo bo where bo.ndos = 61 and boano=2024 order by obrano desc
20241004@151012.2637 tj1nqftt0629da802nhftsamuq Query : select top 1 bo.obrano valor from bo bo where bo.ndos = 61 and boano=2024 order by obrano desc
20241004@151012.2657 tj1nqftt0629da802nhftsamuq Query : use flama_phc
20241004@151012.2663 tj1nqftt0629da802nhftsamuq Query : select top 1 no,estab,nome, morada, local,codpost,ncont,pncont,pais,inactivo,motiseimp,codmotiseimp from fl where no='202410' and estab=00
20241004@151012.2758 tj1nqftt0629da802nhftsamuq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@151012.2774 tj1nqftt0629da802nhftsamuq Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bo3' and documentnumber = 61
20241004@151012.2786 tj1nqftt0629da802nhftsamuq Query : insert into bo3 (bo3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66fff0346666fff74440',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut')
20241004@151012.2790 tj1nqftt0629da802nhftsamuq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@151012.2805 tj1nqftt0629da802nhftsamuq Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bo2' and documentnumber = 61
20241004@151012.2816 tj1nqftt0629da802nhftsamuq Query : insert into bo2 (bo2stamp, tiposaft, idserie,cambio,cambiofixo,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66fff0346666fff74440','--','bo',1.0184595798854232972 ,1,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut')
20241004@151012.2827 tj1nqftt0629da802nhftsamuq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@151012.2844 tj1nqftt0629da802nhftsamuq Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bo' and documentnumber = 61
20241004@151012.2855 tj1nqftt0629da802nhftsamuq 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 ('aut66fff0346666fff74440','guia r. fornecedor','2024-10-04',61,2402919,?,?,?,?,?,?,?,?,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')
20241004@151016.6550 tj1nqftt0629da802nhftsamuq Query : use flama_phc
20241004@151016.6555 tj1nqftt0629da802nhftsamuq Query : select st.usalote valor from st where st.ref = '324.1332.00.1'
20241004@151016.6666 tj1nqftt0629da802nhftsamuq Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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.1332.00.1'
20241004@151016.6828 tj1nqftt0629da802nhftsamuq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@151016.6846 tj1nqftt0629da802nhftsamuq Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 61
20241004@151016.6861 tj1nqftt0629da802nhftsamuq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@151016.6879 tj1nqftt0629da802nhftsamuq Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 61
20241004@151016.6889 tj1nqftt0629da802nhftsamuq Query : select sestamp valor from se where ref ='324.1332.00.1' and lote = 'r2400759200a'
20241004@151016.6941 tj1nqftt0629da802nhftsamuq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@151016.6961 tj1nqftt0629da802nhftsamuq Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'se' and documentnumber = 0
20241004@151016.7082 tj1nqftt0629da802nhftsamuq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@151016.7408 tj1nqftt0629da802nhftsamuq Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'se' and documentnumber = 0
20241004@151016.7520 tj1nqftt0629da802nhftsamuq Query : insert into se (sestamp,ref, lote, data,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66fff8189666fff748ac',?,?,'20241004',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut;','aut;')
20241004@151016.8725 tj1nqftt0629da802nhftsamuq Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241004@151016.9087 tj1nqftt0629da802nhftsamuq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@151016.9106 tj1nqftt0629da802nhftsamuq Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 61
20241004@151016.9121 tj1nqftt0629da802nhftsamuq Query : insert into bi2 (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut66fff7958266fff748dd','aut66fff0346666fff74440',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 = 'aut66fff0346666fff74440'
20241004@151016.9304 tj1nqftt0629da802nhftsamuq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@151016.9389 tj1nqftt0629da802nhftsamuq Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 61
20241004@151016.9407 tj1nqftt0629da802nhftsamuq 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 'aut66fff7958266fff748dd',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut',bo.obrano, 1254, 1254*.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 ,78.55,78.55*200.48,78.55,78.55*200.48 ,0,0,'un ',' ' ,bo.marcada,1 ,78.55*1254,78.55*1254*200.48 ,.000000,.000000*200.48 ,.000000,.000000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,78.55,78.55*200.48,78.55*1254,78.55*1254*200.48,'cps24061952890,460000002 ',80,80*1254,80,80*1254,?,?,?,4 from bo bo where bo.bostamp = 'aut66fff0346666fff74440'
20241004@151039.9654 tj1nqftt0629da802nhftsamuq Query : use flama_phc
20241004@151039.9660 tj1nqftt0629da802nhftsamuq Query : declare @bostamp varchar(25) = 'aut66fff0346666fff74440' ,@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 
20241004@151059.5671 tj1nqftt0629da802nhftsamuq Query : use flama_phc
20241004@151059.5675 tj1nqftt0629da802nhftsamuq Query : select 1 valor from bo where bo.bostamp = 'aut66fff0346666fff74440'
20241004@151059.5699 tj1nqftt0629da802nhftsamuq 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) = 'aut66fff0346666fff74440' 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 
20241004@151102.9612 tj1nqftt0629da802nhftsamuq Query : use flama_phc
20241004@151102.9615 tj1nqftt0629da802nhftsamuq Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20241004@151102.9671 tj1nqftt0629da802nhftsamuq Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2408';
20241004@151102.9707 tj1nqftt0629da802nhftsamuq Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2408';

20241004@161111.9781 6bhs2c8ef6qd6mp0td0squa4n5 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2409';
20241004@161111.9865 6bhs2c8ef6qd6mp0td0squa4n5 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2409';
20241004@161111.9901 6bhs2c8ef6qd6mp0td0squa4n5 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2409';
20241004@161112.7520 6bhs2c8ef6qd6mp0td0squa4n5 Query : use flama_phc
20241004@161112.8340 6bhs2c8ef6qd6mp0td0squa4n5 Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20241004@161112.2182 6bhs2c8ef6qd6mp0td0squa4n5 Query : use flama_phc
20241004@161112.2186 6bhs2c8ef6qd6mp0td0squa4n5 Query : select no, estab,szadrsdesc from szadrs where u_coddest=4740
20241004@161112.2272 6bhs2c8ef6qd6mp0td0squa4n5 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1332.00.1'
20241004@161112.2474 6bhs2c8ef6qd6mp0td0squa4n5 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1332.00.1'
20241004@161112.2494 6bhs2c8ef6qd6mp0td0squa4n5 Query : use flama_phc
20241004@161112.2497 6bhs2c8ef6qd6mp0td0squa4n5 Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20241004@161112.2696 6bhs2c8ef6qd6mp0td0squa4n5 Query : use flama_phc
20241004@161112.2700 6bhs2c8ef6qd6mp0td0squa4n5 Query : select top 1 1 valor from td where td.ndoc = 39
20241004@161112.2840 6bhs2c8ef6qd6mp0td0squa4n5 Query : use flama_phc
20241004@161112.2843 6bhs2c8ef6qd6mp0td0squa4n5 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')
20241004@161112.2913 6bhs2c8ef6qd6mp0td0squa4n5 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
20241004@161112.3045 6bhs2c8ef6qd6mp0td0squa4n5 Query : use flama_phc
20241004@161112.3048 6bhs2c8ef6qd6mp0td0squa4n5 Query : select top 1 ~inactivo valor from cl where no = '100810' and estab = 0 order by inactivo desc
20241004@161112.3182 6bhs2c8ef6qd6mp0td0squa4n5 Query : use flama_phc
20241004@161112.3185 6bhs2c8ef6qd6mp0td0squa4n5 Query : select top 1 tipodoc,regrd from td where ndoc = 39
20241004@161112.3275 6bhs2c8ef6qd6mp0td0squa4n5 Query : use flama_phc
20241004@161112.3278 6bhs2c8ef6qd6mp0td0squa4n5 Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20241004@161112.3346 6bhs2c8ef6qd6mp0td0squa4n5 Query : use flama_phc
20241004@161112.3349 6bhs2c8ef6qd6mp0td0squa4n5 Query : select szadrsstamp valor from szadrs where szadrsdesc='100810 - worten-equipamentos para o lar,sa.'
20241004@161112.3394 6bhs2c8ef6qd6mp0td0squa4n5 Query : use flama_phc
20241004@161112.3397 6bhs2c8ef6qd6mp0td0squa4n5 Query : select 1 valor from td where ndoc = 39
20241004@161112.3477 6bhs2c8ef6qd6mp0td0squa4n5 Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20241004@161112.3560 6bhs2c8ef6qd6mp0td0squa4n5 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@161112.3891 6bhs2c8ef6qd6mp0td0squa4n5 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20241004@161112.3947 6bhs2c8ef6qd6mp0td0squa4n5 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@161112.3963 6bhs2c8ef6qd6mp0td0squa4n5 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20241004@161112.3998 6bhs2c8ef6qd6mp0td0squa4n5 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@161112.4014 6bhs2c8ef6qd6mp0td0squa4n5 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20241004@161112.4029 6bhs2c8ef6qd6mp0td0squa4n5 Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20241004@161112.4229 6bhs2c8ef6qd6mp0td0squa4n5 Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20241004@161112.4330 6bhs2c8ef6qd6mp0td0squa4n5 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@161112.4345 6bhs2c8ef6qd6mp0td0squa4n5 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20241004@161112.4388 6bhs2c8ef6qd6mp0td0squa4n5 Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut67000408576700059062' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20241004@161112.4642 6bhs2c8ef6qd6mp0td0squa4n5 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@161112.4662 6bhs2c8ef6qd6mp0td0squa4n5 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20241004@161112.4700 6bhs2c8ef6qd6mp0td0squa4n5 Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20241004@161112.4796 6bhs2c8ef6qd6mp0td0squa4n5 Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20241004@161112.4879 6bhs2c8ef6qd6mp0td0squa4n5 Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20241004@161112.4964 6bhs2c8ef6qd6mp0td0squa4n5 Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20241004@161112.5040 6bhs2c8ef6qd6mp0td0squa4n5 Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20241004@161112.5116 6bhs2c8ef6qd6mp0td0squa4n5 Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20241004@161112.5192 6bhs2c8ef6qd6mp0td0squa4n5 Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut67000408576700059062',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20241004@161112.5636 6bhs2c8ef6qd6mp0td0squa4n5 Query : select top 1 fno valor from wsftdata order by fno desc
20241004@161112.5730 6bhs2c8ef6qd6mp0td0squa4n5 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@161112.5746 6bhs2c8ef6qd6mp0td0squa4n5 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20241004@161112.5777 6bhs2c8ef6qd6mp0td0squa4n5 Query : select 'normal' from dummy
20241004@161112.5822 6bhs2c8ef6qd6mp0td0squa4n5 Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut67000408576700059062',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',1076,100810,0,'2024-10-04',39,'euro',0,0,2024 ,?,?)
20241004@161112.6276 6bhs2c8ef6qd6mp0td0squa4n5 Query : use flama_phc
20241004@161112.6281 6bhs2c8ef6qd6mp0td0squa4n5 Query : select st.usalote valor from st where st.ref = '324.1332.00.1'
20241004@161112.6425 6bhs2c8ef6qd6mp0td0squa4n5 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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.1332.00.1'
20241004@161112.6577 6bhs2c8ef6qd6mp0td0squa4n5 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@161112.6595 6bhs2c8ef6qd6mp0td0squa4n5 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241004@161112.6623 6bhs2c8ef6qd6mp0td0squa4n5 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@161112.6640 6bhs2c8ef6qd6mp0td0squa4n5 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241004@161112.6649 6bhs2c8ef6qd6mp0td0squa4n5 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241004@161112.6686 6bhs2c8ef6qd6mp0td0squa4n5 Query : select sestamp valor from se where ref ='324.1332.00.1' and lote = 'r2400759200a'
20241004@161112.6747 6bhs2c8ef6qd6mp0td0squa4n5 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@161112.6763 6bhs2c8ef6qd6mp0td0squa4n5 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241004@161112.6776 6bhs2c8ef6qd6mp0td0squa4n5 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut670002780567000590a4','aut67000408576700059062' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241004@161112.6838 6bhs2c8ef6qd6mp0td0squa4n5 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@161112.6854 6bhs2c8ef6qd6mp0td0squa4n5 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241004@161112.6885 6bhs2c8ef6qd6mp0td0squa4n5 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem) values ('aut670002780567000590a4',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',24.000 ,'aut67000408576700059062' ,0,0 ,2,23.00,10000,?,?,?,?)
20241004@161112.7281 6bhs2c8ef6qd6mp0td0squa4n5 Query : use flama_phc
20241004@161112.7284 6bhs2c8ef6qd6mp0td0squa4n5 Query : select st.usalote valor from st where st.ref = '324.1332.00.1'
20241004@161112.7304 6bhs2c8ef6qd6mp0td0squa4n5 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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.1332.00.1'
20241004@161112.7317 6bhs2c8ef6qd6mp0td0squa4n5 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@161112.7333 6bhs2c8ef6qd6mp0td0squa4n5 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241004@161112.7359 6bhs2c8ef6qd6mp0td0squa4n5 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@161112.7375 6bhs2c8ef6qd6mp0td0squa4n5 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241004@161112.7383 6bhs2c8ef6qd6mp0td0squa4n5 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241004@161112.7395 6bhs2c8ef6qd6mp0td0squa4n5 Query : select sestamp valor from se where ref ='324.1332.00.1' and lote = 'r2400759200a'
20241004@161112.7417 6bhs2c8ef6qd6mp0td0squa4n5 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@161112.7432 6bhs2c8ef6qd6mp0td0squa4n5 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241004@161112.7444 6bhs2c8ef6qd6mp0td0squa4n5 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut670005763767000590b5','aut67000408576700059062' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241004@161112.7448 6bhs2c8ef6qd6mp0td0squa4n5 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@161112.7462 6bhs2c8ef6qd6mp0td0squa4n5 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241004@161112.7510 6bhs2c8ef6qd6mp0td0squa4n5 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem) values ('aut670005763767000590b5',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',1.000 ,'aut67000408576700059062' ,0,0 ,2,23.00,20000,?,?,?,?)
20241004@161112.7777 6bhs2c8ef6qd6mp0td0squa4n5 Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut67000408576700059062','2406486','wait',39,'adm09112754980.682000002')
20241004@161112.8310 6bhs2c8ef6qd6mp0td0squa4n5 Query : use flama_phc
20241004@161112.8351 6bhs2c8ef6qd6mp0td0squa4n5 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20241004@161112.9517 6bhs2c8ef6qd6mp0td0squa4n5 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2409';
20241004@161112.9560 6bhs2c8ef6qd6mp0td0squa4n5 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2409';
20241004@161112.9600 6bhs2c8ef6qd6mp0td0squa4n5 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2409';
20241004@161112.9627 6bhs2c8ef6qd6mp0td0squa4n5 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2409';
20241004@161113.2000 a41fp787q22e0q0d0sov7dubu2 Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20241004@161113.2130 a41fp787q22e0q0d0sov7dubu2 Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20241004@161113.2750 a41fp787q22e0q0d0sov7dubu2 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2410';
20241004@161113.3330 a41fp787q22e0q0d0sov7dubu2 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2410';
20241004@161113.3990 a41fp787q22e0q0d0sov7dubu2 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2410';
20241004@161113.4260 a41fp787q22e0q0d0sov7dubu2 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2410';
20241004@161113.4790 a41fp787q22e0q0d0sov7dubu2 Query : use flama_phc
20241004@161113.4820 a41fp787q22e0q0d0sov7dubu2 Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20241004@161113.5470 a41fp787q22e0q0d0sov7dubu2 Query : use flama_phc
20241004@161113.5500 a41fp787q22e0q0d0sov7dubu2 Query : select no, estab,szadrsdesc from szadrs where u_coddest=4740
20241004@161113.5920 a41fp787q22e0q0d0sov7dubu2 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1332.00.1'
20241004@161113.6120 a41fp787q22e0q0d0sov7dubu2 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1332.00.1'
20241004@161113.6330 a41fp787q22e0q0d0sov7dubu2 Query : use flama_phc
20241004@161113.6370 a41fp787q22e0q0d0sov7dubu2 Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20241004@161113.6690 a41fp787q22e0q0d0sov7dubu2 Query : use flama_phc
20241004@161113.6720 a41fp787q22e0q0d0sov7dubu2 Query : select top 1 1 valor from td where td.ndoc = 39
20241004@161113.7010 a41fp787q22e0q0d0sov7dubu2 Query : use flama_phc
20241004@161113.7040 a41fp787q22e0q0d0sov7dubu2 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')
20241004@161113.7340 a41fp787q22e0q0d0sov7dubu2 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
20241004@161113.7670 a41fp787q22e0q0d0sov7dubu2 Query : use flama_phc
20241004@161113.7700 a41fp787q22e0q0d0sov7dubu2 Query : select top 1 ~inactivo valor from cl where no = '100810' and estab = 0 order by inactivo desc
20241004@161113.7980 a41fp787q22e0q0d0sov7dubu2 Query : use flama_phc
20241004@161113.8010 a41fp787q22e0q0d0sov7dubu2 Query : select top 1 tipodoc,regrd from td where ndoc = 39
20241004@161113.8300 a41fp787q22e0q0d0sov7dubu2 Query : use flama_phc
20241004@161113.8320 a41fp787q22e0q0d0sov7dubu2 Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20241004@161113.8710 a41fp787q22e0q0d0sov7dubu2 Query : use flama_phc
20241004@161113.8730 a41fp787q22e0q0d0sov7dubu2 Query : select szadrsstamp valor from szadrs where szadrsdesc='100810 - worten-equipamentos para o lar,sa.'
20241004@161113.9160 a41fp787q22e0q0d0sov7dubu2 Query : use flama_phc
20241004@161113.9190 a41fp787q22e0q0d0sov7dubu2 Query : select 1 valor from td where ndoc = 39
20241004@161113.9310 a41fp787q22e0q0d0sov7dubu2 Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20241004@161113.9450 a41fp787q22e0q0d0sov7dubu2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@161113.9620 a41fp787q22e0q0d0sov7dubu2 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20241004@161113.9810 a41fp787q22e0q0d0sov7dubu2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@161113.9960 a41fp787q22e0q0d0sov7dubu2 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20241004@161113.1025 a41fp787q22e0q0d0sov7dubu2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@161113.1041 a41fp787q22e0q0d0sov7dubu2 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20241004@161113.1054 a41fp787q22e0q0d0sov7dubu2 Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20241004@161113.1122 a41fp787q22e0q0d0sov7dubu2 Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20241004@161113.1134 a41fp787q22e0q0d0sov7dubu2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@161113.1150 a41fp787q22e0q0d0sov7dubu2 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20241004@161113.1166 a41fp787q22e0q0d0sov7dubu2 Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut67000339146700059119' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20241004@161113.1537 a41fp787q22e0q0d0sov7dubu2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@161113.1885 a41fp787q22e0q0d0sov7dubu2 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20241004@161113.1932 a41fp787q22e0q0d0sov7dubu2 Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20241004@161113.1947 a41fp787q22e0q0d0sov7dubu2 Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20241004@161113.2448 a41fp787q22e0q0d0sov7dubu2 Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20241004@161113.2463 a41fp787q22e0q0d0sov7dubu2 Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20241004@161113.2475 a41fp787q22e0q0d0sov7dubu2 Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20241004@161113.2486 a41fp787q22e0q0d0sov7dubu2 Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20241004@161113.2498 a41fp787q22e0q0d0sov7dubu2 Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut67000339146700059119',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20241004@161113.2810 a41fp787q22e0q0d0sov7dubu2 Query : select top 1 fno valor from wsftdata order by fno desc
20241004@161113.2834 a41fp787q22e0q0d0sov7dubu2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@161113.2849 a41fp787q22e0q0d0sov7dubu2 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20241004@161113.2873 a41fp787q22e0q0d0sov7dubu2 Query : select 'normal' from dummy
20241004@161113.2890 a41fp787q22e0q0d0sov7dubu2 Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut67000339146700059119',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',1077,100810,0,'2024-10-04',39,'euro',0,0,2024 ,?,?)
20241004@161113.3214 a41fp787q22e0q0d0sov7dubu2 Query : use flama_phc
20241004@161113.3217 a41fp787q22e0q0d0sov7dubu2 Query : select st.usalote valor from st where st.ref = '324.1332.00.1'
20241004@161113.3239 a41fp787q22e0q0d0sov7dubu2 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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.1332.00.1'
20241004@161113.3253 a41fp787q22e0q0d0sov7dubu2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@161113.3269 a41fp787q22e0q0d0sov7dubu2 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241004@161113.3294 a41fp787q22e0q0d0sov7dubu2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@161113.3309 a41fp787q22e0q0d0sov7dubu2 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241004@161113.3318 a41fp787q22e0q0d0sov7dubu2 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241004@161113.3330 a41fp787q22e0q0d0sov7dubu2 Query : select sestamp valor from se where ref ='324.1332.00.1' and lote = 'r2400759200a'
20241004@161113.3342 a41fp787q22e0q0d0sov7dubu2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@161113.3357 a41fp787q22e0q0d0sov7dubu2 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241004@161113.3369 a41fp787q22e0q0d0sov7dubu2 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut67000973206700059151','aut67000339146700059119' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241004@161113.3374 a41fp787q22e0q0d0sov7dubu2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@161113.3388 a41fp787q22e0q0d0sov7dubu2 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241004@161113.3422 a41fp787q22e0q0d0sov7dubu2 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem) values ('aut67000973206700059151',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',24.000 ,'aut67000339146700059119' ,0,0 ,2,23.00,10000,?,?,?,?)
20241004@161113.3699 a41fp787q22e0q0d0sov7dubu2 Query : use flama_phc
20241004@161113.3703 a41fp787q22e0q0d0sov7dubu2 Query : select st.usalote valor from st where st.ref = '324.1332.00.1'
20241004@161113.3724 a41fp787q22e0q0d0sov7dubu2 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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.1332.00.1'
20241004@161113.3740 a41fp787q22e0q0d0sov7dubu2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@161113.3757 a41fp787q22e0q0d0sov7dubu2 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241004@161113.3785 a41fp787q22e0q0d0sov7dubu2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@161113.3799 a41fp787q22e0q0d0sov7dubu2 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241004@161113.3808 a41fp787q22e0q0d0sov7dubu2 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241004@161113.3821 a41fp787q22e0q0d0sov7dubu2 Query : select sestamp valor from se where ref ='324.1332.00.1' and lote = 'r2400759200a'
20241004@161113.3835 a41fp787q22e0q0d0sov7dubu2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@161113.3850 a41fp787q22e0q0d0sov7dubu2 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241004@161113.3862 a41fp787q22e0q0d0sov7dubu2 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut6700040708670005915d','aut67000339146700059119' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241004@161113.3867 a41fp787q22e0q0d0sov7dubu2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@161113.3883 a41fp787q22e0q0d0sov7dubu2 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241004@161113.3946 a41fp787q22e0q0d0sov7dubu2 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem) values ('aut6700040708670005915d',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',1.000 ,'aut67000339146700059119' ,0,0 ,2,23.00,20000,?,?,?,?)
20241004@161113.4213 a41fp787q22e0q0d0sov7dubu2 Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut67000339146700059119','2406487','wait',39,'adm09112754980.682000002')
20241004@161113.4287 a41fp787q22e0q0d0sov7dubu2 Query : use flama_phc
20241004@161113.4290 a41fp787q22e0q0d0sov7dubu2 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20241004@161113.4328 a41fp787q22e0q0d0sov7dubu2 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2410';
20241004@161113.4359 a41fp787q22e0q0d0sov7dubu2 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2410';
20241004@161113.4399 a41fp787q22e0q0d0sov7dubu2 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2410';
20241004@161113.4425 a41fp787q22e0q0d0sov7dubu2 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2410';
20241004@161113.5480 sggjvqcu38rmgsso584aa1hian Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20241004@161113.5490 sggjvqcu38rmgsso584aa1hian Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20241004@161113.5546 sggjvqcu38rmgsso584aa1hian Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2411';
20241004@161113.5599 sggjvqcu38rmgsso584aa1hian Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2411';
20241004@161113.5650 sggjvqcu38rmgsso584aa1hian Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2411';
20241004@161113.5680 sggjvqcu38rmgsso584aa1hian Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2411';
20241004@161113.5728 sggjvqcu38rmgsso584aa1hian Query : use flama_phc
20241004@161113.5731 sggjvqcu38rmgsso584aa1hian Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20241004@161113.5791 sggjvqcu38rmgsso584aa1hian Query : use flama_phc
20241004@161113.5794 sggjvqcu38rmgsso584aa1hian Query : select no, estab,szadrsdesc from szadrs where u_coddest=4740
20241004@161113.5835 sggjvqcu38rmgsso584aa1hian Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1332.00.1'
20241004@161113.5858 sggjvqcu38rmgsso584aa1hian Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1332.00.1'
20241004@161113.5882 sggjvqcu38rmgsso584aa1hian Query : use flama_phc
20241004@161113.5885 sggjvqcu38rmgsso584aa1hian Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20241004@161113.5918 sggjvqcu38rmgsso584aa1hian Query : use flama_phc
20241004@161113.5921 sggjvqcu38rmgsso584aa1hian Query : select top 1 1 valor from td where td.ndoc = 39
20241004@161113.5951 sggjvqcu38rmgsso584aa1hian Query : use flama_phc
20241004@161113.5953 sggjvqcu38rmgsso584aa1hian 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')
20241004@161113.5984 sggjvqcu38rmgsso584aa1hian 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
20241004@161113.6018 sggjvqcu38rmgsso584aa1hian Query : use flama_phc
20241004@161113.6022 sggjvqcu38rmgsso584aa1hian Query : select top 1 ~inactivo valor from cl where no = '100810' and estab = 0 order by inactivo desc
20241004@161113.6052 sggjvqcu38rmgsso584aa1hian Query : use flama_phc
20241004@161113.6055 sggjvqcu38rmgsso584aa1hian Query : select top 1 tipodoc,regrd from td where ndoc = 39
20241004@161113.6086 sggjvqcu38rmgsso584aa1hian Query : use flama_phc
20241004@161113.6089 sggjvqcu38rmgsso584aa1hian Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20241004@161113.6127 sggjvqcu38rmgsso584aa1hian Query : use flama_phc
20241004@161113.6130 sggjvqcu38rmgsso584aa1hian Query : select szadrsstamp valor from szadrs where szadrsdesc='100810 - worten-equipamentos para o lar,sa.'
20241004@161113.6173 sggjvqcu38rmgsso584aa1hian Query : use flama_phc
20241004@161113.6176 sggjvqcu38rmgsso584aa1hian Query : select 1 valor from td where ndoc = 39
20241004@161113.6191 sggjvqcu38rmgsso584aa1hian Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20241004@161113.6205 sggjvqcu38rmgsso584aa1hian Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@161113.6233 sggjvqcu38rmgsso584aa1hian Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20241004@161113.6253 sggjvqcu38rmgsso584aa1hian Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@161113.6269 sggjvqcu38rmgsso584aa1hian Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20241004@161113.6300 sggjvqcu38rmgsso584aa1hian Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@161113.6315 sggjvqcu38rmgsso584aa1hian Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20241004@161113.6332 sggjvqcu38rmgsso584aa1hian Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20241004@161113.6403 sggjvqcu38rmgsso584aa1hian Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20241004@161113.6416 sggjvqcu38rmgsso584aa1hian Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@161113.6433 sggjvqcu38rmgsso584aa1hian Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20241004@161113.6449 sggjvqcu38rmgsso584aa1hian Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut6700090453670005919a' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20241004@161113.6636 sggjvqcu38rmgsso584aa1hian Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@161113.6654 sggjvqcu38rmgsso584aa1hian Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20241004@161113.6689 sggjvqcu38rmgsso584aa1hian Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20241004@161113.6702 sggjvqcu38rmgsso584aa1hian Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20241004@161113.6716 sggjvqcu38rmgsso584aa1hian Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20241004@161113.6730 sggjvqcu38rmgsso584aa1hian Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20241004@161113.6742 sggjvqcu38rmgsso584aa1hian Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20241004@161113.6754 sggjvqcu38rmgsso584aa1hian Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20241004@161113.6766 sggjvqcu38rmgsso584aa1hian Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut6700090453670005919a',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20241004@161113.7053 sggjvqcu38rmgsso584aa1hian Query : select top 1 fno valor from wsftdata order by fno desc
20241004@161113.7075 sggjvqcu38rmgsso584aa1hian Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@161113.7091 sggjvqcu38rmgsso584aa1hian Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20241004@161113.7113 sggjvqcu38rmgsso584aa1hian Query : select 'normal' from dummy
20241004@161113.7127 sggjvqcu38rmgsso584aa1hian Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut6700090453670005919a',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',1078,100810,0,'2024-10-04',39,'euro',0,0,2024 ,?,?)
20241004@161113.7425 sggjvqcu38rmgsso584aa1hian Query : use flama_phc
20241004@161113.7429 sggjvqcu38rmgsso584aa1hian Query : select st.usalote valor from st where st.ref = '324.1332.00.1'
20241004@161113.7450 sggjvqcu38rmgsso584aa1hian Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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.1332.00.1'
20241004@161113.7464 sggjvqcu38rmgsso584aa1hian Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@161113.7631 sggjvqcu38rmgsso584aa1hian Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241004@161113.8837 sggjvqcu38rmgsso584aa1hian Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@161113.8865 sggjvqcu38rmgsso584aa1hian Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241004@161113.8892 sggjvqcu38rmgsso584aa1hian Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241004@161113.8922 sggjvqcu38rmgsso584aa1hian Query : select sestamp valor from se where ref ='324.1332.00.1' and lote = 'r2400759200a'
20241004@161113.8958 sggjvqcu38rmgsso584aa1hian Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@161113.8984 sggjvqcu38rmgsso584aa1hian Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241004@161113.9005 sggjvqcu38rmgsso584aa1hian Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut670006467967000591da','aut6700090453670005919a' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241004@161113.9022 sggjvqcu38rmgsso584aa1hian Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@161113.9059 sggjvqcu38rmgsso584aa1hian Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241004@161113.9098 sggjvqcu38rmgsso584aa1hian Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem) values ('aut670006467967000591da',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',24.000 ,'aut6700090453670005919a' ,0,0 ,2,23.00,10000,?,?,?,?)
20241004@161113.9412 sggjvqcu38rmgsso584aa1hian Query : use flama_phc
20241004@161113.9415 sggjvqcu38rmgsso584aa1hian Query : select st.usalote valor from st where st.ref = '324.1332.00.1'
20241004@161113.9435 sggjvqcu38rmgsso584aa1hian Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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.1332.00.1'
20241004@161113.9457 sggjvqcu38rmgsso584aa1hian Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@161113.9474 sggjvqcu38rmgsso584aa1hian Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241004@161113.9500 sggjvqcu38rmgsso584aa1hian Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@161113.9516 sggjvqcu38rmgsso584aa1hian Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241004@161113.9524 sggjvqcu38rmgsso584aa1hian Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241004@161113.9656 sggjvqcu38rmgsso584aa1hian Query : select sestamp valor from se where ref ='324.1332.00.1' and lote = 'r2400759200a'
20241004@161113.9691 sggjvqcu38rmgsso584aa1hian Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@161113.9709 sggjvqcu38rmgsso584aa1hian Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241004@161113.9720 sggjvqcu38rmgsso584aa1hian Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut670001625167000591ec','aut6700090453670005919a' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241004@161113.9725 sggjvqcu38rmgsso584aa1hian Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@161113.9745 sggjvqcu38rmgsso584aa1hian Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241004@161113.9773 sggjvqcu38rmgsso584aa1hian Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem) values ('aut670001625167000591ec',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',1.000 ,'aut6700090453670005919a' ,0,0 ,2,23.00,20000,?,?,?,?)
20241004@161114.4500 sggjvqcu38rmgsso584aa1hian Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut6700090453670005919a','2406488','wait',39,'adm09112754980.682000002')
20241004@161114.1140 sggjvqcu38rmgsso584aa1hian Query : use flama_phc
20241004@161114.1170 sggjvqcu38rmgsso584aa1hian Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20241004@161114.1510 sggjvqcu38rmgsso584aa1hian Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2411';
20241004@161114.1810 sggjvqcu38rmgsso584aa1hian Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2411';
20241004@161114.2220 sggjvqcu38rmgsso584aa1hian Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2411';
20241004@161114.2470 sggjvqcu38rmgsso584aa1hian Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2411';
20241004@161114.8170 vqj3vk15v8hg7gns1r1tu9culj Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20241004@161114.8270 vqj3vk15v8hg7gns1r1tu9culj Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20241004@161114.8820 vqj3vk15v8hg7gns1r1tu9culj Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2412';
20241004@161114.9350 vqj3vk15v8hg7gns1r1tu9culj Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2412';
20241004@161114.9860 vqj3vk15v8hg7gns1r1tu9culj Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2412';
20241004@161114.1010 vqj3vk15v8hg7gns1r1tu9culj Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2412';
20241004@161114.1056 vqj3vk15v8hg7gns1r1tu9culj Query : use flama_phc
20241004@161114.1059 vqj3vk15v8hg7gns1r1tu9culj Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20241004@161114.1118 vqj3vk15v8hg7gns1r1tu9culj Query : use flama_phc
20241004@161114.1121 vqj3vk15v8hg7gns1r1tu9culj Query : select no, estab,szadrsdesc from szadrs where u_coddest=4740
20241004@161114.1789 vqj3vk15v8hg7gns1r1tu9culj Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1332.00.1'
20241004@161114.2565 vqj3vk15v8hg7gns1r1tu9culj Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1332.00.1'
20241004@161114.3236 vqj3vk15v8hg7gns1r1tu9culj Query : use flama_phc
20241004@161114.3277 vqj3vk15v8hg7gns1r1tu9culj Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20241004@161114.3420 vqj3vk15v8hg7gns1r1tu9culj Query : use flama_phc
20241004@161114.3423 vqj3vk15v8hg7gns1r1tu9culj Query : select top 1 1 valor from td where td.ndoc = 39
20241004@161114.3451 vqj3vk15v8hg7gns1r1tu9culj Query : use flama_phc
20241004@161114.3454 vqj3vk15v8hg7gns1r1tu9culj 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')
20241004@161114.3481 vqj3vk15v8hg7gns1r1tu9culj 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
20241004@161114.3521 vqj3vk15v8hg7gns1r1tu9culj Query : use flama_phc
20241004@161114.3524 vqj3vk15v8hg7gns1r1tu9culj Query : select top 1 ~inactivo valor from cl where no = '100810' and estab = 0 order by inactivo desc
20241004@161114.3551 vqj3vk15v8hg7gns1r1tu9culj Query : use flama_phc
20241004@161114.3554 vqj3vk15v8hg7gns1r1tu9culj Query : select top 1 tipodoc,regrd from td where ndoc = 39
20241004@161114.3583 vqj3vk15v8hg7gns1r1tu9culj Query : use flama_phc
20241004@161114.3585 vqj3vk15v8hg7gns1r1tu9culj Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20241004@161114.3623 vqj3vk15v8hg7gns1r1tu9culj Query : use flama_phc
20241004@161114.3626 vqj3vk15v8hg7gns1r1tu9culj Query : select szadrsstamp valor from szadrs where szadrsdesc='100810 - worten-equipamentos para o lar,sa.'
20241004@161114.3668 vqj3vk15v8hg7gns1r1tu9culj Query : use flama_phc
20241004@161114.3671 vqj3vk15v8hg7gns1r1tu9culj Query : select 1 valor from td where ndoc = 39
20241004@161114.3682 vqj3vk15v8hg7gns1r1tu9culj Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20241004@161114.3695 vqj3vk15v8hg7gns1r1tu9culj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@161114.3711 vqj3vk15v8hg7gns1r1tu9culj Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20241004@161114.3728 vqj3vk15v8hg7gns1r1tu9culj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@161114.3742 vqj3vk15v8hg7gns1r1tu9culj Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20241004@161114.3768 vqj3vk15v8hg7gns1r1tu9culj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@161114.3783 vqj3vk15v8hg7gns1r1tu9culj Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20241004@161114.3794 vqj3vk15v8hg7gns1r1tu9culj Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20241004@161114.3865 vqj3vk15v8hg7gns1r1tu9culj Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20241004@161114.3877 vqj3vk15v8hg7gns1r1tu9culj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@161114.3893 vqj3vk15v8hg7gns1r1tu9culj Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20241004@161114.3908 vqj3vk15v8hg7gns1r1tu9culj Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut6700047671670005925c' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20241004@161114.4086 vqj3vk15v8hg7gns1r1tu9culj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@161114.4102 vqj3vk15v8hg7gns1r1tu9culj Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20241004@161114.4133 vqj3vk15v8hg7gns1r1tu9culj Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20241004@161114.4144 vqj3vk15v8hg7gns1r1tu9culj Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20241004@161114.4194 vqj3vk15v8hg7gns1r1tu9culj Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20241004@161114.4225 vqj3vk15v8hg7gns1r1tu9culj Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20241004@161114.4236 vqj3vk15v8hg7gns1r1tu9culj Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20241004@161114.4247 vqj3vk15v8hg7gns1r1tu9culj Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20241004@161114.4257 vqj3vk15v8hg7gns1r1tu9culj Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut6700047671670005925c',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20241004@161114.4519 vqj3vk15v8hg7gns1r1tu9culj Query : select top 1 fno valor from wsftdata order by fno desc
20241004@161114.4539 vqj3vk15v8hg7gns1r1tu9culj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@161114.4554 vqj3vk15v8hg7gns1r1tu9culj Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20241004@161114.4576 vqj3vk15v8hg7gns1r1tu9culj Query : select 'normal' from dummy
20241004@161114.4589 vqj3vk15v8hg7gns1r1tu9culj Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut6700047671670005925c',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',1079,100810,0,'2024-10-04',39,'euro',0,0,2024 ,?,?)
20241004@161114.4882 vqj3vk15v8hg7gns1r1tu9culj Query : use flama_phc
20241004@161114.4884 vqj3vk15v8hg7gns1r1tu9culj Query : select st.usalote valor from st where st.ref = '324.1332.00.1'
20241004@161114.4906 vqj3vk15v8hg7gns1r1tu9culj Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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.1332.00.1'
20241004@161114.4920 vqj3vk15v8hg7gns1r1tu9culj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@161114.4935 vqj3vk15v8hg7gns1r1tu9culj Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241004@161114.4959 vqj3vk15v8hg7gns1r1tu9culj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@161114.4973 vqj3vk15v8hg7gns1r1tu9culj Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241004@161114.4980 vqj3vk15v8hg7gns1r1tu9culj Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241004@161114.4992 vqj3vk15v8hg7gns1r1tu9culj Query : select sestamp valor from se where ref ='324.1332.00.1' and lote = 'r2400759200a'
20241004@161114.5003 vqj3vk15v8hg7gns1r1tu9culj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@161114.5018 vqj3vk15v8hg7gns1r1tu9culj Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241004@161114.5029 vqj3vk15v8hg7gns1r1tu9culj Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut6700069411670005927a','aut6700047671670005925c' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241004@161114.5040 vqj3vk15v8hg7gns1r1tu9culj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@161114.5054 vqj3vk15v8hg7gns1r1tu9culj Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241004@161114.5082 vqj3vk15v8hg7gns1r1tu9culj Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem) values ('aut6700069411670005927a',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',24.000 ,'aut6700047671670005925c' ,0,0 ,2,23.00,10000,?,?,?,?)
20241004@161114.5343 vqj3vk15v8hg7gns1r1tu9culj Query : use flama_phc
20241004@161114.5346 vqj3vk15v8hg7gns1r1tu9culj Query : select st.usalote valor from st where st.ref = '324.1332.00.1'
20241004@161114.5365 vqj3vk15v8hg7gns1r1tu9culj Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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.1332.00.1'
20241004@161114.5377 vqj3vk15v8hg7gns1r1tu9culj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@161114.5392 vqj3vk15v8hg7gns1r1tu9culj Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241004@161114.5417 vqj3vk15v8hg7gns1r1tu9culj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@161114.5431 vqj3vk15v8hg7gns1r1tu9culj Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241004@161114.5439 vqj3vk15v8hg7gns1r1tu9culj Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241004@161114.5450 vqj3vk15v8hg7gns1r1tu9culj Query : select sestamp valor from se where ref ='324.1332.00.1' and lote = 'r2400759200a'
20241004@161114.5462 vqj3vk15v8hg7gns1r1tu9culj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@161114.5476 vqj3vk15v8hg7gns1r1tu9culj Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241004@161114.5487 vqj3vk15v8hg7gns1r1tu9culj Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut67000723086700059285','aut6700047671670005925c' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241004@161114.5491 vqj3vk15v8hg7gns1r1tu9culj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@161114.5504 vqj3vk15v8hg7gns1r1tu9culj Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241004@161114.5530 vqj3vk15v8hg7gns1r1tu9culj Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem) values ('aut67000723086700059285',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',1.000 ,'aut6700047671670005925c' ,0,0 ,2,23.00,20000,?,?,?,?)
20241004@161114.5803 vqj3vk15v8hg7gns1r1tu9culj Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut6700047671670005925c','2406489','wait',39,'adm09112754980.682000002')
20241004@161114.5873 vqj3vk15v8hg7gns1r1tu9culj Query : use flama_phc
20241004@161114.5876 vqj3vk15v8hg7gns1r1tu9culj Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20241004@161114.5905 vqj3vk15v8hg7gns1r1tu9culj Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2412';
20241004@161114.5937 vqj3vk15v8hg7gns1r1tu9culj Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2412';
20241004@161114.5978 vqj3vk15v8hg7gns1r1tu9culj Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2412';
20241004@161114.6005 vqj3vk15v8hg7gns1r1tu9culj Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2412';

20241004@184413.9868 43kceen1ffsh1p337jrbr1j903 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2413';
20241004@184413.9981 43kceen1ffsh1p337jrbr1j903 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2413';
20241004@184414.2380 43kceen1ffsh1p337jrbr1j903 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2413';
20241004@184414.3170 43kceen1ffsh1p337jrbr1j903 Query : use flama_phc
20241004@184414.3280 43kceen1ffsh1p337jrbr1j903 Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20241004@184414.6050 43kceen1ffsh1p337jrbr1j903 Query : use flama_phc
20241004@184414.7380 43kceen1ffsh1p337jrbr1j903 Query : select no, estab,szadrsdesc from szadrs where u_coddest=4779
20241004@184414.1727 43kceen1ffsh1p337jrbr1j903 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '304.421.00.04'
20241004@184414.2868 43kceen1ffsh1p337jrbr1j903 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.4960.00.1'
20241004@184414.4242 43kceen1ffsh1p337jrbr1j903 Query : use flama_phc
20241004@184414.4381 43kceen1ffsh1p337jrbr1j903 Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20241004@184414.6886 43kceen1ffsh1p337jrbr1j903 Query : use flama_phc
20241004@184414.7007 43kceen1ffsh1p337jrbr1j903 Query : select top 1 1 valor from td where td.ndoc = 39
20241004@184414.8564 43kceen1ffsh1p337jrbr1j903 Query : use flama_phc
20241004@184414.8647 43kceen1ffsh1p337jrbr1j903 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')
20241004@184415.2070 43kceen1ffsh1p337jrbr1j903 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
20241004@184415.1669 43kceen1ffsh1p337jrbr1j903 Query : use flama_phc
20241004@184415.1711 43kceen1ffsh1p337jrbr1j903 Query : select top 1 ~inactivo valor from cl where no = '101900' and estab = 0 order by inactivo desc
20241004@184415.2475 43kceen1ffsh1p337jrbr1j903 Query : use flama_phc
20241004@184415.2516 43kceen1ffsh1p337jrbr1j903 Query : select top 1 tipodoc,regrd from td where ndoc = 39
20241004@184415.2930 43kceen1ffsh1p337jrbr1j903 Query : use flama_phc
20241004@184415.2973 43kceen1ffsh1p337jrbr1j903 Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20241004@184415.3176 43kceen1ffsh1p337jrbr1j903 Query : use flama_phc
20241004@184415.3179 43kceen1ffsh1p337jrbr1j903 Query : select szadrsstamp valor from szadrs where szadrsdesc='101900 - pd - alcochete'
20241004@184415.3248 43kceen1ffsh1p337jrbr1j903 Query : use flama_phc
20241004@184415.3251 43kceen1ffsh1p337jrbr1j903 Query : select 1 valor from td where ndoc = 39
20241004@184415.3272 43kceen1ffsh1p337jrbr1j903 Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20241004@184415.3293 43kceen1ffsh1p337jrbr1j903 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@184415.3318 43kceen1ffsh1p337jrbr1j903 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20241004@184415.3373 43kceen1ffsh1p337jrbr1j903 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@184415.3390 43kceen1ffsh1p337jrbr1j903 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20241004@184415.3422 43kceen1ffsh1p337jrbr1j903 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@184415.3438 43kceen1ffsh1p337jrbr1j903 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20241004@184415.3453 43kceen1ffsh1p337jrbr1j903 Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20241004@184415.3627 43kceen1ffsh1p337jrbr1j903 Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20241004@184415.3660 43kceen1ffsh1p337jrbr1j903 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@184415.3681 43kceen1ffsh1p337jrbr1j903 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20241004@184415.3704 43kceen1ffsh1p337jrbr1j903 Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut67002133986700296f54' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20241004@184415.4034 43kceen1ffsh1p337jrbr1j903 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@184415.4057 43kceen1ffsh1p337jrbr1j903 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20241004@184415.4098 43kceen1ffsh1p337jrbr1j903 Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20241004@184415.4112 43kceen1ffsh1p337jrbr1j903 Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20241004@184415.4127 43kceen1ffsh1p337jrbr1j903 Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20241004@184415.4140 43kceen1ffsh1p337jrbr1j903 Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20241004@184415.4154 43kceen1ffsh1p337jrbr1j903 Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20241004@184415.4171 43kceen1ffsh1p337jrbr1j903 Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20241004@184415.4206 43kceen1ffsh1p337jrbr1j903 Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut67002133986700296f54',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20241004@184415.5800 43kceen1ffsh1p337jrbr1j903 Query : select top 1 fno valor from wsftdata order by fno desc
20241004@184415.6327 43kceen1ffsh1p337jrbr1j903 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@184415.6663 43kceen1ffsh1p337jrbr1j903 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20241004@184415.7621 43kceen1ffsh1p337jrbr1j903 Query : select 'normal' from dummy
20241004@184415.8237 43kceen1ffsh1p337jrbr1j903 Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut67002133986700296f54',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',1080,101900,0,'2024-10-04',39,'euro',0,0,2024 ,?,?)
20241004@184416.1153 43kceen1ffsh1p337jrbr1j903 Query : use flama_phc
20241004@184416.1238 43kceen1ffsh1p337jrbr1j903 Query : select st.usalote valor from st where st.ref = '304.421.00.04'
20241004@184416.1722 43kceen1ffsh1p337jrbr1j903 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '304.421.00.04'
20241004@184416.2454 43kceen1ffsh1p337jrbr1j903 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@184416.2875 43kceen1ffsh1p337jrbr1j903 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241004@184416.5162 43kceen1ffsh1p337jrbr1j903 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@184416.5788 43kceen1ffsh1p337jrbr1j903 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241004@184416.7463 43kceen1ffsh1p337jrbr1j903 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241004@184416.8247 43kceen1ffsh1p337jrbr1j903 Query : select sestamp valor from se where ref ='304.421.00.04' and lote = '241001'
20241004@184416.8934 43kceen1ffsh1p337jrbr1j903 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@184416.9342 43kceen1ffsh1p337jrbr1j903 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241004@184416.9682 43kceen1ffsh1p337jrbr1j903 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut670029385967002970da','aut67002133986700296f54' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241004@184416.9906 43kceen1ffsh1p337jrbr1j903 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@184417.3100 43kceen1ffsh1p337jrbr1j903 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241004@184417.1269 43kceen1ffsh1p337jrbr1j903 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem) values ('aut670029385967002970da',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',20.000 ,'aut67002133986700296f54' ,0,0 ,2,23.00,10000,?,?,?,?)
20241004@184418.4540 43kceen1ffsh1p337jrbr1j903 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@184418.8850 43kceen1ffsh1p337jrbr1j903 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241004@184418.1954 43kceen1ffsh1p337jrbr1j903 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@184418.2460 43kceen1ffsh1p337jrbr1j903 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241004@184418.2870 43kceen1ffsh1p337jrbr1j903 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241004@184418.3391 43kceen1ffsh1p337jrbr1j903 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@184418.3978 43kceen1ffsh1p337jrbr1j903 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241004@184418.4561 43kceen1ffsh1p337jrbr1j903 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut67002061796700297252','aut67002133986700296f54' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241004@184418.4607 43kceen1ffsh1p337jrbr1j903 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@184418.5490 43kceen1ffsh1p337jrbr1j903 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241004@184418.7775 43kceen1ffsh1p337jrbr1j903 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut67002061796700297252',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut67002133986700296f54' ,0,0 ,2,23.00,20000,?,?,?)
20241004@184418.8553 43kceen1ffsh1p337jrbr1j903 Query : use flama_phc
20241004@184418.8636 43kceen1ffsh1p337jrbr1j903 Query : select st.usalote valor from st where st.ref = '324.4960.00.1'
20241004@184418.9796 43kceen1ffsh1p337jrbr1j903 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.4960.00.1'
20241004@184419.1031 43kceen1ffsh1p337jrbr1j903 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@184419.1709 43kceen1ffsh1p337jrbr1j903 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241004@184419.3573 43kceen1ffsh1p337jrbr1j903 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@184419.4405 43kceen1ffsh1p337jrbr1j903 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241004@184419.4980 43kceen1ffsh1p337jrbr1j903 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241004@184419.5889 43kceen1ffsh1p337jrbr1j903 Query : select sestamp valor from se where ref ='324.4960.00.1' and lote = 'r2100754100a'
20241004@184419.7227 43kceen1ffsh1p337jrbr1j903 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@184419.7908 43kceen1ffsh1p337jrbr1j903 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241004@184419.8495 43kceen1ffsh1p337jrbr1j903 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut670029754467002973b0','aut67002133986700296f54' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241004@184420.3580 43kceen1ffsh1p337jrbr1j903 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@184420.9750 43kceen1ffsh1p337jrbr1j903 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241004@184420.2994 43kceen1ffsh1p337jrbr1j903 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem) values ('aut670029754467002973b0',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',6.000 ,'aut67002133986700296f54' ,0,0 ,2,23.00,40000,?,?,?,?)
20241004@184420.3706 43kceen1ffsh1p337jrbr1j903 Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut67002133986700296f54','2406388','wait',39,'adm09112754980.682000002')
20241004@184421.2952 43kceen1ffsh1p337jrbr1j903 Query : use flama_phc
20241004@184421.2995 43kceen1ffsh1p337jrbr1j903 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20241004@184421.3249 43kceen1ffsh1p337jrbr1j903 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2413';
20241004@184421.3553 43kceen1ffsh1p337jrbr1j903 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2413';
20241004@184421.3822 43kceen1ffsh1p337jrbr1j903 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2413';
20241004@184421.4706 43kceen1ffsh1p337jrbr1j903 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2413';
20241004@184421.5813 un5ojl9190pjlfe1qq01l6i0bn Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20241004@184421.5824 un5ojl9190pjlfe1qq01l6i0bn Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20241004@184421.5899 un5ojl9190pjlfe1qq01l6i0bn Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2414';
20241004@184421.5986 un5ojl9190pjlfe1qq01l6i0bn Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2414';
20241004@184421.6053 un5ojl9190pjlfe1qq01l6i0bn Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2414';
20241004@184421.6086 un5ojl9190pjlfe1qq01l6i0bn Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2414';
20241004@184421.6142 un5ojl9190pjlfe1qq01l6i0bn Query : use flama_phc
20241004@184421.6145 un5ojl9190pjlfe1qq01l6i0bn Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20241004@184421.6236 un5ojl9190pjlfe1qq01l6i0bn Query : use flama_phc
20241004@184421.6240 un5ojl9190pjlfe1qq01l6i0bn Query : select no, estab,szadrsdesc from szadrs where u_coddest=4804
20241004@184421.7151 un5ojl9190pjlfe1qq01l6i0bn Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.2031.00.1'
20241004@184421.7365 un5ojl9190pjlfe1qq01l6i0bn 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'
20241004@184421.7559 un5ojl9190pjlfe1qq01l6i0bn Query : use flama_phc
20241004@184421.7563 un5ojl9190pjlfe1qq01l6i0bn Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20241004@184421.7595 un5ojl9190pjlfe1qq01l6i0bn Query : use flama_phc
20241004@184421.7599 un5ojl9190pjlfe1qq01l6i0bn Query : select top 1 1 valor from td where td.ndoc = 39
20241004@184421.7647 un5ojl9190pjlfe1qq01l6i0bn Query : use flama_phc
20241004@184421.7650 un5ojl9190pjlfe1qq01l6i0bn 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')
20241004@184421.7680 un5ojl9190pjlfe1qq01l6i0bn 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
20241004@184421.7718 un5ojl9190pjlfe1qq01l6i0bn Query : use flama_phc
20241004@184421.7721 un5ojl9190pjlfe1qq01l6i0bn Query : select top 1 ~inactivo valor from cl where no = '101900' and estab = 0 order by inactivo desc
20241004@184421.7761 un5ojl9190pjlfe1qq01l6i0bn Query : use flama_phc
20241004@184421.7766 un5ojl9190pjlfe1qq01l6i0bn Query : select top 1 tipodoc,regrd from td where ndoc = 39
20241004@184421.7798 un5ojl9190pjlfe1qq01l6i0bn Query : use flama_phc
20241004@184421.7801 un5ojl9190pjlfe1qq01l6i0bn Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20241004@184421.8714 un5ojl9190pjlfe1qq01l6i0bn Query : use flama_phc
20241004@184421.8838 un5ojl9190pjlfe1qq01l6i0bn Query : select szadrsstamp valor from szadrs where szadrsdesc='101900 - pd - alfena n/p'
20241004@184422.4120 un5ojl9190pjlfe1qq01l6i0bn Query : use flama_phc
20241004@184422.4540 un5ojl9190pjlfe1qq01l6i0bn Query : select 1 valor from td where ndoc = 39
20241004@184422.5020 un5ojl9190pjlfe1qq01l6i0bn Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20241004@184422.5180 un5ojl9190pjlfe1qq01l6i0bn Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@184422.9380 un5ojl9190pjlfe1qq01l6i0bn Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20241004@184422.1320 un5ojl9190pjlfe1qq01l6i0bn Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@184422.1339 un5ojl9190pjlfe1qq01l6i0bn Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20241004@184422.1372 un5ojl9190pjlfe1qq01l6i0bn Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@184422.1389 un5ojl9190pjlfe1qq01l6i0bn Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20241004@184422.1403 un5ojl9190pjlfe1qq01l6i0bn Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20241004@184422.1474 un5ojl9190pjlfe1qq01l6i0bn Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20241004@184422.1488 un5ojl9190pjlfe1qq01l6i0bn Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@184422.1506 un5ojl9190pjlfe1qq01l6i0bn Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20241004@184422.1525 un5ojl9190pjlfe1qq01l6i0bn Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut67002156386700297622' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20241004@184422.1721 un5ojl9190pjlfe1qq01l6i0bn Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@184422.1741 un5ojl9190pjlfe1qq01l6i0bn Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20241004@184422.1780 un5ojl9190pjlfe1qq01l6i0bn Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20241004@184422.1793 un5ojl9190pjlfe1qq01l6i0bn Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20241004@184422.1807 un5ojl9190pjlfe1qq01l6i0bn Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20241004@184422.1820 un5ojl9190pjlfe1qq01l6i0bn Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20241004@184422.1833 un5ojl9190pjlfe1qq01l6i0bn Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20241004@184422.1850 un5ojl9190pjlfe1qq01l6i0bn Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20241004@184422.1866 un5ojl9190pjlfe1qq01l6i0bn Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut67002156386700297622',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20241004@184422.2152 un5ojl9190pjlfe1qq01l6i0bn Query : select top 1 fno valor from wsftdata order by fno desc
20241004@184422.2176 un5ojl9190pjlfe1qq01l6i0bn Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@184422.2195 un5ojl9190pjlfe1qq01l6i0bn Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20241004@184422.2219 un5ojl9190pjlfe1qq01l6i0bn Query : select 'normal' from dummy
20241004@184422.2235 un5ojl9190pjlfe1qq01l6i0bn Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut67002156386700297622',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',1081,101900,0,'2024-10-04',39,'euro',0,0,2024 ,?,?)
20241004@184422.2591 un5ojl9190pjlfe1qq01l6i0bn Query : use flama_phc
20241004@184422.2595 un5ojl9190pjlfe1qq01l6i0bn Query : select st.usalote valor from st where st.ref = '324.2031.00.1'
20241004@184422.2631 un5ojl9190pjlfe1qq01l6i0bn Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.2031.00.1'
20241004@184422.3407 un5ojl9190pjlfe1qq01l6i0bn Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@184422.3627 un5ojl9190pjlfe1qq01l6i0bn Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241004@184422.3656 un5ojl9190pjlfe1qq01l6i0bn Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@184422.3685 un5ojl9190pjlfe1qq01l6i0bn Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241004@184422.3696 un5ojl9190pjlfe1qq01l6i0bn Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241004@184422.3711 un5ojl9190pjlfe1qq01l6i0bn Query : select sestamp valor from se where ref ='324.2031.00.1' and lote = 'r2100232100a'
20241004@184422.3751 un5ojl9190pjlfe1qq01l6i0bn Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@184422.3770 un5ojl9190pjlfe1qq01l6i0bn Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241004@184422.3786 un5ojl9190pjlfe1qq01l6i0bn Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut6700233781670029765b','aut67002156386700297622' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241004@184422.3791 un5ojl9190pjlfe1qq01l6i0bn Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@184422.3809 un5ojl9190pjlfe1qq01l6i0bn Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241004@184422.3852 un5ojl9190pjlfe1qq01l6i0bn Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem) values ('aut6700233781670029765b',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',6.000 ,'aut67002156386700297622' ,0,0 ,2,23.00,10000,?,?,?,?)
20241004@184422.4156 un5ojl9190pjlfe1qq01l6i0bn Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@184422.4176 un5ojl9190pjlfe1qq01l6i0bn Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241004@184422.4206 un5ojl9190pjlfe1qq01l6i0bn Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@184422.4225 un5ojl9190pjlfe1qq01l6i0bn Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241004@184422.4235 un5ojl9190pjlfe1qq01l6i0bn Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241004@184422.4249 un5ojl9190pjlfe1qq01l6i0bn Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@184422.4265 un5ojl9190pjlfe1qq01l6i0bn Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241004@184422.4278 un5ojl9190pjlfe1qq01l6i0bn Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut67002737686700297667','aut67002156386700297622' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241004@184422.4284 un5ojl9190pjlfe1qq01l6i0bn Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@184422.4303 un5ojl9190pjlfe1qq01l6i0bn Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241004@184422.5088 un5ojl9190pjlfe1qq01l6i0bn Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut67002737686700297667',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut67002156386700297622' ,0,0 ,2,23.00,20000,?,?,?)
20241004@184422.5674 un5ojl9190pjlfe1qq01l6i0bn Query : use flama_phc
20241004@184422.5716 un5ojl9190pjlfe1qq01l6i0bn Query : select st.usalote valor from st where st.ref = '324.2232.00.1'
20241004@184422.6213 un5ojl9190pjlfe1qq01l6i0bn Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.2232.00.1'
20241004@184422.6964 un5ojl9190pjlfe1qq01l6i0bn Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@184422.7167 un5ojl9190pjlfe1qq01l6i0bn Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241004@184422.8202 un5ojl9190pjlfe1qq01l6i0bn Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@184422.8245 un5ojl9190pjlfe1qq01l6i0bn Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241004@184422.8256 un5ojl9190pjlfe1qq01l6i0bn Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241004@184422.8272 un5ojl9190pjlfe1qq01l6i0bn Query : select sestamp valor from se where ref ='324.2232.00.1' and lote = 'r2400241100a'
20241004@184422.8304 un5ojl9190pjlfe1qq01l6i0bn Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@184422.8323 un5ojl9190pjlfe1qq01l6i0bn Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241004@184422.8336 un5ojl9190pjlfe1qq01l6i0bn Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut670026029067002976ca','aut67002156386700297622' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241004@184422.8385 un5ojl9190pjlfe1qq01l6i0bn Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@184422.8693 un5ojl9190pjlfe1qq01l6i0bn Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241004@184422.9336 un5ojl9190pjlfe1qq01l6i0bn Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem) values ('aut670026029067002976ca',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',2.000 ,'aut67002156386700297622' ,0,0 ,2,23.00,40000,?,?,?,?)
20241004@184422.9646 un5ojl9190pjlfe1qq01l6i0bn Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut67002156386700297622','2406389','wait',39,'adm09112754980.682000002')
20241004@184422.9725 un5ojl9190pjlfe1qq01l6i0bn Query : use flama_phc
20241004@184422.9729 un5ojl9190pjlfe1qq01l6i0bn Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20241004@184422.9760 un5ojl9190pjlfe1qq01l6i0bn Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2414';
20241004@184422.9802 un5ojl9190pjlfe1qq01l6i0bn Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2414';
20241004@184422.9855 un5ojl9190pjlfe1qq01l6i0bn Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2414';
20241004@184422.9887 un5ojl9190pjlfe1qq01l6i0bn Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2414';
20241004@184423.8340 1bt7i8ufbpfjj4mi838t59lhnv Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20241004@184423.8460 1bt7i8ufbpfjj4mi838t59lhnv Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20241004@184423.9050 1bt7i8ufbpfjj4mi838t59lhnv Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2415';
20241004@184423.1006 1bt7i8ufbpfjj4mi838t59lhnv Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2415';
20241004@184423.1068 1bt7i8ufbpfjj4mi838t59lhnv Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2415';
20241004@184423.1103 1bt7i8ufbpfjj4mi838t59lhnv Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2415';
20241004@184423.1167 1bt7i8ufbpfjj4mi838t59lhnv Query : use flama_phc
20241004@184423.1171 1bt7i8ufbpfjj4mi838t59lhnv Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20241004@184423.1233 1bt7i8ufbpfjj4mi838t59lhnv Query : use flama_phc
20241004@184423.1238 1bt7i8ufbpfjj4mi838t59lhnv Query : select no, estab,szadrsdesc from szadrs where u_coddest=6737
20241004@184423.1334 1bt7i8ufbpfjj4mi838t59lhnv 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'
20241004@184423.1523 1bt7i8ufbpfjj4mi838t59lhnv Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '328.9345.00.1'
20241004@184423.1710 1bt7i8ufbpfjj4mi838t59lhnv Query : use flama_phc
20241004@184423.1713 1bt7i8ufbpfjj4mi838t59lhnv Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20241004@184423.1748 1bt7i8ufbpfjj4mi838t59lhnv Query : use flama_phc
20241004@184423.1751 1bt7i8ufbpfjj4mi838t59lhnv Query : select top 1 1 valor from td where td.ndoc = 39
20241004@184423.1783 1bt7i8ufbpfjj4mi838t59lhnv Query : use flama_phc
20241004@184423.1787 1bt7i8ufbpfjj4mi838t59lhnv 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')
20241004@184423.1817 1bt7i8ufbpfjj4mi838t59lhnv 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
20241004@184423.1854 1bt7i8ufbpfjj4mi838t59lhnv Query : use flama_phc
20241004@184423.1857 1bt7i8ufbpfjj4mi838t59lhnv Query : select top 1 ~inactivo valor from cl where no = '100810' and estab = 0 order by inactivo desc
20241004@184423.1894 1bt7i8ufbpfjj4mi838t59lhnv Query : use flama_phc
20241004@184423.1897 1bt7i8ufbpfjj4mi838t59lhnv Query : select top 1 tipodoc,regrd from td where ndoc = 39
20241004@184423.1930 1bt7i8ufbpfjj4mi838t59lhnv Query : use flama_phc
20241004@184423.1933 1bt7i8ufbpfjj4mi838t59lhnv Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20241004@184423.1977 1bt7i8ufbpfjj4mi838t59lhnv Query : use flama_phc
20241004@184423.1981 1bt7i8ufbpfjj4mi838t59lhnv Query : select szadrsstamp valor from szadrs where szadrsdesc='100810 - worten-plaza large formats rainha'
20241004@184423.2030 1bt7i8ufbpfjj4mi838t59lhnv Query : use flama_phc
20241004@184423.2033 1bt7i8ufbpfjj4mi838t59lhnv Query : select 1 valor from td where ndoc = 39
20241004@184423.2047 1bt7i8ufbpfjj4mi838t59lhnv Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20241004@184423.2063 1bt7i8ufbpfjj4mi838t59lhnv Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@184423.2081 1bt7i8ufbpfjj4mi838t59lhnv Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20241004@184423.2104 1bt7i8ufbpfjj4mi838t59lhnv Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@184423.2121 1bt7i8ufbpfjj4mi838t59lhnv Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20241004@184423.2151 1bt7i8ufbpfjj4mi838t59lhnv Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@184423.2441 1bt7i8ufbpfjj4mi838t59lhnv Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20241004@184423.2456 1bt7i8ufbpfjj4mi838t59lhnv Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20241004@184423.2538 1bt7i8ufbpfjj4mi838t59lhnv Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20241004@184423.2553 1bt7i8ufbpfjj4mi838t59lhnv Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@184423.2577 1bt7i8ufbpfjj4mi838t59lhnv Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20241004@184423.2596 1bt7i8ufbpfjj4mi838t59lhnv Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut6700254723670029773b' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20241004@184423.2815 1bt7i8ufbpfjj4mi838t59lhnv Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@184423.2837 1bt7i8ufbpfjj4mi838t59lhnv Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20241004@184423.2874 1bt7i8ufbpfjj4mi838t59lhnv Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20241004@184423.2888 1bt7i8ufbpfjj4mi838t59lhnv Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20241004@184423.2902 1bt7i8ufbpfjj4mi838t59lhnv Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20241004@184423.2914 1bt7i8ufbpfjj4mi838t59lhnv Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20241004@184423.2927 1bt7i8ufbpfjj4mi838t59lhnv Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20241004@184423.2941 1bt7i8ufbpfjj4mi838t59lhnv Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20241004@184423.2955 1bt7i8ufbpfjj4mi838t59lhnv Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut6700254723670029773b',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20241004@184423.3270 1bt7i8ufbpfjj4mi838t59lhnv Query : select top 1 fno valor from wsftdata order by fno desc
20241004@184423.3295 1bt7i8ufbpfjj4mi838t59lhnv Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@184423.3319 1bt7i8ufbpfjj4mi838t59lhnv Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20241004@184423.3344 1bt7i8ufbpfjj4mi838t59lhnv Query : select 'normal' from dummy
20241004@184423.3361 1bt7i8ufbpfjj4mi838t59lhnv Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut6700254723670029773b',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',1082,100810,0,'2024-10-04',39,'euro',0,0,2024 ,?,?)
20241004@184423.3739 1bt7i8ufbpfjj4mi838t59lhnv Query : use flama_phc
20241004@184423.3743 1bt7i8ufbpfjj4mi838t59lhnv Query : select st.usalote valor from st where st.ref = '328.9326.00.1'
20241004@184423.3769 1bt7i8ufbpfjj4mi838t59lhnv Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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'
20241004@184423.3953 1bt7i8ufbpfjj4mi838t59lhnv Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@184423.3972 1bt7i8ufbpfjj4mi838t59lhnv Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241004@184423.3999 1bt7i8ufbpfjj4mi838t59lhnv Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@184423.4016 1bt7i8ufbpfjj4mi838t59lhnv Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241004@184423.4027 1bt7i8ufbpfjj4mi838t59lhnv Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241004@184423.4041 1bt7i8ufbpfjj4mi838t59lhnv Query : select sestamp valor from se where ref ='328.9326.00.1' and lote = 'r2300691100a'
20241004@184423.4075 1bt7i8ufbpfjj4mi838t59lhnv Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@184423.4095 1bt7i8ufbpfjj4mi838t59lhnv Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241004@184423.4107 1bt7i8ufbpfjj4mi838t59lhnv Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut67002033836700297763','aut6700254723670029773b' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241004@184423.4113 1bt7i8ufbpfjj4mi838t59lhnv Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@184423.4130 1bt7i8ufbpfjj4mi838t59lhnv Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241004@184423.4172 1bt7i8ufbpfjj4mi838t59lhnv Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem) values ('aut67002033836700297763',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',1.000 ,'aut6700254723670029773b' ,0,0 ,2,23.00,10000,?,?,?,?)
20241004@184423.4500 1bt7i8ufbpfjj4mi838t59lhnv Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@184423.4518 1bt7i8ufbpfjj4mi838t59lhnv Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241004@184423.4544 1bt7i8ufbpfjj4mi838t59lhnv Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@184423.4563 1bt7i8ufbpfjj4mi838t59lhnv Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241004@184423.4573 1bt7i8ufbpfjj4mi838t59lhnv Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241004@184423.4590 1bt7i8ufbpfjj4mi838t59lhnv Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@184423.4610 1bt7i8ufbpfjj4mi838t59lhnv Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241004@184423.4629 1bt7i8ufbpfjj4mi838t59lhnv Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut67002989916700297770','aut6700254723670029773b' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241004@184423.4634 1bt7i8ufbpfjj4mi838t59lhnv Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@184423.4649 1bt7i8ufbpfjj4mi838t59lhnv Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241004@184423.4679 1bt7i8ufbpfjj4mi838t59lhnv Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut67002989916700297770',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut6700254723670029773b' ,0,0 ,2,23.00,20000,?,?,?)
20241004@184423.5038 1bt7i8ufbpfjj4mi838t59lhnv Query : use flama_phc
20241004@184423.5042 1bt7i8ufbpfjj4mi838t59lhnv Query : select st.usalote valor from st where st.ref = '328.9345.00.1'
20241004@184423.5067 1bt7i8ufbpfjj4mi838t59lhnv Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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.9345.00.1'
20241004@184423.5268 1bt7i8ufbpfjj4mi838t59lhnv Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@184423.5285 1bt7i8ufbpfjj4mi838t59lhnv Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241004@184423.5325 1bt7i8ufbpfjj4mi838t59lhnv Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@184423.5344 1bt7i8ufbpfjj4mi838t59lhnv Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241004@184423.5353 1bt7i8ufbpfjj4mi838t59lhnv Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241004@184423.5380 1bt7i8ufbpfjj4mi838t59lhnv Query : select sestamp valor from se where ref ='328.9345.00.1' and lote = 'r2101101300a'
20241004@184423.5414 1bt7i8ufbpfjj4mi838t59lhnv Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@184423.5434 1bt7i8ufbpfjj4mi838t59lhnv Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241004@184423.5448 1bt7i8ufbpfjj4mi838t59lhnv Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut67002421826700297784','aut6700254723670029773b' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241004@184423.5454 1bt7i8ufbpfjj4mi838t59lhnv Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@184423.5471 1bt7i8ufbpfjj4mi838t59lhnv Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241004@184423.5509 1bt7i8ufbpfjj4mi838t59lhnv Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem) values ('aut67002421826700297784',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',1.000 ,'aut6700254723670029773b' ,0,0 ,2,23.00,40000,?,?,?,?)
20241004@184423.5838 1bt7i8ufbpfjj4mi838t59lhnv Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@184423.5864 1bt7i8ufbpfjj4mi838t59lhnv Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241004@184423.5893 1bt7i8ufbpfjj4mi838t59lhnv Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@184423.5910 1bt7i8ufbpfjj4mi838t59lhnv Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241004@184423.5919 1bt7i8ufbpfjj4mi838t59lhnv Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241004@184423.5933 1bt7i8ufbpfjj4mi838t59lhnv Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@184423.5959 1bt7i8ufbpfjj4mi838t59lhnv Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241004@184423.5980 1bt7i8ufbpfjj4mi838t59lhnv Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut67002569116700297790','aut6700254723670029773b' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241004@184423.5984 1bt7i8ufbpfjj4mi838t59lhnv Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@184423.6007 1bt7i8ufbpfjj4mi838t59lhnv Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241004@184423.6051 1bt7i8ufbpfjj4mi838t59lhnv Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut67002569116700297790',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut6700254723670029773b' ,0,0 ,2,23.00,50000,?,?,?)
20241004@184423.6377 1bt7i8ufbpfjj4mi838t59lhnv Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut6700254723670029773b','2406392','wait',39,'adm09112754980.682000002')
20241004@184423.6460 1bt7i8ufbpfjj4mi838t59lhnv Query : use flama_phc
20241004@184423.6465 1bt7i8ufbpfjj4mi838t59lhnv Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20241004@184423.6498 1bt7i8ufbpfjj4mi838t59lhnv Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2415';
20241004@184423.6533 1bt7i8ufbpfjj4mi838t59lhnv Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2415';
20241004@184423.6579 1bt7i8ufbpfjj4mi838t59lhnv Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2415';
20241004@184423.6609 1bt7i8ufbpfjj4mi838t59lhnv Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2415';
20241004@184423.7130 it99mf2r5b9roi04ds9gc54ppo Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20241004@184423.7142 it99mf2r5b9roi04ds9gc54ppo Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20241004@184423.7205 it99mf2r5b9roi04ds9gc54ppo Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2416';
20241004@184423.7271 it99mf2r5b9roi04ds9gc54ppo Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2416';
20241004@184423.7328 it99mf2r5b9roi04ds9gc54ppo Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2416';
20241004@184423.7361 it99mf2r5b9roi04ds9gc54ppo Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2416';
20241004@184423.7411 it99mf2r5b9roi04ds9gc54ppo Query : use flama_phc
20241004@184423.7415 it99mf2r5b9roi04ds9gc54ppo Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20241004@184423.7478 it99mf2r5b9roi04ds9gc54ppo Query : use flama_phc
20241004@184423.7482 it99mf2r5b9roi04ds9gc54ppo Query : select no, estab,szadrsdesc from szadrs where u_coddest=4740
20241004@184423.7532 it99mf2r5b9roi04ds9gc54ppo 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'
20241004@184423.7720 it99mf2r5b9roi04ds9gc54ppo 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'
20241004@184423.7740 it99mf2r5b9roi04ds9gc54ppo 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'
20241004@184423.7760 it99mf2r5b9roi04ds9gc54ppo 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'
20241004@184423.7783 it99mf2r5b9roi04ds9gc54ppo Query : use flama_phc
20241004@184423.7787 it99mf2r5b9roi04ds9gc54ppo Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20241004@184423.7820 it99mf2r5b9roi04ds9gc54ppo Query : use flama_phc
20241004@184423.7823 it99mf2r5b9roi04ds9gc54ppo Query : select top 1 1 valor from td where td.ndoc = 39
20241004@184423.7855 it99mf2r5b9roi04ds9gc54ppo Query : use flama_phc
20241004@184423.7859 it99mf2r5b9roi04ds9gc54ppo 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')
20241004@184423.7888 it99mf2r5b9roi04ds9gc54ppo 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
20241004@184423.7926 it99mf2r5b9roi04ds9gc54ppo Query : use flama_phc
20241004@184423.7930 it99mf2r5b9roi04ds9gc54ppo Query : select top 1 ~inactivo valor from cl where no = '100810' and estab = 0 order by inactivo desc
20241004@184423.7965 it99mf2r5b9roi04ds9gc54ppo Query : use flama_phc
20241004@184423.7970 it99mf2r5b9roi04ds9gc54ppo Query : select top 1 tipodoc,regrd from td where ndoc = 39
20241004@184423.8000 it99mf2r5b9roi04ds9gc54ppo Query : use flama_phc
20241004@184423.8003 it99mf2r5b9roi04ds9gc54ppo Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20241004@184423.8044 it99mf2r5b9roi04ds9gc54ppo Query : use flama_phc
20241004@184423.8048 it99mf2r5b9roi04ds9gc54ppo Query : select szadrsstamp valor from szadrs where szadrsdesc='100810 - worten-equipamentos para o lar,sa.'
20241004@184423.8095 it99mf2r5b9roi04ds9gc54ppo Query : use flama_phc
20241004@184423.8099 it99mf2r5b9roi04ds9gc54ppo Query : select 1 valor from td where ndoc = 39
20241004@184423.8114 it99mf2r5b9roi04ds9gc54ppo Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20241004@184423.8129 it99mf2r5b9roi04ds9gc54ppo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@184423.8147 it99mf2r5b9roi04ds9gc54ppo Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20241004@184423.8170 it99mf2r5b9roi04ds9gc54ppo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@184423.8187 it99mf2r5b9roi04ds9gc54ppo Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20241004@184423.8216 it99mf2r5b9roi04ds9gc54ppo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@184423.8231 it99mf2r5b9roi04ds9gc54ppo Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20241004@184423.8244 it99mf2r5b9roi04ds9gc54ppo Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20241004@184423.8312 it99mf2r5b9roi04ds9gc54ppo Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20241004@184423.8327 it99mf2r5b9roi04ds9gc54ppo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@184423.8344 it99mf2r5b9roi04ds9gc54ppo Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20241004@184423.8361 it99mf2r5b9roi04ds9gc54ppo Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut670025764867002977c9' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20241004@184423.8566 it99mf2r5b9roi04ds9gc54ppo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@184423.8596 it99mf2r5b9roi04ds9gc54ppo Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20241004@184423.8631 it99mf2r5b9roi04ds9gc54ppo Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20241004@184423.8643 it99mf2r5b9roi04ds9gc54ppo Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20241004@184423.8656 it99mf2r5b9roi04ds9gc54ppo Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20241004@184423.8669 it99mf2r5b9roi04ds9gc54ppo Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20241004@184423.8681 it99mf2r5b9roi04ds9gc54ppo Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20241004@184423.8693 it99mf2r5b9roi04ds9gc54ppo Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20241004@184423.8705 it99mf2r5b9roi04ds9gc54ppo Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut670025764867002977c9',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20241004@184423.9005 it99mf2r5b9roi04ds9gc54ppo Query : select top 1 fno valor from wsftdata order by fno desc
20241004@184423.9028 it99mf2r5b9roi04ds9gc54ppo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@184423.9046 it99mf2r5b9roi04ds9gc54ppo Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20241004@184423.9073 it99mf2r5b9roi04ds9gc54ppo Query : select 'normal' from dummy
20241004@184423.9088 it99mf2r5b9roi04ds9gc54ppo Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut670025764867002977c9',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',1083,100810,0,'2024-10-04',39,'euro',0,0,2024 ,?,?)
20241004@184423.9491 it99mf2r5b9roi04ds9gc54ppo Query : use flama_phc
20241004@184423.9494 it99mf2r5b9roi04ds9gc54ppo Query : select st.usalote valor from st where st.ref = '324.4970.00.1'
20241004@184423.9518 it99mf2r5b9roi04ds9gc54ppo Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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'
20241004@184423.9696 it99mf2r5b9roi04ds9gc54ppo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@184423.9715 it99mf2r5b9roi04ds9gc54ppo Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241004@184423.9742 it99mf2r5b9roi04ds9gc54ppo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@184423.9757 it99mf2r5b9roi04ds9gc54ppo Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241004@184423.9766 it99mf2r5b9roi04ds9gc54ppo Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241004@184423.9778 it99mf2r5b9roi04ds9gc54ppo Query : select sestamp valor from se where ref ='324.4970.00.1' and lote = 'r2400205200a'
20241004@184423.9805 it99mf2r5b9roi04ds9gc54ppo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@184423.9824 it99mf2r5b9roi04ds9gc54ppo Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241004@184423.9836 it99mf2r5b9roi04ds9gc54ppo Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut670022784367002977ef','aut670025764867002977c9' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241004@184423.9842 it99mf2r5b9roi04ds9gc54ppo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@184423.9860 it99mf2r5b9roi04ds9gc54ppo Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241004@184423.9895 it99mf2r5b9roi04ds9gc54ppo Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem) values ('aut670022784367002977ef',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',8.000 ,'aut670025764867002977c9' ,0,0 ,2,23.00,10000,?,?,?,?)
20241004@184424.2190 it99mf2r5b9roi04ds9gc54ppo Query : use flama_phc
20241004@184424.2220 it99mf2r5b9roi04ds9gc54ppo Query : select st.usalote valor from st where st.ref = '324.4970.00.1'
20241004@184424.2430 it99mf2r5b9roi04ds9gc54ppo Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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'
20241004@184424.2570 it99mf2r5b9roi04ds9gc54ppo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@184424.2760 it99mf2r5b9roi04ds9gc54ppo Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241004@184424.3010 it99mf2r5b9roi04ds9gc54ppo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@184424.3200 it99mf2r5b9roi04ds9gc54ppo Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241004@184424.3290 it99mf2r5b9roi04ds9gc54ppo Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241004@184424.3460 it99mf2r5b9roi04ds9gc54ppo Query : select sestamp valor from se where ref ='324.4970.00.1' and lote = 'r2400205200a'
20241004@184424.3690 it99mf2r5b9roi04ds9gc54ppo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@184424.3860 it99mf2r5b9roi04ds9gc54ppo Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241004@184424.4010 it99mf2r5b9roi04ds9gc54ppo Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut67002247726700297809','aut670025764867002977c9' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241004@184424.4070 it99mf2r5b9roi04ds9gc54ppo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@184424.4260 it99mf2r5b9roi04ds9gc54ppo Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241004@184424.4550 it99mf2r5b9roi04ds9gc54ppo Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem) values ('aut67002247726700297809',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',52.000 ,'aut670025764867002977c9' ,0,0 ,2,23.00,20000,?,?,?,?)
20241004@184424.7580 it99mf2r5b9roi04ds9gc54ppo Query : use flama_phc
20241004@184424.7610 it99mf2r5b9roi04ds9gc54ppo Query : select st.usalote valor from st where st.ref = '324.4970.00.1'
20241004@184424.7810 it99mf2r5b9roi04ds9gc54ppo Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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'
20241004@184424.7950 it99mf2r5b9roi04ds9gc54ppo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@184424.8160 it99mf2r5b9roi04ds9gc54ppo Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241004@184424.8420 it99mf2r5b9roi04ds9gc54ppo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@184424.8570 it99mf2r5b9roi04ds9gc54ppo Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241004@184424.8660 it99mf2r5b9roi04ds9gc54ppo Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241004@184424.8780 it99mf2r5b9roi04ds9gc54ppo Query : select sestamp valor from se where ref ='324.4970.00.1' and lote = 'r2400205200a'
20241004@184424.9000 it99mf2r5b9roi04ds9gc54ppo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@184424.9170 it99mf2r5b9roi04ds9gc54ppo Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241004@184424.9290 it99mf2r5b9roi04ds9gc54ppo Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut67002168236700297815','aut670025764867002977c9' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241004@184424.9330 it99mf2r5b9roi04ds9gc54ppo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@184424.9480 it99mf2r5b9roi04ds9gc54ppo Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241004@184424.9760 it99mf2r5b9roi04ds9gc54ppo Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem) values ('aut67002168236700297815',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',96.000 ,'aut670025764867002977c9' ,0,0 ,2,23.00,30000,?,?,?,?)
20241004@184424.1268 it99mf2r5b9roi04ds9gc54ppo Query : use flama_phc
20241004@184424.1272 it99mf2r5b9roi04ds9gc54ppo Query : select st.usalote valor from st where st.ref = '324.4970.00.1'
20241004@184424.1293 it99mf2r5b9roi04ds9gc54ppo Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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'
20241004@184424.1308 it99mf2r5b9roi04ds9gc54ppo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@184424.1328 it99mf2r5b9roi04ds9gc54ppo Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241004@184424.1354 it99mf2r5b9roi04ds9gc54ppo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@184424.1374 it99mf2r5b9roi04ds9gc54ppo Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241004@184424.1383 it99mf2r5b9roi04ds9gc54ppo Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241004@184424.1397 it99mf2r5b9roi04ds9gc54ppo Query : select sestamp valor from se where ref ='324.4970.00.1' and lote = 'r2400205200a'
20241004@184424.1420 it99mf2r5b9roi04ds9gc54ppo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@184424.1438 it99mf2r5b9roi04ds9gc54ppo Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241004@184424.1452 it99mf2r5b9roi04ds9gc54ppo Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut67002718926700297822','aut670025764867002977c9' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241004@184424.1458 it99mf2r5b9roi04ds9gc54ppo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@184424.1473 it99mf2r5b9roi04ds9gc54ppo Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241004@184424.1500 it99mf2r5b9roi04ds9gc54ppo Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem) values ('aut67002718926700297822',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',96.000 ,'aut670025764867002977c9' ,0,0 ,2,23.00,40000,?,?,?,?)
20241004@184424.1790 it99mf2r5b9roi04ds9gc54ppo Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut670025764867002977c9','2406393','wait',39,'adm09112754980.682000002')
20241004@184424.1866 it99mf2r5b9roi04ds9gc54ppo Query : use flama_phc
20241004@184424.1869 it99mf2r5b9roi04ds9gc54ppo Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20241004@184424.1904 it99mf2r5b9roi04ds9gc54ppo Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2416';
20241004@184424.1937 it99mf2r5b9roi04ds9gc54ppo Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2416';
20241004@184424.1982 it99mf2r5b9roi04ds9gc54ppo Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2416';
20241004@184424.2010 it99mf2r5b9roi04ds9gc54ppo Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2416';
20241004@184424.2715 5h5moptvfd62lg64l5m16k38d2 Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20241004@184424.2741 5h5moptvfd62lg64l5m16k38d2 Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20241004@184424.2966 5h5moptvfd62lg64l5m16k38d2 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2417';
20241004@184424.3085 5h5moptvfd62lg64l5m16k38d2 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2417';
20241004@184424.3163 5h5moptvfd62lg64l5m16k38d2 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2417';
20241004@184424.3702 5h5moptvfd62lg64l5m16k38d2 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2417';
20241004@184424.5493 5h5moptvfd62lg64l5m16k38d2 Query : use flama_phc
20241004@184424.5503 5h5moptvfd62lg64l5m16k38d2 Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20241004@184424.5775 5h5moptvfd62lg64l5m16k38d2 Query : use flama_phc
20241004@184424.5847 5h5moptvfd62lg64l5m16k38d2 Query : select no, estab,szadrsdesc from szadrs where u_coddest=4790
20241004@184424.6059 5h5moptvfd62lg64l5m16k38d2 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1706.00.1'
20241004@184424.6391 5h5moptvfd62lg64l5m16k38d2 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '304.421.00.04'
20241004@184424.6431 5h5moptvfd62lg64l5m16k38d2 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '304.421.00.04'
20241004@184424.6459 5h5moptvfd62lg64l5m16k38d2 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '325.551.00.15'
20241004@184424.6736 5h5moptvfd62lg64l5m16k38d2 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '325.551.00.15'
20241004@184424.6763 5h5moptvfd62lg64l5m16k38d2 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'
20241004@184424.7954 5h5moptvfd62lg64l5m16k38d2 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'
20241004@184424.8108 5h5moptvfd62lg64l5m16k38d2 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '304.4320.00.1'
20241004@184424.8654 5h5moptvfd62lg64l5m16k38d2 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '304.4320.00.1'
20241004@184424.8926 5h5moptvfd62lg64l5m16k38d2 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '304.4320.00.1'
20241004@184424.9338 5h5moptvfd62lg64l5m16k38d2 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '304.4320.00.1'
20241004@184424.9516 5h5moptvfd62lg64l5m16k38d2 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '304.4320.00.1'
20241004@184424.9727 5h5moptvfd62lg64l5m16k38d2 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1716.00.1'
20241004@184425.5900 5h5moptvfd62lg64l5m16k38d2 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '304.4860.00.1'
20241004@184425.2490 5h5moptvfd62lg64l5m16k38d2 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '304.4860.00.1'
20241004@184425.2830 5h5moptvfd62lg64l5m16k38d2 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.4902.00.1'
20241004@184425.4610 5h5moptvfd62lg64l5m16k38d2 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.4902.00.1'
20241004@184425.4900 5h5moptvfd62lg64l5m16k38d2 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.4906.00.1'
20241004@184425.6800 5h5moptvfd62lg64l5m16k38d2 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.4521.00.1'
20241004@184425.8660 5h5moptvfd62lg64l5m16k38d2 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.2066.00.1'
20241004@184425.1040 5h5moptvfd62lg64l5m16k38d2 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.2066.00.1'
20241004@184425.1066 5h5moptvfd62lg64l5m16k38d2 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'
20241004@184425.1243 5h5moptvfd62lg64l5m16k38d2 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'
20241004@184425.1270 5h5moptvfd62lg64l5m16k38d2 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'
20241004@184425.1295 5h5moptvfd62lg64l5m16k38d2 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.4964.00.1'
20241004@184425.1480 5h5moptvfd62lg64l5m16k38d2 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.4963.00.1'
20241004@184425.1661 5h5moptvfd62lg64l5m16k38d2 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'
20241004@184425.1794 5h5moptvfd62lg64l5m16k38d2 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.4961.00.1'
20241004@184425.1917 5h5moptvfd62lg64l5m16k38d2 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.4961.00.1'
20241004@184425.1938 5h5moptvfd62lg64l5m16k38d2 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'
20241004@184425.2071 5h5moptvfd62lg64l5m16k38d2 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'
20241004@184425.2206 5h5moptvfd62lg64l5m16k38d2 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'
20241004@184425.2357 5h5moptvfd62lg64l5m16k38d2 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1426.00.1'
20241004@184425.2518 5h5moptvfd62lg64l5m16k38d2 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1426.00.1'
20241004@184425.2562 5h5moptvfd62lg64l5m16k38d2 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.4980.00.1'
20241004@184425.2894 5h5moptvfd62lg64l5m16k38d2 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.4980.00.1'
20241004@184425.2916 5h5moptvfd62lg64l5m16k38d2 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.4980.00.1'
20241004@184425.2947 5h5moptvfd62lg64l5m16k38d2 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.4585.00.1'
20241004@184425.3133 5h5moptvfd62lg64l5m16k38d2 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'
20241004@184425.3332 5h5moptvfd62lg64l5m16k38d2 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'
20241004@184425.3355 5h5moptvfd62lg64l5m16k38d2 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'
20241004@184425.3534 5h5moptvfd62lg64l5m16k38d2 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'
20241004@184425.3556 5h5moptvfd62lg64l5m16k38d2 Query : use flama_phc
20241004@184425.3560 5h5moptvfd62lg64l5m16k38d2 Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20241004@184425.3597 5h5moptvfd62lg64l5m16k38d2 Query : use flama_phc
20241004@184425.3601 5h5moptvfd62lg64l5m16k38d2 Query : select top 1 1 valor from td where td.ndoc = 39
20241004@184425.3638 5h5moptvfd62lg64l5m16k38d2 Query : use flama_phc
20241004@184425.3642 5h5moptvfd62lg64l5m16k38d2 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')
20241004@184425.3673 5h5moptvfd62lg64l5m16k38d2 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
20241004@184425.3710 5h5moptvfd62lg64l5m16k38d2 Query : use flama_phc
20241004@184425.3719 5h5moptvfd62lg64l5m16k38d2 Query : select top 1 ~inactivo valor from cl where no = '199510' and estab = 0 order by inactivo desc
20241004@184425.3853 5h5moptvfd62lg64l5m16k38d2 Query : use flama_phc
20241004@184425.3857 5h5moptvfd62lg64l5m16k38d2 Query : select top 1 tipodoc,regrd from td where ndoc = 39
20241004@184425.3890 5h5moptvfd62lg64l5m16k38d2 Query : use flama_phc
20241004@184425.3893 5h5moptvfd62lg64l5m16k38d2 Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20241004@184425.3938 5h5moptvfd62lg64l5m16k38d2 Query : use flama_phc
20241004@184425.3941 5h5moptvfd62lg64l5m16k38d2 Query : select szadrsstamp valor from szadrs where szadrsdesc='199510 - cdnogueira regedoura'
20241004@184425.3989 5h5moptvfd62lg64l5m16k38d2 Query : use flama_phc
20241004@184425.3993 5h5moptvfd62lg64l5m16k38d2 Query : select 1 valor from td where ndoc = 39
20241004@184425.4007 5h5moptvfd62lg64l5m16k38d2 Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20241004@184425.4023 5h5moptvfd62lg64l5m16k38d2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@184425.4042 5h5moptvfd62lg64l5m16k38d2 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20241004@184425.4065 5h5moptvfd62lg64l5m16k38d2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@184425.4081 5h5moptvfd62lg64l5m16k38d2 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20241004@184425.4114 5h5moptvfd62lg64l5m16k38d2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@184425.4130 5h5moptvfd62lg64l5m16k38d2 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20241004@184425.4144 5h5moptvfd62lg64l5m16k38d2 Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20241004@184425.4214 5h5moptvfd62lg64l5m16k38d2 Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20241004@184425.4230 5h5moptvfd62lg64l5m16k38d2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@184425.4248 5h5moptvfd62lg64l5m16k38d2 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20241004@184425.4267 5h5moptvfd62lg64l5m16k38d2 Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut67002083446700297965' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20241004@184425.4457 5h5moptvfd62lg64l5m16k38d2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@184425.4477 5h5moptvfd62lg64l5m16k38d2 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20241004@184425.4517 5h5moptvfd62lg64l5m16k38d2 Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20241004@184425.4530 5h5moptvfd62lg64l5m16k38d2 Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20241004@184425.4545 5h5moptvfd62lg64l5m16k38d2 Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20241004@184425.4559 5h5moptvfd62lg64l5m16k38d2 Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20241004@184425.4574 5h5moptvfd62lg64l5m16k38d2 Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20241004@184425.4588 5h5moptvfd62lg64l5m16k38d2 Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20241004@184425.4602 5h5moptvfd62lg64l5m16k38d2 Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut67002083446700297965',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20241004@184425.4868 5h5moptvfd62lg64l5m16k38d2 Query : select top 1 fno valor from wsftdata order by fno desc
20241004@184425.4891 5h5moptvfd62lg64l5m16k38d2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@184425.4908 5h5moptvfd62lg64l5m16k38d2 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20241004@184425.4933 5h5moptvfd62lg64l5m16k38d2 Query : select 'normal' from dummy
20241004@184425.4948 5h5moptvfd62lg64l5m16k38d2 Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut67002083446700297965',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',1084,199510,0,'2024-10-04',39,'euro',0,0,2024 ,?,?)
20241004@184425.5245 5h5moptvfd62lg64l5m16k38d2 Query : use flama_phc
20241004@184425.5248 5h5moptvfd62lg64l5m16k38d2 Query : select st.usalote valor from st where st.ref = '324.1706.00.1'
20241004@184425.5282 5h5moptvfd62lg64l5m16k38d2 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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.1706.00.1'
20241004@184425.5443 5h5moptvfd62lg64l5m16k38d2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@184425.5460 5h5moptvfd62lg64l5m16k38d2 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241004@184425.5501 5h5moptvfd62lg64l5m16k38d2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@184425.5517 5h5moptvfd62lg64l5m16k38d2 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241004@184425.5526 5h5moptvfd62lg64l5m16k38d2 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241004@184425.5541 5h5moptvfd62lg64l5m16k38d2 Query : select sestamp valor from se where ref ='324.1706.00.1' and lote = 'r2100123100b'
20241004@184425.5589 5h5moptvfd62lg64l5m16k38d2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@184425.5605 5h5moptvfd62lg64l5m16k38d2 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241004@184425.5621 5h5moptvfd62lg64l5m16k38d2 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut67002331746700297988','aut67002083446700297965' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241004@184425.5647 5h5moptvfd62lg64l5m16k38d2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@184425.5664 5h5moptvfd62lg64l5m16k38d2 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241004@184425.5695 5h5moptvfd62lg64l5m16k38d2 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem) values ('aut67002331746700297988',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',20.000 ,'aut67002083446700297965' ,0,0 ,2,23.00,10000,?,?,?,?)
20241004@184425.5994 5h5moptvfd62lg64l5m16k38d2 Query : use flama_phc
20241004@184425.5998 5h5moptvfd62lg64l5m16k38d2 Query : select st.usalote valor from st where st.ref = '304.421.00.04'
20241004@184425.6059 5h5moptvfd62lg64l5m16k38d2 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '304.421.00.04'
20241004@184425.6086 5h5moptvfd62lg64l5m16k38d2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@184425.6105 5h5moptvfd62lg64l5m16k38d2 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241004@184425.6133 5h5moptvfd62lg64l5m16k38d2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@184425.6149 5h5moptvfd62lg64l5m16k38d2 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241004@184425.6160 5h5moptvfd62lg64l5m16k38d2 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241004@184425.6174 5h5moptvfd62lg64l5m16k38d2 Query : select sestamp valor from se where ref ='304.421.00.04' and lote = '241001'
20241004@184425.6191 5h5moptvfd62lg64l5m16k38d2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@184425.6226 5h5moptvfd62lg64l5m16k38d2 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241004@184425.6238 5h5moptvfd62lg64l5m16k38d2 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut67002685956700297997','aut67002083446700297965' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241004@184425.6243 5h5moptvfd62lg64l5m16k38d2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@184425.6261 5h5moptvfd62lg64l5m16k38d2 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241004@184425.6290 5h5moptvfd62lg64l5m16k38d2 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem) values ('aut67002685956700297997',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',20.000 ,'aut67002083446700297965' ,0,0 ,2,23.00,20000,?,?,?,?)
20241004@184425.6653 5h5moptvfd62lg64l5m16k38d2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@184425.6674 5h5moptvfd62lg64l5m16k38d2 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241004@184425.6706 5h5moptvfd62lg64l5m16k38d2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@184425.6725 5h5moptvfd62lg64l5m16k38d2 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241004@184425.6736 5h5moptvfd62lg64l5m16k38d2 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241004@184425.6751 5h5moptvfd62lg64l5m16k38d2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@184425.6769 5h5moptvfd62lg64l5m16k38d2 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241004@184425.6783 5h5moptvfd62lg64l5m16k38d2 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut670029959467002979a4','aut67002083446700297965' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241004@184425.6788 5h5moptvfd62lg64l5m16k38d2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@184425.6806 5h5moptvfd62lg64l5m16k38d2 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241004@184425.6851 5h5moptvfd62lg64l5m16k38d2 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut670029959467002979a4',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut67002083446700297965' ,0,0 ,2,23.00,30000,?,?,?)
20241004@184425.7134 5h5moptvfd62lg64l5m16k38d2 Query : use flama_phc
20241004@184425.7138 5h5moptvfd62lg64l5m16k38d2 Query : select st.usalote valor from st where st.ref = '304.421.00.04'
20241004@184425.7173 5h5moptvfd62lg64l5m16k38d2 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '304.421.00.04'
20241004@184425.7190 5h5moptvfd62lg64l5m16k38d2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@184425.7207 5h5moptvfd62lg64l5m16k38d2 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241004@184425.7248 5h5moptvfd62lg64l5m16k38d2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@184425.7263 5h5moptvfd62lg64l5m16k38d2 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241004@184425.7273 5h5moptvfd62lg64l5m16k38d2 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241004@184425.7286 5h5moptvfd62lg64l5m16k38d2 Query : select sestamp valor from se where ref ='304.421.00.04' and lote = '241001'
20241004@184425.7299 5h5moptvfd62lg64l5m16k38d2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@184425.7315 5h5moptvfd62lg64l5m16k38d2 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241004@184425.7329 5h5moptvfd62lg64l5m16k38d2 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut670028037367002979b2','aut67002083446700297965' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241004@184425.7333 5h5moptvfd62lg64l5m16k38d2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@184425.7361 5h5moptvfd62lg64l5m16k38d2 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241004@184425.7404 5h5moptvfd62lg64l5m16k38d2 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem) values ('aut670028037367002979b2',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',80.000 ,'aut67002083446700297965' ,0,0 ,2,23.00,50000,?,?,?,?)
20241004@184425.7689 5h5moptvfd62lg64l5m16k38d2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@184425.7706 5h5moptvfd62lg64l5m16k38d2 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241004@184425.7733 5h5moptvfd62lg64l5m16k38d2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@184425.7749 5h5moptvfd62lg64l5m16k38d2 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241004@184425.7759 5h5moptvfd62lg64l5m16k38d2 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241004@184425.7786 5h5moptvfd62lg64l5m16k38d2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@184425.7805 5h5moptvfd62lg64l5m16k38d2 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241004@184425.7818 5h5moptvfd62lg64l5m16k38d2 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut670023372767002979be','aut67002083446700297965' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241004@184425.7822 5h5moptvfd62lg64l5m16k38d2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@184425.7847 5h5moptvfd62lg64l5m16k38d2 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241004@184425.7884 5h5moptvfd62lg64l5m16k38d2 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut670023372767002979be',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut67002083446700297965' ,0,0 ,2,23.00,60000,?,?,?)
20241004@184425.8126 5h5moptvfd62lg64l5m16k38d2 Query : use flama_phc
20241004@184425.8129 5h5moptvfd62lg64l5m16k38d2 Query : select st.usalote valor from st where st.ref = '325.551.00.15'
20241004@184425.8150 5h5moptvfd62lg64l5m16k38d2 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '325.551.00.15'
20241004@184425.8289 5h5moptvfd62lg64l5m16k38d2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@184425.8306 5h5moptvfd62lg64l5m16k38d2 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241004@184425.8333 5h5moptvfd62lg64l5m16k38d2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@184425.8349 5h5moptvfd62lg64l5m16k38d2 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241004@184425.8358 5h5moptvfd62lg64l5m16k38d2 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241004@184425.8370 5h5moptvfd62lg64l5m16k38d2 Query : select sestamp valor from se where ref ='325.551.00.15' and lote = 'r210109070'
20241004@184425.8399 5h5moptvfd62lg64l5m16k38d2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@184425.8418 5h5moptvfd62lg64l5m16k38d2 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241004@184425.8432 5h5moptvfd62lg64l5m16k38d2 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut670028548767002979cd','aut67002083446700297965' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241004@184425.8437 5h5moptvfd62lg64l5m16k38d2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@184425.8455 5h5moptvfd62lg64l5m16k38d2 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241004@184425.8486 5h5moptvfd62lg64l5m16k38d2 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem) values ('aut670028548767002979cd',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',6.000 ,'aut67002083446700297965' ,0,0 ,2,23.00,80000,?,?,?,?)
20241004@184425.8813 5h5moptvfd62lg64l5m16k38d2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@184425.8828 5h5moptvfd62lg64l5m16k38d2 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241004@184425.8870 5h5moptvfd62lg64l5m16k38d2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@184425.8890 5h5moptvfd62lg64l5m16k38d2 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241004@184425.8901 5h5moptvfd62lg64l5m16k38d2 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241004@184425.8916 5h5moptvfd62lg64l5m16k38d2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@184425.8932 5h5moptvfd62lg64l5m16k38d2 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241004@184425.8945 5h5moptvfd62lg64l5m16k38d2 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut670021584367002979d9','aut67002083446700297965' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241004@184425.8949 5h5moptvfd62lg64l5m16k38d2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@184425.8965 5h5moptvfd62lg64l5m16k38d2 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241004@184425.8994 5h5moptvfd62lg64l5m16k38d2 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut670021584367002979d9',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut67002083446700297965' ,0,0 ,2,23.00,90000,?,?,?)
20241004@184425.9257 5h5moptvfd62lg64l5m16k38d2 Query : use flama_phc
20241004@184425.9260 5h5moptvfd62lg64l5m16k38d2 Query : select st.usalote valor from st where st.ref = '325.551.00.15'
20241004@184425.9280 5h5moptvfd62lg64l5m16k38d2 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '325.551.00.15'
20241004@184425.9296 5h5moptvfd62lg64l5m16k38d2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@184425.9312 5h5moptvfd62lg64l5m16k38d2 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241004@184425.9346 5h5moptvfd62lg64l5m16k38d2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@184425.9360 5h5moptvfd62lg64l5m16k38d2 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241004@184425.9372 5h5moptvfd62lg64l5m16k38d2 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241004@184425.9384 5h5moptvfd62lg64l5m16k38d2 Query : select sestamp valor from se where ref ='325.551.00.15' and lote = 'r210109070'
20241004@184425.9397 5h5moptvfd62lg64l5m16k38d2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@184425.9410 5h5moptvfd62lg64l5m16k38d2 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241004@184425.9421 5h5moptvfd62lg64l5m16k38d2 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut670028528667002979e5','aut67002083446700297965' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241004@184425.9425 5h5moptvfd62lg64l5m16k38d2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@184425.9447 5h5moptvfd62lg64l5m16k38d2 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241004@184425.9479 5h5moptvfd62lg64l5m16k38d2 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem) values ('aut670028528667002979e5',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',54.000 ,'aut67002083446700297965' ,0,0 ,2,23.00,110000,?,?,?,?)
20241004@184425.9749 5h5moptvfd62lg64l5m16k38d2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@184425.9770 5h5moptvfd62lg64l5m16k38d2 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241004@184425.9794 5h5moptvfd62lg64l5m16k38d2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@184425.9807 5h5moptvfd62lg64l5m16k38d2 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241004@184425.9818 5h5moptvfd62lg64l5m16k38d2 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241004@184425.9832 5h5moptvfd62lg64l5m16k38d2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@184425.9846 5h5moptvfd62lg64l5m16k38d2 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241004@184425.9876 5h5moptvfd62lg64l5m16k38d2 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut670024386767002979f0','aut67002083446700297965' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241004@184425.9881 5h5moptvfd62lg64l5m16k38d2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@184425.9920 5h5moptvfd62lg64l5m16k38d2 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241004@184425.9951 5h5moptvfd62lg64l5m16k38d2 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut670024386767002979f0',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut67002083446700297965' ,0,0 ,2,23.00,120000,?,?,?)
20241004@184426.2190 5h5moptvfd62lg64l5m16k38d2 Query : use flama_phc
20241004@184426.2220 5h5moptvfd62lg64l5m16k38d2 Query : select st.usalote valor from st where st.ref = '324.958.00.01'
20241004@184426.2490 5h5moptvfd62lg64l5m16k38d2 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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'
20241004@184426.1526 5h5moptvfd62lg64l5m16k38d2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@184426.1542 5h5moptvfd62lg64l5m16k38d2 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241004@184426.1568 5h5moptvfd62lg64l5m16k38d2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@184426.1583 5h5moptvfd62lg64l5m16k38d2 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241004@184426.1593 5h5moptvfd62lg64l5m16k38d2 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241004@184426.1607 5h5moptvfd62lg64l5m16k38d2 Query : select sestamp valor from se where ref ='324.958.00.01' and lote = 'r2400240200a'
20241004@184426.1623 5h5moptvfd62lg64l5m16k38d2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@184426.1640 5h5moptvfd62lg64l5m16k38d2 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241004@184426.1651 5h5moptvfd62lg64l5m16k38d2 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut67002980586700297a27','aut67002083446700297965' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241004@184426.1656 5h5moptvfd62lg64l5m16k38d2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@184426.1671 5h5moptvfd62lg64l5m16k38d2 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241004@184426.1701 5h5moptvfd62lg64l5m16k38d2 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem) values ('aut67002980586700297a27',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',48.000 ,'aut67002083446700297965' ,0,0 ,2,23.00,140000,?,?,?,?)
20241004@184426.1977 5h5moptvfd62lg64l5m16k38d2 Query : use flama_phc
20241004@184426.1980 5h5moptvfd62lg64l5m16k38d2 Query : select st.usalote valor from st where st.ref = '324.958.00.01'
20241004@184426.2040 5h5moptvfd62lg64l5m16k38d2 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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'
20241004@184426.2054 5h5moptvfd62lg64l5m16k38d2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@184426.2084 5h5moptvfd62lg64l5m16k38d2 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241004@184426.2229 5h5moptvfd62lg64l5m16k38d2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@184426.2364 5h5moptvfd62lg64l5m16k38d2 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241004@184426.2444 5h5moptvfd62lg64l5m16k38d2 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241004@184426.2487 5h5moptvfd62lg64l5m16k38d2 Query : select sestamp valor from se where ref ='324.958.00.01' and lote = 'r2400240200a'
20241004@184426.2523 5h5moptvfd62lg64l5m16k38d2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@184426.2687 5h5moptvfd62lg64l5m16k38d2 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241004@184426.2923 5h5moptvfd62lg64l5m16k38d2 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut67002391826700297a3d','aut67002083446700297965' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241004@184426.2956 5h5moptvfd62lg64l5m16k38d2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@184426.3056 5h5moptvfd62lg64l5m16k38d2 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241004@184426.3318 5h5moptvfd62lg64l5m16k38d2 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem) values ('aut67002391826700297a3d',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',4.000 ,'aut67002083446700297965' ,0,0 ,2,23.00,150000,?,?,?,?)
20241004@184426.3605 5h5moptvfd62lg64l5m16k38d2 Query : use flama_phc
20241004@184426.3610 5h5moptvfd62lg64l5m16k38d2 Query : select st.usalote valor from st where st.ref = '304.4320.00.1'
20241004@184426.3675 5h5moptvfd62lg64l5m16k38d2 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '304.4320.00.1'
20241004@184426.3838 5h5moptvfd62lg64l5m16k38d2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@184426.3905 5h5moptvfd62lg64l5m16k38d2 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241004@184426.3970 5h5moptvfd62lg64l5m16k38d2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@184426.3999 5h5moptvfd62lg64l5m16k38d2 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241004@184426.4014 5h5moptvfd62lg64l5m16k38d2 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241004@184426.4048 5h5moptvfd62lg64l5m16k38d2 Query : select sestamp valor from se where ref ='304.4320.00.1' and lote = '241005'
20241004@184426.4075 5h5moptvfd62lg64l5m16k38d2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@184426.4093 5h5moptvfd62lg64l5m16k38d2 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241004@184426.4106 5h5moptvfd62lg64l5m16k38d2 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut67002176296700297a63','aut67002083446700297965' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241004@184426.4110 5h5moptvfd62lg64l5m16k38d2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@184426.4129 5h5moptvfd62lg64l5m16k38d2 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241004@184426.4167 5h5moptvfd62lg64l5m16k38d2 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem) values ('aut67002176296700297a63',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',56.000 ,'aut67002083446700297965' ,0,0 ,2,23.00,160000,?,?,?,?)
20241004@184426.4435 5h5moptvfd62lg64l5m16k38d2 Query : use flama_phc
20241004@184426.4444 5h5moptvfd62lg64l5m16k38d2 Query : select st.usalote valor from st where st.ref = '304.4320.00.1'
20241004@184426.4492 5h5moptvfd62lg64l5m16k38d2 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '304.4320.00.1'
20241004@184426.4515 5h5moptvfd62lg64l5m16k38d2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@184426.4534 5h5moptvfd62lg64l5m16k38d2 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241004@184426.4573 5h5moptvfd62lg64l5m16k38d2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@184426.4591 5h5moptvfd62lg64l5m16k38d2 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241004@184426.4603 5h5moptvfd62lg64l5m16k38d2 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241004@184426.4625 5h5moptvfd62lg64l5m16k38d2 Query : select sestamp valor from se where ref ='304.4320.00.1' and lote = '241005'
20241004@184426.4644 5h5moptvfd62lg64l5m16k38d2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@184426.4667 5h5moptvfd62lg64l5m16k38d2 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241004@184426.4682 5h5moptvfd62lg64l5m16k38d2 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut67002974306700297a71','aut67002083446700297965' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241004@184426.4687 5h5moptvfd62lg64l5m16k38d2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@184426.4703 5h5moptvfd62lg64l5m16k38d2 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241004@184426.4737 5h5moptvfd62lg64l5m16k38d2 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem) values ('aut67002974306700297a71',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',4.000 ,'aut67002083446700297965' ,0,0 ,2,23.00,170000,?,?,?,?)
20241004@184426.5059 5h5moptvfd62lg64l5m16k38d2 Query : use flama_phc
20241004@184426.5062 5h5moptvfd62lg64l5m16k38d2 Query : select st.usalote valor from st where st.ref = '304.4320.00.1'
20241004@184426.5099 5h5moptvfd62lg64l5m16k38d2 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '304.4320.00.1'
20241004@184426.5120 5h5moptvfd62lg64l5m16k38d2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@184426.5140 5h5moptvfd62lg64l5m16k38d2 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241004@184426.5173 5h5moptvfd62lg64l5m16k38d2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@184426.5189 5h5moptvfd62lg64l5m16k38d2 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241004@184426.5200 5h5moptvfd62lg64l5m16k38d2 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241004@184426.5213 5h5moptvfd62lg64l5m16k38d2 Query : select sestamp valor from se where ref ='304.4320.00.1' and lote = '241005'
20241004@184426.5228 5h5moptvfd62lg64l5m16k38d2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@184426.5244 5h5moptvfd62lg64l5m16k38d2 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241004@184426.5258 5h5moptvfd62lg64l5m16k38d2 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut67002959956700297a7f','aut67002083446700297965' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241004@184426.5262 5h5moptvfd62lg64l5m16k38d2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@184426.5278 5h5moptvfd62lg64l5m16k38d2 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241004@184426.5313 5h5moptvfd62lg64l5m16k38d2 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem) values ('aut67002959956700297a7f',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',80.000 ,'aut67002083446700297965' ,0,0 ,2,23.00,180000,?,?,?,?)
20241004@184426.5589 5h5moptvfd62lg64l5m16k38d2 Query : use flama_phc
20241004@184426.5609 5h5moptvfd62lg64l5m16k38d2 Query : select st.usalote valor from st where st.ref = '304.4320.00.1'
20241004@184426.5633 5h5moptvfd62lg64l5m16k38d2 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '304.4320.00.1'
20241004@184426.5647 5h5moptvfd62lg64l5m16k38d2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@184426.5666 5h5moptvfd62lg64l5m16k38d2 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241004@184426.5730 5h5moptvfd62lg64l5m16k38d2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@184426.5745 5h5moptvfd62lg64l5m16k38d2 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241004@184426.5754 5h5moptvfd62lg64l5m16k38d2 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241004@184426.5780 5h5moptvfd62lg64l5m16k38d2 Query : select sestamp valor from se where ref ='304.4320.00.1' and lote = '241005'
20241004@184426.5798 5h5moptvfd62lg64l5m16k38d2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@184426.5816 5h5moptvfd62lg64l5m16k38d2 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241004@184426.5827 5h5moptvfd62lg64l5m16k38d2 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut67002378496700297a8d','aut67002083446700297965' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241004@184426.5832 5h5moptvfd62lg64l5m16k38d2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@184426.5857 5h5moptvfd62lg64l5m16k38d2 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241004@184426.5902 5h5moptvfd62lg64l5m16k38d2 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem) values ('aut67002378496700297a8d',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',80.000 ,'aut67002083446700297965' ,0,0 ,2,23.00,190000,?,?,?,?)
20241004@184426.6262 5h5moptvfd62lg64l5m16k38d2 Query : use flama_phc
20241004@184426.6266 5h5moptvfd62lg64l5m16k38d2 Query : select st.usalote valor from st where st.ref = '304.4320.00.1'
20241004@184426.6326 5h5moptvfd62lg64l5m16k38d2 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '304.4320.00.1'
20241004@184426.6340 5h5moptvfd62lg64l5m16k38d2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@184426.6364 5h5moptvfd62lg64l5m16k38d2 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241004@184426.6391 5h5moptvfd62lg64l5m16k38d2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@184426.6410 5h5moptvfd62lg64l5m16k38d2 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241004@184426.6418 5h5moptvfd62lg64l5m16k38d2 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241004@184426.6436 5h5moptvfd62lg64l5m16k38d2 Query : select sestamp valor from se where ref ='304.4320.00.1' and lote = '241005'
20241004@184426.6449 5h5moptvfd62lg64l5m16k38d2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@184426.6484 5h5moptvfd62lg64l5m16k38d2 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241004@184426.6535 5h5moptvfd62lg64l5m16k38d2 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut67002517836700297a9d','aut67002083446700297965' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241004@184426.6542 5h5moptvfd62lg64l5m16k38d2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@184426.6562 5h5moptvfd62lg64l5m16k38d2 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241004@184426.6612 5h5moptvfd62lg64l5m16k38d2 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem) values ('aut67002517836700297a9d',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',80.000 ,'aut67002083446700297965' ,0,0 ,2,23.00,200000,?,?,?,?)
20241004@184426.6896 5h5moptvfd62lg64l5m16k38d2 Query : use flama_phc
20241004@184426.6900 5h5moptvfd62lg64l5m16k38d2 Query : select st.usalote valor from st where st.ref = '324.1716.00.1'
20241004@184426.6925 5h5moptvfd62lg64l5m16k38d2 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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.1716.00.1'
20241004@184426.7077 5h5moptvfd62lg64l5m16k38d2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@184426.7097 5h5moptvfd62lg64l5m16k38d2 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241004@184426.7129 5h5moptvfd62lg64l5m16k38d2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@184426.7145 5h5moptvfd62lg64l5m16k38d2 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241004@184426.7155 5h5moptvfd62lg64l5m16k38d2 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241004@184426.7170 5h5moptvfd62lg64l5m16k38d2 Query : select sestamp valor from se where ref ='324.1716.00.1' and lote = 'r2100312300a'
20241004@184426.7201 5h5moptvfd62lg64l5m16k38d2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@184426.7219 5h5moptvfd62lg64l5m16k38d2 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241004@184426.7231 5h5moptvfd62lg64l5m16k38d2 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut67002447256700297aaf','aut67002083446700297965' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241004@184426.7252 5h5moptvfd62lg64l5m16k38d2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@184426.7281 5h5moptvfd62lg64l5m16k38d2 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241004@184426.7326 5h5moptvfd62lg64l5m16k38d2 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem) values ('aut67002447256700297aaf',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',52.000 ,'aut67002083446700297965' ,0,0 ,2,23.00,210000,?,?,?,?)
20241004@184426.7720 5h5moptvfd62lg64l5m16k38d2 Query : use flama_phc
20241004@184426.7730 5h5moptvfd62lg64l5m16k38d2 Query : select st.usalote valor from st where st.ref = '304.4860.00.1'
20241004@184426.7779 5h5moptvfd62lg64l5m16k38d2 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '304.4860.00.1'
20241004@184426.7921 5h5moptvfd62lg64l5m16k38d2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@184426.7938 5h5moptvfd62lg64l5m16k38d2 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241004@184426.7978 5h5moptvfd62lg64l5m16k38d2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@184426.7992 5h5moptvfd62lg64l5m16k38d2 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241004@184426.8000 5h5moptvfd62lg64l5m16k38d2 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241004@184426.8203 5h5moptvfd62lg64l5m16k38d2 Query : select sestamp valor from se where ref ='304.4860.00.1' and lote = '241006'
20241004@184426.8226 5h5moptvfd62lg64l5m16k38d2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@184426.8242 5h5moptvfd62lg64l5m16k38d2 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241004@184426.8278 5h5moptvfd62lg64l5m16k38d2 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut67002421136700297ac8','aut67002083446700297965' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241004@184426.8282 5h5moptvfd62lg64l5m16k38d2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@184426.8300 5h5moptvfd62lg64l5m16k38d2 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241004@184426.8333 5h5moptvfd62lg64l5m16k38d2 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem) values ('aut67002421136700297ac8',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',32.000 ,'aut67002083446700297965' ,0,0 ,2,23.00,220000,?,?,?,?)
20241004@184426.8674 5h5moptvfd62lg64l5m16k38d2 Query : use flama_phc
20241004@184426.8707 5h5moptvfd62lg64l5m16k38d2 Query : select st.usalote valor from st where st.ref = '304.4860.00.1'
20241004@184426.8796 5h5moptvfd62lg64l5m16k38d2 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '304.4860.00.1'
20241004@184426.8830 5h5moptvfd62lg64l5m16k38d2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@184426.8888 5h5moptvfd62lg64l5m16k38d2 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241004@184426.8970 5h5moptvfd62lg64l5m16k38d2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@184426.8989 5h5moptvfd62lg64l5m16k38d2 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241004@184426.8999 5h5moptvfd62lg64l5m16k38d2 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241004@184426.9013 5h5moptvfd62lg64l5m16k38d2 Query : select sestamp valor from se where ref ='304.4860.00.1' and lote = '241006'
20241004@184426.9029 5h5moptvfd62lg64l5m16k38d2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@184426.9049 5h5moptvfd62lg64l5m16k38d2 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241004@184426.9063 5h5moptvfd62lg64l5m16k38d2 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut67002190386700297adc','aut67002083446700297965' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241004@184426.9068 5h5moptvfd62lg64l5m16k38d2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@184426.9087 5h5moptvfd62lg64l5m16k38d2 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241004@184426.9225 5h5moptvfd62lg64l5m16k38d2 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem) values ('aut67002190386700297adc',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',8.000 ,'aut67002083446700297965' ,0,0 ,2,23.00,230000,?,?,?,?)
20241004@184426.9486 5h5moptvfd62lg64l5m16k38d2 Query : use flama_phc
20241004@184426.9490 5h5moptvfd62lg64l5m16k38d2 Query : select st.usalote valor from st where st.ref = '324.4902.00.1'
20241004@184426.9518 5h5moptvfd62lg64l5m16k38d2 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.4902.00.1'
20241004@184426.9675 5h5moptvfd62lg64l5m16k38d2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@184426.9697 5h5moptvfd62lg64l5m16k38d2 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241004@184426.9744 5h5moptvfd62lg64l5m16k38d2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@184426.9763 5h5moptvfd62lg64l5m16k38d2 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241004@184426.9773 5h5moptvfd62lg64l5m16k38d2 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241004@184426.9789 5h5moptvfd62lg64l5m16k38d2 Query : select sestamp valor from se where ref ='324.4902.00.1' and lote = 'r2400145200a'
20241004@184426.9887 5h5moptvfd62lg64l5m16k38d2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@184426.9903 5h5moptvfd62lg64l5m16k38d2 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241004@184426.9918 5h5moptvfd62lg64l5m16k38d2 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut67002329216700297af1','aut67002083446700297965' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241004@184426.9922 5h5moptvfd62lg64l5m16k38d2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@184426.9943 5h5moptvfd62lg64l5m16k38d2 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241004@184426.9979 5h5moptvfd62lg64l5m16k38d2 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem) values ('aut67002329216700297af1',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',36.000 ,'aut67002083446700297965' ,0,0 ,2,23.00,240000,?,?,?,?)
20241004@184427.2870 5h5moptvfd62lg64l5m16k38d2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@184427.3470 5h5moptvfd62lg64l5m16k38d2 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241004@184427.4200 5h5moptvfd62lg64l5m16k38d2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@184427.4650 5h5moptvfd62lg64l5m16k38d2 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241004@184427.4740 5h5moptvfd62lg64l5m16k38d2 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241004@184427.4930 5h5moptvfd62lg64l5m16k38d2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@184427.5070 5h5moptvfd62lg64l5m16k38d2 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241004@184427.5200 5h5moptvfd62lg64l5m16k38d2 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut67002441886700297b0c','aut67002083446700297965' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241004@184427.5240 5h5moptvfd62lg64l5m16k38d2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@184427.5570 5h5moptvfd62lg64l5m16k38d2 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241004@184427.5950 5h5moptvfd62lg64l5m16k38d2 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut67002441886700297b0c',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut67002083446700297965' ,0,0 ,2,23.00,250000,?,?,?)
20241004@184427.8540 5h5moptvfd62lg64l5m16k38d2 Query : use flama_phc
20241004@184427.8570 5h5moptvfd62lg64l5m16k38d2 Query : select st.usalote valor from st where st.ref = '324.4902.00.1'
20241004@184427.8810 5h5moptvfd62lg64l5m16k38d2 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.4902.00.1'
20241004@184427.8950 5h5moptvfd62lg64l5m16k38d2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@184427.9130 5h5moptvfd62lg64l5m16k38d2 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241004@184427.9640 5h5moptvfd62lg64l5m16k38d2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@184427.9850 5h5moptvfd62lg64l5m16k38d2 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241004@184427.9940 5h5moptvfd62lg64l5m16k38d2 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241004@184427.1011 5h5moptvfd62lg64l5m16k38d2 Query : select sestamp valor from se where ref ='324.4902.00.1' and lote = 'r2400145200a'
20241004@184427.1035 5h5moptvfd62lg64l5m16k38d2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@184427.1055 5h5moptvfd62lg64l5m16k38d2 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241004@184427.1069 5h5moptvfd62lg64l5m16k38d2 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut67002463806700297b19','aut67002083446700297965' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241004@184427.1075 5h5moptvfd62lg64l5m16k38d2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@184427.1112 5h5moptvfd62lg64l5m16k38d2 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241004@184427.1152 5h5moptvfd62lg64l5m16k38d2 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem) values ('aut67002463806700297b19',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',24.000 ,'aut67002083446700297965' ,0,0 ,2,23.00,270000,?,?,?,?)
20241004@184427.1426 5h5moptvfd62lg64l5m16k38d2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@184427.1444 5h5moptvfd62lg64l5m16k38d2 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241004@184427.1469 5h5moptvfd62lg64l5m16k38d2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@184427.1509 5h5moptvfd62lg64l5m16k38d2 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241004@184427.1518 5h5moptvfd62lg64l5m16k38d2 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241004@184427.1536 5h5moptvfd62lg64l5m16k38d2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@184427.1550 5h5moptvfd62lg64l5m16k38d2 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241004@184427.1571 5h5moptvfd62lg64l5m16k38d2 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut67002225286700297b25','aut67002083446700297965' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241004@184427.1576 5h5moptvfd62lg64l5m16k38d2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@184427.1603 5h5moptvfd62lg64l5m16k38d2 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241004@184427.1639 5h5moptvfd62lg64l5m16k38d2 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut67002225286700297b25',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut67002083446700297965' ,0,0 ,2,23.00,280000,?,?,?)
20241004@184427.2832 5h5moptvfd62lg64l5m16k38d2 Query : use flama_phc
20241004@184427.2888 5h5moptvfd62lg64l5m16k38d2 Query : select st.usalote valor from st where st.ref = '324.4906.00.1'
20241004@184427.3050 5h5moptvfd62lg64l5m16k38d2 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.4906.00.1'
20241004@184427.3223 5h5moptvfd62lg64l5m16k38d2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@184427.3241 5h5moptvfd62lg64l5m16k38d2 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241004@184427.3273 5h5moptvfd62lg64l5m16k38d2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@184427.3291 5h5moptvfd62lg64l5m16k38d2 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241004@184427.3335 5h5moptvfd62lg64l5m16k38d2 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241004@184427.3462 5h5moptvfd62lg64l5m16k38d2 Query : select sestamp valor from se where ref ='324.4906.00.1' and lote = 'r2300207200a'
20241004@184427.3516 5h5moptvfd62lg64l5m16k38d2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@184427.3703 5h5moptvfd62lg64l5m16k38d2 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241004@184427.3847 5h5moptvfd62lg64l5m16k38d2 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut67002925996700297b55','aut67002083446700297965' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241004@184427.3876 5h5moptvfd62lg64l5m16k38d2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@184427.4043 5h5moptvfd62lg64l5m16k38d2 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241004@184427.4439 5h5moptvfd62lg64l5m16k38d2 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem) values ('aut67002925996700297b55',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',32.000 ,'aut67002083446700297965' ,0,0 ,2,23.00,300000,?,?,?,?)
20241004@184427.4785 5h5moptvfd62lg64l5m16k38d2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@184427.4842 5h5moptvfd62lg64l5m16k38d2 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241004@184427.5019 5h5moptvfd62lg64l5m16k38d2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
