20241024@164049.5690 ogg9502cmao3ghak15o98euhk5 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241024@164049.5960 ogg9502cmao3ghak15o98euhk5 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut671a627140671a6a810c',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',10.000 ,'aut671a664346671a6a80e5' ,0,0 ,2,23.00,10000,?,?,?,?,?)
20241024@164049.8220 ogg9502cmao3ghak15o98euhk5 Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut671a664346671a6a80e5','2407022','wait',39,'adm09112754980.682000002')
20241024@164049.9050 ogg9502cmao3ghak15o98euhk5 Query : use flama_phc
20241024@164049.9080 ogg9502cmao3ghak15o98euhk5 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20241024@164049.9390 ogg9502cmao3ghak15o98euhk5 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2910';
20241024@164049.9750 ogg9502cmao3ghak15o98euhk5 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2910';
20241024@164049.1019 ogg9502cmao3ghak15o98euhk5 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2910';
20241024@164049.1047 ogg9502cmao3ghak15o98euhk5 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2910';
20241024@164049.1588 db94ijdmatt43e94fovaspmnae Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20241024@164049.1599 db94ijdmatt43e94fovaspmnae Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20241024@164049.1669 db94ijdmatt43e94fovaspmnae Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2911';
20241024@164049.1732 db94ijdmatt43e94fovaspmnae Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2911';
20241024@164049.1790 db94ijdmatt43e94fovaspmnae Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2911';
20241024@164049.1823 db94ijdmatt43e94fovaspmnae Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2911';
20241024@164049.1878 db94ijdmatt43e94fovaspmnae Query : use flama_phc
20241024@164049.1881 db94ijdmatt43e94fovaspmnae Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20241024@164049.1943 db94ijdmatt43e94fovaspmnae Query : use flama_phc
20241024@164049.1947 db94ijdmatt43e94fovaspmnae Query : select no, estab,szadrsdesc from szadrs where u_coddest=1453
20241024@164049.2058 db94ijdmatt43e94fovaspmnae 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'
20241024@164049.2078 db94ijdmatt43e94fovaspmnae Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2070 and bo.obrano = 2407023 and bi.ref ='324.1642.00.2' and bi.lordem =1
20241024@164049.2388 db94ijdmatt43e94fovaspmnae Query : use flama_phc
20241024@164049.2391 db94ijdmatt43e94fovaspmnae Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20241024@164049.2426 db94ijdmatt43e94fovaspmnae Query : use flama_phc
20241024@164049.2429 db94ijdmatt43e94fovaspmnae Query : select top 1 1 valor from td where td.ndoc = 39
20241024@164049.2528 db94ijdmatt43e94fovaspmnae Query : use flama_phc
20241024@164049.2532 db94ijdmatt43e94fovaspmnae 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')
20241024@164049.2561 db94ijdmatt43e94fovaspmnae 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
20241024@164049.2596 db94ijdmatt43e94fovaspmnae Query : use flama_phc
20241024@164049.2599 db94ijdmatt43e94fovaspmnae Query : select top 1 ~inactivo valor from cl where no = '101621' and estab = 0 order by inactivo desc
20241024@164049.2628 db94ijdmatt43e94fovaspmnae Query : use flama_phc
20241024@164049.2631 db94ijdmatt43e94fovaspmnae Query : select top 1 tipodoc,regrd from td where ndoc = 39
20241024@164049.2688 db94ijdmatt43e94fovaspmnae Query : use flama_phc
20241024@164049.2691 db94ijdmatt43e94fovaspmnae Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20241024@164049.2812 db94ijdmatt43e94fovaspmnae Query : use flama_phc
20241024@164049.2815 db94ijdmatt43e94fovaspmnae Query : select szadrsstamp valor from szadrs where szadrsdesc='jom - batalha'
20241024@164049.2869 db94ijdmatt43e94fovaspmnae Query : use flama_phc
20241024@164049.2872 db94ijdmatt43e94fovaspmnae Query : select 1 valor from td where ndoc = 39
20241024@164049.2883 db94ijdmatt43e94fovaspmnae Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20241024@164049.2896 db94ijdmatt43e94fovaspmnae Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241024@164049.2913 db94ijdmatt43e94fovaspmnae Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20241024@164049.2930 db94ijdmatt43e94fovaspmnae Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241024@164049.2944 db94ijdmatt43e94fovaspmnae Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20241024@164049.3004 db94ijdmatt43e94fovaspmnae Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241024@164049.3089 db94ijdmatt43e94fovaspmnae Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20241024@164049.3101 db94ijdmatt43e94fovaspmnae Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20241024@164049.3216 db94ijdmatt43e94fovaspmnae Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20241024@164049.3229 db94ijdmatt43e94fovaspmnae Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241024@164049.3251 db94ijdmatt43e94fovaspmnae Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20241024@164049.3266 db94ijdmatt43e94fovaspmnae Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut671a667069671a6a814b' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20241024@164049.3427 db94ijdmatt43e94fovaspmnae Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241024@164049.3473 db94ijdmatt43e94fovaspmnae Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20241024@164049.3504 db94ijdmatt43e94fovaspmnae Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20241024@164049.3516 db94ijdmatt43e94fovaspmnae Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20241024@164049.3528 db94ijdmatt43e94fovaspmnae Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20241024@164049.3540 db94ijdmatt43e94fovaspmnae Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20241024@164049.3551 db94ijdmatt43e94fovaspmnae Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20241024@164049.3562 db94ijdmatt43e94fovaspmnae Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20241024@164049.3581 db94ijdmatt43e94fovaspmnae Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut671a667069671a6a814b',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20241024@164049.3821 db94ijdmatt43e94fovaspmnae Query : select top 1 fno valor from wsftdata order by fno desc
20241024@164049.3879 db94ijdmatt43e94fovaspmnae Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241024@164049.3895 db94ijdmatt43e94fovaspmnae Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20241024@164049.3918 db94ijdmatt43e94fovaspmnae Query : select 'normal' from dummy
20241024@164049.3935 db94ijdmatt43e94fovaspmnae Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut671a667069671a6a814b',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',1496,101621,0,'2024-10-24',39,'euro',0,0,2024 ,?,?)
20241024@164049.4221 db94ijdmatt43e94fovaspmnae Query : use flama_phc
20241024@164049.4224 db94ijdmatt43e94fovaspmnae Query : select st.usalote valor from st where st.ref = '324.1642.00.2'
20241024@164049.4246 db94ijdmatt43e94fovaspmnae Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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'
20241024@164049.4260 db94ijdmatt43e94fovaspmnae Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241024@164049.4276 db94ijdmatt43e94fovaspmnae Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241024@164049.4331 db94ijdmatt43e94fovaspmnae Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241024@164049.4347 db94ijdmatt43e94fovaspmnae Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241024@164049.4355 db94ijdmatt43e94fovaspmnae Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241024@164049.4367 db94ijdmatt43e94fovaspmnae Query : select sestamp valor from se where ref ='324.1642.00.2' and lote = 'r2400526200a'
20241024@164049.4382 db94ijdmatt43e94fovaspmnae Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241024@164049.4397 db94ijdmatt43e94fovaspmnae Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241024@164049.4411 db94ijdmatt43e94fovaspmnae Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut671a646769671a6a816a','aut671a667069671a6a814b' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241024@164049.4419 db94ijdmatt43e94fovaspmnae Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241024@164049.4579 db94ijdmatt43e94fovaspmnae Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241024@164049.4656 db94ijdmatt43e94fovaspmnae Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut671a646769671a6a816a',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',8.000 ,'aut671a667069671a6a814b' ,0,0 ,2,23.00,10000,?,?,?,?,?)
20241024@164049.5019 db94ijdmatt43e94fovaspmnae Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut671a667069671a6a814b','2407023','wait',39,'adm09112754980.682000002')
20241024@164049.5117 db94ijdmatt43e94fovaspmnae Query : use flama_phc
20241024@164049.5127 db94ijdmatt43e94fovaspmnae Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20241024@164049.5184 db94ijdmatt43e94fovaspmnae Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2911';
20241024@164049.5244 db94ijdmatt43e94fovaspmnae Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2911';
20241024@164049.5290 db94ijdmatt43e94fovaspmnae Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2911';
20241024@164049.5318 db94ijdmatt43e94fovaspmnae Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2911';
20241024@164049.5861 m2h38rfe22svo3mpgelol8j4ha Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20241024@164049.5879 m2h38rfe22svo3mpgelol8j4ha Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20241024@164049.5968 m2h38rfe22svo3mpgelol8j4ha Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2912';
20241024@164049.6041 m2h38rfe22svo3mpgelol8j4ha Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2912';
20241024@164049.6133 m2h38rfe22svo3mpgelol8j4ha Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2912';
20241024@164049.6174 m2h38rfe22svo3mpgelol8j4ha Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2912';
20241024@164049.6302 m2h38rfe22svo3mpgelol8j4ha Query : use flama_phc
20241024@164049.6345 m2h38rfe22svo3mpgelol8j4ha Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20241024@164049.6597 m2h38rfe22svo3mpgelol8j4ha Query : use flama_phc
20241024@164049.6600 m2h38rfe22svo3mpgelol8j4ha Query : select no, estab,szadrsdesc from szadrs where u_coddest=1474
20241024@164049.6712 m2h38rfe22svo3mpgelol8j4ha 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'
20241024@164049.6780 m2h38rfe22svo3mpgelol8j4ha Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2070 and bo.obrano = 2407025 and bi.ref ='324.1642.00.2' and bi.lordem =1
20241024@164049.7170 m2h38rfe22svo3mpgelol8j4ha Query : use flama_phc
20241024@164049.7174 m2h38rfe22svo3mpgelol8j4ha Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20241024@164049.7248 m2h38rfe22svo3mpgelol8j4ha Query : use flama_phc
20241024@164049.7252 m2h38rfe22svo3mpgelol8j4ha Query : select top 1 1 valor from td where td.ndoc = 39
20241024@164049.7334 m2h38rfe22svo3mpgelol8j4ha Query : use flama_phc
20241024@164049.7338 m2h38rfe22svo3mpgelol8j4ha 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')
20241024@164049.7397 m2h38rfe22svo3mpgelol8j4ha 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
20241024@164049.7507 m2h38rfe22svo3mpgelol8j4ha Query : use flama_phc
20241024@164049.7511 m2h38rfe22svo3mpgelol8j4ha Query : select top 1 ~inactivo valor from cl where no = '101621' and estab = 0 order by inactivo desc
20241024@164049.7579 m2h38rfe22svo3mpgelol8j4ha Query : use flama_phc
20241024@164049.7582 m2h38rfe22svo3mpgelol8j4ha Query : select top 1 tipodoc,regrd from td where ndoc = 39
20241024@164049.7704 m2h38rfe22svo3mpgelol8j4ha Query : use flama_phc
20241024@164049.7707 m2h38rfe22svo3mpgelol8j4ha Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20241024@164049.7809 m2h38rfe22svo3mpgelol8j4ha Query : use flama_phc
20241024@164049.7813 m2h38rfe22svo3mpgelol8j4ha Query : select szadrsstamp valor from szadrs where szadrsdesc='j.o.m.,lda - corroios'
20241024@164049.7948 m2h38rfe22svo3mpgelol8j4ha Query : use flama_phc
20241024@164049.7952 m2h38rfe22svo3mpgelol8j4ha Query : select 1 valor from td where ndoc = 39
20241024@164049.7969 m2h38rfe22svo3mpgelol8j4ha Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20241024@164049.8027 m2h38rfe22svo3mpgelol8j4ha Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241024@164049.8060 m2h38rfe22svo3mpgelol8j4ha Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20241024@164049.8083 m2h38rfe22svo3mpgelol8j4ha Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241024@164049.8101 m2h38rfe22svo3mpgelol8j4ha Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20241024@164049.8178 m2h38rfe22svo3mpgelol8j4ha Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241024@164049.8194 m2h38rfe22svo3mpgelol8j4ha Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20241024@164049.8251 m2h38rfe22svo3mpgelol8j4ha Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20241024@164049.8314 m2h38rfe22svo3mpgelol8j4ha Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20241024@164049.8328 m2h38rfe22svo3mpgelol8j4ha Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241024@164049.8345 m2h38rfe22svo3mpgelol8j4ha Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20241024@164049.8373 m2h38rfe22svo3mpgelol8j4ha Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut671a667457671a6a81c9' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20241024@164049.8597 m2h38rfe22svo3mpgelol8j4ha Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241024@164049.8707 m2h38rfe22svo3mpgelol8j4ha Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20241024@164049.8748 m2h38rfe22svo3mpgelol8j4ha Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20241024@164049.8761 m2h38rfe22svo3mpgelol8j4ha Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20241024@164049.8774 m2h38rfe22svo3mpgelol8j4ha Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20241024@164049.8790 m2h38rfe22svo3mpgelol8j4ha Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20241024@164049.8804 m2h38rfe22svo3mpgelol8j4ha Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20241024@164049.8817 m2h38rfe22svo3mpgelol8j4ha Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20241024@164049.8829 m2h38rfe22svo3mpgelol8j4ha Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut671a667457671a6a81c9',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20241024@164049.9088 m2h38rfe22svo3mpgelol8j4ha Query : select top 1 fno valor from wsftdata order by fno desc
20241024@164049.9114 m2h38rfe22svo3mpgelol8j4ha Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241024@164049.9132 m2h38rfe22svo3mpgelol8j4ha Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20241024@164049.9170 m2h38rfe22svo3mpgelol8j4ha Query : select 'normal' from dummy
20241024@164049.9188 m2h38rfe22svo3mpgelol8j4ha Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut671a667457671a6a81c9',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',1497,101621,0,'2024-10-24',39,'euro',0,0,2024 ,?,?)
20241024@164049.9500 m2h38rfe22svo3mpgelol8j4ha Query : use flama_phc
20241024@164049.9504 m2h38rfe22svo3mpgelol8j4ha Query : select st.usalote valor from st where st.ref = '324.1642.00.2'
20241024@164049.9684 m2h38rfe22svo3mpgelol8j4ha Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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'
20241024@164049.9728 m2h38rfe22svo3mpgelol8j4ha Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241024@164049.9745 m2h38rfe22svo3mpgelol8j4ha Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241024@164049.9774 m2h38rfe22svo3mpgelol8j4ha Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241024@164049.9790 m2h38rfe22svo3mpgelol8j4ha Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241024@164049.9813 m2h38rfe22svo3mpgelol8j4ha Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241024@164049.9825 m2h38rfe22svo3mpgelol8j4ha Query : select sestamp valor from se where ref ='324.1642.00.2' and lote = 'r2400526200a'
20241024@164049.9841 m2h38rfe22svo3mpgelol8j4ha Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241024@164049.9857 m2h38rfe22svo3mpgelol8j4ha Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241024@164049.9870 m2h38rfe22svo3mpgelol8j4ha Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut671a639983671a6a81f0','aut671a667457671a6a81c9' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241024@164049.9874 m2h38rfe22svo3mpgelol8j4ha Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241024@164049.9891 m2h38rfe22svo3mpgelol8j4ha Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241024@164049.9921 m2h38rfe22svo3mpgelol8j4ha Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut671a639983671a6a81f0',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',10.000 ,'aut671a667457671a6a81c9' ,0,0 ,2,23.00,10000,?,?,?,?,?)
20241024@164050.1880 m2h38rfe22svo3mpgelol8j4ha Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut671a667457671a6a81c9','2407025','wait',39,'adm09112754980.682000002')
20241024@164050.3260 m2h38rfe22svo3mpgelol8j4ha Query : use flama_phc
20241024@164050.3290 m2h38rfe22svo3mpgelol8j4ha Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20241024@164050.3740 m2h38rfe22svo3mpgelol8j4ha Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2912';
20241024@164050.4120 m2h38rfe22svo3mpgelol8j4ha Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2912';
20241024@164050.1650 m2h38rfe22svo3mpgelol8j4ha Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2912';
20241024@164050.1727 m2h38rfe22svo3mpgelol8j4ha Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2912';
20241024@164050.2403 srsi6gbob3j0epdeodbqi009k1 Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20241024@164050.2425 srsi6gbob3j0epdeodbqi009k1 Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20241024@164050.2502 srsi6gbob3j0epdeodbqi009k1 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2913';
20241024@164050.2608 srsi6gbob3j0epdeodbqi009k1 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2913';
20241024@164050.2697 srsi6gbob3j0epdeodbqi009k1 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2913';
20241024@164050.2739 srsi6gbob3j0epdeodbqi009k1 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2913';
20241024@164050.2824 srsi6gbob3j0epdeodbqi009k1 Query : use flama_phc
20241024@164050.2828 srsi6gbob3j0epdeodbqi009k1 Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20241024@164050.2960 srsi6gbob3j0epdeodbqi009k1 Query : use flama_phc
20241024@164050.2964 srsi6gbob3j0epdeodbqi009k1 Query : select no, estab,szadrsdesc from szadrs where u_coddest=812
20241024@164050.3312 srsi6gbob3j0epdeodbqi009k1 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'
20241024@164050.3338 srsi6gbob3j0epdeodbqi009k1 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2070 and bo.obrano = 2407026 and bi.ref ='324.1642.00.2' and bi.lordem =1
20241024@164050.3693 srsi6gbob3j0epdeodbqi009k1 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'
20241024@164050.3730 srsi6gbob3j0epdeodbqi009k1 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2070 and bo.obrano = 2407026 and bi.ref ='324.1642.00.2' and bi.lordem =1
20241024@164050.3753 srsi6gbob3j0epdeodbqi009k1 Query : use flama_phc
20241024@164050.3758 srsi6gbob3j0epdeodbqi009k1 Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20241024@164050.3809 srsi6gbob3j0epdeodbqi009k1 Query : use flama_phc
20241024@164050.3812 srsi6gbob3j0epdeodbqi009k1 Query : select top 1 1 valor from td where td.ndoc = 39
20241024@164050.3858 srsi6gbob3j0epdeodbqi009k1 Query : use flama_phc
20241024@164050.3862 srsi6gbob3j0epdeodbqi009k1 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')
20241024@164050.3936 srsi6gbob3j0epdeodbqi009k1 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
20241024@164050.3985 srsi6gbob3j0epdeodbqi009k1 Query : use flama_phc
20241024@164050.3988 srsi6gbob3j0epdeodbqi009k1 Query : select top 1 ~inactivo valor from cl where no = '101621' and estab = 0 order by inactivo desc
20241024@164050.4047 srsi6gbob3j0epdeodbqi009k1 Query : use flama_phc
20241024@164050.4050 srsi6gbob3j0epdeodbqi009k1 Query : select top 1 tipodoc,regrd from td where ndoc = 39
20241024@164050.4103 srsi6gbob3j0epdeodbqi009k1 Query : use flama_phc
20241024@164050.4106 srsi6gbob3j0epdeodbqi009k1 Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20241024@164050.4175 srsi6gbob3j0epdeodbqi009k1 Query : use flama_phc
20241024@164050.4179 srsi6gbob3j0epdeodbqi009k1 Query : select szadrsstamp valor from szadrs where szadrsdesc='j.o.m.,lda - santarem'
20241024@164050.4244 srsi6gbob3j0epdeodbqi009k1 Query : use flama_phc
20241024@164050.4247 srsi6gbob3j0epdeodbqi009k1 Query : select 1 valor from td where ndoc = 39
20241024@164050.4259 srsi6gbob3j0epdeodbqi009k1 Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20241024@164050.4273 srsi6gbob3j0epdeodbqi009k1 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241024@164050.4289 srsi6gbob3j0epdeodbqi009k1 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20241024@164050.4307 srsi6gbob3j0epdeodbqi009k1 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241024@164050.4323 srsi6gbob3j0epdeodbqi009k1 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20241024@164050.4352 srsi6gbob3j0epdeodbqi009k1 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241024@164050.4366 srsi6gbob3j0epdeodbqi009k1 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20241024@164050.4379 srsi6gbob3j0epdeodbqi009k1 Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20241024@164050.4445 srsi6gbob3j0epdeodbqi009k1 Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20241024@164050.4471 srsi6gbob3j0epdeodbqi009k1 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241024@164050.4488 srsi6gbob3j0epdeodbqi009k1 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20241024@164050.4504 srsi6gbob3j0epdeodbqi009k1 Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut671a662450671a6a826a' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20241024@164050.4658 srsi6gbob3j0epdeodbqi009k1 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241024@164050.4675 srsi6gbob3j0epdeodbqi009k1 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20241024@164050.4710 srsi6gbob3j0epdeodbqi009k1 Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20241024@164050.4722 srsi6gbob3j0epdeodbqi009k1 Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20241024@164050.4737 srsi6gbob3j0epdeodbqi009k1 Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20241024@164050.4789 srsi6gbob3j0epdeodbqi009k1 Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20241024@164050.4802 srsi6gbob3j0epdeodbqi009k1 Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20241024@164050.4832 srsi6gbob3j0epdeodbqi009k1 Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20241024@164050.4847 srsi6gbob3j0epdeodbqi009k1 Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut671a662450671a6a826a',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20241024@164050.5171 srsi6gbob3j0epdeodbqi009k1 Query : select top 1 fno valor from wsftdata order by fno desc
20241024@164050.5204 srsi6gbob3j0epdeodbqi009k1 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241024@164050.5223 srsi6gbob3j0epdeodbqi009k1 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20241024@164050.5246 srsi6gbob3j0epdeodbqi009k1 Query : select 'normal' from dummy
20241024@164050.5317 srsi6gbob3j0epdeodbqi009k1 Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut671a662450671a6a826a',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',1498,101621,0,'2024-10-24',39,'euro',0,0,2024 ,?,?)
20241024@164050.5624 srsi6gbob3j0epdeodbqi009k1 Query : use flama_phc
20241024@164050.5627 srsi6gbob3j0epdeodbqi009k1 Query : select st.usalote valor from st where st.ref = '324.1642.00.2'
20241024@164050.5649 srsi6gbob3j0epdeodbqi009k1 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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'
20241024@164050.5664 srsi6gbob3j0epdeodbqi009k1 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241024@164050.5681 srsi6gbob3j0epdeodbqi009k1 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241024@164050.5723 srsi6gbob3j0epdeodbqi009k1 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241024@164050.5740 srsi6gbob3j0epdeodbqi009k1 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241024@164050.5751 srsi6gbob3j0epdeodbqi009k1 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241024@164050.5765 srsi6gbob3j0epdeodbqi009k1 Query : select sestamp valor from se where ref ='324.1642.00.2' and lote = 'r2400526200a'
20241024@164050.5779 srsi6gbob3j0epdeodbqi009k1 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241024@164050.5795 srsi6gbob3j0epdeodbqi009k1 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241024@164050.5806 srsi6gbob3j0epdeodbqi009k1 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut671a668437671a6a828d','aut671a662450671a6a826a' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241024@164050.5811 srsi6gbob3j0epdeodbqi009k1 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241024@164050.5827 srsi6gbob3j0epdeodbqi009k1 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241024@164050.5856 srsi6gbob3j0epdeodbqi009k1 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut671a668437671a6a828d',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',2.000 ,'aut671a662450671a6a826a' ,0,0 ,2,23.00,10000,?,?,?,?,?)
20241024@164050.6104 srsi6gbob3j0epdeodbqi009k1 Query : use flama_phc
20241024@164050.6107 srsi6gbob3j0epdeodbqi009k1 Query : select st.usalote valor from st where st.ref = '324.1642.00.2'
20241024@164050.6128 srsi6gbob3j0epdeodbqi009k1 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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'
20241024@164050.6156 srsi6gbob3j0epdeodbqi009k1 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241024@164050.6175 srsi6gbob3j0epdeodbqi009k1 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241024@164050.6217 srsi6gbob3j0epdeodbqi009k1 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241024@164050.6235 srsi6gbob3j0epdeodbqi009k1 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241024@164050.6348 srsi6gbob3j0epdeodbqi009k1 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241024@164050.6473 srsi6gbob3j0epdeodbqi009k1 Query : select sestamp valor from se where ref ='324.1642.00.2' and lote = 'r2400526200a'
20241024@164050.6578 srsi6gbob3j0epdeodbqi009k1 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241024@164050.6596 srsi6gbob3j0epdeodbqi009k1 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241024@164050.6623 srsi6gbob3j0epdeodbqi009k1 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut671a662854671a6a82a0','aut671a662450671a6a826a' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241024@164050.6627 srsi6gbob3j0epdeodbqi009k1 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241024@164050.6648 srsi6gbob3j0epdeodbqi009k1 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241024@164050.6680 srsi6gbob3j0epdeodbqi009k1 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut671a662854671a6a82a0',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',4.000 ,'aut671a662450671a6a826a' ,0,0 ,2,23.00,20000,?,?,?,?,?)
20241024@164050.6950 srsi6gbob3j0epdeodbqi009k1 Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut671a662450671a6a826a','2407026','wait',39,'adm09112754980.682000002')
20241024@164050.7069 srsi6gbob3j0epdeodbqi009k1 Query : use flama_phc
20241024@164050.7073 srsi6gbob3j0epdeodbqi009k1 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20241024@164050.7128 srsi6gbob3j0epdeodbqi009k1 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2913';
20241024@164050.7173 srsi6gbob3j0epdeodbqi009k1 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2913';
20241024@164050.7375 srsi6gbob3j0epdeodbqi009k1 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2913';
20241024@164050.7544 srsi6gbob3j0epdeodbqi009k1 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2913';
20241024@164050.8068 op7013m5uqjjprljqh1k16kttu Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20241024@164050.8080 op7013m5uqjjprljqh1k16kttu Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20241024@164050.8139 op7013m5uqjjprljqh1k16kttu Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2914';
20241024@164050.8198 op7013m5uqjjprljqh1k16kttu Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2914';
20241024@164050.8256 op7013m5uqjjprljqh1k16kttu Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2914';
20241024@164050.8286 op7013m5uqjjprljqh1k16kttu Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2914';
20241024@164050.8341 op7013m5uqjjprljqh1k16kttu Query : use flama_phc
20241024@164050.8344 op7013m5uqjjprljqh1k16kttu Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20241024@164050.8411 op7013m5uqjjprljqh1k16kttu Query : use flama_phc
20241024@164050.8415 op7013m5uqjjprljqh1k16kttu Query : select no, estab,szadrsdesc from szadrs where u_coddest=7737
20241024@164050.8500 op7013m5uqjjprljqh1k16kttu 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'
20241024@164050.8521 op7013m5uqjjprljqh1k16kttu Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2070 and bo.obrano = 2407027 and bi.ref ='324.1642.00.2' and bi.lordem =1
20241024@164050.8987 op7013m5uqjjprljqh1k16kttu Query : use flama_phc
20241024@164050.8990 op7013m5uqjjprljqh1k16kttu Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20241024@164050.9039 op7013m5uqjjprljqh1k16kttu Query : use flama_phc
20241024@164050.9043 op7013m5uqjjprljqh1k16kttu Query : select top 1 1 valor from td where td.ndoc = 39
20241024@164050.9073 op7013m5uqjjprljqh1k16kttu Query : use flama_phc
20241024@164050.9076 op7013m5uqjjprljqh1k16kttu 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')
20241024@164050.9105 op7013m5uqjjprljqh1k16kttu 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
20241024@164050.9144 op7013m5uqjjprljqh1k16kttu Query : use flama_phc
20241024@164050.9147 op7013m5uqjjprljqh1k16kttu Query : select top 1 ~inactivo valor from cl where no = '101621' and estab = 0 order by inactivo desc
20241024@164050.9178 op7013m5uqjjprljqh1k16kttu Query : use flama_phc
20241024@164050.9181 op7013m5uqjjprljqh1k16kttu Query : select top 1 tipodoc,regrd from td where ndoc = 39
20241024@164050.9212 op7013m5uqjjprljqh1k16kttu Query : use flama_phc
20241024@164050.9215 op7013m5uqjjprljqh1k16kttu Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20241024@164050.9286 op7013m5uqjjprljqh1k16kttu Query : use flama_phc
20241024@164050.9290 op7013m5uqjjprljqh1k16kttu Query : select szadrsstamp valor from szadrs where szadrsdesc='j.o.m - loja da ponte'
20241024@164050.9340 op7013m5uqjjprljqh1k16kttu Query : use flama_phc
20241024@164050.9342 op7013m5uqjjprljqh1k16kttu Query : select 1 valor from td where ndoc = 39
20241024@164050.9355 op7013m5uqjjprljqh1k16kttu Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20241024@164050.9375 op7013m5uqjjprljqh1k16kttu Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241024@164050.9392 op7013m5uqjjprljqh1k16kttu Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20241024@164050.9413 op7013m5uqjjprljqh1k16kttu Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241024@164050.9430 op7013m5uqjjprljqh1k16kttu Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20241024@164050.9459 op7013m5uqjjprljqh1k16kttu Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241024@164050.9474 op7013m5uqjjprljqh1k16kttu Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20241024@164050.9486 op7013m5uqjjprljqh1k16kttu Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20241024@164050.9553 op7013m5uqjjprljqh1k16kttu Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20241024@164050.9566 op7013m5uqjjprljqh1k16kttu Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241024@164050.9582 op7013m5uqjjprljqh1k16kttu Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20241024@164050.9599 op7013m5uqjjprljqh1k16kttu Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut671a690607671a6a82e7' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20241024@164050.9802 op7013m5uqjjprljqh1k16kttu Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241024@164050.9873 op7013m5uqjjprljqh1k16kttu Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20241024@164050.9909 op7013m5uqjjprljqh1k16kttu Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20241024@164050.9922 op7013m5uqjjprljqh1k16kttu Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20241024@164050.9933 op7013m5uqjjprljqh1k16kttu Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20241024@164050.9945 op7013m5uqjjprljqh1k16kttu Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20241024@164050.9957 op7013m5uqjjprljqh1k16kttu Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20241024@164050.9968 op7013m5uqjjprljqh1k16kttu Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20241024@164050.9980 op7013m5uqjjprljqh1k16kttu Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut671a690607671a6a82e7',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20241024@164051.2220 op7013m5uqjjprljqh1k16kttu Query : select top 1 fno valor from wsftdata order by fno desc
20241024@164051.2480 op7013m5uqjjprljqh1k16kttu Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241024@164051.2660 op7013m5uqjjprljqh1k16kttu Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20241024@164051.2880 op7013m5uqjjprljqh1k16kttu Query : select 'normal' from dummy
20241024@164051.3020 op7013m5uqjjprljqh1k16kttu Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut671a690607671a6a82e7',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',1499,101621,0,'2024-10-24',39,'euro',0,0,2024 ,?,?)
20241024@164051.5910 op7013m5uqjjprljqh1k16kttu Query : use flama_phc
20241024@164051.5940 op7013m5uqjjprljqh1k16kttu Query : select st.usalote valor from st where st.ref = '324.1642.00.2'
20241024@164051.6160 op7013m5uqjjprljqh1k16kttu Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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'
20241024@164051.6300 op7013m5uqjjprljqh1k16kttu Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241024@164051.6530 op7013m5uqjjprljqh1k16kttu Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241024@164051.6780 op7013m5uqjjprljqh1k16kttu Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241024@164051.6940 op7013m5uqjjprljqh1k16kttu Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241024@164051.7020 op7013m5uqjjprljqh1k16kttu Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241024@164051.7140 op7013m5uqjjprljqh1k16kttu Query : select sestamp valor from se where ref ='324.1642.00.2' and lote = 'r2400526200a'
20241024@164051.7260 op7013m5uqjjprljqh1k16kttu Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241024@164051.7410 op7013m5uqjjprljqh1k16kttu Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241024@164051.7550 op7013m5uqjjprljqh1k16kttu Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut671a663885671a6a8311','aut671a690607671a6a82e7' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241024@164051.7600 op7013m5uqjjprljqh1k16kttu Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241024@164051.7740 op7013m5uqjjprljqh1k16kttu Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241024@164051.8020 op7013m5uqjjprljqh1k16kttu Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut671a663885671a6a8311',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',15.000 ,'aut671a690607671a6a82e7' ,0,0 ,2,23.00,10000,?,?,?,?,?)
20241024@164051.1288 op7013m5uqjjprljqh1k16kttu Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut671a690607671a6a82e7','2407027','wait',39,'adm09112754980.682000002')
20241024@164051.1365 op7013m5uqjjprljqh1k16kttu Query : use flama_phc
20241024@164051.1368 op7013m5uqjjprljqh1k16kttu Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20241024@164051.1398 op7013m5uqjjprljqh1k16kttu Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2914';
20241024@164051.1431 op7013m5uqjjprljqh1k16kttu Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2914';
20241024@164051.1529 op7013m5uqjjprljqh1k16kttu Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2914';
20241024@164051.1590 op7013m5uqjjprljqh1k16kttu Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2914';
20241024@164051.2978 ciqo70g2g74oui7v191fmt0rsc Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20241024@164051.2996 ciqo70g2g74oui7v191fmt0rsc Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20241024@164051.3076 ciqo70g2g74oui7v191fmt0rsc Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2915';
20241024@164051.3140 ciqo70g2g74oui7v191fmt0rsc Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2915';
20241024@164051.3229 ciqo70g2g74oui7v191fmt0rsc Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2915';
20241024@164051.3283 ciqo70g2g74oui7v191fmt0rsc Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2915';
20241024@164051.3362 ciqo70g2g74oui7v191fmt0rsc Query : use flama_phc
20241024@164051.3365 ciqo70g2g74oui7v191fmt0rsc Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20241024@164051.3471 ciqo70g2g74oui7v191fmt0rsc Query : use flama_phc
20241024@164051.3474 ciqo70g2g74oui7v191fmt0rsc Query : select no, estab,szadrsdesc from szadrs where u_coddest=4740
20241024@164051.3535 ciqo70g2g74oui7v191fmt0rsc Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1266.00.1'
20241024@164051.3709 ciqo70g2g74oui7v191fmt0rsc Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2070 and bo.obrano = 2407028 and bi.ref ='324.1266.00.1' and bi.lordem =1
20241024@164051.4047 ciqo70g2g74oui7v191fmt0rsc Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1266.00.1'
20241024@164051.4106 ciqo70g2g74oui7v191fmt0rsc Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2070 and bo.obrano = 2407028 and bi.ref ='324.1266.00.1' and bi.lordem =1
20241024@164051.4138 ciqo70g2g74oui7v191fmt0rsc Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1266.00.1'
20241024@164051.4174 ciqo70g2g74oui7v191fmt0rsc Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2070 and bo.obrano = 2407028 and bi.ref ='324.1266.00.1' and bi.lordem =1
20241024@164051.4206 ciqo70g2g74oui7v191fmt0rsc Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1266.00.1'
20241024@164051.4234 ciqo70g2g74oui7v191fmt0rsc Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2070 and bo.obrano = 2407028 and bi.ref ='324.1266.00.1' and bi.lordem =1
20241024@164051.4257 ciqo70g2g74oui7v191fmt0rsc Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1266.00.1'
20241024@164051.4289 ciqo70g2g74oui7v191fmt0rsc Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2070 and bo.obrano = 2407028 and bi.ref ='324.1266.00.1' and bi.lordem =1
20241024@164051.4309 ciqo70g2g74oui7v191fmt0rsc Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1266.00.1'
20241024@164051.4414 ciqo70g2g74oui7v191fmt0rsc Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2070 and bo.obrano = 2407028 and bi.ref ='324.1266.00.1' and bi.lordem =1
20241024@164051.4435 ciqo70g2g74oui7v191fmt0rsc Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1266.00.1'
20241024@164051.4457 ciqo70g2g74oui7v191fmt0rsc Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2070 and bo.obrano = 2407028 and bi.ref ='324.1266.00.1' and bi.lordem =1
20241024@164051.4476 ciqo70g2g74oui7v191fmt0rsc Query : use flama_phc
20241024@164051.4479 ciqo70g2g74oui7v191fmt0rsc Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20241024@164051.4512 ciqo70g2g74oui7v191fmt0rsc Query : use flama_phc
20241024@164051.4515 ciqo70g2g74oui7v191fmt0rsc Query : select top 1 1 valor from td where td.ndoc = 39
20241024@164051.4547 ciqo70g2g74oui7v191fmt0rsc Query : use flama_phc
20241024@164051.4550 ciqo70g2g74oui7v191fmt0rsc 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')
20241024@164051.4593 ciqo70g2g74oui7v191fmt0rsc 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
20241024@164051.4638 ciqo70g2g74oui7v191fmt0rsc Query : use flama_phc
20241024@164051.4641 ciqo70g2g74oui7v191fmt0rsc Query : select top 1 ~inactivo valor from cl where no = '100810' and estab = 0 order by inactivo desc
20241024@164051.4673 ciqo70g2g74oui7v191fmt0rsc Query : use flama_phc
20241024@164051.4676 ciqo70g2g74oui7v191fmt0rsc Query : select top 1 tipodoc,regrd from td where ndoc = 39
20241024@164051.4707 ciqo70g2g74oui7v191fmt0rsc Query : use flama_phc
20241024@164051.4710 ciqo70g2g74oui7v191fmt0rsc Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20241024@164051.4751 ciqo70g2g74oui7v191fmt0rsc Query : use flama_phc
20241024@164051.4753 ciqo70g2g74oui7v191fmt0rsc Query : select szadrsstamp valor from szadrs where szadrsdesc='100810 - worten-equipamentos para o lar,sa.'
20241024@164051.4802 ciqo70g2g74oui7v191fmt0rsc Query : use flama_phc
20241024@164051.4804 ciqo70g2g74oui7v191fmt0rsc Query : select 1 valor from td where ndoc = 39
20241024@164051.4817 ciqo70g2g74oui7v191fmt0rsc Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20241024@164051.4868 ciqo70g2g74oui7v191fmt0rsc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241024@164051.4886 ciqo70g2g74oui7v191fmt0rsc Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20241024@164051.4909 ciqo70g2g74oui7v191fmt0rsc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241024@164051.4923 ciqo70g2g74oui7v191fmt0rsc Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20241024@164051.4952 ciqo70g2g74oui7v191fmt0rsc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241024@164051.4968 ciqo70g2g74oui7v191fmt0rsc Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20241024@164051.4982 ciqo70g2g74oui7v191fmt0rsc Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20241024@164051.5050 ciqo70g2g74oui7v191fmt0rsc Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20241024@164051.5065 ciqo70g2g74oui7v191fmt0rsc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241024@164051.5080 ciqo70g2g74oui7v191fmt0rsc Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20241024@164051.5096 ciqo70g2g74oui7v191fmt0rsc Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut671a624345671a6a8379' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20241024@164051.5258 ciqo70g2g74oui7v191fmt0rsc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241024@164051.5275 ciqo70g2g74oui7v191fmt0rsc Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20241024@164051.5310 ciqo70g2g74oui7v191fmt0rsc Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20241024@164051.5322 ciqo70g2g74oui7v191fmt0rsc Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20241024@164051.5334 ciqo70g2g74oui7v191fmt0rsc Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20241024@164051.5346 ciqo70g2g74oui7v191fmt0rsc Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20241024@164051.5358 ciqo70g2g74oui7v191fmt0rsc Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20241024@164051.5370 ciqo70g2g74oui7v191fmt0rsc Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20241024@164051.5387 ciqo70g2g74oui7v191fmt0rsc Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut671a624345671a6a8379',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20241024@164051.5633 ciqo70g2g74oui7v191fmt0rsc Query : select top 1 fno valor from wsftdata order by fno desc
20241024@164051.5657 ciqo70g2g74oui7v191fmt0rsc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241024@164051.5673 ciqo70g2g74oui7v191fmt0rsc Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20241024@164051.5872 ciqo70g2g74oui7v191fmt0rsc Query : select 'normal' from dummy
20241024@164051.5887 ciqo70g2g74oui7v191fmt0rsc Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut671a624345671a6a8379',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',1500,100810,0,'2024-10-24',39,'euro',0,0,2024 ,?,?)
20241024@164051.6169 ciqo70g2g74oui7v191fmt0rsc Query : use flama_phc
20241024@164051.6172 ciqo70g2g74oui7v191fmt0rsc Query : select st.usalote valor from st where st.ref = '324.1266.00.1'
20241024@164051.6195 ciqo70g2g74oui7v191fmt0rsc Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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.1266.00.1'
20241024@164051.6351 ciqo70g2g74oui7v191fmt0rsc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241024@164051.6368 ciqo70g2g74oui7v191fmt0rsc Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241024@164051.6397 ciqo70g2g74oui7v191fmt0rsc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241024@164051.6416 ciqo70g2g74oui7v191fmt0rsc Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241024@164051.6426 ciqo70g2g74oui7v191fmt0rsc Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241024@164051.6443 ciqo70g2g74oui7v191fmt0rsc Query : select sestamp valor from se where ref ='324.1266.00.1' and lote = 'r2100597100a'
20241024@164051.6476 ciqo70g2g74oui7v191fmt0rsc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241024@164051.6493 ciqo70g2g74oui7v191fmt0rsc Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241024@164051.6505 ciqo70g2g74oui7v191fmt0rsc Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut671a666371671a6a839e','aut671a624345671a6a8379' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241024@164051.6509 ciqo70g2g74oui7v191fmt0rsc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241024@164051.6526 ciqo70g2g74oui7v191fmt0rsc Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241024@164051.6561 ciqo70g2g74oui7v191fmt0rsc Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut671a666371671a6a839e',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',2.000 ,'aut671a624345671a6a8379' ,0,0 ,2,23.00,10000,?,?,?,?,?)
20241024@164051.6839 ciqo70g2g74oui7v191fmt0rsc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241024@164051.6856 ciqo70g2g74oui7v191fmt0rsc Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241024@164051.6915 ciqo70g2g74oui7v191fmt0rsc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241024@164051.6932 ciqo70g2g74oui7v191fmt0rsc Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241024@164051.6941 ciqo70g2g74oui7v191fmt0rsc Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241024@164051.6954 ciqo70g2g74oui7v191fmt0rsc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241024@164051.6971 ciqo70g2g74oui7v191fmt0rsc Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241024@164051.6985 ciqo70g2g74oui7v191fmt0rsc Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut671a667725671a6a83a9','aut671a624345671a6a8379' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241024@164051.6989 ciqo70g2g74oui7v191fmt0rsc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241024@164051.7017 ciqo70g2g74oui7v191fmt0rsc Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241024@164051.7048 ciqo70g2g74oui7v191fmt0rsc Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut671a667725671a6a83a9',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut671a624345671a6a8379' ,0,0 ,2,23.00,20000,?,?,?)
20241024@164051.7312 ciqo70g2g74oui7v191fmt0rsc Query : use flama_phc
20241024@164051.7316 ciqo70g2g74oui7v191fmt0rsc Query : select st.usalote valor from st where st.ref = '324.1266.00.1'
20241024@164051.7373 ciqo70g2g74oui7v191fmt0rsc Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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.1266.00.1'
20241024@164051.7389 ciqo70g2g74oui7v191fmt0rsc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241024@164051.7406 ciqo70g2g74oui7v191fmt0rsc Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241024@164051.7435 ciqo70g2g74oui7v191fmt0rsc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241024@164051.7461 ciqo70g2g74oui7v191fmt0rsc Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241024@164051.7470 ciqo70g2g74oui7v191fmt0rsc Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241024@164051.7484 ciqo70g2g74oui7v191fmt0rsc Query : select sestamp valor from se where ref ='324.1266.00.1' and lote = 'r2100597100a'
20241024@164051.7497 ciqo70g2g74oui7v191fmt0rsc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241024@164051.7544 ciqo70g2g74oui7v191fmt0rsc Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241024@164051.7558 ciqo70g2g74oui7v191fmt0rsc Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut671a633244671a6a83b7','aut671a624345671a6a8379' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241024@164051.7564 ciqo70g2g74oui7v191fmt0rsc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241024@164051.7582 ciqo70g2g74oui7v191fmt0rsc Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241024@164051.7616 ciqo70g2g74oui7v191fmt0rsc Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut671a633244671a6a83b7',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',8.000 ,'aut671a624345671a6a8379' ,0,0 ,2,23.00,40000,?,?,?,?,?)
20241024@164051.7947 ciqo70g2g74oui7v191fmt0rsc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241024@164051.7967 ciqo70g2g74oui7v191fmt0rsc Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241024@164051.7996 ciqo70g2g74oui7v191fmt0rsc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241024@164051.8014 ciqo70g2g74oui7v191fmt0rsc Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241024@164051.8024 ciqo70g2g74oui7v191fmt0rsc Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241024@164051.8040 ciqo70g2g74oui7v191fmt0rsc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241024@164051.8056 ciqo70g2g74oui7v191fmt0rsc Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241024@164051.8069 ciqo70g2g74oui7v191fmt0rsc Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut671a689924671a6a83c4','aut671a624345671a6a8379' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241024@164051.8114 ciqo70g2g74oui7v191fmt0rsc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241024@164051.8270 ciqo70g2g74oui7v191fmt0rsc Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241024@164051.8306 ciqo70g2g74oui7v191fmt0rsc Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut671a689924671a6a83c4',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut671a624345671a6a8379' ,0,0 ,2,23.00,50000,?,?,?)
20241024@164051.8540 ciqo70g2g74oui7v191fmt0rsc Query : use flama_phc
20241024@164051.8543 ciqo70g2g74oui7v191fmt0rsc Query : select st.usalote valor from st where st.ref = '324.1266.00.1'
20241024@164051.8564 ciqo70g2g74oui7v191fmt0rsc Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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.1266.00.1'
20241024@164051.8579 ciqo70g2g74oui7v191fmt0rsc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241024@164051.8596 ciqo70g2g74oui7v191fmt0rsc Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241024@164051.8632 ciqo70g2g74oui7v191fmt0rsc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241024@164051.8684 ciqo70g2g74oui7v191fmt0rsc Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241024@164051.8693 ciqo70g2g74oui7v191fmt0rsc Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241024@164051.8706 ciqo70g2g74oui7v191fmt0rsc Query : select sestamp valor from se where ref ='324.1266.00.1' and lote = 'r2100597100a'
20241024@164051.8719 ciqo70g2g74oui7v191fmt0rsc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241024@164051.8733 ciqo70g2g74oui7v191fmt0rsc Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241024@164051.8744 ciqo70g2g74oui7v191fmt0rsc Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut671a658386671a6a83d4','aut671a624345671a6a8379' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241024@164051.8749 ciqo70g2g74oui7v191fmt0rsc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241024@164051.8764 ciqo70g2g74oui7v191fmt0rsc Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241024@164051.8808 ciqo70g2g74oui7v191fmt0rsc Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut671a658386671a6a83d4',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',28.000 ,'aut671a624345671a6a8379' ,0,0 ,2,23.00,70000,?,?,?,?,?)
20241024@164051.9198 ciqo70g2g74oui7v191fmt0rsc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241024@164051.9216 ciqo70g2g74oui7v191fmt0rsc Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241024@164051.9251 ciqo70g2g74oui7v191fmt0rsc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241024@164051.9266 ciqo70g2g74oui7v191fmt0rsc Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241024@164051.9281 ciqo70g2g74oui7v191fmt0rsc Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241024@164051.9293 ciqo70g2g74oui7v191fmt0rsc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241024@164051.9308 ciqo70g2g74oui7v191fmt0rsc Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241024@164051.9319 ciqo70g2g74oui7v191fmt0rsc Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut671a644526671a6a83e2','aut671a624345671a6a8379' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241024@164051.9323 ciqo70g2g74oui7v191fmt0rsc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241024@164051.9337 ciqo70g2g74oui7v191fmt0rsc Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241024@164051.9366 ciqo70g2g74oui7v191fmt0rsc Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut671a644526671a6a83e2',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut671a624345671a6a8379' ,0,0 ,2,23.00,80000,?,?,?)
20241024@164052.4400 ciqo70g2g74oui7v191fmt0rsc Query : use flama_phc
20241024@164052.6980 ciqo70g2g74oui7v191fmt0rsc Query : select st.usalote valor from st where st.ref = '324.1266.00.1'
20241024@164052.7450 ciqo70g2g74oui7v191fmt0rsc Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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.1266.00.1'
20241024@164052.7580 ciqo70g2g74oui7v191fmt0rsc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241024@164052.7760 ciqo70g2g74oui7v191fmt0rsc Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241024@164052.8010 ciqo70g2g74oui7v191fmt0rsc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241024@164052.8150 ciqo70g2g74oui7v191fmt0rsc Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241024@164052.8230 ciqo70g2g74oui7v191fmt0rsc Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241024@164052.8700 ciqo70g2g74oui7v191fmt0rsc Query : select sestamp valor from se where ref ='324.1266.00.1' and lote = 'r2100597100a'
20241024@164052.8820 ciqo70g2g74oui7v191fmt0rsc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241024@164052.9000 ciqo70g2g74oui7v191fmt0rsc Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241024@164052.9110 ciqo70g2g74oui7v191fmt0rsc Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut671a683219671a6a8415','aut671a624345671a6a8379' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241024@164052.9150 ciqo70g2g74oui7v191fmt0rsc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241024@164052.9290 ciqo70g2g74oui7v191fmt0rsc Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241024@164052.9650 ciqo70g2g74oui7v191fmt0rsc Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut671a683219671a6a8415',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',28.000 ,'aut671a624345671a6a8379' ,0,0 ,2,23.00,100000,?,?,?,?,?)
20241024@164052.1208 ciqo70g2g74oui7v191fmt0rsc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241024@164052.1223 ciqo70g2g74oui7v191fmt0rsc Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241024@164052.1249 ciqo70g2g74oui7v191fmt0rsc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241024@164052.1264 ciqo70g2g74oui7v191fmt0rsc Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241024@164052.1273 ciqo70g2g74oui7v191fmt0rsc Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241024@164052.1286 ciqo70g2g74oui7v191fmt0rsc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241024@164052.1301 ciqo70g2g74oui7v191fmt0rsc Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241024@164052.1317 ciqo70g2g74oui7v191fmt0rsc Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut671a627003671a6a841f','aut671a624345671a6a8379' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241024@164052.1321 ciqo70g2g74oui7v191fmt0rsc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241024@164052.1335 ciqo70g2g74oui7v191fmt0rsc Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241024@164052.1362 ciqo70g2g74oui7v191fmt0rsc Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut671a627003671a6a841f',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut671a624345671a6a8379' ,0,0 ,2,23.00,110000,?,?,?)
20241024@164052.1601 ciqo70g2g74oui7v191fmt0rsc Query : use flama_phc
20241024@164052.1604 ciqo70g2g74oui7v191fmt0rsc Query : select st.usalote valor from st where st.ref = '324.1266.00.1'
20241024@164052.1623 ciqo70g2g74oui7v191fmt0rsc Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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.1266.00.1'
20241024@164052.1636 ciqo70g2g74oui7v191fmt0rsc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241024@164052.1651 ciqo70g2g74oui7v191fmt0rsc Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241024@164052.1676 ciqo70g2g74oui7v191fmt0rsc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241024@164052.1691 ciqo70g2g74oui7v191fmt0rsc Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241024@164052.1699 ciqo70g2g74oui7v191fmt0rsc Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241024@164052.1711 ciqo70g2g74oui7v191fmt0rsc Query : select sestamp valor from se where ref ='324.1266.00.1' and lote = 'r2100597100a'
20241024@164052.1727 ciqo70g2g74oui7v191fmt0rsc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241024@164052.1742 ciqo70g2g74oui7v191fmt0rsc Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241024@164052.1797 ciqo70g2g74oui7v191fmt0rsc Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut671a633959671a6a842a','aut671a624345671a6a8379' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241024@164052.1801 ciqo70g2g74oui7v191fmt0rsc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241024@164052.1819 ciqo70g2g74oui7v191fmt0rsc Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241024@164052.1848 ciqo70g2g74oui7v191fmt0rsc Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut671a633959671a6a842a',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',28.000 ,'aut671a624345671a6a8379' ,0,0 ,2,23.00,130000,?,?,?,?,?)
20241024@164052.2079 ciqo70g2g74oui7v191fmt0rsc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241024@164052.2095 ciqo70g2g74oui7v191fmt0rsc Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241024@164052.2119 ciqo70g2g74oui7v191fmt0rsc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241024@164052.2134 ciqo70g2g74oui7v191fmt0rsc Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241024@164052.2154 ciqo70g2g74oui7v191fmt0rsc Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241024@164052.2170 ciqo70g2g74oui7v191fmt0rsc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241024@164052.2184 ciqo70g2g74oui7v191fmt0rsc Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241024@164052.2195 ciqo70g2g74oui7v191fmt0rsc Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut671a696301671a6a8434','aut671a624345671a6a8379' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241024@164052.2199 ciqo70g2g74oui7v191fmt0rsc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241024@164052.2213 ciqo70g2g74oui7v191fmt0rsc Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241024@164052.2242 ciqo70g2g74oui7v191fmt0rsc Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut671a696301671a6a8434',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut671a624345671a6a8379' ,0,0 ,2,23.00,140000,?,?,?)
20241024@164052.2460 ciqo70g2g74oui7v191fmt0rsc Query : use flama_phc
20241024@164052.2463 ciqo70g2g74oui7v191fmt0rsc Query : select st.usalote valor from st where st.ref = '324.1266.00.1'
20241024@164052.2481 ciqo70g2g74oui7v191fmt0rsc Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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.1266.00.1'
20241024@164052.2495 ciqo70g2g74oui7v191fmt0rsc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241024@164052.2509 ciqo70g2g74oui7v191fmt0rsc Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241024@164052.2535 ciqo70g2g74oui7v191fmt0rsc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241024@164052.2549 ciqo70g2g74oui7v191fmt0rsc Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241024@164052.2557 ciqo70g2g74oui7v191fmt0rsc Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241024@164052.2569 ciqo70g2g74oui7v191fmt0rsc Query : select sestamp valor from se where ref ='324.1266.00.1' and lote = 'r2100597100a'
20241024@164052.2581 ciqo70g2g74oui7v191fmt0rsc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241024@164052.2597 ciqo70g2g74oui7v191fmt0rsc Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241024@164052.2608 ciqo70g2g74oui7v191fmt0rsc Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut671a659855671a6a843f','aut671a624345671a6a8379' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241024@164052.2611 ciqo70g2g74oui7v191fmt0rsc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241024@164052.2626 ciqo70g2g74oui7v191fmt0rsc Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241024@164052.2664 ciqo70g2g74oui7v191fmt0rsc Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut671a659855671a6a843f',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',28.000 ,'aut671a624345671a6a8379' ,0,0 ,2,23.00,160000,?,?,?,?,?)
20241024@164052.2900 ciqo70g2g74oui7v191fmt0rsc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241024@164052.2914 ciqo70g2g74oui7v191fmt0rsc Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241024@164052.2943 ciqo70g2g74oui7v191fmt0rsc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241024@164052.2958 ciqo70g2g74oui7v191fmt0rsc Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241024@164052.2966 ciqo70g2g74oui7v191fmt0rsc Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241024@164052.2980 ciqo70g2g74oui7v191fmt0rsc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241024@164052.3111 ciqo70g2g74oui7v191fmt0rsc Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241024@164052.3292 ciqo70g2g74oui7v191fmt0rsc Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut671a623097671a6a8448','aut671a624345671a6a8379' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241024@164052.3297 ciqo70g2g74oui7v191fmt0rsc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241024@164052.3313 ciqo70g2g74oui7v191fmt0rsc Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241024@164052.3340 ciqo70g2g74oui7v191fmt0rsc Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut671a623097671a6a8448',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut671a624345671a6a8379' ,0,0 ,2,23.00,170000,?,?,?)
20241024@164052.3572 ciqo70g2g74oui7v191fmt0rsc Query : use flama_phc
20241024@164052.3575 ciqo70g2g74oui7v191fmt0rsc Query : select st.usalote valor from st where st.ref = '324.1266.00.1'
20241024@164052.3595 ciqo70g2g74oui7v191fmt0rsc Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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.1266.00.1'
20241024@164052.3625 ciqo70g2g74oui7v191fmt0rsc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241024@164052.3640 ciqo70g2g74oui7v191fmt0rsc Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241024@164052.3667 ciqo70g2g74oui7v191fmt0rsc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241024@164052.3681 ciqo70g2g74oui7v191fmt0rsc Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241024@164052.3689 ciqo70g2g74oui7v191fmt0rsc Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241024@164052.3700 ciqo70g2g74oui7v191fmt0rsc Query : select sestamp valor from se where ref ='324.1266.00.1' and lote = 'r2100597100a'
20241024@164052.3712 ciqo70g2g74oui7v191fmt0rsc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241024@164052.3737 ciqo70g2g74oui7v191fmt0rsc Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241024@164052.3748 ciqo70g2g74oui7v191fmt0rsc Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut671a614865671a6a845a','aut671a624345671a6a8379' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241024@164052.3752 ciqo70g2g74oui7v191fmt0rsc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241024@164052.3771 ciqo70g2g74oui7v191fmt0rsc Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241024@164052.3801 ciqo70g2g74oui7v191fmt0rsc Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut671a614865671a6a845a',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',28.000 ,'aut671a624345671a6a8379' ,0,0 ,2,23.00,190000,?,?,?,?,?)
20241024@164052.4050 ciqo70g2g74oui7v191fmt0rsc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241024@164052.4072 ciqo70g2g74oui7v191fmt0rsc Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241024@164052.4103 ciqo70g2g74oui7v191fmt0rsc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241024@164052.4152 ciqo70g2g74oui7v191fmt0rsc Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241024@164052.4160 ciqo70g2g74oui7v191fmt0rsc Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241024@164052.4172 ciqo70g2g74oui7v191fmt0rsc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241024@164052.4187 ciqo70g2g74oui7v191fmt0rsc Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241024@164052.4199 ciqo70g2g74oui7v191fmt0rsc Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut671a630357671a6a8465','aut671a624345671a6a8379' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241024@164052.4203 ciqo70g2g74oui7v191fmt0rsc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241024@164052.4217 ciqo70g2g74oui7v191fmt0rsc Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241024@164052.4285 ciqo70g2g74oui7v191fmt0rsc Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut671a630357671a6a8465',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut671a624345671a6a8379' ,0,0 ,2,23.00,200000,?,?,?)
20241024@164052.4545 ciqo70g2g74oui7v191fmt0rsc Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut671a624345671a6a8379','2407028','wait',39,'adm09112754980.682000002')
20241024@164052.4629 ciqo70g2g74oui7v191fmt0rsc Query : use flama_phc
20241024@164052.4632 ciqo70g2g74oui7v191fmt0rsc Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20241024@164052.4665 ciqo70g2g74oui7v191fmt0rsc Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2915';
20241024@164052.4720 ciqo70g2g74oui7v191fmt0rsc Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2915';
20241024@164052.4765 ciqo70g2g74oui7v191fmt0rsc Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2915';
20241024@164052.4791 ciqo70g2g74oui7v191fmt0rsc Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2915';
20241024@164052.5360 740u4pthpetqg688qdli73s5s7 Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20241024@164052.5373 740u4pthpetqg688qdli73s5s7 Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20241024@164052.5443 740u4pthpetqg688qdli73s5s7 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2916';
20241024@164052.5504 740u4pthpetqg688qdli73s5s7 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2916';
20241024@164052.5569 740u4pthpetqg688qdli73s5s7 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2916';
20241024@164052.5610 740u4pthpetqg688qdli73s5s7 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2916';
20241024@164052.5667 740u4pthpetqg688qdli73s5s7 Query : use flama_phc
20241024@164052.5670 740u4pthpetqg688qdli73s5s7 Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20241024@164052.5741 740u4pthpetqg688qdli73s5s7 Query : use flama_phc
20241024@164052.5744 740u4pthpetqg688qdli73s5s7 Query : select no, estab,szadrsdesc from szadrs where u_coddest=313
20241024@164052.5834 740u4pthpetqg688qdli73s5s7 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.4990.00.1'
20241024@164052.5969 740u4pthpetqg688qdli73s5s7 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2070 and bo.obrano = 2407030 and bi.ref ='324.4990.00.1' and bi.lordem =1
20241024@164052.6263 740u4pthpetqg688qdli73s5s7 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.4990.00.1'
20241024@164052.6293 740u4pthpetqg688qdli73s5s7 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2070 and bo.obrano = 2407030 and bi.ref ='324.4990.00.1' and bi.lordem =1
20241024@164052.6310 740u4pthpetqg688qdli73s5s7 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.644.00.01'
20241024@164052.6463 740u4pthpetqg688qdli73s5s7 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2070 and bo.obrano = 2407030 and bi.ref ='324.644.00.01' and bi.lordem =3
20241024@164052.6751 740u4pthpetqg688qdli73s5s7 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.678.00.01'
20241024@164052.6872 740u4pthpetqg688qdli73s5s7 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2070 and bo.obrano = 2407030 and bi.ref ='324.678.00.01' and bi.lordem =4
20241024@164052.7163 740u4pthpetqg688qdli73s5s7 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1643.00.1'
20241024@164052.7296 740u4pthpetqg688qdli73s5s7 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2070 and bo.obrano = 2407030 and bi.ref ='324.1643.00.1' and bi.lordem =5
20241024@164052.7603 740u4pthpetqg688qdli73s5s7 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'
20241024@164052.7729 740u4pthpetqg688qdli73s5s7 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2070 and bo.obrano = 2407030 and bi.ref ='304.421.00.04' and bi.lordem =6
20241024@164052.8033 740u4pthpetqg688qdli73s5s7 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1824.00.1'
20241024@164052.8167 740u4pthpetqg688qdli73s5s7 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2070 and bo.obrano = 2407030 and bi.ref ='324.1824.00.1' and bi.lordem =7
20241024@164052.9481 740u4pthpetqg688qdli73s5s7 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1824.00.1'
20241024@164052.9505 740u4pthpetqg688qdli73s5s7 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2070 and bo.obrano = 2407030 and bi.ref ='324.1824.00.1' and bi.lordem =8
20241024@164052.9827 740u4pthpetqg688qdli73s5s7 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.2301.00.3'
20241024@164052.9973 740u4pthpetqg688qdli73s5s7 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2070 and bo.obrano = 2407030 and bi.ref ='324.2301.00.3' and bi.lordem =9
20241024@164053.2760 740u4pthpetqg688qdli73s5s7 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'
20241024@164053.4000 740u4pthpetqg688qdli73s5s7 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2070 and bo.obrano = 2407030 and bi.ref ='324.1317.00.1' and bi.lordem =10
20241024@164053.7050 740u4pthpetqg688qdli73s5s7 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'
20241024@164053.8280 740u4pthpetqg688qdli73s5s7 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2070 and bo.obrano = 2407030 and bi.ref ='324.1321.00.1' and bi.lordem =11
20241024@164053.1146 740u4pthpetqg688qdli73s5s7 Query : use flama_phc
20241024@164053.1149 740u4pthpetqg688qdli73s5s7 Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20241024@164053.1182 740u4pthpetqg688qdli73s5s7 Query : use flama_phc
20241024@164053.1185 740u4pthpetqg688qdli73s5s7 Query : select top 1 1 valor from td where td.ndoc = 39
20241024@164053.1216 740u4pthpetqg688qdli73s5s7 Query : use flama_phc
20241024@164053.1219 740u4pthpetqg688qdli73s5s7 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')
20241024@164053.1248 740u4pthpetqg688qdli73s5s7 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
20241024@164053.1317 740u4pthpetqg688qdli73s5s7 Query : use flama_phc
20241024@164053.1319 740u4pthpetqg688qdli73s5s7 Query : select top 1 ~inactivo valor from cl where no = '102239' and estab = 0 order by inactivo desc
20241024@164053.1425 740u4pthpetqg688qdli73s5s7 Query : use flama_phc
20241024@164053.1429 740u4pthpetqg688qdli73s5s7 Query : select top 1 tipodoc,regrd from td where ndoc = 39
20241024@164053.1463 740u4pthpetqg688qdli73s5s7 Query : use flama_phc
20241024@164053.1466 740u4pthpetqg688qdli73s5s7 Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20241024@164053.1507 740u4pthpetqg688qdli73s5s7 Query : use flama_phc
20241024@164053.1510 740u4pthpetqg688qdli73s5s7 Query : select szadrsstamp valor from szadrs where szadrsdesc='jose moreira pereira, lda.'
20241024@164053.1560 740u4pthpetqg688qdli73s5s7 Query : use flama_phc
20241024@164053.1563 740u4pthpetqg688qdli73s5s7 Query : select 1 valor from td where ndoc = 39
20241024@164053.1575 740u4pthpetqg688qdli73s5s7 Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20241024@164053.1588 740u4pthpetqg688qdli73s5s7 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241024@164053.1604 740u4pthpetqg688qdli73s5s7 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20241024@164053.1623 740u4pthpetqg688qdli73s5s7 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241024@164053.1637 740u4pthpetqg688qdli73s5s7 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20241024@164053.1701 740u4pthpetqg688qdli73s5s7 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241024@164053.1716 740u4pthpetqg688qdli73s5s7 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20241024@164053.1728 740u4pthpetqg688qdli73s5s7 Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20241024@164053.1790 740u4pthpetqg688qdli73s5s7 Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20241024@164053.1803 740u4pthpetqg688qdli73s5s7 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241024@164053.1824 740u4pthpetqg688qdli73s5s7 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20241024@164053.1838 740u4pthpetqg688qdli73s5s7 Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut671a627523671a6a852a' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20241024@164053.2002 740u4pthpetqg688qdli73s5s7 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241024@164053.2018 740u4pthpetqg688qdli73s5s7 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20241024@164053.2051 740u4pthpetqg688qdli73s5s7 Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20241024@164053.2062 740u4pthpetqg688qdli73s5s7 Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20241024@164053.2073 740u4pthpetqg688qdli73s5s7 Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20241024@164053.2085 740u4pthpetqg688qdli73s5s7 Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20241024@164053.2097 740u4pthpetqg688qdli73s5s7 Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20241024@164053.2108 740u4pthpetqg688qdli73s5s7 Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20241024@164053.2119 740u4pthpetqg688qdli73s5s7 Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut671a627523671a6a852a',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20241024@164053.2338 740u4pthpetqg688qdli73s5s7 Query : select top 1 fno valor from wsftdata order by fno desc
20241024@164053.2361 740u4pthpetqg688qdli73s5s7 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241024@164053.2376 740u4pthpetqg688qdli73s5s7 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20241024@164053.2398 740u4pthpetqg688qdli73s5s7 Query : select 'normal' from dummy
20241024@164053.2412 740u4pthpetqg688qdli73s5s7 Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut671a627523671a6a852a',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',1501,102239,0,'2024-10-24',39,'euro',0,0,2024 ,?,?)
20241024@164053.2682 740u4pthpetqg688qdli73s5s7 Query : use flama_phc
20241024@164053.2685 740u4pthpetqg688qdli73s5s7 Query : select st.usalote valor from st where st.ref = '324.4990.00.1'
20241024@164053.2709 740u4pthpetqg688qdli73s5s7 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.4990.00.1'
20241024@164053.2851 740u4pthpetqg688qdli73s5s7 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241024@164053.2866 740u4pthpetqg688qdli73s5s7 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241024@164053.2892 740u4pthpetqg688qdli73s5s7 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241024@164053.2906 740u4pthpetqg688qdli73s5s7 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241024@164053.2914 740u4pthpetqg688qdli73s5s7 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241024@164053.2926 740u4pthpetqg688qdli73s5s7 Query : select sestamp valor from se where ref ='324.4990.00.1' and lote = 'r2100189200a'
20241024@164053.2961 740u4pthpetqg688qdli73s5s7 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241024@164053.2976 740u4pthpetqg688qdli73s5s7 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241024@164053.2987 740u4pthpetqg688qdli73s5s7 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut671a678960671a6a8548','aut671a627523671a6a852a' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241024@164053.2991 740u4pthpetqg688qdli73s5s7 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241024@164053.3006 740u4pthpetqg688qdli73s5s7 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241024@164053.4164 740u4pthpetqg688qdli73s5s7 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut671a678960671a6a8548',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',4.000 ,'aut671a627523671a6a852a' ,0,0 ,2,23.00,10000,?,?,?,?,?)
20241024@164053.4395 740u4pthpetqg688qdli73s5s7 Query : use flama_phc
20241024@164053.4398 740u4pthpetqg688qdli73s5s7 Query : select st.usalote valor from st where st.ref = '324.4990.00.1'
20241024@164053.4417 740u4pthpetqg688qdli73s5s7 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.4990.00.1'
20241024@164053.4431 740u4pthpetqg688qdli73s5s7 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241024@164053.4446 740u4pthpetqg688qdli73s5s7 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241024@164053.4471 740u4pthpetqg688qdli73s5s7 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241024@164053.4485 740u4pthpetqg688qdli73s5s7 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241024@164053.4493 740u4pthpetqg688qdli73s5s7 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241024@164053.4505 740u4pthpetqg688qdli73s5s7 Query : select sestamp valor from se where ref ='324.4990.00.1' and lote = 'r2100189200a'
20241024@164053.4517 740u4pthpetqg688qdli73s5s7 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241024@164053.4531 740u4pthpetqg688qdli73s5s7 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241024@164053.4543 740u4pthpetqg688qdli73s5s7 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut671a614237671a6a856e','aut671a627523671a6a852a' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241024@164053.4553 740u4pthpetqg688qdli73s5s7 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241024@164053.4568 740u4pthpetqg688qdli73s5s7 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241024@164053.4595 740u4pthpetqg688qdli73s5s7 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut671a614237671a6a856e',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',2.000 ,'aut671a627523671a6a852a' ,0,0 ,2,23.00,20000,?,?,?,?,?)
20241024@164053.4834 740u4pthpetqg688qdli73s5s7 Query : use flama_phc
20241024@164053.4840 740u4pthpetqg688qdli73s5s7 Query : select st.usalote valor from st where st.ref = '324.644.00.01'
20241024@164053.4865 740u4pthpetqg688qdli73s5s7 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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.644.00.01'
20241024@164053.5111 740u4pthpetqg688qdli73s5s7 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241024@164053.5143 740u4pthpetqg688qdli73s5s7 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241024@164053.5215 740u4pthpetqg688qdli73s5s7 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241024@164053.5270 740u4pthpetqg688qdli73s5s7 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241024@164053.5290 740u4pthpetqg688qdli73s5s7 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241024@164053.5367 740u4pthpetqg688qdli73s5s7 Query : select sestamp valor from se where ref ='324.644.00.01' and lote = 'r2400749200a'
20241024@164053.5412 740u4pthpetqg688qdli73s5s7 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241024@164053.5455 740u4pthpetqg688qdli73s5s7 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241024@164053.5468 740u4pthpetqg688qdli73s5s7 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut671a646688671a6a8584','aut671a627523671a6a852a' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241024@164053.5473 740u4pthpetqg688qdli73s5s7 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241024@164053.5489 740u4pthpetqg688qdli73s5s7 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241024@164053.5518 740u4pthpetqg688qdli73s5s7 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut671a646688671a6a8584',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',2.000 ,'aut671a627523671a6a852a' ,0,0 ,2,23.00,30000,?,?,?,?,?)
20241024@164053.5753 740u4pthpetqg688qdli73s5s7 Query : use flama_phc
20241024@164053.5756 740u4pthpetqg688qdli73s5s7 Query : select st.usalote valor from st where st.ref = '324.678.00.01'
20241024@164053.5777 740u4pthpetqg688qdli73s5s7 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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.678.00.01'
20241024@164053.5900 740u4pthpetqg688qdli73s5s7 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241024@164053.5916 740u4pthpetqg688qdli73s5s7 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241024@164053.5943 740u4pthpetqg688qdli73s5s7 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241024@164053.5958 740u4pthpetqg688qdli73s5s7 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241024@164053.5967 740u4pthpetqg688qdli73s5s7 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241024@164053.5978 740u4pthpetqg688qdli73s5s7 Query : select sestamp valor from se where ref ='324.678.00.01' and lote = 'r2400745200a'
20241024@164053.5991 740u4pthpetqg688qdli73s5s7 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241024@164053.6005 740u4pthpetqg688qdli73s5s7 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241024@164053.6017 740u4pthpetqg688qdli73s5s7 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut671a606817671a6a8592','aut671a627523671a6a852a' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241024@164053.6029 740u4pthpetqg688qdli73s5s7 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241024@164053.6044 740u4pthpetqg688qdli73s5s7 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241024@164053.6072 740u4pthpetqg688qdli73s5s7 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut671a606817671a6a8592',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',1.000 ,'aut671a627523671a6a852a' ,0,0 ,2,23.00,40000,?,?,?,?,?)
20241024@164053.6324 740u4pthpetqg688qdli73s5s7 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241024@164053.6341 740u4pthpetqg688qdli73s5s7 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241024@164053.6369 740u4pthpetqg688qdli73s5s7 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241024@164053.6384 740u4pthpetqg688qdli73s5s7 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241024@164053.6393 740u4pthpetqg688qdli73s5s7 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241024@164053.6405 740u4pthpetqg688qdli73s5s7 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241024@164053.6419 740u4pthpetqg688qdli73s5s7 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241024@164053.6430 740u4pthpetqg688qdli73s5s7 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut671a651182671a6a859c','aut671a627523671a6a852a' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241024@164053.6435 740u4pthpetqg688qdli73s5s7 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241024@164053.6452 740u4pthpetqg688qdli73s5s7 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241024@164053.6480 740u4pthpetqg688qdli73s5s7 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut671a651182671a6a859c',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut671a627523671a6a852a' ,0,0 ,2,23.00,50000,?,?,?)
20241024@164053.6715 740u4pthpetqg688qdli73s5s7 Query : use flama_phc
20241024@164053.6718 740u4pthpetqg688qdli73s5s7 Query : select st.usalote valor from st where st.ref = '324.1643.00.1'
20241024@164053.6738 740u4pthpetqg688qdli73s5s7 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.1643.00.1'
20241024@164053.6860 740u4pthpetqg688qdli73s5s7 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241024@164053.6875 740u4pthpetqg688qdli73s5s7 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241024@164053.6901 740u4pthpetqg688qdli73s5s7 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241024@164053.6916 740u4pthpetqg688qdli73s5s7 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241024@164053.6925 740u4pthpetqg688qdli73s5s7 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241024@164053.6936 740u4pthpetqg688qdli73s5s7 Query : select sestamp valor from se where ref ='324.1643.00.1' and lote = 'r2101218200a'
20241024@164053.6972 740u4pthpetqg688qdli73s5s7 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241024@164053.6987 740u4pthpetqg688qdli73s5s7 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241024@164053.6998 740u4pthpetqg688qdli73s5s7 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut671a626533671a6a85aa','aut671a627523671a6a852a' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241024@164053.7002 740u4pthpetqg688qdli73s5s7 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241024@164053.7017 740u4pthpetqg688qdli73s5s7 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241024@164053.7044 740u4pthpetqg688qdli73s5s7 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut671a626533671a6a85aa',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',2.000 ,'aut671a627523671a6a852a' ,0,0 ,2,23.00,70000,?,?,?,?,?)
20241024@164053.7279 740u4pthpetqg688qdli73s5s7 Query : use flama_phc
20241024@164053.7282 740u4pthpetqg688qdli73s5s7 Query : select st.usalote valor from st where st.ref = '304.421.00.04'
20241024@164053.7302 740u4pthpetqg688qdli73s5s7 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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'
20241024@164053.7429 740u4pthpetqg688qdli73s5s7 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241024@164053.7444 740u4pthpetqg688qdli73s5s7 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241024@164053.7470 740u4pthpetqg688qdli73s5s7 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241024@164053.7485 740u4pthpetqg688qdli73s5s7 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241024@164053.7493 740u4pthpetqg688qdli73s5s7 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241024@164053.7505 740u4pthpetqg688qdli73s5s7 Query : select sestamp valor from se where ref ='304.421.00.04' and lote = '241002'
20241024@164053.7536 740u4pthpetqg688qdli73s5s7 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241024@164053.7551 740u4pthpetqg688qdli73s5s7 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241024@164053.7563 740u4pthpetqg688qdli73s5s7 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut671a634733671a6a85b8','aut671a627523671a6a852a' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241024@164053.7567 740u4pthpetqg688qdli73s5s7 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241024@164053.7581 740u4pthpetqg688qdli73s5s7 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241024@164053.7608 740u4pthpetqg688qdli73s5s7 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut671a634733671a6a85b8',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',4.000 ,'aut671a627523671a6a852a' ,0,0 ,2,23.00,80000,?,?,?,?,?)
20241024@164053.7856 740u4pthpetqg688qdli73s5s7 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241024@164053.7871 740u4pthpetqg688qdli73s5s7 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241024@164053.7896 740u4pthpetqg688qdli73s5s7 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241024@164053.7910 740u4pthpetqg688qdli73s5s7 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241024@164053.7918 740u4pthpetqg688qdli73s5s7 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241024@164053.7930 740u4pthpetqg688qdli73s5s7 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241024@164053.7977 740u4pthpetqg688qdli73s5s7 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241024@164053.7989 740u4pthpetqg688qdli73s5s7 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut671a673133671a6a85c1','aut671a627523671a6a852a' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241024@164053.7993 740u4pthpetqg688qdli73s5s7 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241024@164053.8008 740u4pthpetqg688qdli73s5s7 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241024@164053.8036 740u4pthpetqg688qdli73s5s7 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut671a673133671a6a85c1',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut671a627523671a6a852a' ,0,0 ,2,23.00,90000,?,?,?)
20241024@164053.8279 740u4pthpetqg688qdli73s5s7 Query : use flama_phc
20241024@164053.8283 740u4pthpetqg688qdli73s5s7 Query : select st.usalote valor from st where st.ref = '324.1824.00.1'
20241024@164053.8303 740u4pthpetqg688qdli73s5s7 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.1824.00.1'
20241024@164053.8431 740u4pthpetqg688qdli73s5s7 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241024@164053.8447 740u4pthpetqg688qdli73s5s7 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241024@164053.8472 740u4pthpetqg688qdli73s5s7 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241024@164053.8487 740u4pthpetqg688qdli73s5s7 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241024@164053.8496 740u4pthpetqg688qdli73s5s7 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241024@164053.8507 740u4pthpetqg688qdli73s5s7 Query : select sestamp valor from se where ref ='324.1824.00.1' and lote = 'r2400215200a'
20241024@164053.8533 740u4pthpetqg688qdli73s5s7 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241024@164053.8548 740u4pthpetqg688qdli73s5s7 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241024@164053.8559 740u4pthpetqg688qdli73s5s7 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut671a605727671a6a85d0','aut671a627523671a6a852a' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241024@164053.8563 740u4pthpetqg688qdli73s5s7 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241024@164053.8578 740u4pthpetqg688qdli73s5s7 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241024@164053.8606 740u4pthpetqg688qdli73s5s7 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut671a605727671a6a85d0',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',7.000 ,'aut671a627523671a6a852a' ,0,0 ,2,23.00,110000,?,?,?,?,?)
20241024@164053.8837 740u4pthpetqg688qdli73s5s7 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241024@164053.8886 740u4pthpetqg688qdli73s5s7 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241024@164053.8911 740u4pthpetqg688qdli73s5s7 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241024@164053.8926 740u4pthpetqg688qdli73s5s7 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241024@164053.8934 740u4pthpetqg688qdli73s5s7 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241024@164053.8946 740u4pthpetqg688qdli73s5s7 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241024@164053.8962 740u4pthpetqg688qdli73s5s7 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241024@164053.8974 740u4pthpetqg688qdli73s5s7 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut671a628371671a6a85da','aut671a627523671a6a852a' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241024@164053.8978 740u4pthpetqg688qdli73s5s7 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241024@164053.8992 740u4pthpetqg688qdli73s5s7 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241024@164053.9027 740u4pthpetqg688qdli73s5s7 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut671a628371671a6a85da',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut671a627523671a6a852a' ,0,0 ,2,23.00,120000,?,?,?)
20241024@164053.9255 740u4pthpetqg688qdli73s5s7 Query : use flama_phc
20241024@164053.9259 740u4pthpetqg688qdli73s5s7 Query : select st.usalote valor from st where st.ref = '324.1824.00.1'
20241024@164053.9278 740u4pthpetqg688qdli73s5s7 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.1824.00.1'
20241024@164053.9291 740u4pthpetqg688qdli73s5s7 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241024@164053.9306 740u4pthpetqg688qdli73s5s7 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241024@164053.9363 740u4pthpetqg688qdli73s5s7 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241024@164053.9377 740u4pthpetqg688qdli73s5s7 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241024@164053.9385 740u4pthpetqg688qdli73s5s7 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241024@164053.9398 740u4pthpetqg688qdli73s5s7 Query : select sestamp valor from se where ref ='324.1824.00.1' and lote = 'r2400215200a'
20241024@164053.9411 740u4pthpetqg688qdli73s5s7 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241024@164053.9426 740u4pthpetqg688qdli73s5s7 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241024@164053.9439 740u4pthpetqg688qdli73s5s7 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut671a620231671a6a85e5','aut671a627523671a6a852a' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241024@164053.9444 740u4pthpetqg688qdli73s5s7 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241024@164053.9461 740u4pthpetqg688qdli73s5s7 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241024@164053.9615 740u4pthpetqg688qdli73s5s7 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut671a620231671a6a85e5',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',1.000 ,'aut671a627523671a6a852a' ,0,0 ,2,23.00,140000,?,?,?,?,?)
20241024@164053.9859 740u4pthpetqg688qdli73s5s7 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241024@164053.9876 740u4pthpetqg688qdli73s5s7 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241024@164053.9901 740u4pthpetqg688qdli73s5s7 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241024@164053.9916 740u4pthpetqg688qdli73s5s7 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241024@164053.9925 740u4pthpetqg688qdli73s5s7 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241024@164053.9937 740u4pthpetqg688qdli73s5s7 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241024@164053.9951 740u4pthpetqg688qdli73s5s7 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241024@164053.9962 740u4pthpetqg688qdli73s5s7 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut671a631548671a6a85f2','aut671a627523671a6a852a' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241024@164053.9967 740u4pthpetqg688qdli73s5s7 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241024@164053.9982 740u4pthpetqg688qdli73s5s7 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241024@164054.1121 740u4pthpetqg688qdli73s5s7 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut671a631548671a6a85f2',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut671a627523671a6a852a' ,0,0 ,2,23.00,150000,?,?,?)
20241024@164054.1856 740u4pthpetqg688qdli73s5s7 Query : use flama_phc
20241024@164054.1898 740u4pthpetqg688qdli73s5s7 Query : select st.usalote valor from st where st.ref = '324.2301.00.3'
20241024@164054.1973 740u4pthpetqg688qdli73s5s7 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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.2301.00.3'
20241024@164054.2108 740u4pthpetqg688qdli73s5s7 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241024@164054.2126 740u4pthpetqg688qdli73s5s7 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241024@164054.2156 740u4pthpetqg688qdli73s5s7 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241024@164054.2173 740u4pthpetqg688qdli73s5s7 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241024@164054.2182 740u4pthpetqg688qdli73s5s7 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241024@164054.2195 740u4pthpetqg688qdli73s5s7 Query : select sestamp valor from se where ref ='324.2301.00.3' and lote = 'r2400474200a'
20241024@164054.2209 740u4pthpetqg688qdli73s5s7 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241024@164054.2225 740u4pthpetqg688qdli73s5s7 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241024@164054.2239 740u4pthpetqg688qdli73s5s7 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut671a677524671a6a8635','aut671a627523671a6a852a' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241024@164054.2279 740u4pthpetqg688qdli73s5s7 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241024@164054.2296 740u4pthpetqg688qdli73s5s7 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241024@164054.2325 740u4pthpetqg688qdli73s5s7 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut671a677524671a6a8635',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',6.000 ,'aut671a627523671a6a852a' ,0,0 ,2,23.00,170000,?,?,?,?,?)
20241024@164054.2571 740u4pthpetqg688qdli73s5s7 Query : use flama_phc
20241024@164054.2575 740u4pthpetqg688qdli73s5s7 Query : select st.usalote valor from st where st.ref = '324.1317.00.1'
20241024@164054.2595 740u4pthpetqg688qdli73s5s7 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.1317.00.1'
20241024@164054.2719 740u4pthpetqg688qdli73s5s7 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241024@164054.2736 740u4pthpetqg688qdli73s5s7 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241024@164054.2761 740u4pthpetqg688qdli73s5s7 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241024@164054.2776 740u4pthpetqg688qdli73s5s7 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241024@164054.2785 740u4pthpetqg688qdli73s5s7 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241024@164054.2798 740u4pthpetqg688qdli73s5s7 Query : select sestamp valor from se where ref ='324.1317.00.1' and lote = 'r2400458200a'
20241024@164054.2813 740u4pthpetqg688qdli73s5s7 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241024@164054.2828 740u4pthpetqg688qdli73s5s7 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241024@164054.2840 740u4pthpetqg688qdli73s5s7 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut671a682974671a6a8644','aut671a627523671a6a852a' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241024@164054.2844 740u4pthpetqg688qdli73s5s7 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241024@164054.2859 740u4pthpetqg688qdli73s5s7 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241024@164054.2887 740u4pthpetqg688qdli73s5s7 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut671a682974671a6a8644',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',2.000 ,'aut671a627523671a6a852a' ,0,0 ,2,23.00,180000,?,?,?,?,?)
20241024@164054.3117 740u4pthpetqg688qdli73s5s7 Query : use flama_phc
20241024@164054.3120 740u4pthpetqg688qdli73s5s7 Query : select st.usalote valor from st where st.ref = '324.1321.00.1'
20241024@164054.3141 740u4pthpetqg688qdli73s5s7 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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'
20241024@164054.3264 740u4pthpetqg688qdli73s5s7 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241024@164054.3281 740u4pthpetqg688qdli73s5s7 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241024@164054.3306 740u4pthpetqg688qdli73s5s7 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241024@164054.3322 740u4pthpetqg688qdli73s5s7 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241024@164054.3330 740u4pthpetqg688qdli73s5s7 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241024@164054.3342 740u4pthpetqg688qdli73s5s7 Query : select sestamp valor from se where ref ='324.1321.00.1' and lote = 'r2400495200a'
20241024@164054.3363 740u4pthpetqg688qdli73s5s7 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241024@164054.3377 740u4pthpetqg688qdli73s5s7 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241024@164054.3389 740u4pthpetqg688qdli73s5s7 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut671a691779671a6a8652','aut671a627523671a6a852a' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241024@164054.3393 740u4pthpetqg688qdli73s5s7 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241024@164054.3408 740u4pthpetqg688qdli73s5s7 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241024@164054.3437 740u4pthpetqg688qdli73s5s7 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut671a691779671a6a8652',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',2.000 ,'aut671a627523671a6a852a' ,0,0 ,2,23.00,190000,?,?,?,?,?)
20241024@164054.3674 740u4pthpetqg688qdli73s5s7 Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut671a627523671a6a852a','2407030','wait',39,'adm09112754980.682000002')
20241024@164054.3767 740u4pthpetqg688qdli73s5s7 Query : use flama_phc
20241024@164054.3771 740u4pthpetqg688qdli73s5s7 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20241024@164054.3802 740u4pthpetqg688qdli73s5s7 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2916';
20241024@164054.3836 740u4pthpetqg688qdli73s5s7 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2916';
20241024@164054.3881 740u4pthpetqg688qdli73s5s7 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2916';
20241024@164054.3909 740u4pthpetqg688qdli73s5s7 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2916';
20241024@164054.4969 3r25ghck1vog1dfqv3kgui76g1 Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20241024@164054.4982 3r25ghck1vog1dfqv3kgui76g1 Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20241024@164054.5047 3r25ghck1vog1dfqv3kgui76g1 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2917';
20241024@164054.5107 3r25ghck1vog1dfqv3kgui76g1 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2917';
20241024@164054.5164 3r25ghck1vog1dfqv3kgui76g1 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2917';
20241024@164054.5192 3r25ghck1vog1dfqv3kgui76g1 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2917';
20241024@164054.5765 3r25ghck1vog1dfqv3kgui76g1 Query : use flama_phc
20241024@164054.5899 3r25ghck1vog1dfqv3kgui76g1 Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20241024@164054.5974 3r25ghck1vog1dfqv3kgui76g1 Query : use flama_phc
20241024@164054.5977 3r25ghck1vog1dfqv3kgui76g1 Query : select no, estab,szadrsdesc from szadrs where u_coddest=848
20241024@164054.6060 3r25ghck1vog1dfqv3kgui76g1 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'
20241024@164054.6188 3r25ghck1vog1dfqv3kgui76g1 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2070 and bo.obrano = 2407033 and bi.ref ='324.2232.00.1' and bi.lordem =1
20241024@164054.6489 3r25ghck1vog1dfqv3kgui76g1 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1879.00.1'
20241024@164054.6651 3r25ghck1vog1dfqv3kgui76g1 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2070 and bo.obrano = 2407033 and bi.ref ='324.1879.00.1' and bi.lordem =2
20241024@164054.7921 3r25ghck1vog1dfqv3kgui76g1 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1705.00.1'
20241024@164054.8071 3r25ghck1vog1dfqv3kgui76g1 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2070 and bo.obrano = 2407033 and bi.ref ='324.1705.00.1' and bi.lordem =3
20241024@164054.8367 3r25ghck1vog1dfqv3kgui76g1 Query : use flama_phc
20241024@164054.8371 3r25ghck1vog1dfqv3kgui76g1 Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20241024@164054.8409 3r25ghck1vog1dfqv3kgui76g1 Query : use flama_phc
20241024@164054.8412 3r25ghck1vog1dfqv3kgui76g1 Query : select top 1 1 valor from td where td.ndoc = 39
20241024@164054.8446 3r25ghck1vog1dfqv3kgui76g1 Query : use flama_phc
20241024@164054.8450 3r25ghck1vog1dfqv3kgui76g1 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')
20241024@164054.8483 3r25ghck1vog1dfqv3kgui76g1 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
20241024@164054.8531 3r25ghck1vog1dfqv3kgui76g1 Query : use flama_phc
20241024@164054.8534 3r25ghck1vog1dfqv3kgui76g1 Query : select top 1 ~inactivo valor from cl where no = '100793' and estab = 0 order by inactivo desc
20241024@164054.8640 3r25ghck1vog1dfqv3kgui76g1 Query : use flama_phc
20241024@164054.8643 3r25ghck1vog1dfqv3kgui76g1 Query : select top 1 tipodoc,regrd from td where ndoc = 39
20241024@164054.8677 3r25ghck1vog1dfqv3kgui76g1 Query : use flama_phc
20241024@164054.8680 3r25ghck1vog1dfqv3kgui76g1 Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20241024@164054.8723 3r25ghck1vog1dfqv3kgui76g1 Query : use flama_phc
20241024@164054.8726 3r25ghck1vog1dfqv3kgui76g1 Query : select szadrsstamp valor from szadrs where szadrsdesc='gil farinha garcia'
20241024@164054.8779 3r25ghck1vog1dfqv3kgui76g1 Query : use flama_phc
20241024@164054.8782 3r25ghck1vog1dfqv3kgui76g1 Query : select 1 valor from td where ndoc = 39
20241024@164054.8794 3r25ghck1vog1dfqv3kgui76g1 Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20241024@164054.8809 3r25ghck1vog1dfqv3kgui76g1 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241024@164054.8825 3r25ghck1vog1dfqv3kgui76g1 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20241024@164054.8845 3r25ghck1vog1dfqv3kgui76g1 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241024@164054.8860 3r25ghck1vog1dfqv3kgui76g1 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20241024@164054.8890 3r25ghck1vog1dfqv3kgui76g1 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241024@164054.8905 3r25ghck1vog1dfqv3kgui76g1 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20241024@164054.8917 3r25ghck1vog1dfqv3kgui76g1 Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20241024@164054.8983 3r25ghck1vog1dfqv3kgui76g1 Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20241024@164054.8997 3r25ghck1vog1dfqv3kgui76g1 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241024@164054.9012 3r25ghck1vog1dfqv3kgui76g1 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20241024@164054.9028 3r25ghck1vog1dfqv3kgui76g1 Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut671a624819671a6a86d9' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20241024@164054.9189 3r25ghck1vog1dfqv3kgui76g1 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241024@164054.9205 3r25ghck1vog1dfqv3kgui76g1 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20241024@164054.9239 3r25ghck1vog1dfqv3kgui76g1 Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20241024@164054.9251 3r25ghck1vog1dfqv3kgui76g1 Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20241024@164054.9264 3r25ghck1vog1dfqv3kgui76g1 Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20241024@164054.9276 3r25ghck1vog1dfqv3kgui76g1 Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20241024@164054.9288 3r25ghck1vog1dfqv3kgui76g1 Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20241024@164054.9970 3r25ghck1vog1dfqv3kgui76g1 Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20241024@164054.9982 3r25ghck1vog1dfqv3kgui76g1 Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut671a624819671a6a86d9',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20241024@164055.2320 3r25ghck1vog1dfqv3kgui76g1 Query : select top 1 fno valor from wsftdata order by fno desc
20241024@164055.2560 3r25ghck1vog1dfqv3kgui76g1 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241024@164055.2730 3r25ghck1vog1dfqv3kgui76g1 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20241024@164055.2950 3r25ghck1vog1dfqv3kgui76g1 Query : select 'normal' from dummy
20241024@164055.3090 3r25ghck1vog1dfqv3kgui76g1 Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut671a624819671a6a86d9',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',1502,100793,0,'2024-10-24',39,'euro',0,0,2024 ,?,?)
20241024@164055.5900 3r25ghck1vog1dfqv3kgui76g1 Query : use flama_phc
20241024@164055.5930 3r25ghck1vog1dfqv3kgui76g1 Query : select st.usalote valor from st where st.ref = '324.2232.00.1'
20241024@164055.6150 3r25ghck1vog1dfqv3kgui76g1 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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'
20241024@164055.7390 3r25ghck1vog1dfqv3kgui76g1 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241024@164055.7540 3r25ghck1vog1dfqv3kgui76g1 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241024@164055.7800 3r25ghck1vog1dfqv3kgui76g1 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241024@164055.7950 3r25ghck1vog1dfqv3kgui76g1 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241024@164055.8030 3r25ghck1vog1dfqv3kgui76g1 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241024@164055.8160 3r25ghck1vog1dfqv3kgui76g1 Query : select sestamp valor from se where ref ='324.2232.00.1' and lote = 'r2400241100a'
20241024@164055.8390 3r25ghck1vog1dfqv3kgui76g1 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241024@164055.8530 3r25ghck1vog1dfqv3kgui76g1 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241024@164055.8650 3r25ghck1vog1dfqv3kgui76g1 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut671a617045671a6a8714','aut671a624819671a6a86d9' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241024@164055.8690 3r25ghck1vog1dfqv3kgui76g1 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241024@164055.8830 3r25ghck1vog1dfqv3kgui76g1 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241024@164055.9110 3r25ghck1vog1dfqv3kgui76g1 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut671a617045671a6a8714',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',2.000 ,'aut671a624819671a6a86d9' ,0,0 ,2,23.00,10000,?,?,?,?,?)
20241024@164055.1137 3r25ghck1vog1dfqv3kgui76g1 Query : use flama_phc
20241024@164055.1140 3r25ghck1vog1dfqv3kgui76g1 Query : select st.usalote valor from st where st.ref = '324.1879.00.1'
20241024@164055.1160 3r25ghck1vog1dfqv3kgui76g1 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.1879.00.1'
20241024@164055.1284 3r25ghck1vog1dfqv3kgui76g1 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241024@164055.1300 3r25ghck1vog1dfqv3kgui76g1 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241024@164055.1325 3r25ghck1vog1dfqv3kgui76g1 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241024@164055.1340 3r25ghck1vog1dfqv3kgui76g1 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241024@164055.1348 3r25ghck1vog1dfqv3kgui76g1 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241024@164055.1360 3r25ghck1vog1dfqv3kgui76g1 Query : select sestamp valor from se where ref ='324.1879.00.1' and lote = 'r2301097100b'
20241024@164055.1381 3r25ghck1vog1dfqv3kgui76g1 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241024@164055.1395 3r25ghck1vog1dfqv3kgui76g1 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241024@164055.1406 3r25ghck1vog1dfqv3kgui76g1 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut671a636029671a6a8721','aut671a624819671a6a86d9' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241024@164055.2061 3r25ghck1vog1dfqv3kgui76g1 Query : use flama_phc
20241024@164055.2067 3r25ghck1vog1dfqv3kgui76g1 Query : select top 1 errorresult result ,errornumber errornumber ,descriptionpt description ,isnull(descriptionen,'') descriptionen ,isnull(descriptionfr,'') descriptionfr from wserrorcodes where errornumber = -116
20241024@164055.2156 3r25ghck1vog1dfqv3kgui76g1 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2917';
20241024@164055.2191 3r25ghck1vog1dfqv3kgui76g1 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2917';
20241024@164055.2734 ggep717fbjtnjjcibl0kcnc2cv Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20241024@164055.2746 ggep717fbjtnjjcibl0kcnc2cv Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20241024@164055.2817 ggep717fbjtnjjcibl0kcnc2cv Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2918';
20241024@164055.2878 ggep717fbjtnjjcibl0kcnc2cv Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2918';
20241024@164055.2936 ggep717fbjtnjjcibl0kcnc2cv Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2918';
20241024@164055.2966 ggep717fbjtnjjcibl0kcnc2cv Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2918';
20241024@164055.3020 ggep717fbjtnjjcibl0kcnc2cv Query : use flama_phc
20241024@164055.3023 ggep717fbjtnjjcibl0kcnc2cv Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20241024@164055.3099 ggep717fbjtnjjcibl0kcnc2cv Query : use flama_phc
20241024@164055.3101 ggep717fbjtnjjcibl0kcnc2cv Query : select no, estab,szadrsdesc from szadrs where u_coddest=78
20241024@164055.3182 ggep717fbjtnjjcibl0kcnc2cv Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1705.00.1'
20241024@164055.3202 ggep717fbjtnjjcibl0kcnc2cv Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2070 and bo.obrano = 2407034 and bi.ref ='324.1705.00.1' and bi.lordem =1
20241024@164055.3564 ggep717fbjtnjjcibl0kcnc2cv Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1536.00.1'
20241024@164055.3700 ggep717fbjtnjjcibl0kcnc2cv Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2070 and bo.obrano = 2407034 and bi.ref ='324.1536.00.1' and bi.lordem =2
20241024@164055.4990 ggep717fbjtnjjcibl0kcnc2cv Query : use flama_phc
20241024@164055.5002 ggep717fbjtnjjcibl0kcnc2cv Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20241024@164055.5040 ggep717fbjtnjjcibl0kcnc2cv Query : use flama_phc
20241024@164055.5043 ggep717fbjtnjjcibl0kcnc2cv Query : select top 1 1 valor from td where td.ndoc = 39
20241024@164055.5078 ggep717fbjtnjjcibl0kcnc2cv Query : use flama_phc
20241024@164055.5081 ggep717fbjtnjjcibl0kcnc2cv 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')
20241024@164055.5112 ggep717fbjtnjjcibl0kcnc2cv 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
20241024@164055.5148 ggep717fbjtnjjcibl0kcnc2cv Query : use flama_phc
20241024@164055.5151 ggep717fbjtnjjcibl0kcnc2cv Query : select top 1 ~inactivo valor from cl where no = '100317' and estab = 0 order by inactivo desc
20241024@164055.5799 ggep717fbjtnjjcibl0kcnc2cv Query : use flama_phc
20241024@164055.5804 ggep717fbjtnjjcibl0kcnc2cv Query : select top 1 tipodoc,regrd from td where ndoc = 39
20241024@164055.5839 ggep717fbjtnjjcibl0kcnc2cv Query : use flama_phc
20241024@164055.5842 ggep717fbjtnjjcibl0kcnc2cv Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20241024@164055.5895 ggep717fbjtnjjcibl0kcnc2cv Query : use flama_phc
20241024@164055.5898 ggep717fbjtnjjcibl0kcnc2cv Query : select szadrsstamp valor from szadrs where szadrsdesc='santos & fernandes-arm.util.prolar, lda'
20241024@164055.5954 ggep717fbjtnjjcibl0kcnc2cv Query : use flama_phc
20241024@164055.5957 ggep717fbjtnjjcibl0kcnc2cv Query : select 1 valor from td where ndoc = 39
20241024@164055.5969 ggep717fbjtnjjcibl0kcnc2cv Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20241024@164055.5983 ggep717fbjtnjjcibl0kcnc2cv Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241024@164055.6000 ggep717fbjtnjjcibl0kcnc2cv Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20241024@164055.6019 ggep717fbjtnjjcibl0kcnc2cv Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241024@164055.6036 ggep717fbjtnjjcibl0kcnc2cv Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20241024@164055.6064 ggep717fbjtnjjcibl0kcnc2cv Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241024@164055.6079 ggep717fbjtnjjcibl0kcnc2cv Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20241024@164055.6092 ggep717fbjtnjjcibl0kcnc2cv Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20241024@164055.6155 ggep717fbjtnjjcibl0kcnc2cv Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20241024@164055.6168 ggep717fbjtnjjcibl0kcnc2cv Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241024@164055.6182 ggep717fbjtnjjcibl0kcnc2cv Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20241024@164055.6198 ggep717fbjtnjjcibl0kcnc2cv Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut671a602541671a6a8794' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20241024@164055.6368 ggep717fbjtnjjcibl0kcnc2cv Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241024@164055.6386 ggep717fbjtnjjcibl0kcnc2cv Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20241024@164055.6420 ggep717fbjtnjjcibl0kcnc2cv Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20241024@164055.6432 ggep717fbjtnjjcibl0kcnc2cv Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20241024@164055.6444 ggep717fbjtnjjcibl0kcnc2cv Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20241024@164055.6458 ggep717fbjtnjjcibl0kcnc2cv Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20241024@164055.6469 ggep717fbjtnjjcibl0kcnc2cv Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20241024@164055.6481 ggep717fbjtnjjcibl0kcnc2cv Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20241024@164055.6493 ggep717fbjtnjjcibl0kcnc2cv Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut671a602541671a6a8794',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20241024@164055.6728 ggep717fbjtnjjcibl0kcnc2cv Query : select top 1 fno valor from wsftdata order by fno desc
20241024@164055.6752 ggep717fbjtnjjcibl0kcnc2cv Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241024@164055.6768 ggep717fbjtnjjcibl0kcnc2cv Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20241024@164055.6791 ggep717fbjtnjjcibl0kcnc2cv Query : select 'normal' from dummy
20241024@164055.6807 ggep717fbjtnjjcibl0kcnc2cv Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut671a602541671a6a8794',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',1502,100317,0,'2024-10-24',39,'euro',0,0,2024 ,?,?)
20241024@164055.7070 ggep717fbjtnjjcibl0kcnc2cv Query : use flama_phc
20241024@164055.7073 ggep717fbjtnjjcibl0kcnc2cv Query : select st.usalote valor from st where st.ref = '324.1705.00.1'
20241024@164055.7094 ggep717fbjtnjjcibl0kcnc2cv Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.1705.00.1'
20241024@164055.7218 ggep717fbjtnjjcibl0kcnc2cv Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241024@164055.7233 ggep717fbjtnjjcibl0kcnc2cv Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241024@164055.7259 ggep717fbjtnjjcibl0kcnc2cv Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241024@164055.7273 ggep717fbjtnjjcibl0kcnc2cv Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241024@164055.7282 ggep717fbjtnjjcibl0kcnc2cv Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241024@164055.7294 ggep717fbjtnjjcibl0kcnc2cv Query : select sestamp valor from se where ref ='324.1705.00.1' and lote = 'r2400050500a'
20241024@164055.7323 ggep717fbjtnjjcibl0kcnc2cv Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241024@164055.7337 ggep717fbjtnjjcibl0kcnc2cv Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241024@164055.7348 ggep717fbjtnjjcibl0kcnc2cv Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut671a639759671a6a87b2','aut671a602541671a6a8794' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241024@164055.7353 ggep717fbjtnjjcibl0kcnc2cv Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241024@164055.7367 ggep717fbjtnjjcibl0kcnc2cv Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241024@164055.7397 ggep717fbjtnjjcibl0kcnc2cv Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut671a639759671a6a87b2',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',24.000 ,'aut671a602541671a6a8794' ,0,0 ,2,23.00,10000,?,?,?,?,?)
20241024@164055.7972 ggep717fbjtnjjcibl0kcnc2cv Query : use flama_phc
20241024@164055.8116 ggep717fbjtnjjcibl0kcnc2cv Query : select st.usalote valor from st where st.ref = '324.1536.00.1'
20241024@164055.8141 ggep717fbjtnjjcibl0kcnc2cv Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.1536.00.1'
20241024@164055.8279 ggep717fbjtnjjcibl0kcnc2cv Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241024@164055.8296 ggep717fbjtnjjcibl0kcnc2cv Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241024@164055.8322 ggep717fbjtnjjcibl0kcnc2cv Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241024@164055.8338 ggep717fbjtnjjcibl0kcnc2cv Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241024@164055.8355 ggep717fbjtnjjcibl0kcnc2cv Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241024@164055.8367 ggep717fbjtnjjcibl0kcnc2cv Query : select sestamp valor from se where ref ='324.1536.00.1' and lote = 'r2100240100a'
20241024@164055.8399 ggep717fbjtnjjcibl0kcnc2cv Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241024@164055.8414 ggep717fbjtnjjcibl0kcnc2cv Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241024@164055.8425 ggep717fbjtnjjcibl0kcnc2cv Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut671a684324671a6a87cd','aut671a602541671a6a8794' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241024@164055.8429 ggep717fbjtnjjcibl0kcnc2cv Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241024@164055.8444 ggep717fbjtnjjcibl0kcnc2cv Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241024@164055.8474 ggep717fbjtnjjcibl0kcnc2cv Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut671a684324671a6a87cd',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',2.000 ,'aut671a602541671a6a8794' ,0,0 ,2,23.00,20000,?,?,?,?,?)
20241024@164055.8706 ggep717fbjtnjjcibl0kcnc2cv Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut671a602541671a6a8794','2407034','wait',39,'adm09112754980.682000002')
20241024@164055.8798 ggep717fbjtnjjcibl0kcnc2cv Query : use flama_phc
20241024@164055.8801 ggep717fbjtnjjcibl0kcnc2cv Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20241024@164055.8836 ggep717fbjtnjjcibl0kcnc2cv Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2918';
20241024@164055.8871 ggep717fbjtnjjcibl0kcnc2cv Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2918';
20241024@164055.8937 ggep717fbjtnjjcibl0kcnc2cv Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2918';
20241024@164055.8970 ggep717fbjtnjjcibl0kcnc2cv Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2918';
20241024@164055.9471 ckmf8abb7lteikdrqtome68d8f Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20241024@164055.9482 ckmf8abb7lteikdrqtome68d8f Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20241024@164055.9543 ckmf8abb7lteikdrqtome68d8f Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2919';
20241024@164055.9601 ckmf8abb7lteikdrqtome68d8f Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2919';
20241024@164055.9664 ckmf8abb7lteikdrqtome68d8f Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2919';
20241024@164055.9693 ckmf8abb7lteikdrqtome68d8f Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2919';
20241024@164055.9756 ckmf8abb7lteikdrqtome68d8f Query : use flama_phc
20241024@164055.9759 ckmf8abb7lteikdrqtome68d8f Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20241024@164055.9840 ckmf8abb7lteikdrqtome68d8f Query : use flama_phc
20241024@164055.9843 ckmf8abb7lteikdrqtome68d8f Query : select no, estab,szadrsdesc from szadrs where u_coddest=2270
20241024@164055.9958 ckmf8abb7lteikdrqtome68d8f Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.686.00.01'
20241024@164056.1740 ckmf8abb7lteikdrqtome68d8f Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2070 and bo.obrano = 2407035 and bi.ref ='324.686.00.01' and bi.lordem =1
20241024@164056.1037 ckmf8abb7lteikdrqtome68d8f Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.675.00.01'
20241024@164056.1175 ckmf8abb7lteikdrqtome68d8f Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2070 and bo.obrano = 2407035 and bi.ref ='324.675.00.01' and bi.lordem =2
20241024@164056.1502 ckmf8abb7lteikdrqtome68d8f Query : use flama_phc
20241024@164056.1505 ckmf8abb7lteikdrqtome68d8f Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20241024@164056.1539 ckmf8abb7lteikdrqtome68d8f Query : use flama_phc
20241024@164056.1542 ckmf8abb7lteikdrqtome68d8f Query : select top 1 1 valor from td where td.ndoc = 39
20241024@164056.1574 ckmf8abb7lteikdrqtome68d8f Query : use flama_phc
20241024@164056.1577 ckmf8abb7lteikdrqtome68d8f 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')
20241024@164056.1605 ckmf8abb7lteikdrqtome68d8f 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
20241024@164056.1650 ckmf8abb7lteikdrqtome68d8f Query : use flama_phc
20241024@164056.1653 ckmf8abb7lteikdrqtome68d8f Query : select top 1 ~inactivo valor from cl where no = '102439' and estab = 0 order by inactivo desc
20241024@164056.1761 ckmf8abb7lteikdrqtome68d8f Query : use flama_phc
20241024@164056.1764 ckmf8abb7lteikdrqtome68d8f Query : select top 1 tipodoc,regrd from td where ndoc = 39
20241024@164056.1807 ckmf8abb7lteikdrqtome68d8f Query : use flama_phc
20241024@164056.1810 ckmf8abb7lteikdrqtome68d8f Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20241024@164056.1863 ckmf8abb7lteikdrqtome68d8f Query : use flama_phc
20241024@164056.1865 ckmf8abb7lteikdrqtome68d8f Query : select szadrsstamp valor from szadrs where szadrsdesc='carlos luis unipessoal lda'
20241024@164056.1921 ckmf8abb7lteikdrqtome68d8f Query : use flama_phc
20241024@164056.1924 ckmf8abb7lteikdrqtome68d8f Query : select 1 valor from td where ndoc = 39
20241024@164056.1936 ckmf8abb7lteikdrqtome68d8f Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20241024@164056.1950 ckmf8abb7lteikdrqtome68d8f Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241024@164056.1966 ckmf8abb7lteikdrqtome68d8f Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20241024@164056.1984 ckmf8abb7lteikdrqtome68d8f Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241024@164056.1998 ckmf8abb7lteikdrqtome68d8f Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20241024@164056.2025 ckmf8abb7lteikdrqtome68d8f Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241024@164056.2039 ckmf8abb7lteikdrqtome68d8f Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20241024@164056.2050 ckmf8abb7lteikdrqtome68d8f Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20241024@164056.2112 ckmf8abb7lteikdrqtome68d8f Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20241024@164056.2124 ckmf8abb7lteikdrqtome68d8f Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241024@164056.3247 ckmf8abb7lteikdrqtome68d8f Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20241024@164056.3263 ckmf8abb7lteikdrqtome68d8f Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut671a627812671a6a8832' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20241024@164056.3424 ckmf8abb7lteikdrqtome68d8f Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241024@164056.3440 ckmf8abb7lteikdrqtome68d8f Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20241024@164056.3472 ckmf8abb7lteikdrqtome68d8f Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20241024@164056.3492 ckmf8abb7lteikdrqtome68d8f Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20241024@164056.3504 ckmf8abb7lteikdrqtome68d8f Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20241024@164056.3515 ckmf8abb7lteikdrqtome68d8f Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20241024@164056.3526 ckmf8abb7lteikdrqtome68d8f Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20241024@164056.3538 ckmf8abb7lteikdrqtome68d8f Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20241024@164056.3548 ckmf8abb7lteikdrqtome68d8f Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut671a627812671a6a8832',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20241024@164056.3767 ckmf8abb7lteikdrqtome68d8f Query : select top 1 fno valor from wsftdata order by fno desc
20241024@164056.3790 ckmf8abb7lteikdrqtome68d8f Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241024@164056.3805 ckmf8abb7lteikdrqtome68d8f Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20241024@164056.3828 ckmf8abb7lteikdrqtome68d8f Query : select 'normal' from dummy
20241024@164056.3842 ckmf8abb7lteikdrqtome68d8f Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut671a627812671a6a8832',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',1503,102439,0,'2024-10-24',39,'euro',0,0,2024 ,?,?)
20241024@164056.4106 ckmf8abb7lteikdrqtome68d8f Query : use flama_phc
20241024@164056.4109 ckmf8abb7lteikdrqtome68d8f Query : select st.usalote valor from st where st.ref = '324.686.00.01'
20241024@164056.4130 ckmf8abb7lteikdrqtome68d8f Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.686.00.01'
20241024@164056.4256 ckmf8abb7lteikdrqtome68d8f Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241024@164056.4271 ckmf8abb7lteikdrqtome68d8f Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241024@164056.4296 ckmf8abb7lteikdrqtome68d8f Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241024@164056.4310 ckmf8abb7lteikdrqtome68d8f Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241024@164056.4318 ckmf8abb7lteikdrqtome68d8f Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241024@164056.4330 ckmf8abb7lteikdrqtome68d8f Query : select sestamp valor from se where ref ='324.686.00.01' and lote = 'r2400127100a'
20241024@164056.4343 ckmf8abb7lteikdrqtome68d8f Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241024@164056.4357 ckmf8abb7lteikdrqtome68d8f Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241024@164056.4369 ckmf8abb7lteikdrqtome68d8f Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut671a612548671a6a886a','aut671a627812671a6a8832' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241024@164056.4373 ckmf8abb7lteikdrqtome68d8f Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241024@164056.4387 ckmf8abb7lteikdrqtome68d8f Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241024@164056.4415 ckmf8abb7lteikdrqtome68d8f Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut671a612548671a6a886a',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',1.000 ,'aut671a627812671a6a8832' ,0,0 ,2,23.00,10000,?,?,?,?,?)
20241024@164056.4651 ckmf8abb7lteikdrqtome68d8f Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241024@164056.4677 ckmf8abb7lteikdrqtome68d8f Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241024@164056.4702 ckmf8abb7lteikdrqtome68d8f Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241024@164056.4717 ckmf8abb7lteikdrqtome68d8f Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241024@164056.4726 ckmf8abb7lteikdrqtome68d8f Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241024@164056.4737 ckmf8abb7lteikdrqtome68d8f Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241024@164056.4753 ckmf8abb7lteikdrqtome68d8f Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241024@164056.4764 ckmf8abb7lteikdrqtome68d8f Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut671a642046671a6a8873','aut671a627812671a6a8832' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241024@164056.4768 ckmf8abb7lteikdrqtome68d8f Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241024@164056.4784 ckmf8abb7lteikdrqtome68d8f Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241024@164056.4813 ckmf8abb7lteikdrqtome68d8f Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut671a642046671a6a8873',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut671a627812671a6a8832' ,0,0 ,2,23.00,20000,?,?,?)
20241024@164056.5072 ckmf8abb7lteikdrqtome68d8f Query : use flama_phc
20241024@164056.5075 ckmf8abb7lteikdrqtome68d8f Query : select st.usalote valor from st where st.ref = '324.675.00.01'
20241024@164056.5096 ckmf8abb7lteikdrqtome68d8f Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.675.00.01'
20241024@164056.5226 ckmf8abb7lteikdrqtome68d8f Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241024@164056.5241 ckmf8abb7lteikdrqtome68d8f Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241024@164056.5267 ckmf8abb7lteikdrqtome68d8f Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241024@164056.5282 ckmf8abb7lteikdrqtome68d8f Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241024@164056.5290 ckmf8abb7lteikdrqtome68d8f Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241024@164056.5302 ckmf8abb7lteikdrqtome68d8f Query : select sestamp valor from se where ref ='324.675.00.01' and lote = 'r2400407200a'
20241024@164056.5323 ckmf8abb7lteikdrqtome68d8f Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241024@164056.5338 ckmf8abb7lteikdrqtome68d8f Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241024@164056.5349 ckmf8abb7lteikdrqtome68d8f Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut671a639255671a6a8881','aut671a627812671a6a8832' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241024@164056.5353 ckmf8abb7lteikdrqtome68d8f Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241024@164056.5368 ckmf8abb7lteikdrqtome68d8f Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241024@164056.5395 ckmf8abb7lteikdrqtome68d8f Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut671a639255671a6a8881',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',1.000 ,'aut671a627812671a6a8832' ,0,0 ,2,23.00,40000,?,?,?,?,?)
20241024@164056.6154 ckmf8abb7lteikdrqtome68d8f Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241024@164056.6175 ckmf8abb7lteikdrqtome68d8f Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241024@164056.6201 ckmf8abb7lteikdrqtome68d8f Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241024@164056.6227 ckmf8abb7lteikdrqtome68d8f Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241024@164056.6236 ckmf8abb7lteikdrqtome68d8f Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241024@164056.6249 ckmf8abb7lteikdrqtome68d8f Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241024@164056.6263 ckmf8abb7lteikdrqtome68d8f Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241024@164056.6275 ckmf8abb7lteikdrqtome68d8f Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut671a628141671a6a8898','aut671a627812671a6a8832' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241024@164056.6279 ckmf8abb7lteikdrqtome68d8f Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241024@164056.6299 ckmf8abb7lteikdrqtome68d8f Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241024@164056.6330 ckmf8abb7lteikdrqtome68d8f Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut671a628141671a6a8898',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut671a627812671a6a8832' ,0,0 ,2,23.00,50000,?,?,?)
20241024@164056.6576 ckmf8abb7lteikdrqtome68d8f Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut671a627812671a6a8832','2407035','wait',39,'adm09112754980.682000002')
20241024@164056.6669 ckmf8abb7lteikdrqtome68d8f Query : use flama_phc
20241024@164056.6672 ckmf8abb7lteikdrqtome68d8f Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20241024@164056.6705 ckmf8abb7lteikdrqtome68d8f Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2919';
20241024@164056.6740 ckmf8abb7lteikdrqtome68d8f Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2919';
20241024@164056.6792 ckmf8abb7lteikdrqtome68d8f Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2919';
20241024@164056.6832 ckmf8abb7lteikdrqtome68d8f Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2919';
20241024@164056.7402 e2a8vsfe38281aahbkktpilg3m Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20241024@164056.7415 e2a8vsfe38281aahbkktpilg3m Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20241024@164056.7479 e2a8vsfe38281aahbkktpilg3m Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2920';
20241024@164056.7533 e2a8vsfe38281aahbkktpilg3m Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2920';
20241024@164056.7604 e2a8vsfe38281aahbkktpilg3m Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2920';
20241024@164056.7632 e2a8vsfe38281aahbkktpilg3m Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2920';
20241024@164056.8506 e5tkrtqmh6hjcvd5fet4sbu2bn Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20241024@164056.8518 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20241024@164056.8581 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2921';
20241024@164056.9238 e5tkrtqmh6hjcvd5fet4sbu2bn Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2921';
20241024@164056.9308 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2921';
20241024@164056.9342 e5tkrtqmh6hjcvd5fet4sbu2bn Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2921';
20241024@164056.9396 e5tkrtqmh6hjcvd5fet4sbu2bn Query : use flama_phc
20241024@164056.9399 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20241024@164056.9468 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select no, estab,szadrsdesc from szadrs where u_coddest=2
20241024@164056.9549 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.1608.00.1'
20241024@164056.9654 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =001 and bo.boano =2024 and bo.obrano = 0002440 and bi.ref ='324.1608.00.1' and bi.lordem =10000
20241024@164056.9955 e5tkrtqmh6hjcvd5fet4sbu2bn 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 = 'av24102441435,911000001 ' 
20241024@164057.3620 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.4521.00.1'
20241024@164057.4630 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =001 and bo.boano =2024 and bo.obrano = 0002440 and bi.ref ='324.4521.00.1' and bi.lordem =20000
20241024@164057.7580 e5tkrtqmh6hjcvd5fet4sbu2bn 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 = 'av24102441458,472000002 ' 
20241024@164057.1022 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.4960.00.1'
20241024@164057.1119 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =001 and bo.boano =2024 and bo.obrano = 0002440 and bi.ref ='324.4960.00.1' and bi.lordem =60000
20241024@164057.1450 e5tkrtqmh6hjcvd5fet4sbu2bn 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 = 'av24102441486,062000006 ' 
20241024@164057.1805 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.4988.00.1'
20241024@164057.1917 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =001 and bo.boano =2024 and bo.obrano = 0002440 and bi.ref ='324.4988.00.1' and bi.lordem =70000
20241024@164057.2253 e5tkrtqmh6hjcvd5fet4sbu2bn 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 = 'av24102441497,518000007 ' 
20241024@164057.2650 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.4962.00.1'
20241024@164057.2951 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =001 and bo.boano =2024 and bo.obrano = 0002440 and bi.ref ='324.4962.00.1' and bi.lordem =80000
20241024@164057.3486 e5tkrtqmh6hjcvd5fet4sbu2bn 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 = 'av24102441503,614000008 ' 
20241024@164057.5031 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.4964.00.1'
20241024@164057.5315 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =001 and bo.boano =2024 and bo.obrano = 0002440 and bi.ref ='324.4964.00.1' and bi.lordem =90000
20241024@164057.5917 e5tkrtqmh6hjcvd5fet4sbu2bn 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 = 'av24102441508,848000009 ' 
20241024@164057.6444 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.4902.00.1'
20241024@164057.6552 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =001 and bo.boano =2024 and bo.obrano = 0002440 and bi.ref ='324.4902.00.1' and bi.lordem =110000
20241024@164057.6861 e5tkrtqmh6hjcvd5fet4sbu2bn 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 = 'av24102441539,495000011 ' 
20241024@164057.7146 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.969.00.01'
20241024@164057.7246 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =001 and bo.boano =2024 and bo.obrano = 0002440 and bi.ref ='324.969.00.01' and bi.lordem =120000
20241024@164057.7548 e5tkrtqmh6hjcvd5fet4sbu2bn 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 = 'av24102441572,558000012 ' 
20241024@164057.7849 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.988.00.01'
20241024@164057.7944 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =001 and bo.boano =2024 and bo.obrano = 0002440 and bi.ref ='324.988.00.01' and bi.lordem =130000
20241024@164057.8272 e5tkrtqmh6hjcvd5fet4sbu2bn 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 = 'av24102441577,648000013 ' 
20241024@164057.8557 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.988.00.01'
20241024@164057.8577 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =001 and bo.boano =2024 and bo.obrano = 0002440 and bi.ref ='324.988.00.01' and bi.lordem =130000
20241024@164057.8601 e5tkrtqmh6hjcvd5fet4sbu2bn 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 = 'av24102441577,648000013 ' 
20241024@164057.8624 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.948.00.01'
20241024@164057.8721 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =001 and bo.boano =2024 and bo.obrano = 0002440 and bi.ref ='324.948.00.01' and bi.lordem =140000
20241024@164057.9023 e5tkrtqmh6hjcvd5fet4sbu2bn 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 = 'av24102441583,215000014 ' 
20241024@164057.9306 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.948.00.01'
20241024@164057.9328 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =001 and bo.boano =2024 and bo.obrano = 0002440 and bi.ref ='324.948.00.01' and bi.lordem =140000
20241024@164057.9351 e5tkrtqmh6hjcvd5fet4sbu2bn 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 = 'av24102441583,215000014 ' 
20241024@164057.9373 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.966.00.01'
20241024@164057.9469 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =001 and bo.boano =2024 and bo.obrano = 0002440 and bi.ref ='324.966.00.01' and bi.lordem =150000
20241024@164057.9768 e5tkrtqmh6hjcvd5fet4sbu2bn 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 = 'av24102441588,244000015 ' 
20241024@164058.5800 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.946.00.01'
20241024@164058.1650 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =001 and bo.boano =2024 and bo.obrano = 0002440 and bi.ref ='324.946.00.01' and bi.lordem =160000
20241024@164058.1541 e5tkrtqmh6hjcvd5fet4sbu2bn 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 = 'av24102441593,273000016 ' 
20241024@164058.1847 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.658.00.01'
20241024@164058.1944 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =001 and bo.boano =2024 and bo.obrano = 0002440 and bi.ref ='324.658.00.01' and bi.lordem =180000
20241024@164058.2237 e5tkrtqmh6hjcvd5fet4sbu2bn 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 = 'av24102441614,137000018 ' 
20241024@164058.2521 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.1889.00.1'
20241024@164058.2624 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =001 and bo.boano =2024 and bo.obrano = 0002440 and bi.ref ='324.1889.00.1' and bi.lordem =210000
20241024@164058.2937 e5tkrtqmh6hjcvd5fet4sbu2bn 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 = 'av24102441645,472000021 ' 
20241024@164058.3230 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.1462.00.1'
20241024@164058.3325 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =001 and bo.boano =2024 and bo.obrano = 0002440 and bi.ref ='324.1462.00.1' and bi.lordem =250000
20241024@164058.3639 e5tkrtqmh6hjcvd5fet4sbu2bn 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 = 'av24102441684,119000025 ' 
20241024@164058.3918 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.5540.00.1'
20241024@164058.4017 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =001 and bo.boano =2024 and bo.obrano = 0002440 and bi.ref ='324.5540.00.1' and bi.lordem =270000
20241024@164058.4326 e5tkrtqmh6hjcvd5fet4sbu2bn 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 = 'av24102441698,820000027 ' 
20241024@164058.4602 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.5540.00.1'
20241024@164058.4626 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =001 and bo.boano =2024 and bo.obrano = 0002440 and bi.ref ='324.5540.00.1' and bi.lordem =270000
20241024@164058.4648 e5tkrtqmh6hjcvd5fet4sbu2bn 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 = 'av24102441698,820000027 ' 
20241024@164058.4669 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.5500.00.1'
20241024@164058.4765 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =001 and bo.boano =2024 and bo.obrano = 0002440 and bi.ref ='324.5500.00.1' and bi.lordem =280000
20241024@164058.5069 e5tkrtqmh6hjcvd5fet4sbu2bn 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 = 'av24102441714,361000028 ' 
20241024@164058.5348 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.5500.00.1'
20241024@164058.5370 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =001 and bo.boano =2024 and bo.obrano = 0002440 and bi.ref ='324.5500.00.1' and bi.lordem =280000
20241024@164058.5393 e5tkrtqmh6hjcvd5fet4sbu2bn 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 = 'av24102441714,361000028 ' 
20241024@164058.5414 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.5501.00.1'
20241024@164058.5701 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =001 and bo.boano =2024 and bo.obrano = 0002440 and bi.ref ='324.5501.00.1' and bi.lordem =300000
20241024@164058.6171 e5tkrtqmh6hjcvd5fet4sbu2bn 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 = 'av24102441728,020000030 ' 
20241024@164058.6667 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.1705.00.1'
20241024@164058.6949 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =001 and bo.boano =2024 and bo.obrano = 0002440 and bi.ref ='324.1705.00.1' and bi.lordem =310000
20241024@164058.7563 e5tkrtqmh6hjcvd5fet4sbu2bn 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 = 'av24102441743,066000031 ' 
20241024@164058.7874 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.2231.00.2'
20241024@164058.8016 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =001 and bo.boano =2024 and bo.obrano = 0002440 and bi.ref ='324.2231.00.2' and bi.lordem =320000
20241024@164058.8432 e5tkrtqmh6hjcvd5fet4sbu2bn 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 = 'av24102441751,216000032 ' 
20241024@164058.8818 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.2224.00.1'
20241024@164058.8916 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =001 and bo.boano =2024 and bo.obrano = 0002440 and bi.ref ='324.2224.00.1' and bi.lordem =340000
20241024@164058.9338 e5tkrtqmh6hjcvd5fet4sbu2bn 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 = 'av24102441772,848000034 ' 
20241024@164059.8850 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.2222.00.1'
20241024@164059.1200 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =001 and bo.boano =2024 and bo.obrano = 0002440 and bi.ref ='324.2222.00.1' and bi.lordem =350000
20241024@164059.1551 e5tkrtqmh6hjcvd5fet4sbu2bn 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 = 'av24102441785,953000035 ' 
20241024@164059.2486 e5tkrtqmh6hjcvd5fet4sbu2bn Query : use flama_phc
20241024@164059.2491 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select top 1 1 valor from ts where ts.ndos = 5
20241024@164059.2644 e5tkrtqmh6hjcvd5fet4sbu2bn Query : use flama_phc
20241024@164059.2652 e5tkrtqmh6hjcvd5fet4sbu2bn 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')
20241024@164059.2754 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select top 1 assinadoc issigned ,ts.stocks ,ts.bdempresas origin ,case when (cmstocks between 1 and 50 or cm2stocks between 1 and 50 ) then 1 else 0 end entrada ,case when cmstocks>50 or (cm2stocks>50 and trfa =1) then 1 else 0 end saida ,stneg validatestock ,tiposaft ,veserie useserialnumber ,foserie assetin ,ftserie assetout ,veserie assets ,trfarm assetstransfer ,grelha usegridfields from ts inner join ts2 on ts.tsstamp=ts2.ts2stamp where ts.ndos =5
20241024@164059.2969 e5tkrtqmh6hjcvd5fet4sbu2bn Query : use flama_phc
20241024@164059.2978 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select top 1 ~inactivo valor from fl where no = '100500' and estab = 0 order by inactivo desc
20241024@164059.3116 e5tkrtqmh6hjcvd5fet4sbu2bn Query : use flama_phc
20241024@164059.3123 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20241024@164059.3200 e5tkrtqmh6hjcvd5fet4sbu2bn Query : use flama_phc
20241024@164059.3208 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select szadrsstamp valor from szadrs where szadrsdesc='n/instalaÇÕes sede'
20241024@164059.3302 e5tkrtqmh6hjcvd5fet4sbu2bn Query : use flama_phc
20241024@164059.3310 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select 1 valor from ts where ndos = 5
20241024@164059.3403 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241024@164059.3443 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bo' and documentnumber = 5
20241024@164059.3479 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241024@164059.3517 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bo2' and documentnumber = 5
20241024@164059.3539 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241024@164059.3575 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bo3' and documentnumber = 5
20241024@164059.3597 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select top 1 ts2.manternumero, ts.tiposaft, ts.idserie,ts.nmdos,ts.bdempresas from ts inner join ts2 on ts.tsstamp=ts2.ts2stamp where ts.ndos = 5
20241024@164059.3735 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select top 1 bo.obrano valor from bo bo where bo.ndos = 5 and boano=2024 order by obrano desc
20241024@164059.3859 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select top 1 bo.obrano valor from wsbodata bo where bo.ndos = 5 and boano=2024 order by obrano desc
20241024@164059.3968 e5tkrtqmh6hjcvd5fet4sbu2bn Query : use flama_phc
20241024@164059.3980 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select top 1 no,estab,nome, morada, local,codpost,ncont,pncont,pais,inactivo,motiseimp,codmotiseimp from fl where no='100500' and estab=0
20241024@164059.4084 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241024@164059.4121 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bo3' and documentnumber = 5
20241024@164059.4151 e5tkrtqmh6hjcvd5fet4sbu2bn Query : insert into wsbo3data (bo3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut671a632691671a6a8b60',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut')
20241024@164059.4237 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241024@164059.4275 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bo2' and documentnumber = 5
20241024@164059.4307 e5tkrtqmh6hjcvd5fet4sbu2bn Query : insert into wsbo2data (bo2stamp, tiposaft, idserie,cambio,cambiofixo,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,xpddata,xpdhora,carga,descar) values ('aut671a632691671a6a8b60','ga','bo',0 ,0,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut','20241024','17:10',?,?)
20241024@164059.4767 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241024@164059.4807 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bo' and documentnumber = 5
20241024@164059.4846 e5tkrtqmh6hjcvd5fet4sbu2bn Query : insert into wsbodata (bostamp, nmdos, dataobra, ndos, obrano, no, estab, nome, ncont, morada, local, codpost, moeda, boano, memissao,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,maquina ) values ('aut671a632691671a6a8b60','trf entre armazéns a','2024-10-24',5,531,?,?,?,?,?,?,?,?,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',?)
20241024@164059.5695 e5tkrtqmh6hjcvd5fet4sbu2bn Query : use flama_phc
20241024@164059.5703 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select st.usalote valor from st where st.ref = '324.1608.00.1'
20241024@164059.5738 e5tkrtqmh6hjcvd5fet4sbu2bn Query : use flama_phc
20241024@164059.5741 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select st.stns valor from st where st.ref = '324.1608.00.1'
20241024@164059.5843 e5tkrtqmh6hjcvd5fet4sbu2bn Query : use flama_phc
20241024@164059.5847 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select isnull(sum(stock) ,0)stock ,isnull(sum(qttrec),0) qttrec ,0 qttcat ,isnull(sum(rescli),0) rescli ,isnull(sum(resfor),0) resfor from sa where sa.ref = '324.1608.00.1' and sa.armazem = 133 
20241024@164059.5959 e5tkrtqmh6hjcvd5fet4sbu2bn Query : use flama_phc
20241024@164059.6001 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select st.stns valor from st where st.ref = '324.1608.00.1'
20241024@164059.6159 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.1608.00.1'
20241024@164059.6300 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241024@164059.6318 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 5
20241024@164059.6480 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241024@164059.6534 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 5
20241024@164059.6569 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select sestamp valor from se where ref ='324.1608.00.1' and lote = 'r2400237100a'
20241024@164059.6583 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241024@164059.6600 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241024@164059.6617 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 5
20241024@164059.6643 e5tkrtqmh6hjcvd5fet4sbu2bn Query : insert into wsbi2data (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut671a666082671a6a8ba1','aut671a632691671a6a8b60',bo.morada, bo.local,bo.codpost ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut' from wsbodata bo where bo.bostamp = 'aut671a632691671a6a8b60'
20241024@164059.7202 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241024@164059.7223 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 5
20241024@164059.7243 e5tkrtqmh6hjcvd5fet4sbu2bn Query : insert into wsbidata (bistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,obrano, qtt,uni2qtt ,no, estab,nmdos ,ndos, obranome,fechada, dataobra ,rdata ,dataopen, datafecho,local, morada ,codpost, nome,bostamp,lordem ,edebito,debito, epu,pu ,ivaincl,stns,unidade, unidad2 ,marcada,usalote ,ettdeb,ttdeb,epcusto, pcusto ,ecustoind,custoind ,vendedor,vendnm, ccusto,ncusto ,noserie,tabiva,iva ,ref,design,familia,desconto,desc2,desc3,desc4,eslvu,slvu,esltt,sltt,oobistamp,vumoeda,ttmoeda,slvumoeda,slttmoeda,lote,armazem,ar2mazem,obistamp ,stipo) select 'aut671a666082671a6a8ba1',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut',bo.obrano, 12.000, 12.000*.0000000 ,bo.no, bo.estab,bo.nmdos ,bo.ndos, bo.obranome,bo.fechada, bo.dataobra ,bo.dataobra ,bo.dataopen,bo.datafecho,bo.local, bo.morada ,bo.codpost, bo.nome,bo.bostamp,10000 ,28.8,28.8*200.48,28.8,28.8*200.48 ,0,0,'un',' ' ,bo.marcada,1 ,28.8*12.000,28.8*12.000*200.48 ,12.576000,12.576000*200.48 ,12.576000,12.576000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,28.8,28.8*200.48,28.8*12.000,28.8*12.000*200.48,'av24102441435,911000001 ',28.8,28.8*12.000,28.8,28.8*12.000,?,?,?,?,4 from wsbodata bo where bo.bostamp = 'aut671a632691671a6a8b60'
20241024@164059.7732 e5tkrtqmh6hjcvd5fet4sbu2bn Query : use flama_phc
20241024@164059.7736 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select st.usalote valor from st where st.ref = '324.4521.00.1'
20241024@164059.7753 e5tkrtqmh6hjcvd5fet4sbu2bn Query : use flama_phc
20241024@164059.7756 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select st.stns valor from st where st.ref = '324.4521.00.1'
20241024@164059.7772 e5tkrtqmh6hjcvd5fet4sbu2bn Query : use flama_phc
20241024@164059.7776 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select isnull(sum(stock) ,0)stock ,isnull(sum(qttrec),0) qttrec ,0 qttcat ,isnull(sum(rescli),0) rescli ,isnull(sum(resfor),0) resfor from sa where sa.ref = '324.4521.00.1' and sa.armazem = 133 
20241024@164059.7844 e5tkrtqmh6hjcvd5fet4sbu2bn Query : use flama_phc
20241024@164059.7847 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select st.stns valor from st where st.ref = '324.4521.00.1'
20241024@164059.7867 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.4521.00.1'
20241024@164059.9125 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241024@164059.9146 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 5
20241024@164059.9159 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241024@164059.9176 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 5
20241024@164059.9185 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select sestamp valor from se where ref ='324.4521.00.1' and lote = 'r2400052200a'
20241024@164059.9207 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241024@164059.9220 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241024@164059.9236 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 5
20241024@164059.9249 e5tkrtqmh6hjcvd5fet4sbu2bn Query : insert into wsbi2data (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut671a696043671a6a8be1','aut671a632691671a6a8b60',bo.morada, bo.local,bo.codpost ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut' from wsbodata bo where bo.bostamp = 'aut671a632691671a6a8b60'
20241024@164059.9529 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241024@164059.9623 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 5
20241024@164059.9643 e5tkrtqmh6hjcvd5fet4sbu2bn Query : insert into wsbidata (bistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,obrano, qtt,uni2qtt ,no, estab,nmdos ,ndos, obranome,fechada, dataobra ,rdata ,dataopen, datafecho,local, morada ,codpost, nome,bostamp,lordem ,edebito,debito, epu,pu ,ivaincl,stns,unidade, unidad2 ,marcada,usalote ,ettdeb,ttdeb,epcusto, pcusto ,ecustoind,custoind ,vendedor,vendnm, ccusto,ncusto ,noserie,tabiva,iva ,ref,design,familia,desconto,desc2,desc3,desc4,eslvu,slvu,esltt,sltt,oobistamp,vumoeda,ttmoeda,slvumoeda,slttmoeda,lote,armazem,ar2mazem,obistamp ,stipo) select 'aut671a696043671a6a8be1',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut',bo.obrano, 12.000, 12.000*.0000000 ,bo.no, bo.estab,bo.nmdos ,bo.ndos, bo.obranome,bo.fechada, bo.dataobra ,bo.dataobra ,bo.dataopen,bo.datafecho,bo.local, bo.morada ,bo.codpost, bo.nome,bo.bostamp,20000 ,41.6,41.6*200.48,41.6,41.6*200.48 ,0,0,'un ',' ' ,bo.marcada,1 ,41.6*12.000,41.6*12.000*200.48 ,15.785000,15.785000*200.48 ,15.785000,15.785000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,41.6,41.6*200.48,41.6*12.000,41.6*12.000*200.48,'av24102441458,472000002 ',41.6,41.6*12.000,41.6,41.6*12.000,?,?,?,?,4 from wsbodata bo where bo.bostamp = 'aut671a632691671a6a8b60'
20241024@164059.9936 e5tkrtqmh6hjcvd5fet4sbu2bn Query : use flama_phc
20241024@164059.9942 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select st.usalote valor from st where st.ref = '324.4960.00.1'
20241024@164059.9959 e5tkrtqmh6hjcvd5fet4sbu2bn Query : use flama_phc
20241024@164059.9961 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select st.stns valor from st where st.ref = '324.4960.00.1'
20241024@164059.9979 e5tkrtqmh6hjcvd5fet4sbu2bn Query : use flama_phc
20241024@164059.9982 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select isnull(sum(stock) ,0)stock ,isnull(sum(qttrec),0) qttrec ,0 qttcat ,isnull(sum(rescli),0) rescli ,isnull(sum(resfor),0) resfor from sa where sa.ref = '324.4960.00.1' and sa.armazem = 133 
20241024@164100.5600 e5tkrtqmh6hjcvd5fet4sbu2bn Query : use flama_phc
20241024@164100.5900 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select st.stns valor from st where st.ref = '324.4960.00.1'
20241024@164100.7800 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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'
20241024@164100.2060 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241024@164100.2220 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 5
20241024@164100.2350 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241024@164100.2510 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 5
20241024@164100.2600 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select sestamp valor from se where ref ='324.4960.00.1' and lote = 'r2100754100a'
20241024@164100.2890 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241024@164100.3010 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241024@164100.3170 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 5
20241024@164100.3290 e5tkrtqmh6hjcvd5fet4sbu2bn Query : insert into wsbi2data (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut671a643655671a6a8c07','aut671a632691671a6a8b60',bo.morada, bo.local,bo.codpost ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut' from wsbodata bo where bo.bostamp = 'aut671a632691671a6a8b60'
20241024@164100.4760 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241024@164100.4960 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 5
20241024@164100.5130 e5tkrtqmh6hjcvd5fet4sbu2bn Query : insert into wsbidata (bistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,obrano, qtt,uni2qtt ,no, estab,nmdos ,ndos, obranome,fechada, dataobra ,rdata ,dataopen, datafecho,local, morada ,codpost, nome,bostamp,lordem ,edebito,debito, epu,pu ,ivaincl,stns,unidade, unidad2 ,marcada,usalote ,ettdeb,ttdeb,epcusto, pcusto ,ecustoind,custoind ,vendedor,vendnm, ccusto,ncusto ,noserie,tabiva,iva ,ref,design,familia,desconto,desc2,desc3,desc4,eslvu,slvu,esltt,sltt,oobistamp,vumoeda,ttmoeda,slvumoeda,slttmoeda,lote,armazem,ar2mazem,obistamp ,stipo) select 'aut671a643655671a6a8c07',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut',bo.obrano, 6.000, 6.000*.0000000 ,bo.no, bo.estab,bo.nmdos ,bo.ndos, bo.obranome,bo.fechada, bo.dataobra ,bo.dataobra ,bo.dataopen,bo.datafecho,bo.local, bo.morada ,bo.codpost, bo.nome,bo.bostamp,30000 ,19.2,19.2*200.48,19.2,19.2*200.48 ,0,0,'un ','' ,bo.marcada,1 ,19.2*6.000,19.2*6.000*200.48 ,6.102000,6.102000*200.48 ,6.102000,6.102000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,19.2,19.2*200.48,19.2*6.000,19.2*6.000*200.48,'av24102441486,062000006 ',19.2,19.2*6.000,19.2,19.2*6.000,?,?,?,?,4 from wsbodata bo where bo.bostamp = 'aut671a632691671a6a8b60'
20241024@164100.7870 e5tkrtqmh6hjcvd5fet4sbu2bn Query : use flama_phc
20241024@164100.7910 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select st.usalote valor from st where st.ref = '324.4988.00.1'
20241024@164100.8080 e5tkrtqmh6hjcvd5fet4sbu2bn Query : use flama_phc
20241024@164100.8110 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select st.stns valor from st where st.ref = '324.4988.00.1'
20241024@164100.8280 e5tkrtqmh6hjcvd5fet4sbu2bn Query : use flama_phc
20241024@164100.8310 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select isnull(sum(stock) ,0)stock ,isnull(sum(qttrec),0) qttrec ,0 qttcat ,isnull(sum(rescli),0) rescli ,isnull(sum(resfor),0) resfor from sa where sa.ref = '324.4988.00.1' and sa.armazem = 133 
20241024@164100.8990 e5tkrtqmh6hjcvd5fet4sbu2bn Query : use flama_phc
20241024@164100.9020 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select st.stns valor from st where st.ref = '324.4988.00.1'
20241024@164100.9360 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.4988.00.1'
20241024@164100.1058 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241024@164100.1189 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 5
20241024@164100.1204 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241024@164100.1220 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 5
20241024@164100.1230 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select sestamp valor from se where ref ='324.4988.00.1' and lote = 'r2100754100a'
20241024@164100.1244 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241024@164100.1258 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241024@164100.1273 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 5
20241024@164100.1286 e5tkrtqmh6hjcvd5fet4sbu2bn Query : insert into wsbi2data (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut671a606973671a6a8c1e','aut671a632691671a6a8b60',bo.morada, bo.local,bo.codpost ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut' from wsbodata bo where bo.bostamp = 'aut671a632691671a6a8b60'
20241024@164100.1428 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241024@164100.1446 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 5
20241024@164100.1465 e5tkrtqmh6hjcvd5fet4sbu2bn Query : insert into wsbidata (bistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,obrano, qtt,uni2qtt ,no, estab,nmdos ,ndos, obranome,fechada, dataobra ,rdata ,dataopen, datafecho,local, morada ,codpost, nome,bostamp,lordem ,edebito,debito, epu,pu ,ivaincl,stns,unidade, unidad2 ,marcada,usalote ,ettdeb,ttdeb,epcusto, pcusto ,ecustoind,custoind ,vendedor,vendnm, ccusto,ncusto ,noserie,tabiva,iva ,ref,design,familia,desconto,desc2,desc3,desc4,eslvu,slvu,esltt,sltt,oobistamp,vumoeda,ttmoeda,slvumoeda,slttmoeda,lote,armazem,ar2mazem,obistamp ,stipo) select 'aut671a606973671a6a8c1e',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut',bo.obrano, 20.000, 20.000*.0000000 ,bo.no, bo.estab,bo.nmdos ,bo.ndos, bo.obranome,bo.fechada, bo.dataobra ,bo.dataobra ,bo.dataopen,bo.datafecho,bo.local, bo.morada ,bo.codpost, bo.nome,bo.bostamp,40000 ,28.8,28.8*200.48,28.8,28.8*200.48 ,0,0,'un ','' ,bo.marcada,1 ,28.8*20.000,28.8*20.000*200.48 ,8.445000,8.445000*200.48 ,8.445000,8.445000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,28.8,28.8*200.48,28.8*20.000,28.8*20.000*200.48,'av24102441497,518000007 ',28.8,28.8*20.000,28.8,28.8*20.000,?,?,?,?,4 from wsbodata bo where bo.bostamp = 'aut671a632691671a6a8b60'
20241024@164100.1726 e5tkrtqmh6hjcvd5fet4sbu2bn Query : use flama_phc
20241024@164100.1730 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select st.usalote valor from st where st.ref = '324.4962.00.1'
20241024@164100.1745 e5tkrtqmh6hjcvd5fet4sbu2bn Query : use flama_phc
20241024@164100.1748 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select st.stns valor from st where st.ref = '324.4962.00.1'
20241024@164100.1765 e5tkrtqmh6hjcvd5fet4sbu2bn Query : use flama_phc
20241024@164100.1767 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select isnull(sum(stock) ,0)stock ,isnull(sum(qttrec),0) qttrec ,0 qttcat ,isnull(sum(rescli),0) rescli ,isnull(sum(resfor),0) resfor from sa where sa.ref = '324.4962.00.1' and sa.armazem = 133 
20241024@164100.1833 e5tkrtqmh6hjcvd5fet4sbu2bn Query : use flama_phc
20241024@164100.1836 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select st.stns valor from st where st.ref = '324.4962.00.1'
20241024@164100.1856 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.4962.00.1'
20241024@164100.1979 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241024@164100.1997 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 5
20241024@164100.2010 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241024@164100.2025 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 5
20241024@164100.2034 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select sestamp valor from se where ref ='324.4962.00.1' and lote = 'r2101092100a'
20241024@164100.2062 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241024@164100.2074 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241024@164100.2089 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 5
20241024@164100.2102 e5tkrtqmh6hjcvd5fet4sbu2bn Query : insert into wsbi2data (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut671a695047671a6a8c32','aut671a632691671a6a8b60',bo.morada, bo.local,bo.codpost ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut' from wsbodata bo where bo.bostamp = 'aut671a632691671a6a8b60'
20241024@164100.2246 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241024@164100.2262 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 5
20241024@164100.2278 e5tkrtqmh6hjcvd5fet4sbu2bn Query : insert into wsbidata (bistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,obrano, qtt,uni2qtt ,no, estab,nmdos ,ndos, obranome,fechada, dataobra ,rdata ,dataopen, datafecho,local, morada ,codpost, nome,bostamp,lordem ,edebito,debito, epu,pu ,ivaincl,stns,unidade, unidad2 ,marcada,usalote ,ettdeb,ttdeb,epcusto, pcusto ,ecustoind,custoind ,vendedor,vendnm, ccusto,ncusto ,noserie,tabiva,iva ,ref,design,familia,desconto,desc2,desc3,desc4,eslvu,slvu,esltt,sltt,oobistamp,vumoeda,ttmoeda,slvumoeda,slttmoeda,lote,armazem,ar2mazem,obistamp ,stipo) select 'aut671a695047671a6a8c32',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut',bo.obrano, 12.000, 12.000*.0000000 ,bo.no, bo.estab,bo.nmdos ,bo.ndos, bo.obranome,bo.fechada, bo.dataobra ,bo.dataobra ,bo.dataopen,bo.datafecho,bo.local, bo.morada ,bo.codpost, bo.nome,bo.bostamp,50000 ,32,32*200.48,32,32*200.48 ,0,0,'un ',' ' ,bo.marcada,1 ,32*12.000,32*12.000*200.48 ,13.716000,13.716000*200.48 ,13.716000,13.716000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,32,32*200.48,32*12.000,32*12.000*200.48,'av24102441503,614000008 ',32,32*12.000,32,32*12.000,?,?,?,?,4 from wsbodata bo where bo.bostamp = 'aut671a632691671a6a8b60'
20241024@164100.2539 e5tkrtqmh6hjcvd5fet4sbu2bn Query : use flama_phc
20241024@164100.2544 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select st.usalote valor from st where st.ref = '324.4964.00.1'
20241024@164100.2560 e5tkrtqmh6hjcvd5fet4sbu2bn Query : use flama_phc
20241024@164100.2563 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select st.stns valor from st where st.ref = '324.4964.00.1'
20241024@164100.2579 e5tkrtqmh6hjcvd5fet4sbu2bn Query : use flama_phc
20241024@164100.2582 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select isnull(sum(stock) ,0)stock ,isnull(sum(qttrec),0) qttrec ,0 qttcat ,isnull(sum(rescli),0) rescli ,isnull(sum(resfor),0) resfor from sa where sa.ref = '324.4964.00.1' and sa.armazem = 133 
20241024@164100.2648 e5tkrtqmh6hjcvd5fet4sbu2bn Query : use flama_phc
20241024@164100.2650 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select st.stns valor from st where st.ref = '324.4964.00.1'
20241024@164100.2669 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.4964.00.1'
20241024@164100.2993 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241024@164100.3010 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 5
20241024@164100.3023 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241024@164100.3038 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 5
20241024@164100.3063 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select sestamp valor from se where ref ='324.4964.00.1' and lote = 'r2300717100a'
20241024@164100.3092 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241024@164100.3105 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241024@164100.3120 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 5
20241024@164100.3132 e5tkrtqmh6hjcvd5fet4sbu2bn Query : insert into wsbi2data (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut671a649109671a6a8c4b','aut671a632691671a6a8b60',bo.morada, bo.local,bo.codpost ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut' from wsbodata bo where bo.bostamp = 'aut671a632691671a6a8b60'
20241024@164100.3283 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241024@164100.3303 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 5
20241024@164100.3318 e5tkrtqmh6hjcvd5fet4sbu2bn Query : insert into wsbidata (bistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,obrano, qtt,uni2qtt ,no, estab,nmdos ,ndos, obranome,fechada, dataobra ,rdata ,dataopen, datafecho,local, morada ,codpost, nome,bostamp,lordem ,edebito,debito, epu,pu ,ivaincl,stns,unidade, unidad2 ,marcada,usalote ,ettdeb,ttdeb,epcusto, pcusto ,ecustoind,custoind ,vendedor,vendnm, ccusto,ncusto ,noserie,tabiva,iva ,ref,design,familia,desconto,desc2,desc3,desc4,eslvu,slvu,esltt,sltt,oobistamp,vumoeda,ttmoeda,slvumoeda,slttmoeda,lote,armazem,ar2mazem,obistamp ,stipo) select 'aut671a649109671a6a8c4b',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut',bo.obrano, 12.000, 12.000*.0000000 ,bo.no, bo.estab,bo.nmdos ,bo.ndos, bo.obranome,bo.fechada, bo.dataobra ,bo.dataobra ,bo.dataopen,bo.datafecho,bo.local, bo.morada ,bo.codpost, bo.nome,bo.bostamp,60000 ,32,32*200.48,32,32*200.48 ,0,0,'un ',' ' ,bo.marcada,1 ,32*12.000,32*12.000*200.48 ,11.761000,11.761000*200.48 ,11.761000,11.761000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,32,32*200.48,32*12.000,32*12.000*200.48,'av24102441508,848000009 ',32,32*12.000,32,32*12.000,?,?,?,?,4 from wsbodata bo where bo.bostamp = 'aut671a632691671a6a8b60'
20241024@164100.3587 e5tkrtqmh6hjcvd5fet4sbu2bn Query : use flama_phc
20241024@164100.3590 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select st.usalote valor from st where st.ref = '324.4902.00.1'
20241024@164100.3605 e5tkrtqmh6hjcvd5fet4sbu2bn Query : use flama_phc
20241024@164100.3608 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select st.stns valor from st where st.ref = '324.4902.00.1'
20241024@164100.3624 e5tkrtqmh6hjcvd5fet4sbu2bn Query : use flama_phc
20241024@164100.3626 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select isnull(sum(stock) ,0)stock ,isnull(sum(qttrec),0) qttrec ,0 qttcat ,isnull(sum(rescli),0) rescli ,isnull(sum(resfor),0) resfor from sa where sa.ref = '324.4902.00.1' and sa.armazem = 133 
20241024@164100.3694 e5tkrtqmh6hjcvd5fet4sbu2bn Query : use flama_phc
20241024@164100.3698 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select st.stns valor from st where st.ref = '324.4902.00.1'
20241024@164100.3716 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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'
20241024@164100.3845 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241024@164100.3884 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 5
20241024@164100.3897 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241024@164100.3912 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 5
20241024@164100.3920 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select sestamp valor from se where ref ='324.4902.00.1' and lote = 'r2400145200a'
20241024@164100.3933 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241024@164100.3945 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241024@164100.3962 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 5
20241024@164100.3974 e5tkrtqmh6hjcvd5fet4sbu2bn Query : insert into wsbi2data (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut671a609915671a6a8c60','aut671a632691671a6a8b60',bo.morada, bo.local,bo.codpost ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut' from wsbodata bo where bo.bostamp = 'aut671a632691671a6a8b60'
20241024@164100.4128 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241024@164100.4149 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 5
20241024@164100.4164 e5tkrtqmh6hjcvd5fet4sbu2bn Query : insert into wsbidata (bistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,obrano, qtt,uni2qtt ,no, estab,nmdos ,ndos, obranome,fechada, dataobra ,rdata ,dataopen, datafecho,local, morada ,codpost, nome,bostamp,lordem ,edebito,debito, epu,pu ,ivaincl,stns,unidade, unidad2 ,marcada,usalote ,ettdeb,ttdeb,epcusto, pcusto ,ecustoind,custoind ,vendedor,vendnm, ccusto,ncusto ,noserie,tabiva,iva ,ref,design,familia,desconto,desc2,desc3,desc4,eslvu,slvu,esltt,sltt,oobistamp,vumoeda,ttmoeda,slvumoeda,slttmoeda,lote,armazem,ar2mazem,obistamp ,stipo) select 'aut671a609915671a6a8c60',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut',bo.obrano, 8.000, 8.000*.0000000 ,bo.no, bo.estab,bo.nmdos ,bo.ndos, bo.obranome,bo.fechada, bo.dataobra ,bo.dataobra ,bo.dataopen,bo.datafecho,bo.local, bo.morada ,bo.codpost, bo.nome,bo.bostamp,70000 ,32,32*200.48,32,32*200.48 ,0,0,'un ',' ' ,bo.marcada,1 ,32*8.000,32*8.000*200.48 ,13.536000,13.536000*200.48 ,13.536000,13.536000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,32,32*200.48,32*8.000,32*8.000*200.48,'av24102441539,495000011 ',32,32*8.000,32,32*8.000,?,?,?,?,4 from wsbodata bo where bo.bostamp = 'aut671a632691671a6a8b60'
20241024@164100.4550 e5tkrtqmh6hjcvd5fet4sbu2bn Query : use flama_phc
20241024@164100.4567 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select st.usalote valor from st where st.ref = '324.969.00.01'
20241024@164100.4584 e5tkrtqmh6hjcvd5fet4sbu2bn Query : use flama_phc
20241024@164100.4591 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select st.stns valor from st where st.ref = '324.969.00.01'
20241024@164100.4621 e5tkrtqmh6hjcvd5fet4sbu2bn Query : use flama_phc
20241024@164100.4624 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select isnull(sum(stock) ,0)stock ,isnull(sum(qttrec),0) qttrec ,0 qttcat ,isnull(sum(rescli),0) rescli ,isnull(sum(resfor),0) resfor from sa where sa.ref = '324.969.00.01' and sa.armazem = 133 
20241024@164100.4701 e5tkrtqmh6hjcvd5fet4sbu2bn Query : use flama_phc
20241024@164100.4704 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select st.stns valor from st where st.ref = '324.969.00.01'
20241024@164100.4723 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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'
20241024@164100.4870 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241024@164100.4887 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 5
20241024@164100.4900 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241024@164100.4914 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 5
20241024@164100.4922 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select sestamp valor from se where ref ='324.969.00.01' and lote = 'r2100601100a'
20241024@164100.4936 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241024@164100.4949 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241024@164100.4965 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 5
20241024@164100.4978 e5tkrtqmh6hjcvd5fet4sbu2bn Query : insert into wsbi2data (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut671a680011671a6a8c78','aut671a632691671a6a8b60',bo.morada, bo.local,bo.codpost ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut' from wsbodata bo where bo.bostamp = 'aut671a632691671a6a8b60'
20241024@164100.5135 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241024@164100.5154 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 5
20241024@164100.5171 e5tkrtqmh6hjcvd5fet4sbu2bn Query : insert into wsbidata (bistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,obrano, qtt,uni2qtt ,no, estab,nmdos ,ndos, obranome,fechada, dataobra ,rdata ,dataopen, datafecho,local, morada ,codpost, nome,bostamp,lordem ,edebito,debito, epu,pu ,ivaincl,stns,unidade, unidad2 ,marcada,usalote ,ettdeb,ttdeb,epcusto, pcusto ,ecustoind,custoind ,vendedor,vendnm, ccusto,ncusto ,noserie,tabiva,iva ,ref,design,familia,desconto,desc2,desc3,desc4,eslvu,slvu,esltt,sltt,oobistamp,vumoeda,ttmoeda,slvumoeda,slttmoeda,lote,armazem,ar2mazem,obistamp ,stipo) select 'aut671a680011671a6a8c78',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut',bo.obrano, 12.000, 12.000*.0000000 ,bo.no, bo.estab,bo.nmdos ,bo.ndos, bo.obranome,bo.fechada, bo.dataobra ,bo.dataobra ,bo.dataopen,bo.datafecho,bo.local, bo.morada ,bo.codpost, bo.nome,bo.bostamp,80000 ,35.2,35.2*200.48,35.2,35.2*200.48 ,0,0,'un',' ' ,bo.marcada,1 ,35.2*12.000,35.2*12.000*200.48 ,15.817000,15.817000*200.48 ,15.817000,15.817000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,35.2,35.2*200.48,35.2*12.000,35.2*12.000*200.48,'av24102441572,558000012 ',35.2,35.2*12.000,35.2,35.2*12.000,?,?,?,?,4 from wsbodata bo where bo.bostamp = 'aut671a632691671a6a8b60'
20241024@164100.5486 e5tkrtqmh6hjcvd5fet4sbu2bn Query : use flama_phc
20241024@164100.5491 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select st.usalote valor from st where st.ref = '324.988.00.01'
20241024@164100.5506 e5tkrtqmh6hjcvd5fet4sbu2bn Query : use flama_phc
20241024@164100.5509 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select st.stns valor from st where st.ref = '324.988.00.01'
20241024@164100.5524 e5tkrtqmh6hjcvd5fet4sbu2bn Query : use flama_phc
20241024@164100.5526 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select isnull(sum(stock) ,0)stock ,isnull(sum(qttrec),0) qttrec ,0 qttcat ,isnull(sum(rescli),0) rescli ,isnull(sum(resfor),0) resfor from sa where sa.ref = '324.988.00.01' and sa.armazem = 133 
20241024@164100.6201 e5tkrtqmh6hjcvd5fet4sbu2bn Query : use flama_phc
20241024@164100.6324 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select st.stns valor from st where st.ref = '324.988.00.01'
20241024@164100.6794 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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.988.00.01'
20241024@164100.6923 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241024@164100.6940 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 5
20241024@164100.6952 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241024@164100.6967 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 5
20241024@164100.6975 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select sestamp valor from se where ref ='324.988.00.01' and lote = 'r2400410200a'
20241024@164100.6989 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241024@164100.7002 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241024@164100.7017 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 5
20241024@164100.7029 e5tkrtqmh6hjcvd5fet4sbu2bn Query : insert into wsbi2data (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut671a653838671a6a8caa','aut671a632691671a6a8b60',bo.morada, bo.local,bo.codpost ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut' from wsbodata bo where bo.bostamp = 'aut671a632691671a6a8b60'
20241024@164100.7193 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241024@164100.7210 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 5
20241024@164100.7226 e5tkrtqmh6hjcvd5fet4sbu2bn Query : insert into wsbidata (bistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,obrano, qtt,uni2qtt ,no, estab,nmdos ,ndos, obranome,fechada, dataobra ,rdata ,dataopen, datafecho,local, morada ,codpost, nome,bostamp,lordem ,edebito,debito, epu,pu ,ivaincl,stns,unidade, unidad2 ,marcada,usalote ,ettdeb,ttdeb,epcusto, pcusto ,ecustoind,custoind ,vendedor,vendnm, ccusto,ncusto ,noserie,tabiva,iva ,ref,design,familia,desconto,desc2,desc3,desc4,eslvu,slvu,esltt,sltt,oobistamp,vumoeda,ttmoeda,slvumoeda,slttmoeda,lote,armazem,ar2mazem,obistamp ,stipo) select 'aut671a653838671a6a8caa',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut',bo.obrano, 4.000, 4.000*.0000000 ,bo.no, bo.estab,bo.nmdos ,bo.ndos, bo.obranome,bo.fechada, bo.dataobra ,bo.dataobra ,bo.dataopen,bo.datafecho,bo.local, bo.morada ,bo.codpost, bo.nome,bo.bostamp,90000 ,32,32*200.48,32,32*200.48 ,0,0,'un ',' ' ,bo.marcada,1 ,32*4.000,32*4.000*200.48 ,12.395000,12.395000*200.48 ,12.395000,12.395000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,32,32*200.48,32*4.000,32*4.000*200.48,'av24102441577,648000013 ',32,32*4.000,32,32*4.000,?,?,?,?,4 from wsbodata bo where bo.bostamp = 'aut671a632691671a6a8b60'
20241024@164100.7501 e5tkrtqmh6hjcvd5fet4sbu2bn Query : use flama_phc
20241024@164100.7505 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select st.usalote valor from st where st.ref = '324.988.00.01'
20241024@164100.7519 e5tkrtqmh6hjcvd5fet4sbu2bn Query : use flama_phc
20241024@164100.7522 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select st.stns valor from st where st.ref = '324.988.00.01'
20241024@164100.7539 e5tkrtqmh6hjcvd5fet4sbu2bn Query : use flama_phc
20241024@164100.7542 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select isnull(sum(stock) ,0)stock ,isnull(sum(qttrec),0) qttrec ,0 qttcat ,isnull(sum(rescli),0) rescli ,isnull(sum(resfor),0) resfor from sa where sa.ref = '324.988.00.01' and sa.armazem = 133 
20241024@164100.7564 e5tkrtqmh6hjcvd5fet4sbu2bn Query : use flama_phc
20241024@164100.7566 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select st.stns valor from st where st.ref = '324.988.00.01'
20241024@164100.7585 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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.988.00.01'
20241024@164100.7599 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241024@164100.7616 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 5
20241024@164100.7628 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241024@164100.7644 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 5
20241024@164100.7652 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select sestamp valor from se where ref ='324.988.00.01' and lote = 'r2400410200a'
20241024@164100.7665 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241024@164100.7677 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241024@164100.7698 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 5
20241024@164100.7712 e5tkrtqmh6hjcvd5fet4sbu2bn Query : insert into wsbi2data (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut671a623159671a6a8cbb','aut671a632691671a6a8b60',bo.morada, bo.local,bo.codpost ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut' from wsbodata bo where bo.bostamp = 'aut671a632691671a6a8b60'
20241024@164100.7870 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241024@164100.7890 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 5
20241024@164100.7907 e5tkrtqmh6hjcvd5fet4sbu2bn Query : insert into wsbidata (bistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,obrano, qtt,uni2qtt ,no, estab,nmdos ,ndos, obranome,fechada, dataobra ,rdata ,dataopen, datafecho,local, morada ,codpost, nome,bostamp,lordem ,edebito,debito, epu,pu ,ivaincl,stns,unidade, unidad2 ,marcada,usalote ,ettdeb,ttdeb,epcusto, pcusto ,ecustoind,custoind ,vendedor,vendnm, ccusto,ncusto ,noserie,tabiva,iva ,ref,design,familia,desconto,desc2,desc3,desc4,eslvu,slvu,esltt,sltt,oobistamp,vumoeda,ttmoeda,slvumoeda,slttmoeda,lote,armazem,ar2mazem,obistamp ,stipo) select 'aut671a623159671a6a8cbb',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut',bo.obrano, 36.000, 36.000*.0000000 ,bo.no, bo.estab,bo.nmdos ,bo.ndos, bo.obranome,bo.fechada, bo.dataobra ,bo.dataobra ,bo.dataopen,bo.datafecho,bo.local, bo.morada ,bo.codpost, bo.nome,bo.bostamp,100000 ,32,32*200.48,32,32*200.48 ,0,0,'un ',' ' ,bo.marcada,1 ,32*36.000,32*36.000*200.48 ,12.395000,12.395000*200.48 ,12.395000,12.395000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,32,32*200.48,32*36.000,32*36.000*200.48,'av24102441577,648000013 ',32,32*36.000,32,32*36.000,?,?,?,?,4 from wsbodata bo where bo.bostamp = 'aut671a632691671a6a8b60'
20241024@164100.8192 e5tkrtqmh6hjcvd5fet4sbu2bn Query : use flama_phc
20241024@164100.8197 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select st.usalote valor from st where st.ref = '324.948.00.01'
20241024@164100.8213 e5tkrtqmh6hjcvd5fet4sbu2bn Query : use flama_phc
20241024@164100.8216 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select st.stns valor from st where st.ref = '324.948.00.01'
20241024@164100.8233 e5tkrtqmh6hjcvd5fet4sbu2bn Query : use flama_phc
20241024@164100.8236 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select isnull(sum(stock) ,0)stock ,isnull(sum(qttrec),0) qttrec ,0 qttcat ,isnull(sum(rescli),0) rescli ,isnull(sum(resfor),0) resfor from sa where sa.ref = '324.948.00.01' and sa.armazem = 133 
20241024@164100.8306 e5tkrtqmh6hjcvd5fet4sbu2bn Query : use flama_phc
20241024@164100.8309 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select st.stns valor from st where st.ref = '324.948.00.01'
20241024@164100.8330 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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.948.00.01'
20241024@164100.8812 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241024@164100.8830 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 5
20241024@164100.8847 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241024@164100.8862 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 5
20241024@164100.8871 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select sestamp valor from se where ref ='324.948.00.01' and lote = 'r2301091200a'
20241024@164100.8891 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241024@164100.8905 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241024@164100.8920 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 5
20241024@164100.8932 e5tkrtqmh6hjcvd5fet4sbu2bn Query : insert into wsbi2data (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut671a650166671a6a8cd9','aut671a632691671a6a8b60',bo.morada, bo.local,bo.codpost ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut' from wsbodata bo where bo.bostamp = 'aut671a632691671a6a8b60'
20241024@164100.9092 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241024@164100.9112 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 5
20241024@164100.9128 e5tkrtqmh6hjcvd5fet4sbu2bn Query : insert into wsbidata (bistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,obrano, qtt,uni2qtt ,no, estab,nmdos ,ndos, obranome,fechada, dataobra ,rdata ,dataopen, datafecho,local, morada ,codpost, nome,bostamp,lordem ,edebito,debito, epu,pu ,ivaincl,stns,unidade, unidad2 ,marcada,usalote ,ettdeb,ttdeb,epcusto, pcusto ,ecustoind,custoind ,vendedor,vendnm, ccusto,ncusto ,noserie,tabiva,iva ,ref,design,familia,desconto,desc2,desc3,desc4,eslvu,slvu,esltt,sltt,oobistamp,vumoeda,ttmoeda,slvumoeda,slttmoeda,lote,armazem,ar2mazem,obistamp ,stipo) select 'aut671a650166671a6a8cd9',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut',bo.obrano, 22.000, 22.000*.0000000 ,bo.no, bo.estab,bo.nmdos ,bo.ndos, bo.obranome,bo.fechada, bo.dataobra ,bo.dataobra ,bo.dataopen,bo.datafecho,bo.local, bo.morada ,bo.codpost, bo.nome,bo.bostamp,110000 ,30.1,30.1*200.48,30.1,30.1*200.48 ,0,0,'un',' ' ,bo.marcada,1 ,30.1*22.000,30.1*22.000*200.48 ,11.700000,11.700000*200.48 ,11.700000,11.700000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,30.1,30.1*200.48,30.1*22.000,30.1*22.000*200.48,'av24102441583,215000014 ',30.1,30.1*22.000,30.1,30.1*22.000,?,?,?,?,4 from wsbodata bo where bo.bostamp = 'aut671a632691671a6a8b60'
20241024@164100.9399 e5tkrtqmh6hjcvd5fet4sbu2bn Query : use flama_phc
20241024@164100.9403 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select st.usalote valor from st where st.ref = '324.948.00.01'
20241024@164100.9417 e5tkrtqmh6hjcvd5fet4sbu2bn Query : use flama_phc
20241024@164100.9420 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select st.stns valor from st where st.ref = '324.948.00.01'
20241024@164100.9436 e5tkrtqmh6hjcvd5fet4sbu2bn Query : use flama_phc
20241024@164100.9442 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select isnull(sum(stock) ,0)stock ,isnull(sum(qttrec),0) qttrec ,0 qttcat ,isnull(sum(rescli),0) rescli ,isnull(sum(resfor),0) resfor from sa where sa.ref = '324.948.00.01' and sa.armazem = 133 
20241024@164100.9465 e5tkrtqmh6hjcvd5fet4sbu2bn Query : use flama_phc
20241024@164100.9469 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select st.stns valor from st where st.ref = '324.948.00.01'
20241024@164100.9488 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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.948.00.01'
20241024@164100.9503 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241024@164100.9520 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 5
20241024@164100.9532 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241024@164100.9547 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 5
20241024@164100.9555 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select sestamp valor from se where ref ='324.948.00.01' and lote = 'r2301091200a'
20241024@164100.9567 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241024@164100.9595 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241024@164100.9610 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 5
20241024@164100.9621 e5tkrtqmh6hjcvd5fet4sbu2bn Query : insert into wsbi2data (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut671a670155671a6a8cea','aut671a632691671a6a8b60',bo.morada, bo.local,bo.codpost ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut' from wsbodata bo where bo.bostamp = 'aut671a632691671a6a8b60'
20241024@164100.9767 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241024@164100.9786 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 5
20241024@164100.9801 e5tkrtqmh6hjcvd5fet4sbu2bn Query : insert into wsbidata (bistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,obrano, qtt,uni2qtt ,no, estab,nmdos ,ndos, obranome,fechada, dataobra ,rdata ,dataopen, datafecho,local, morada ,codpost, nome,bostamp,lordem ,edebito,debito, epu,pu ,ivaincl,stns,unidade, unidad2 ,marcada,usalote ,ettdeb,ttdeb,epcusto, pcusto ,ecustoind,custoind ,vendedor,vendnm, ccusto,ncusto ,noserie,tabiva,iva ,ref,design,familia,desconto,desc2,desc3,desc4,eslvu,slvu,esltt,sltt,oobistamp,vumoeda,ttmoeda,slvumoeda,slttmoeda,lote,armazem,ar2mazem,obistamp ,stipo) select 'aut671a670155671a6a8cea',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut',bo.obrano, 18.000, 18.000*.0000000 ,bo.no, bo.estab,bo.nmdos ,bo.ndos, bo.obranome,bo.fechada, bo.dataobra ,bo.dataobra ,bo.dataopen,bo.datafecho,bo.local, bo.morada ,bo.codpost, bo.nome,bo.bostamp,120000 ,30.1,30.1*200.48,30.1,30.1*200.48 ,0,0,'un',' ' ,bo.marcada,1 ,30.1*18.000,30.1*18.000*200.48 ,11.700000,11.700000*200.48 ,11.700000,11.700000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,30.1,30.1*200.48,30.1*18.000,30.1*18.000*200.48,'av24102441583,215000014 ',30.1,30.1*18.000,30.1,30.1*18.000,?,?,?,?,4 from wsbodata bo where bo.bostamp = 'aut671a632691671a6a8b60'
20241024@164101.6600 e5tkrtqmh6hjcvd5fet4sbu2bn Query : use flama_phc
20241024@164101.7000 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select st.usalote valor from st where st.ref = '324.966.00.01'
20241024@164101.1000 e5tkrtqmh6hjcvd5fet4sbu2bn Query : use flama_phc
20241024@164101.1030 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select st.stns valor from st where st.ref = '324.966.00.01'
20241024@164101.1190 e5tkrtqmh6hjcvd5fet4sbu2bn Query : use flama_phc
20241024@164101.1210 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select isnull(sum(stock) ,0)stock ,isnull(sum(qttrec),0) qttrec ,0 qttcat ,isnull(sum(rescli),0) rescli ,isnull(sum(resfor),0) resfor from sa where sa.ref = '324.966.00.01' and sa.armazem = 133 
20241024@164101.1980 e5tkrtqmh6hjcvd5fet4sbu2bn Query : use flama_phc
20241024@164101.2010 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select st.stns valor from st where st.ref = '324.966.00.01'
20241024@164101.2210 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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'
20241024@164101.3580 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241024@164101.3730 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 5
20241024@164101.3860 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241024@164101.4020 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 5
20241024@164101.4110 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select sestamp valor from se where ref ='324.966.00.01' and lote = 'r2400743200a'
20241024@164101.4240 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241024@164101.4350 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241024@164101.4500 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 5
20241024@164101.4610 e5tkrtqmh6hjcvd5fet4sbu2bn Query : insert into wsbi2data (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut671a641825671a6a8d0a','aut671a632691671a6a8b60',bo.morada, bo.local,bo.codpost ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut' from wsbodata bo where bo.bostamp = 'aut671a632691671a6a8b60'
20241024@164101.6250 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241024@164101.6470 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 5
20241024@164101.6660 e5tkrtqmh6hjcvd5fet4sbu2bn Query : insert into wsbidata (bistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,obrano, qtt,uni2qtt ,no, estab,nmdos ,ndos, obranome,fechada, dataobra ,rdata ,dataopen, datafecho,local, morada ,codpost, nome,bostamp,lordem ,edebito,debito, epu,pu ,ivaincl,stns,unidade, unidad2 ,marcada,usalote ,ettdeb,ttdeb,epcusto, pcusto ,ecustoind,custoind ,vendedor,vendnm, ccusto,ncusto ,noserie,tabiva,iva ,ref,design,familia,desconto,desc2,desc3,desc4,eslvu,slvu,esltt,sltt,oobistamp,vumoeda,ttmoeda,slvumoeda,slttmoeda,lote,armazem,ar2mazem,obistamp ,stipo) select 'aut671a641825671a6a8d0a',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut',bo.obrano, 8.000, 8.000*.0000000 ,bo.no, bo.estab,bo.nmdos ,bo.ndos, bo.obranome,bo.fechada, bo.dataobra ,bo.dataobra ,bo.dataopen,bo.datafecho,bo.local, bo.morada ,bo.codpost, bo.nome,bo.bostamp,130000 ,32,32*200.48,32,32*200.48 ,0,0,'un',' ' ,bo.marcada,1 ,32*8.000,32*8.000*200.48 ,12.229000,12.229000*200.48 ,12.229000,12.229000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,32,32*200.48,32*8.000,32*8.000*200.48,'av24102441588,244000015 ',32,32*8.000,32,32*8.000,?,?,?,?,4 from wsbodata bo where bo.bostamp = 'aut671a632691671a6a8b60'
20241024@164101.9590 e5tkrtqmh6hjcvd5fet4sbu2bn Query : use flama_phc
20241024@164101.9640 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select st.usalote valor from st where st.ref = '324.946.00.01'
20241024@164101.9820 e5tkrtqmh6hjcvd5fet4sbu2bn Query : use flama_phc
20241024@164101.9860 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select st.stns valor from st where st.ref = '324.946.00.01'
20241024@164101.1005 e5tkrtqmh6hjcvd5fet4sbu2bn Query : use flama_phc
20241024@164101.1008 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select isnull(sum(stock) ,0)stock ,isnull(sum(qttrec),0) qttrec ,0 qttcat ,isnull(sum(rescli),0) rescli ,isnull(sum(resfor),0) resfor from sa where sa.ref = '324.946.00.01' and sa.armazem = 133 
20241024@164101.1096 e5tkrtqmh6hjcvd5fet4sbu2bn Query : use flama_phc
20241024@164101.1099 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select st.stns valor from st where st.ref = '324.946.00.01'
20241024@164101.1117 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.946.00.01'
20241024@164101.1364 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241024@164101.1380 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 5
20241024@164101.1395 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241024@164101.1410 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 5
20241024@164101.1433 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select sestamp valor from se where ref ='324.946.00.01' and lote = 'r2300941200a'
20241024@164101.1457 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241024@164101.1469 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241024@164101.1484 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 5
20241024@164101.1496 e5tkrtqmh6hjcvd5fet4sbu2bn Query : insert into wsbi2data (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut671a657162671a6a8d23','aut671a632691671a6a8b60',bo.morada, bo.local,bo.codpost ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut' from wsbodata bo where bo.bostamp = 'aut671a632691671a6a8b60'
20241024@164101.1648 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241024@164101.1665 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 5
20241024@164101.1681 e5tkrtqmh6hjcvd5fet4sbu2bn Query : insert into wsbidata (bistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,obrano, qtt,uni2qtt ,no, estab,nmdos ,ndos, obranome,fechada, dataobra ,rdata ,dataopen, datafecho,local, morada ,codpost, nome,bostamp,lordem ,edebito,debito, epu,pu ,ivaincl,stns,unidade, unidad2 ,marcada,usalote ,ettdeb,ttdeb,epcusto, pcusto ,ecustoind,custoind ,vendedor,vendnm, ccusto,ncusto ,noserie,tabiva,iva ,ref,design,familia,desconto,desc2,desc3,desc4,eslvu,slvu,esltt,sltt,oobistamp,vumoeda,ttmoeda,slvumoeda,slttmoeda,lote,armazem,ar2mazem,obistamp ,stipo) select 'aut671a657162671a6a8d23',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut',bo.obrano, 12.000, 12.000*.0000000 ,bo.no, bo.estab,bo.nmdos ,bo.ndos, bo.obranome,bo.fechada, bo.dataobra ,bo.dataobra ,bo.dataopen,bo.datafecho,bo.local, bo.morada ,bo.codpost, bo.nome,bo.bostamp,140000 ,17.3,17.3*200.48,17.3,17.3*200.48 ,0,0,'un ',' ' ,bo.marcada,1 ,17.3*12.000,17.3*12.000*200.48 ,6.081000,6.081000*200.48 ,6.081000,6.081000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,17.3,17.3*200.48,17.3*12.000,17.3*12.000*200.48,'av24102441593,273000016 ',17.3,17.3*12.000,17.3,17.3*12.000,?,?,?,?,4 from wsbodata bo where bo.bostamp = 'aut671a632691671a6a8b60'
20241024@164101.1946 e5tkrtqmh6hjcvd5fet4sbu2bn Query : use flama_phc
20241024@164101.1951 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select st.usalote valor from st where st.ref = '324.658.00.01'
20241024@164101.1965 e5tkrtqmh6hjcvd5fet4sbu2bn Query : use flama_phc
20241024@164101.1968 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select st.stns valor from st where st.ref = '324.658.00.01'
20241024@164101.1984 e5tkrtqmh6hjcvd5fet4sbu2bn Query : use flama_phc
20241024@164101.1987 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select isnull(sum(stock) ,0)stock ,isnull(sum(qttrec),0) qttrec ,0 qttcat ,isnull(sum(rescli),0) rescli ,isnull(sum(resfor),0) resfor from sa where sa.ref = '324.658.00.01' and sa.armazem = 133 
20241024@164101.2052 e5tkrtqmh6hjcvd5fet4sbu2bn Query : use flama_phc
20241024@164101.2055 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select st.stns valor from st where st.ref = '324.658.00.01'
20241024@164101.2073 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.658.00.01'
20241024@164101.2199 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241024@164101.2215 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 5
20241024@164101.2228 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241024@164101.2243 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 5
20241024@164101.2251 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select sestamp valor from se where ref ='324.658.00.01' and lote = 'r2300819200a'
20241024@164101.2276 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241024@164101.2289 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241024@164101.2305 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 5
20241024@164101.2316 e5tkrtqmh6hjcvd5fet4sbu2bn Query : insert into wsbi2data (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut671a603302671a6a8d37','aut671a632691671a6a8b60',bo.morada, bo.local,bo.codpost ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut' from wsbodata bo where bo.bostamp = 'aut671a632691671a6a8b60'
20241024@164101.2463 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241024@164101.2479 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 5
20241024@164101.2496 e5tkrtqmh6hjcvd5fet4sbu2bn Query : insert into wsbidata (bistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,obrano, qtt,uni2qtt ,no, estab,nmdos ,ndos, obranome,fechada, dataobra ,rdata ,dataopen, datafecho,local, morada ,codpost, nome,bostamp,lordem ,edebito,debito, epu,pu ,ivaincl,stns,unidade, unidad2 ,marcada,usalote ,ettdeb,ttdeb,epcusto, pcusto ,ecustoind,custoind ,vendedor,vendnm, ccusto,ncusto ,noserie,tabiva,iva ,ref,design,familia,desconto,desc2,desc3,desc4,eslvu,slvu,esltt,sltt,oobistamp,vumoeda,ttmoeda,slvumoeda,slttmoeda,lote,armazem,ar2mazem,obistamp ,stipo) select 'aut671a603302671a6a8d37',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut',bo.obrano, 4.000, 4.000*.0000000 ,bo.no, bo.estab,bo.nmdos ,bo.ndos, bo.obranome,bo.fechada, bo.dataobra ,bo.dataobra ,bo.dataopen,bo.datafecho,bo.local, bo.morada ,bo.codpost, bo.nome,bo.bostamp,150000 ,64,64*200.48,64,64*200.48 ,0,0,'un ',' ' ,bo.marcada,1 ,64*4.000,64*4.000*200.48 ,19.303000,19.303000*200.48 ,19.303000,19.303000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,64,64*200.48,64*4.000,64*4.000*200.48,'av24102441614,137000018 ',64,64*4.000,64,64*4.000,?,?,?,?,4 from wsbodata bo where bo.bostamp = 'aut671a632691671a6a8b60'
20241024@164101.2764 e5tkrtqmh6hjcvd5fet4sbu2bn Query : use flama_phc
20241024@164101.2768 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select st.usalote valor from st where st.ref = '324.1889.00.1'
20241024@164101.2822 e5tkrtqmh6hjcvd5fet4sbu2bn Query : use flama_phc
20241024@164101.2867 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select st.stns valor from st where st.ref = '324.1889.00.1'
20241024@164101.3149 e5tkrtqmh6hjcvd5fet4sbu2bn Query : use flama_phc
20241024@164101.3152 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select isnull(sum(stock) ,0)stock ,isnull(sum(qttrec),0) qttrec ,0 qttcat ,isnull(sum(rescli),0) rescli ,isnull(sum(resfor),0) resfor from sa where sa.ref = '324.1889.00.1' and sa.armazem = 133 
20241024@164101.3223 e5tkrtqmh6hjcvd5fet4sbu2bn Query : use flama_phc
20241024@164101.3225 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select st.stns valor from st where st.ref = '324.1889.00.1'
20241024@164101.3246 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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.1889.00.1'
20241024@164101.3387 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241024@164101.3403 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 5
20241024@164101.3416 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241024@164101.3431 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 5
20241024@164101.3441 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select sestamp valor from se where ref ='324.1889.00.1' and lote = 'r2400289200a'
20241024@164101.3466 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241024@164101.3479 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241024@164101.3495 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 5
20241024@164101.3508 e5tkrtqmh6hjcvd5fet4sbu2bn Query : insert into wsbi2data (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut671a681476671a6a8d54','aut671a632691671a6a8b60',bo.morada, bo.local,bo.codpost ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut' from wsbodata bo where bo.bostamp = 'aut671a632691671a6a8b60'
20241024@164101.3650 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241024@164101.3666 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 5
20241024@164101.3681 e5tkrtqmh6hjcvd5fet4sbu2bn Query : insert into wsbidata (bistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,obrano, qtt,uni2qtt ,no, estab,nmdos ,ndos, obranome,fechada, dataobra ,rdata ,dataopen, datafecho,local, morada ,codpost, nome,bostamp,lordem ,edebito,debito, epu,pu ,ivaincl,stns,unidade, unidad2 ,marcada,usalote ,ettdeb,ttdeb,epcusto, pcusto ,ecustoind,custoind ,vendedor,vendnm, ccusto,ncusto ,noserie,tabiva,iva ,ref,design,familia,desconto,desc2,desc3,desc4,eslvu,slvu,esltt,sltt,oobistamp,vumoeda,ttmoeda,slvumoeda,slttmoeda,lote,armazem,ar2mazem,obistamp ,stipo) select 'aut671a681476671a6a8d54',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut',bo.obrano, 3.000, 3.000*.0000000 ,bo.no, bo.estab,bo.nmdos ,bo.ndos, bo.obranome,bo.fechada, bo.dataobra ,bo.dataobra ,bo.dataopen,bo.datafecho,bo.local, bo.morada ,bo.codpost, bo.nome,bo.bostamp,160000 ,67.5,67.5*200.48,67.5,67.5*200.48 ,0,0,'un ',' ' ,bo.marcada,1 ,67.5*3.000,67.5*3.000*200.48 ,29.078000,29.078000*200.48 ,29.078000,29.078000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,67.5,67.5*200.48,67.5*3.000,67.5*3.000*200.48,'av24102441645,472000021 ',67.5,67.5*3.000,67.5,67.5*3.000,?,?,?,?,4 from wsbodata bo where bo.bostamp = 'aut671a632691671a6a8b60'
20241024@164101.3957 e5tkrtqmh6hjcvd5fet4sbu2bn Query : use flama_phc
20241024@164101.3961 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select st.usalote valor from st where st.ref = '324.1462.00.1'
20241024@164101.3977 e5tkrtqmh6hjcvd5fet4sbu2bn Query : use flama_phc
20241024@164101.3995 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select st.stns valor from st where st.ref = '324.1462.00.1'
20241024@164101.4013 e5tkrtqmh6hjcvd5fet4sbu2bn Query : use flama_phc
20241024@164101.4015 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select isnull(sum(stock) ,0)stock ,isnull(sum(qttrec),0) qttrec ,0 qttcat ,isnull(sum(rescli),0) rescli ,isnull(sum(resfor),0) resfor from sa where sa.ref = '324.1462.00.1' and sa.armazem = 133 
20241024@164101.4081 e5tkrtqmh6hjcvd5fet4sbu2bn Query : use flama_phc
20241024@164101.4084 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select st.stns valor from st where st.ref = '324.1462.00.1'
20241024@164101.4103 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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.1462.00.1'
20241024@164101.4228 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241024@164101.4244 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 5
20241024@164101.4257 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241024@164101.4272 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 5
20241024@164101.4281 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select sestamp valor from se where ref ='324.1462.00.1' and lote = 'r2101096200a'
20241024@164101.4321 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241024@164101.4333 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241024@164101.4347 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 5
20241024@164101.4358 e5tkrtqmh6hjcvd5fet4sbu2bn Query : insert into wsbi2data (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut671a656213671a6a8d69','aut671a632691671a6a8b60',bo.morada, bo.local,bo.codpost ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut' from wsbodata bo where bo.bostamp = 'aut671a632691671a6a8b60'
20241024@164101.4501 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241024@164101.4518 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 5
20241024@164101.4534 e5tkrtqmh6hjcvd5fet4sbu2bn Query : insert into wsbidata (bistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,obrano, qtt,uni2qtt ,no, estab,nmdos ,ndos, obranome,fechada, dataobra ,rdata ,dataopen, datafecho,local, morada ,codpost, nome,bostamp,lordem ,edebito,debito, epu,pu ,ivaincl,stns,unidade, unidad2 ,marcada,usalote ,ettdeb,ttdeb,epcusto, pcusto ,ecustoind,custoind ,vendedor,vendnm, ccusto,ncusto ,noserie,tabiva,iva ,ref,design,familia,desconto,desc2,desc3,desc4,eslvu,slvu,esltt,sltt,oobistamp,vumoeda,ttmoeda,slvumoeda,slttmoeda,lote,armazem,ar2mazem,obistamp ,stipo) select 'aut671a656213671a6a8d69',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut',bo.obrano, 3.000, 3.000*.0000000 ,bo.no, bo.estab,bo.nmdos ,bo.ndos, bo.obranome,bo.fechada, bo.dataobra ,bo.dataobra ,bo.dataopen,bo.datafecho,bo.local, bo.morada ,bo.codpost, bo.nome,bo.bostamp,170000 ,64,64*200.48,64,64*200.48 ,0,0,'un ',' ' ,bo.marcada,1 ,64*3.000,64*3.000*200.48 ,30.730000,30.730000*200.48 ,30.730000,30.730000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,64,64*200.48,64*3.000,64*3.000*200.48,'av24102441684,119000025 ',64,64*3.000,64,64*3.000,?,?,?,?,4 from wsbodata bo where bo.bostamp = 'aut671a632691671a6a8b60'
20241024@164101.4802 e5tkrtqmh6hjcvd5fet4sbu2bn Query : use flama_phc
20241024@164101.4806 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select st.usalote valor from st where st.ref = '324.5540.00.1'
20241024@164101.4822 e5tkrtqmh6hjcvd5fet4sbu2bn Query : use flama_phc
20241024@164101.4825 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select st.stns valor from st where st.ref = '324.5540.00.1'
20241024@164101.4855 e5tkrtqmh6hjcvd5fet4sbu2bn Query : use flama_phc
20241024@164101.4858 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select isnull(sum(stock) ,0)stock ,isnull(sum(qttrec),0) qttrec ,0 qttcat ,isnull(sum(rescli),0) rescli ,isnull(sum(resfor),0) resfor from sa where sa.ref = '324.5540.00.1' and sa.armazem = 133 
20241024@164101.4922 e5tkrtqmh6hjcvd5fet4sbu2bn Query : use flama_phc
20241024@164101.4924 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select st.stns valor from st where st.ref = '324.5540.00.1'
20241024@164101.4943 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.5540.00.1'
20241024@164101.5069 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241024@164101.5084 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 5
20241024@164101.5099 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241024@164101.5113 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 5
20241024@164101.5121 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select sestamp valor from se where ref ='324.5540.00.1' and lote = 'r2300830100a'
20241024@164101.5135 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241024@164101.5147 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241024@164101.5161 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 5
20241024@164101.5172 e5tkrtqmh6hjcvd5fet4sbu2bn Query : insert into wsbi2data (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut671a625790671a6a8d7d','aut671a632691671a6a8b60',bo.morada, bo.local,bo.codpost ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut' from wsbodata bo where bo.bostamp = 'aut671a632691671a6a8b60'
20241024@164101.5321 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241024@164101.5340 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 5
20241024@164101.5356 e5tkrtqmh6hjcvd5fet4sbu2bn Query : insert into wsbidata (bistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,obrano, qtt,uni2qtt ,no, estab,nmdos ,ndos, obranome,fechada, dataobra ,rdata ,dataopen, datafecho,local, morada ,codpost, nome,bostamp,lordem ,edebito,debito, epu,pu ,ivaincl,stns,unidade, unidad2 ,marcada,usalote ,ettdeb,ttdeb,epcusto, pcusto ,ecustoind,custoind ,vendedor,vendnm, ccusto,ncusto ,noserie,tabiva,iva ,ref,design,familia,desconto,desc2,desc3,desc4,eslvu,slvu,esltt,sltt,oobistamp,vumoeda,ttmoeda,slvumoeda,slttmoeda,lote,armazem,ar2mazem,obistamp ,stipo) select 'aut671a625790671a6a8d7d',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut',bo.obrano, 5.000, 5.000*.0000000 ,bo.no, bo.estab,bo.nmdos ,bo.ndos, bo.obranome,bo.fechada, bo.dataobra ,bo.dataobra ,bo.dataopen,bo.datafecho,bo.local, bo.morada ,bo.codpost, bo.nome,bo.bostamp,180000 ,102.4,102.4*200.48,102.4,102.4*200.48 ,0,0,'un',' ' ,bo.marcada,1 ,102.4*5.000,102.4*5.000*200.48 ,36.952000,36.952000*200.48 ,36.952000,36.952000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,102.4,102.4*200.48,102.4*5.000,102.4*5.000*200.48,'av24102441698,820000027 ',102.4,102.4*5.000,102.4,102.4*5.000,?,?,?,?,4 from wsbodata bo where bo.bostamp = 'aut671a632691671a6a8b60'
20241024@164101.5621 e5tkrtqmh6hjcvd5fet4sbu2bn Query : use flama_phc
20241024@164101.5625 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select st.usalote valor from st where st.ref = '324.5540.00.1'
20241024@164101.5638 e5tkrtqmh6hjcvd5fet4sbu2bn Query : use flama_phc
20241024@164101.5640 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select st.stns valor from st where st.ref = '324.5540.00.1'
20241024@164101.5656 e5tkrtqmh6hjcvd5fet4sbu2bn Query : use flama_phc
20241024@164101.5658 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select isnull(sum(stock) ,0)stock ,isnull(sum(qttrec),0) qttrec ,0 qttcat ,isnull(sum(rescli),0) rescli ,isnull(sum(resfor),0) resfor from sa where sa.ref = '324.5540.00.1' and sa.armazem = 133 
20241024@164101.5680 e5tkrtqmh6hjcvd5fet4sbu2bn Query : use flama_phc
20241024@164101.5683 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select st.stns valor from st where st.ref = '324.5540.00.1'
20241024@164101.5701 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.5540.00.1'
20241024@164101.5714 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241024@164101.6886 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 5
20241024@164101.6899 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241024@164101.6915 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 5
20241024@164101.6923 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select sestamp valor from se where ref ='324.5540.00.1' and lote = 'r2300830100a'
20241024@164101.6935 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241024@164101.6948 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241024@164101.6962 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 5
20241024@164101.6973 e5tkrtqmh6hjcvd5fet4sbu2bn Query : insert into wsbi2data (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut671a626679671a6a8da9','aut671a632691671a6a8b60',bo.morada, bo.local,bo.codpost ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut' from wsbodata bo where bo.bostamp = 'aut671a632691671a6a8b60'
20241024@164101.7120 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241024@164101.7136 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 5
20241024@164101.7151 e5tkrtqmh6hjcvd5fet4sbu2bn Query : insert into wsbidata (bistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,obrano, qtt,uni2qtt ,no, estab,nmdos ,ndos, obranome,fechada, dataobra ,rdata ,dataopen, datafecho,local, morada ,codpost, nome,bostamp,lordem ,edebito,debito, epu,pu ,ivaincl,stns,unidade, unidad2 ,marcada,usalote ,ettdeb,ttdeb,epcusto, pcusto ,ecustoind,custoind ,vendedor,vendnm, ccusto,ncusto ,noserie,tabiva,iva ,ref,design,familia,desconto,desc2,desc3,desc4,eslvu,slvu,esltt,sltt,oobistamp,vumoeda,ttmoeda,slvumoeda,slttmoeda,lote,armazem,ar2mazem,obistamp ,stipo) select 'aut671a626679671a6a8da9',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut',bo.obrano, 1.000, 1.000*.0000000 ,bo.no, bo.estab,bo.nmdos ,bo.ndos, bo.obranome,bo.fechada, bo.dataobra ,bo.dataobra ,bo.dataopen,bo.datafecho,bo.local, bo.morada ,bo.codpost, bo.nome,bo.bostamp,190000 ,102.4,102.4*200.48,102.4,102.4*200.48 ,0,0,'un',' ' ,bo.marcada,1 ,102.4*1.000,102.4*1.000*200.48 ,36.952000,36.952000*200.48 ,36.952000,36.952000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,102.4,102.4*200.48,102.4*1.000,102.4*1.000*200.48,'av24102441698,820000027 ',102.4,102.4*1.000,102.4,102.4*1.000,?,?,?,?,4 from wsbodata bo where bo.bostamp = 'aut671a632691671a6a8b60'
20241024@164101.7420 e5tkrtqmh6hjcvd5fet4sbu2bn Query : use flama_phc
20241024@164101.7424 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select st.usalote valor from st where st.ref = '324.5500.00.1'
20241024@164101.7439 e5tkrtqmh6hjcvd5fet4sbu2bn Query : use flama_phc
20241024@164101.7442 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select st.stns valor from st where st.ref = '324.5500.00.1'
20241024@164101.7459 e5tkrtqmh6hjcvd5fet4sbu2bn Query : use flama_phc
20241024@164101.7461 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select isnull(sum(stock) ,0)stock ,isnull(sum(qttrec),0) qttrec ,0 qttcat ,isnull(sum(rescli),0) rescli ,isnull(sum(resfor),0) resfor from sa where sa.ref = '324.5500.00.1' and sa.armazem = 133 
20241024@164101.7532 e5tkrtqmh6hjcvd5fet4sbu2bn Query : use flama_phc
20241024@164101.7535 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select st.stns valor from st where st.ref = '324.5500.00.1'
20241024@164101.7555 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.5500.00.1'
20241024@164101.7688 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241024@164101.7708 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 5
20241024@164101.7720 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241024@164101.7736 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 5
20241024@164101.7745 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select sestamp valor from se where ref ='324.5500.00.1' and lote = 'r2400095600a'
20241024@164101.7773 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241024@164101.7786 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241024@164101.7802 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 5
20241024@164101.7814 e5tkrtqmh6hjcvd5fet4sbu2bn Query : insert into wsbi2data (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut671a637071671a6a8dbe','aut671a632691671a6a8b60',bo.morada, bo.local,bo.codpost ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut' from wsbodata bo where bo.bostamp = 'aut671a632691671a6a8b60'
20241024@164101.7959 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241024@164101.7976 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 5
20241024@164101.7995 e5tkrtqmh6hjcvd5fet4sbu2bn Query : insert into wsbidata (bistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,obrano, qtt,uni2qtt ,no, estab,nmdos ,ndos, obranome,fechada, dataobra ,rdata ,dataopen, datafecho,local, morada ,codpost, nome,bostamp,lordem ,edebito,debito, epu,pu ,ivaincl,stns,unidade, unidad2 ,marcada,usalote ,ettdeb,ttdeb,epcusto, pcusto ,ecustoind,custoind ,vendedor,vendnm, ccusto,ncusto ,noserie,tabiva,iva ,ref,design,familia,desconto,desc2,desc3,desc4,eslvu,slvu,esltt,sltt,oobistamp,vumoeda,ttmoeda,slvumoeda,slttmoeda,lote,armazem,ar2mazem,obistamp ,stipo) select 'aut671a637071671a6a8dbe',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut',bo.obrano, 4.000, 4.000*.0000000 ,bo.no, bo.estab,bo.nmdos ,bo.ndos, bo.obranome,bo.fechada, bo.dataobra ,bo.dataobra ,bo.dataopen,bo.datafecho,bo.local, bo.morada ,bo.codpost, bo.nome,bo.bostamp,200000 ,64,64*200.48,64,64*200.48 ,0,0,'un ','' ,bo.marcada,1 ,64*4.000,64*4.000*200.48 ,24.876000,24.876000*200.48 ,24.876000,24.876000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,64,64*200.48,64*4.000,64*4.000*200.48,'av24102441714,361000028 ',64,64*4.000,64,64*4.000,?,?,?,?,4 from wsbodata bo where bo.bostamp = 'aut671a632691671a6a8b60'
20241024@164101.8342 e5tkrtqmh6hjcvd5fet4sbu2bn Query : use flama_phc
20241024@164101.8482 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select st.usalote valor from st where st.ref = '324.5500.00.1'
20241024@164101.8499 e5tkrtqmh6hjcvd5fet4sbu2bn Query : use flama_phc
20241024@164101.8502 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select st.stns valor from st where st.ref = '324.5500.00.1'
20241024@164101.8519 e5tkrtqmh6hjcvd5fet4sbu2bn Query : use flama_phc
20241024@164101.8522 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select isnull(sum(stock) ,0)stock ,isnull(sum(qttrec),0) qttrec ,0 qttcat ,isnull(sum(rescli),0) rescli ,isnull(sum(resfor),0) resfor from sa where sa.ref = '324.5500.00.1' and sa.armazem = 133 
20241024@164101.8545 e5tkrtqmh6hjcvd5fet4sbu2bn Query : use flama_phc
20241024@164101.8548 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select st.stns valor from st where st.ref = '324.5500.00.1'
20241024@164101.8569 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.5500.00.1'
20241024@164101.8600 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241024@164101.8617 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 5
20241024@164101.8630 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241024@164101.8645 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 5
20241024@164101.8654 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select sestamp valor from se where ref ='324.5500.00.1' and lote = 'r2400095600a'
20241024@164101.8667 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241024@164101.8679 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241024@164101.8696 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 5
20241024@164101.8708 e5tkrtqmh6hjcvd5fet4sbu2bn Query : insert into wsbi2data (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut671a650070671a6a8dd3','aut671a632691671a6a8b60',bo.morada, bo.local,bo.codpost ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut' from wsbodata bo where bo.bostamp = 'aut671a632691671a6a8b60'
20241024@164101.8860 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241024@164101.8878 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 5
20241024@164101.8896 e5tkrtqmh6hjcvd5fet4sbu2bn Query : insert into wsbidata (bistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,obrano, qtt,uni2qtt ,no, estab,nmdos ,ndos, obranome,fechada, dataobra ,rdata ,dataopen, datafecho,local, morada ,codpost, nome,bostamp,lordem ,edebito,debito, epu,pu ,ivaincl,stns,unidade, unidad2 ,marcada,usalote ,ettdeb,ttdeb,epcusto, pcusto ,ecustoind,custoind ,vendedor,vendnm, ccusto,ncusto ,noserie,tabiva,iva ,ref,design,familia,desconto,desc2,desc3,desc4,eslvu,slvu,esltt,sltt,oobistamp,vumoeda,ttmoeda,slvumoeda,slttmoeda,lote,armazem,ar2mazem,obistamp ,stipo) select 'aut671a650070671a6a8dd3',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut',bo.obrano, 2.000, 2.000*.0000000 ,bo.no, bo.estab,bo.nmdos ,bo.ndos, bo.obranome,bo.fechada, bo.dataobra ,bo.dataobra ,bo.dataopen,bo.datafecho,bo.local, bo.morada ,bo.codpost, bo.nome,bo.bostamp,210000 ,64,64*200.48,64,64*200.48 ,0,0,'un ','' ,bo.marcada,1 ,64*2.000,64*2.000*200.48 ,24.876000,24.876000*200.48 ,24.876000,24.876000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,64,64*200.48,64*2.000,64*2.000*200.48,'av24102441714,361000028 ',64,64*2.000,64,64*2.000,?,?,?,?,4 from wsbodata bo where bo.bostamp = 'aut671a632691671a6a8b60'
20241024@164101.9180 e5tkrtqmh6hjcvd5fet4sbu2bn Query : use flama_phc
20241024@164101.9185 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select st.usalote valor from st where st.ref = '324.5501.00.1'
20241024@164101.9201 e5tkrtqmh6hjcvd5fet4sbu2bn Query : use flama_phc
20241024@164101.9203 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select st.stns valor from st where st.ref = '324.5501.00.1'
20241024@164101.9219 e5tkrtqmh6hjcvd5fet4sbu2bn Query : use flama_phc
20241024@164101.9222 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select isnull(sum(stock) ,0)stock ,isnull(sum(qttrec),0) qttrec ,0 qttcat ,isnull(sum(rescli),0) rescli ,isnull(sum(resfor),0) resfor from sa where sa.ref = '324.5501.00.1' and sa.armazem = 133 
20241024@164101.9290 e5tkrtqmh6hjcvd5fet4sbu2bn Query : use flama_phc
20241024@164101.9307 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select st.stns valor from st where st.ref = '324.5501.00.1'
20241024@164101.9325 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.5501.00.1'
20241024@164101.9447 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241024@164101.9462 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 5
20241024@164101.9474 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241024@164101.9492 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 5
20241024@164101.9501 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select sestamp valor from se where ref ='324.5501.00.1' and lote = 'r2300908100a'
20241024@164101.9514 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241024@164101.9526 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241024@164101.9541 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 5
20241024@164101.9553 e5tkrtqmh6hjcvd5fet4sbu2bn Query : insert into wsbi2data (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut671a640165671a6a8de8','aut671a632691671a6a8b60',bo.morada, bo.local,bo.codpost ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut' from wsbodata bo where bo.bostamp = 'aut671a632691671a6a8b60'
20241024@164101.9694 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241024@164101.9711 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 5
20241024@164101.9726 e5tkrtqmh6hjcvd5fet4sbu2bn Query : insert into wsbidata (bistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,obrano, qtt,uni2qtt ,no, estab,nmdos ,ndos, obranome,fechada, dataobra ,rdata ,dataopen, datafecho,local, morada ,codpost, nome,bostamp,lordem ,edebito,debito, epu,pu ,ivaincl,stns,unidade, unidad2 ,marcada,usalote ,ettdeb,ttdeb,epcusto, pcusto ,ecustoind,custoind ,vendedor,vendnm, ccusto,ncusto ,noserie,tabiva,iva ,ref,design,familia,desconto,desc2,desc3,desc4,eslvu,slvu,esltt,sltt,oobistamp,vumoeda,ttmoeda,slvumoeda,slttmoeda,lote,armazem,ar2mazem,obistamp ,stipo) select 'aut671a640165671a6a8de8',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut',bo.obrano, 12.000, 12.000*.0000000 ,bo.no, bo.estab,bo.nmdos ,bo.ndos, bo.obranome,bo.fechada, bo.dataobra ,bo.dataobra ,bo.dataopen,bo.datafecho,bo.local, bo.morada ,bo.codpost, bo.nome,bo.bostamp,220000 ,64,64*200.48,64,64*200.48 ,0,0,'un ',' ' ,bo.marcada,1 ,64*12.000,64*12.000*200.48 ,18.137000,18.137000*200.48 ,18.137000,18.137000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,64,64*200.48,64*12.000,64*12.000*200.48,'av24102441728,020000030 ',64,64*12.000,64,64*12.000,?,?,?,?,4 from wsbodata bo where bo.bostamp = 'aut671a632691671a6a8b60'
20241024@164101.9986 e5tkrtqmh6hjcvd5fet4sbu2bn Query : use flama_phc
20241024@164101.9990 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select st.usalote valor from st where st.ref = '324.1705.00.1'
20241024@164102.4000 e5tkrtqmh6hjcvd5fet4sbu2bn Query : use flama_phc
20241024@164102.6000 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select st.stns valor from st where st.ref = '324.1705.00.1'
20241024@164102.2300 e5tkrtqmh6hjcvd5fet4sbu2bn Query : use flama_phc
20241024@164102.2500 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select isnull(sum(stock) ,0)stock ,isnull(sum(qttrec),0) qttrec ,0 qttcat ,isnull(sum(rescli),0) rescli ,isnull(sum(resfor),0) resfor from sa where sa.ref = '324.1705.00.1' and sa.armazem = 133 
20241024@164102.9100 e5tkrtqmh6hjcvd5fet4sbu2bn Query : use flama_phc
20241024@164102.9300 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select st.stns valor from st where st.ref = '324.1705.00.1'
20241024@164102.1110 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.1705.00.1'
20241024@164102.1240 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241024@164102.1400 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 5
20241024@164102.1530 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241024@164102.1670 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 5
20241024@164102.1750 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select sestamp valor from se where ref ='324.1705.00.1' and lote = 'r2400050500a'
20241024@164102.1890 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241024@164102.2050 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241024@164102.2200 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 5
20241024@164102.2320 e5tkrtqmh6hjcvd5fet4sbu2bn Query : insert into wsbi2data (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut671a689258671a6a8e05','aut671a632691671a6a8b60',bo.morada, bo.local,bo.codpost ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut' from wsbodata bo where bo.bostamp = 'aut671a632691671a6a8b60'
20241024@164102.3720 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241024@164102.3900 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 5
20241024@164102.4070 e5tkrtqmh6hjcvd5fet4sbu2bn Query : insert into wsbidata (bistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,obrano, qtt,uni2qtt ,no, estab,nmdos ,ndos, obranome,fechada, dataobra ,rdata ,dataopen, datafecho,local, morada ,codpost, nome,bostamp,lordem ,edebito,debito, epu,pu ,ivaincl,stns,unidade, unidad2 ,marcada,usalote ,ettdeb,ttdeb,epcusto, pcusto ,ecustoind,custoind ,vendedor,vendnm, ccusto,ncusto ,noserie,tabiva,iva ,ref,design,familia,desconto,desc2,desc3,desc4,eslvu,slvu,esltt,sltt,oobistamp,vumoeda,ttmoeda,slvumoeda,slttmoeda,lote,armazem,ar2mazem,obistamp ,stipo) select 'aut671a689258671a6a8e05',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut',bo.obrano, 8.000, 8.000*.0000000 ,bo.no, bo.estab,bo.nmdos ,bo.ndos, bo.obranome,bo.fechada, bo.dataobra ,bo.dataobra ,bo.dataopen,bo.datafecho,bo.local, bo.morada ,bo.codpost, bo.nome,bo.bostamp,230000 ,32,32*200.48,32,32*200.48 ,0,0,'un',' ' ,bo.marcada,1 ,32*8.000,32*8.000*200.48 ,11.739000,11.739000*200.48 ,11.739000,11.739000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,32,32*200.48,32*8.000,32*8.000*200.48,'av24102441743,066000031 ',32,32*8.000,32,32*8.000,?,?,?,?,4 from wsbodata bo where bo.bostamp = 'aut671a632691671a6a8b60'
20241024@164102.6740 e5tkrtqmh6hjcvd5fet4sbu2bn Query : use flama_phc
20241024@164102.6780 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select st.usalote valor from st where st.ref = '324.2231.00.2'
20241024@164102.6930 e5tkrtqmh6hjcvd5fet4sbu2bn Query : use flama_phc
20241024@164102.6960 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select st.stns valor from st where st.ref = '324.2231.00.2'
20241024@164102.7120 e5tkrtqmh6hjcvd5fet4sbu2bn Query : use flama_phc
20241024@164102.7150 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select isnull(sum(stock) ,0)stock ,isnull(sum(qttrec),0) qttrec ,0 qttcat ,isnull(sum(rescli),0) rescli ,isnull(sum(resfor),0) resfor from sa where sa.ref = '324.2231.00.2' and sa.armazem = 133 
20241024@164102.7820 e5tkrtqmh6hjcvd5fet4sbu2bn Query : use flama_phc
20241024@164102.7860 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select st.stns valor from st where st.ref = '324.2231.00.2'
20241024@164102.8210 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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.2231.00.2'
20241024@164102.9450 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241024@164102.9610 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 5
20241024@164102.9730 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241024@164102.9910 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 5
20241024@164102.9990 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select sestamp valor from se where ref ='324.2231.00.2' and lote = 'r2301141275a'
20241024@164102.1021 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241024@164102.1034 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241024@164102.1049 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 5
20241024@164102.1061 e5tkrtqmh6hjcvd5fet4sbu2bn Query : insert into wsbi2data (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut671a641330671a6a8e19','aut671a632691671a6a8b60',bo.morada, bo.local,bo.codpost ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut' from wsbodata bo where bo.bostamp = 'aut671a632691671a6a8b60'
20241024@164102.1202 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241024@164102.1219 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 5
20241024@164102.1235 e5tkrtqmh6hjcvd5fet4sbu2bn Query : insert into wsbidata (bistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,obrano, qtt,uni2qtt ,no, estab,nmdos ,ndos, obranome,fechada, dataobra ,rdata ,dataopen, datafecho,local, morada ,codpost, nome,bostamp,lordem ,edebito,debito, epu,pu ,ivaincl,stns,unidade, unidad2 ,marcada,usalote ,ettdeb,ttdeb,epcusto, pcusto ,ecustoind,custoind ,vendedor,vendnm, ccusto,ncusto ,noserie,tabiva,iva ,ref,design,familia,desconto,desc2,desc3,desc4,eslvu,slvu,esltt,sltt,oobistamp,vumoeda,ttmoeda,slvumoeda,slttmoeda,lote,armazem,ar2mazem,obistamp ,stipo) select 'aut671a641330671a6a8e19',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut',bo.obrano, 8.000, 8.000*.0000000 ,bo.no, bo.estab,bo.nmdos ,bo.ndos, bo.obranome,bo.fechada, bo.dataobra ,bo.dataobra ,bo.dataopen,bo.datafecho,bo.local, bo.morada ,bo.codpost, bo.nome,bo.bostamp,240000 ,38.4,38.4*200.48,38.4,38.4*200.48 ,0,0,'un ',' ' ,bo.marcada,1 ,38.4*8.000,38.4*8.000*200.48 ,11.192000,11.192000*200.48 ,11.192000,11.192000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,38.4,38.4*200.48,38.4*8.000,38.4*8.000*200.48,'av24102441751,216000032 ',38.4,38.4*8.000,38.4,38.4*8.000,?,?,?,?,4 from wsbodata bo where bo.bostamp = 'aut671a632691671a6a8b60'
20241024@164102.1628 e5tkrtqmh6hjcvd5fet4sbu2bn Query : use flama_phc
20241024@164102.1633 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select st.usalote valor from st where st.ref = '324.2224.00.1'
20241024@164102.1648 e5tkrtqmh6hjcvd5fet4sbu2bn Query : use flama_phc
20241024@164102.1650 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select st.stns valor from st where st.ref = '324.2224.00.1'
20241024@164102.1667 e5tkrtqmh6hjcvd5fet4sbu2bn Query : use flama_phc
20241024@164102.1669 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select isnull(sum(stock) ,0)stock ,isnull(sum(qttrec),0) qttrec ,0 qttcat ,isnull(sum(rescli),0) rescli ,isnull(sum(resfor),0) resfor from sa where sa.ref = '324.2224.00.1' and sa.armazem = 133 
20241024@164102.1736 e5tkrtqmh6hjcvd5fet4sbu2bn Query : use flama_phc
20241024@164102.1739 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select st.stns valor from st where st.ref = '324.2224.00.1'
20241024@164102.1757 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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.2224.00.1'
20241024@164102.1888 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241024@164102.1904 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 5
20241024@164102.1918 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241024@164102.1933 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 5
20241024@164102.1942 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select sestamp valor from se where ref ='324.2224.00.1' and lote = 'r2301280100a'
20241024@164102.1966 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241024@164102.1978 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241024@164102.1993 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 5
20241024@164102.2005 e5tkrtqmh6hjcvd5fet4sbu2bn Query : insert into wsbi2data (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut671a613419671a6a8e30','aut671a632691671a6a8b60',bo.morada, bo.local,bo.codpost ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut' from wsbodata bo where bo.bostamp = 'aut671a632691671a6a8b60'
20241024@164102.2147 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241024@164102.2163 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 5
20241024@164102.2194 e5tkrtqmh6hjcvd5fet4sbu2bn Query : insert into wsbidata (bistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,obrano, qtt,uni2qtt ,no, estab,nmdos ,ndos, obranome,fechada, dataobra ,rdata ,dataopen, datafecho,local, morada ,codpost, nome,bostamp,lordem ,edebito,debito, epu,pu ,ivaincl,stns,unidade, unidad2 ,marcada,usalote ,ettdeb,ttdeb,epcusto, pcusto ,ecustoind,custoind ,vendedor,vendnm, ccusto,ncusto ,noserie,tabiva,iva ,ref,design,familia,desconto,desc2,desc3,desc4,eslvu,slvu,esltt,sltt,oobistamp,vumoeda,ttmoeda,slvumoeda,slttmoeda,lote,armazem,ar2mazem,obistamp ,stipo) select 'aut671a613419671a6a8e30',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut',bo.obrano, 8.000, 8.000*.0000000 ,bo.no, bo.estab,bo.nmdos ,bo.ndos, bo.obranome,bo.fechada, bo.dataobra ,bo.dataobra ,bo.dataopen,bo.datafecho,bo.local, bo.morada ,bo.codpost, bo.nome,bo.bostamp,250000 ,25.6,25.6*200.48,25.6,25.6*200.48 ,0,0,'un ',' ' ,bo.marcada,1 ,25.6*8.000,25.6*8.000*200.48 ,9.896000,9.896000*200.48 ,9.896000,9.896000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,25.6,25.6*200.48,25.6*8.000,25.6*8.000*200.48,'av24102441772,848000034 ',25.6,25.6*8.000,25.6,25.6*8.000,?,?,?,?,4 from wsbodata bo where bo.bostamp = 'aut671a632691671a6a8b60'
20241024@164102.2454 e5tkrtqmh6hjcvd5fet4sbu2bn Query : use flama_phc
20241024@164102.2458 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select st.usalote valor from st where st.ref = '324.2222.00.1'
20241024@164102.2473 e5tkrtqmh6hjcvd5fet4sbu2bn Query : use flama_phc
20241024@164102.2476 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select st.stns valor from st where st.ref = '324.2222.00.1'
20241024@164102.2494 e5tkrtqmh6hjcvd5fet4sbu2bn Query : use flama_phc
20241024@164102.2497 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select isnull(sum(stock) ,0)stock ,isnull(sum(qttrec),0) qttrec ,0 qttcat ,isnull(sum(rescli),0) rescli ,isnull(sum(resfor),0) resfor from sa where sa.ref = '324.2222.00.1' and sa.armazem = 133 
20241024@164102.2907 e5tkrtqmh6hjcvd5fet4sbu2bn Query : use flama_phc
20241024@164102.2911 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select st.stns valor from st where st.ref = '324.2222.00.1'
20241024@164102.2932 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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.2222.00.1'
20241024@164102.3061 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241024@164102.3078 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 5
20241024@164102.3090 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241024@164102.3105 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 5
20241024@164102.3114 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select sestamp valor from se where ref ='324.2222.00.1' and lote = 'r2301281400a'
20241024@164102.3128 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241024@164102.3141 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241024@164102.3155 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 5
20241024@164102.3166 e5tkrtqmh6hjcvd5fet4sbu2bn Query : insert into wsbi2data (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut671a629491671a6a8e4c','aut671a632691671a6a8b60',bo.morada, bo.local,bo.codpost ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut' from wsbodata bo where bo.bostamp = 'aut671a632691671a6a8b60'
20241024@164102.3304 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241024@164102.3319 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 5
20241024@164102.3335 e5tkrtqmh6hjcvd5fet4sbu2bn Query : insert into wsbidata (bistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,obrano, qtt,uni2qtt ,no, estab,nmdos ,ndos, obranome,fechada, dataobra ,rdata ,dataopen, datafecho,local, morada ,codpost, nome,bostamp,lordem ,edebito,debito, epu,pu ,ivaincl,stns,unidade, unidad2 ,marcada,usalote ,ettdeb,ttdeb,epcusto, pcusto ,ecustoind,custoind ,vendedor,vendnm, ccusto,ncusto ,noserie,tabiva,iva ,ref,design,familia,desconto,desc2,desc3,desc4,eslvu,slvu,esltt,sltt,oobistamp,vumoeda,ttmoeda,slvumoeda,slttmoeda,lote,armazem,ar2mazem,obistamp ,stipo) select 'aut671a629491671a6a8e4c',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut',bo.obrano, 4.000, 4.000*.0000000 ,bo.no, bo.estab,bo.nmdos ,bo.ndos, bo.obranome,bo.fechada, bo.dataobra ,bo.dataobra ,bo.dataopen,bo.datafecho,bo.local, bo.morada ,bo.codpost, bo.nome,bo.bostamp,260000 ,25.6,25.6*200.48,25.6,25.6*200.48 ,0,0,'un ',' ' ,bo.marcada,1 ,25.6*4.000,25.6*4.000*200.48 ,9.687000,9.687000*200.48 ,9.687000,9.687000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,25.6,25.6*200.48,25.6*4.000,25.6*4.000*200.48,'av24102441785,953000035 ',25.6,25.6*4.000,25.6,25.6*4.000,?,?,?,?,4 from wsbodata bo where bo.bostamp = 'aut671a632691671a6a8b60'
20241024@164102.3624 e5tkrtqmh6hjcvd5fet4sbu2bn Query : insert into wsbocreationlog (initialstamp,externalid,creationstatus,documenttypeid,idustamp,transactionid) values ('aut671a632691671a6a8b60','','wait',5,'adm12071144683,938000003','')
20241024@164102.3730 e5tkrtqmh6hjcvd5fet4sbu2bn Query : use flama_phc
20241024@164102.3733 e5tkrtqmh6hjcvd5fet4sbu2bn Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20241024@164102.3796 e5tkrtqmh6hjcvd5fet4sbu2bn Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2921';
20241024@164102.3832 e5tkrtqmh6hjcvd5fet4sbu2bn Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2921';

20241025@080417.1788 v0uuc54rk334himsithefas1ci Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2922';
20241025@080417.2146 v0uuc54rk334himsithefas1ci Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2922';
20241025@080417.2314 v0uuc54rk334himsithefas1ci Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2922';
20241025@080417.2659 v0uuc54rk334himsithefas1ci Query : use flama_phc
20241025@080417.2679 v0uuc54rk334himsithefas1ci Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20241025@080417.3050 v0uuc54rk334himsithefas1ci Query : use flama_phc
20241025@080417.3091 v0uuc54rk334himsithefas1ci Query : select no, estab,szadrsdesc from szadrs where u_coddest=4740
20241025@080417.3362 v0uuc54rk334himsithefas1ci Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.657.00.01'
20241025@080417.3509 v0uuc54rk334himsithefas1ci Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.657.00.01'
20241025@080417.3535 v0uuc54rk334himsithefas1ci Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.657.00.01'
20241025@080417.3560 v0uuc54rk334himsithefas1ci Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.657.00.01'
20241025@080417.3619 v0uuc54rk334himsithefas1ci Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.657.00.01'
20241025@080417.3735 v0uuc54rk334himsithefas1ci Query : use flama_phc
20241025@080417.3738 v0uuc54rk334himsithefas1ci Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20241025@080417.3937 v0uuc54rk334himsithefas1ci Query : use flama_phc
20241025@080417.3941 v0uuc54rk334himsithefas1ci Query : select top 1 1 valor from td where td.ndoc = 39
20241025@080417.4023 v0uuc54rk334himsithefas1ci Query : use flama_phc
20241025@080417.4028 v0uuc54rk334himsithefas1ci 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')
20241025@080417.4237 v0uuc54rk334himsithefas1ci 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
20241025@080417.4363 v0uuc54rk334himsithefas1ci Query : use flama_phc
20241025@080417.4372 v0uuc54rk334himsithefas1ci Query : select top 1 ~inactivo valor from cl where no = '100810' and estab = 0 order by inactivo desc
20241025@080417.4493 v0uuc54rk334himsithefas1ci Query : use flama_phc
20241025@080417.4496 v0uuc54rk334himsithefas1ci Query : select top 1 tipodoc,regrd from td where ndoc = 39
20241025@080417.4625 v0uuc54rk334himsithefas1ci Query : use flama_phc
20241025@080417.4668 v0uuc54rk334himsithefas1ci Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20241025@080417.4788 v0uuc54rk334himsithefas1ci Query : use flama_phc
20241025@080417.4791 v0uuc54rk334himsithefas1ci Query : select szadrsstamp valor from szadrs where szadrsdesc='100810 - worten-equipamentos para o lar,sa.'
20241025@080417.4841 v0uuc54rk334himsithefas1ci Query : use flama_phc
20241025@080417.4844 v0uuc54rk334himsithefas1ci Query : select 1 valor from td where ndoc = 39
20241025@080417.4908 v0uuc54rk334himsithefas1ci Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20241025@080417.5097 v0uuc54rk334himsithefas1ci Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241025@080417.5571 v0uuc54rk334himsithefas1ci Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20241025@080417.5780 v0uuc54rk334himsithefas1ci Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241025@080417.5807 v0uuc54rk334himsithefas1ci Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20241025@080417.5840 v0uuc54rk334himsithefas1ci Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241025@080417.5858 v0uuc54rk334himsithefas1ci Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20241025@080417.5884 v0uuc54rk334himsithefas1ci Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20241025@080417.6312 v0uuc54rk334himsithefas1ci Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20241025@080417.6526 v0uuc54rk334himsithefas1ci Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241025@080417.6566 v0uuc54rk334himsithefas1ci Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20241025@080417.6779 v0uuc54rk334himsithefas1ci Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut671b414978671b42f18f' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20241025@080417.7202 v0uuc54rk334himsithefas1ci Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241025@080417.7462 v0uuc54rk334himsithefas1ci Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20241025@080417.7878 v0uuc54rk334himsithefas1ci Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20241025@080417.8077 v0uuc54rk334himsithefas1ci Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20241025@080417.8152 v0uuc54rk334himsithefas1ci Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20241025@080417.8224 v0uuc54rk334himsithefas1ci Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20241025@080417.8419 v0uuc54rk334himsithefas1ci Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20241025@080417.8502 v0uuc54rk334himsithefas1ci Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20241025@080417.8709 v0uuc54rk334himsithefas1ci Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut671b414978671b42f18f',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20241025@080418.5380 v0uuc54rk334himsithefas1ci Query : select top 1 fno valor from wsftdata order by fno desc
20241025@080418.6790 v0uuc54rk334himsithefas1ci Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241025@080418.7000 v0uuc54rk334himsithefas1ci Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20241025@080418.7280 v0uuc54rk334himsithefas1ci Query : select 'normal' from dummy
20241025@080418.7780 v0uuc54rk334himsithefas1ci Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut671b414978671b42f18f',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',1504,100810,0,'2024-10-25',39,'euro',0,0,2024 ,?,?)
20241025@080418.1448 v0uuc54rk334himsithefas1ci Query : use flama_phc
20241025@080418.1464 v0uuc54rk334himsithefas1ci Query : select st.usalote valor from st where st.ref = '324.657.00.01'
20241025@080418.1674 v0uuc54rk334himsithefas1ci Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.657.00.01'
20241025@080418.1989 v0uuc54rk334himsithefas1ci Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241025@080418.2154 v0uuc54rk334himsithefas1ci Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241025@080418.2898 v0uuc54rk334himsithefas1ci Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241025@080418.3164 v0uuc54rk334himsithefas1ci Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241025@080418.3339 v0uuc54rk334himsithefas1ci Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241025@080418.3556 v0uuc54rk334himsithefas1ci Query : select sestamp valor from se where ref ='324.657.00.01' and lote = 'r2400220100a'
20241025@080418.3691 v0uuc54rk334himsithefas1ci Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241025@080418.3710 v0uuc54rk334himsithefas1ci Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241025@080418.3848 v0uuc54rk334himsithefas1ci Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut671b463458671b42f25a','aut671b414978671b42f18f' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241025@080418.4049 v0uuc54rk334himsithefas1ci Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241025@080418.4191 v0uuc54rk334himsithefas1ci Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241025@080418.4602 v0uuc54rk334himsithefas1ci Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem) values ('aut671b463458671b42f25a',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',24.000 ,'aut671b414978671b42f18f' ,0,0 ,2,23.00,10000,?,?,?,?)
20241025@080418.5138 v0uuc54rk334himsithefas1ci Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241025@080418.5162 v0uuc54rk334himsithefas1ci Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241025@080418.5501 v0uuc54rk334himsithefas1ci Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241025@080418.5753 v0uuc54rk334himsithefas1ci Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241025@080418.5920 v0uuc54rk334himsithefas1ci Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241025@080418.6373 v0uuc54rk334himsithefas1ci Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241025@080418.6704 v0uuc54rk334himsithefas1ci Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241025@080418.6992 v0uuc54rk334himsithefas1ci Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut671b474987671b42f29b','aut671b414978671b42f18f' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241025@080418.7036 v0uuc54rk334himsithefas1ci Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241025@080418.7291 v0uuc54rk334himsithefas1ci Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241025@080418.7917 v0uuc54rk334himsithefas1ci Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut671b474987671b42f29b',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut671b414978671b42f18f' ,0,0 ,2,23.00,20000,?,?,?)
20241025@080418.8441 v0uuc54rk334himsithefas1ci Query : use flama_phc
20241025@080418.8482 v0uuc54rk334himsithefas1ci Query : select st.usalote valor from st where st.ref = '324.657.00.01'
20241025@080418.8815 v0uuc54rk334himsithefas1ci Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.657.00.01'
20241025@080418.9106 v0uuc54rk334himsithefas1ci Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241025@080418.9359 v0uuc54rk334himsithefas1ci Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241025@080418.9939 v0uuc54rk334himsithefas1ci Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241025@080419.1920 v0uuc54rk334himsithefas1ci Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241025@080419.3580 v0uuc54rk334himsithefas1ci Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241025@080419.7300 v0uuc54rk334himsithefas1ci Query : select sestamp valor from se where ref ='324.657.00.01' and lote = 'r2400220100a'
20241025@080419.9840 v0uuc54rk334himsithefas1ci Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241025@080419.1157 v0uuc54rk334himsithefas1ci Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241025@080419.1312 v0uuc54rk334himsithefas1ci Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut671b403096671b42f318','aut671b414978671b42f18f' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241025@080419.1318 v0uuc54rk334himsithefas1ci Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241025@080419.1470 v0uuc54rk334himsithefas1ci Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241025@080419.1857 v0uuc54rk334himsithefas1ci Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem) values ('aut671b403096671b42f318',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',24.000 ,'aut671b414978671b42f18f' ,0,0 ,2,23.00,40000,?,?,?,?)
20241025@080419.2374 v0uuc54rk334himsithefas1ci Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241025@080419.2556 v0uuc54rk334himsithefas1ci Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241025@080419.2831 v0uuc54rk334himsithefas1ci Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241025@080419.2930 v0uuc54rk334himsithefas1ci Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241025@080419.3059 v0uuc54rk334himsithefas1ci Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241025@080419.3112 v0uuc54rk334himsithefas1ci Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241025@080419.3131 v0uuc54rk334himsithefas1ci Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241025@080419.3346 v0uuc54rk334himsithefas1ci Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut671b456145671b42f34b','aut671b414978671b42f18f' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241025@080419.3390 v0uuc54rk334himsithefas1ci Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241025@080419.3534 v0uuc54rk334himsithefas1ci Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241025@080419.4581 v0uuc54rk334himsithefas1ci Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut671b456145671b42f34b',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut671b414978671b42f18f' ,0,0 ,2,23.00,50000,?,?,?)
20241025@080419.5112 v0uuc54rk334himsithefas1ci Query : use flama_phc
20241025@080419.5156 v0uuc54rk334himsithefas1ci Query : select st.usalote valor from st where st.ref = '324.657.00.01'
20241025@080419.5501 v0uuc54rk334himsithefas1ci Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.657.00.01'
20241025@080419.5758 v0uuc54rk334himsithefas1ci Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241025@080419.6019 v0uuc54rk334himsithefas1ci Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241025@080419.6529 v0uuc54rk334himsithefas1ci Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241025@080419.6719 v0uuc54rk334himsithefas1ci Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241025@080419.6890 v0uuc54rk334himsithefas1ci Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241025@080419.7145 v0uuc54rk334himsithefas1ci Query : select sestamp valor from se where ref ='324.657.00.01' and lote = 'r2400220100a'
20241025@080419.7402 v0uuc54rk334himsithefas1ci Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241025@080419.7660 v0uuc54rk334himsithefas1ci Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241025@080419.7875 v0uuc54rk334himsithefas1ci Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut671b431781671b42f3b4','aut671b414978671b42f18f' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241025@080419.7921 v0uuc54rk334himsithefas1ci Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241025@080419.8180 v0uuc54rk334himsithefas1ci Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241025@080419.8846 v0uuc54rk334himsithefas1ci Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem) values ('aut671b431781671b42f3b4',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',24.000 ,'aut671b414978671b42f18f' ,0,0 ,2,23.00,70000,?,?,?,?)
20241025@080419.9691 v0uuc54rk334himsithefas1ci Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241025@080420.3300 v0uuc54rk334himsithefas1ci Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241025@080420.6620 v0uuc54rk334himsithefas1ci Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241025@080420.9410 v0uuc54rk334himsithefas1ci Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241025@080420.1122 v0uuc54rk334himsithefas1ci Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241025@080420.1391 v0uuc54rk334himsithefas1ci Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241025@080420.1651 v0uuc54rk334himsithefas1ci Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241025@080420.1865 v0uuc54rk334himsithefas1ci Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut671b479364671b42f421','aut671b414978671b42f18f' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241025@080420.1905 v0uuc54rk334himsithefas1ci Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241025@080420.2125 v0uuc54rk334himsithefas1ci Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241025@080420.2531 v0uuc54rk334himsithefas1ci Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut671b479364671b42f421',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut671b414978671b42f18f' ,0,0 ,2,23.00,80000,?,?,?)
20241025@080420.2994 v0uuc54rk334himsithefas1ci Query : use flama_phc
20241025@080420.2999 v0uuc54rk334himsithefas1ci Query : select st.usalote valor from st where st.ref = '324.657.00.01'
20241025@080420.3292 v0uuc54rk334himsithefas1ci Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.657.00.01'
20241025@080420.3527 v0uuc54rk334himsithefas1ci Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241025@080420.3547 v0uuc54rk334himsithefas1ci Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241025@080420.3742 v0uuc54rk334himsithefas1ci Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241025@080420.3888 v0uuc54rk334himsithefas1ci Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241025@080420.3945 v0uuc54rk334himsithefas1ci Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241025@080420.4201 v0uuc54rk334himsithefas1ci Query : select sestamp valor from se where ref ='324.657.00.01' and lote = 'r2400220100a'
20241025@080420.4380 v0uuc54rk334himsithefas1ci Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241025@080420.4604 v0uuc54rk334himsithefas1ci Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241025@080420.4701 v0uuc54rk334himsithefas1ci Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut671b438541671b42f46a','aut671b414978671b42f18f' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241025@080420.4746 v0uuc54rk334himsithefas1ci Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241025@080420.4902 v0uuc54rk334himsithefas1ci Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241025@080420.5124 v0uuc54rk334himsithefas1ci Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem) values ('aut671b438541671b42f46a',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',24.000 ,'aut671b414978671b42f18f' ,0,0 ,2,23.00,100000,?,?,?,?)
20241025@080420.5674 v0uuc54rk334himsithefas1ci Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241025@080420.5860 v0uuc54rk334himsithefas1ci Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241025@080420.5908 v0uuc54rk334himsithefas1ci Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241025@080420.5929 v0uuc54rk334himsithefas1ci Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241025@080420.6022 v0uuc54rk334himsithefas1ci Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241025@080420.6186 v0uuc54rk334himsithefas1ci Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241025@080420.6331 v0uuc54rk334himsithefas1ci Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241025@080420.6358 v0uuc54rk334himsithefas1ci Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut671b461971671b42f497','aut671b414978671b42f18f' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241025@080420.6403 v0uuc54rk334himsithefas1ci Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241025@080420.6597 v0uuc54rk334himsithefas1ci Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241025@080420.7193 v0uuc54rk334himsithefas1ci Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut671b461971671b42f497',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut671b414978671b42f18f' ,0,0 ,2,23.00,110000,?,?,?)
20241025@080420.7655 v0uuc54rk334himsithefas1ci Query : use flama_phc
20241025@080420.7698 v0uuc54rk334himsithefas1ci Query : select st.usalote valor from st where st.ref = '324.657.00.01'
20241025@080420.7967 v0uuc54rk334himsithefas1ci Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.657.00.01'
20241025@080420.8178 v0uuc54rk334himsithefas1ci Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241025@080420.8250 v0uuc54rk334himsithefas1ci Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241025@080420.8613 v0uuc54rk334himsithefas1ci Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241025@080420.8970 v0uuc54rk334himsithefas1ci Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241025@080420.9119 v0uuc54rk334himsithefas1ci Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241025@080420.9446 v0uuc54rk334himsithefas1ci Query : select sestamp valor from se where ref ='324.657.00.01' and lote = 'r2400220100a'
20241025@080420.9931 v0uuc54rk334himsithefas1ci Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241025@080421.1190 v0uuc54rk334himsithefas1ci Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241025@080421.2760 v0uuc54rk334himsithefas1ci Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut671b438383671b42f4f2','aut671b414978671b42f18f' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241025@080421.3200 v0uuc54rk334himsithefas1ci Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241025@080421.5810 v0uuc54rk334himsithefas1ci Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241025@080421.1270 v0uuc54rk334himsithefas1ci Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem) values ('aut671b438383671b42f4f2',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',4.000 ,'aut671b414978671b42f18f' ,0,0 ,2,23.00,130000,?,?,?,?)
20241025@080421.1883 v0uuc54rk334himsithefas1ci Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241025@080421.2046 v0uuc54rk334himsithefas1ci Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241025@080421.2406 v0uuc54rk334himsithefas1ci Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241025@080421.2562 v0uuc54rk334himsithefas1ci Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241025@080421.2691 v0uuc54rk334himsithefas1ci Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241025@080421.3007 v0uuc54rk334himsithefas1ci Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241025@080421.3283 v0uuc54rk334himsithefas1ci Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241025@080421.3462 v0uuc54rk334himsithefas1ci Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut671b448933671b42f549','aut671b414978671b42f18f' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241025@080421.3508 v0uuc54rk334himsithefas1ci Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241025@080421.3693 v0uuc54rk334himsithefas1ci Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241025@080421.4258 v0uuc54rk334himsithefas1ci Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut671b448933671b42f549',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut671b414978671b42f18f' ,0,0 ,2,23.00,140000,?,?,?)
20241025@080421.5249 v0uuc54rk334himsithefas1ci Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut671b414978671b42f18f','24o6973','wait',39,'adm09112754980.682000002')
20241025@080421.6907 v0uuc54rk334himsithefas1ci Query : use flama_phc
20241025@080421.6949 v0uuc54rk334himsithefas1ci Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20241025@080421.7174 v0uuc54rk334himsithefas1ci Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2922';
20241025@080421.7458 v0uuc54rk334himsithefas1ci Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2922';
20241025@080421.7721 v0uuc54rk334himsithefas1ci Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2922';
20241025@080421.8023 v0uuc54rk334himsithefas1ci Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2922';
20241025@080421.8756 tj99o8cevmrhph32o685o5gaea Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20241025@080421.8779 tj99o8cevmrhph32o685o5gaea Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20241025@080421.8868 tj99o8cevmrhph32o685o5gaea Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2923';
20241025@080421.8938 tj99o8cevmrhph32o685o5gaea Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2923';
20241025@080421.9045 tj99o8cevmrhph32o685o5gaea Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2923';
20241025@080421.9091 tj99o8cevmrhph32o685o5gaea Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2923';
20241025@080421.9188 tj99o8cevmrhph32o685o5gaea Query : use flama_phc
20241025@080421.9192 tj99o8cevmrhph32o685o5gaea Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20241025@080421.9325 tj99o8cevmrhph32o685o5gaea Query : use flama_phc
20241025@080421.9329 tj99o8cevmrhph32o685o5gaea Query : select no, estab,szadrsdesc from szadrs where u_coddest=9128
20241025@080421.9591 tj99o8cevmrhph32o685o5gaea 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'
20241025@080421.9880 tj99o8cevmrhph32o685o5gaea Query : use flama_phc
20241025@080421.9884 tj99o8cevmrhph32o685o5gaea Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20241025@080421.9940 tj99o8cevmrhph32o685o5gaea Query : use flama_phc
20241025@080421.9943 tj99o8cevmrhph32o685o5gaea Query : select top 1 1 valor from td where td.ndoc = 39
20241025@080421.9990 tj99o8cevmrhph32o685o5gaea Query : use flama_phc
20241025@080421.9993 tj99o8cevmrhph32o685o5gaea 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')
20241025@080422.2200 tj99o8cevmrhph32o685o5gaea 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
20241025@080422.6200 tj99o8cevmrhph32o685o5gaea Query : use flama_phc
20241025@080422.6600 tj99o8cevmrhph32o685o5gaea Query : select top 1 ~inactivo valor from cl where no = '101621' and estab = 0 order by inactivo desc
20241025@080422.1760 tj99o8cevmrhph32o685o5gaea Query : use flama_phc
20241025@080422.1790 tj99o8cevmrhph32o685o5gaea Query : select top 1 tipodoc,regrd from td where ndoc = 39
20241025@080422.2100 tj99o8cevmrhph32o685o5gaea Query : use flama_phc
20241025@080422.2130 tj99o8cevmrhph32o685o5gaea Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20241025@080422.2540 tj99o8cevmrhph32o685o5gaea Query : use flama_phc
20241025@080422.2570 tj99o8cevmrhph32o685o5gaea Query : select szadrsstamp valor from szadrs where szadrsdesc='j.o.m.,lda - v. castelo (nova)'
20241025@080422.3030 tj99o8cevmrhph32o685o5gaea Query : use flama_phc
20241025@080422.3060 tj99o8cevmrhph32o685o5gaea Query : select 1 valor from td where ndoc = 39
20241025@080422.3190 tj99o8cevmrhph32o685o5gaea Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20241025@080422.3340 tj99o8cevmrhph32o685o5gaea Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241025@080422.3550 tj99o8cevmrhph32o685o5gaea Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20241025@080422.3760 tj99o8cevmrhph32o685o5gaea Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241025@080422.3920 tj99o8cevmrhph32o685o5gaea Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20241025@080422.5040 tj99o8cevmrhph32o685o5gaea Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241025@080422.8180 tj99o8cevmrhph32o685o5gaea Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20241025@080422.8370 tj99o8cevmrhph32o685o5gaea Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20241025@080422.9040 tj99o8cevmrhph32o685o5gaea Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20241025@080422.9230 tj99o8cevmrhph32o685o5gaea Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241025@080422.9730 tj99o8cevmrhph32o685o5gaea Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20241025@080422.9950 tj99o8cevmrhph32o685o5gaea Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut671b463322671b42f614' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20241025@080422.1160 tj99o8cevmrhph32o685o5gaea Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241025@080422.1182 tj99o8cevmrhph32o685o5gaea Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20241025@080422.1307 tj99o8cevmrhph32o685o5gaea Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20241025@080422.1322 tj99o8cevmrhph32o685o5gaea Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20241025@080422.1338 tj99o8cevmrhph32o685o5gaea Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20241025@080422.1354 tj99o8cevmrhph32o685o5gaea Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20241025@080422.1374 tj99o8cevmrhph32o685o5gaea Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20241025@080422.1404 tj99o8cevmrhph32o685o5gaea Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20241025@080422.1416 tj99o8cevmrhph32o685o5gaea Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut671b463322671b42f614',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20241025@080422.1688 tj99o8cevmrhph32o685o5gaea Query : select top 1 fno valor from wsftdata order by fno desc
20241025@080422.2074 tj99o8cevmrhph32o685o5gaea Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241025@080422.2831 tj99o8cevmrhph32o685o5gaea Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20241025@080422.3612 tj99o8cevmrhph32o685o5gaea Query : select 'normal' from dummy
20241025@080422.4219 tj99o8cevmrhph32o685o5gaea Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut671b463322671b42f614',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',1505,101621,0,'2024-10-25',39,'euro',0,0,2024 ,?,?)
20241025@080422.4867 tj99o8cevmrhph32o685o5gaea Query : use flama_phc
20241025@080422.4870 tj99o8cevmrhph32o685o5gaea Query : select st.usalote valor from st where st.ref = '324.1642.00.2'
20241025@080422.4958 tj99o8cevmrhph32o685o5gaea Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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'
20241025@080422.5191 tj99o8cevmrhph32o685o5gaea Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241025@080422.5217 tj99o8cevmrhph32o685o5gaea Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241025@080422.5319 tj99o8cevmrhph32o685o5gaea Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241025@080422.5338 tj99o8cevmrhph32o685o5gaea Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241025@080422.5350 tj99o8cevmrhph32o685o5gaea Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241025@080422.5365 tj99o8cevmrhph32o685o5gaea Query : select sestamp valor from se where ref ='324.1642.00.2' and lote = 'r2400526200a'
20241025@080422.5383 tj99o8cevmrhph32o685o5gaea Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241025@080422.5400 tj99o8cevmrhph32o685o5gaea Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241025@080422.5415 tj99o8cevmrhph32o685o5gaea Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut671b485962671b42f683','aut671b463322671b42f614' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241025@080422.5420 tj99o8cevmrhph32o685o5gaea Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241025@080422.5438 tj99o8cevmrhph32o685o5gaea Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241025@080422.5473 tj99o8cevmrhph32o685o5gaea Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem) values ('aut671b485962671b42f683',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',10.000 ,'aut671b463322671b42f614' ,0,0 ,2,23.00,10000,?,?,?,?)
20241025@080422.5753 tj99o8cevmrhph32o685o5gaea Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut671b463322671b42f614','2407020','wait',39,'adm09112754980.682000002')
20241025@080422.5881 tj99o8cevmrhph32o685o5gaea Query : use flama_phc
20241025@080422.5886 tj99o8cevmrhph32o685o5gaea Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20241025@080422.5918 tj99o8cevmrhph32o685o5gaea Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2923';
20241025@080422.5956 tj99o8cevmrhph32o685o5gaea Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2923';
20241025@080422.6003 tj99o8cevmrhph32o685o5gaea Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2923';
20241025@080422.6037 tj99o8cevmrhph32o685o5gaea Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2923';
20241025@080422.7407 o3t3i8fiftqpj78honnenmj0de Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20241025@080422.7491 o3t3i8fiftqpj78honnenmj0de Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20241025@080422.7964 o3t3i8fiftqpj78honnenmj0de Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2924';
20241025@080422.8294 o3t3i8fiftqpj78honnenmj0de Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2924';
20241025@080422.8643 o3t3i8fiftqpj78honnenmj0de Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2924';
20241025@080422.8947 o3t3i8fiftqpj78honnenmj0de Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2924';
20241025@080422.9293 o3t3i8fiftqpj78honnenmj0de Query : use flama_phc
20241025@080422.9335 o3t3i8fiftqpj78honnenmj0de Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20241025@080423.1580 o3t3i8fiftqpj78honnenmj0de Query : use flama_phc
20241025@080423.2380 o3t3i8fiftqpj78honnenmj0de Query : select no, estab,szadrsdesc from szadrs where u_coddest=8923
20241025@080423.1121 o3t3i8fiftqpj78honnenmj0de 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'
20241025@080423.1496 o3t3i8fiftqpj78honnenmj0de Query : use flama_phc
20241025@080423.1537 o3t3i8fiftqpj78honnenmj0de Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20241025@080423.1914 o3t3i8fiftqpj78honnenmj0de Query : use flama_phc
20241025@080423.1956 o3t3i8fiftqpj78honnenmj0de Query : select top 1 1 valor from td where td.ndoc = 39
20241025@080423.2328 o3t3i8fiftqpj78honnenmj0de Query : use flama_phc
20241025@080423.2371 o3t3i8fiftqpj78honnenmj0de 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')
20241025@080423.2828 o3t3i8fiftqpj78honnenmj0de 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
20241025@080423.3281 o3t3i8fiftqpj78honnenmj0de Query : use flama_phc
20241025@080423.3364 o3t3i8fiftqpj78honnenmj0de Query : select top 1 ~inactivo valor from cl where no = '101621' and estab = 0 order by inactivo desc
20241025@080423.3909 o3t3i8fiftqpj78honnenmj0de Query : use flama_phc
20241025@080423.3952 o3t3i8fiftqpj78honnenmj0de Query : select top 1 tipodoc,regrd from td where ndoc = 39
20241025@080423.4324 o3t3i8fiftqpj78honnenmj0de Query : use flama_phc
20241025@080423.4366 o3t3i8fiftqpj78honnenmj0de Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20241025@080423.4837 o3t3i8fiftqpj78honnenmj0de Query : use flama_phc
20241025@080423.4879 o3t3i8fiftqpj78honnenmj0de Query : select szadrsstamp valor from szadrs where szadrsdesc='jom- gondomar'
20241025@080423.5419 o3t3i8fiftqpj78honnenmj0de Query : use flama_phc
20241025@080423.5486 o3t3i8fiftqpj78honnenmj0de Query : select 1 valor from td where ndoc = 39
20241025@080423.5749 o3t3i8fiftqpj78honnenmj0de Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20241025@080423.6288 o3t3i8fiftqpj78honnenmj0de Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241025@080423.6591 o3t3i8fiftqpj78honnenmj0de Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20241025@080423.7167 o3t3i8fiftqpj78honnenmj0de Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241025@080423.7422 o3t3i8fiftqpj78honnenmj0de Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20241025@080423.7824 o3t3i8fiftqpj78honnenmj0de Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241025@080423.8079 o3t3i8fiftqpj78honnenmj0de Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20241025@080423.8255 o3t3i8fiftqpj78honnenmj0de Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20241025@080423.8325 o3t3i8fiftqpj78honnenmj0de Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20241025@080423.8429 o3t3i8fiftqpj78honnenmj0de Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241025@080423.8693 o3t3i8fiftqpj78honnenmj0de Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20241025@080423.8984 o3t3i8fiftqpj78honnenmj0de Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut671b428367671b42f7c9' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20241025@080423.9349 o3t3i8fiftqpj78honnenmj0de Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241025@080423.9601 o3t3i8fiftqpj78honnenmj0de Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20241025@080424.3050 o3t3i8fiftqpj78honnenmj0de Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20241025@080424.5140 o3t3i8fiftqpj78honnenmj0de Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20241025@080424.7220 o3t3i8fiftqpj78honnenmj0de Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20241025@080424.9290 o3t3i8fiftqpj78honnenmj0de Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20241025@080424.1137 o3t3i8fiftqpj78honnenmj0de Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20241025@080424.1346 o3t3i8fiftqpj78honnenmj0de Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20241025@080424.1555 o3t3i8fiftqpj78honnenmj0de Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut671b428367671b42f7c9',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20241025@080424.2019 o3t3i8fiftqpj78honnenmj0de Query : select top 1 fno valor from wsftdata order by fno desc
20241025@080424.2276 o3t3i8fiftqpj78honnenmj0de Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241025@080424.2528 o3t3i8fiftqpj78honnenmj0de Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20241025@080424.2983 o3t3i8fiftqpj78honnenmj0de Query : select 'normal' from dummy
20241025@080424.3275 o3t3i8fiftqpj78honnenmj0de Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut671b428367671b42f7c9',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',1506,101621,0,'2024-10-25',39,'euro',0,0,2024 ,?,?)
20241025@080424.3908 o3t3i8fiftqpj78honnenmj0de Query : use flama_phc
20241025@080424.3949 o3t3i8fiftqpj78honnenmj0de Query : select st.usalote valor from st where st.ref = '324.1642.00.2'
20241025@080424.4282 o3t3i8fiftqpj78honnenmj0de Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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'
20241025@080424.4616 o3t3i8fiftqpj78honnenmj0de Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241025@080424.4943 o3t3i8fiftqpj78honnenmj0de Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241025@080424.5532 o3t3i8fiftqpj78honnenmj0de Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241025@080424.5785 o3t3i8fiftqpj78honnenmj0de Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241025@080424.5950 o3t3i8fiftqpj78honnenmj0de Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241025@080424.6200 o3t3i8fiftqpj78honnenmj0de Query : select sestamp valor from se where ref ='324.1642.00.2' and lote = 'r2400526200a'
20241025@080424.6451 o3t3i8fiftqpj78honnenmj0de Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241025@080424.6704 o3t3i8fiftqpj78honnenmj0de Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241025@080424.7027 o3t3i8fiftqpj78honnenmj0de Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut671b412551671b42f89d','aut671b428367671b42f7c9' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241025@080424.7070 o3t3i8fiftqpj78honnenmj0de Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241025@080424.7323 o3t3i8fiftqpj78honnenmj0de Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241025@080424.7982 o3t3i8fiftqpj78honnenmj0de Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem) values ('aut671b412551671b42f89d',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',10.000 ,'aut671b428367671b42f7c9' ,0,0 ,2,23.00,10000,?,?,?,?)
20241025@080424.8748 o3t3i8fiftqpj78honnenmj0de Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut671b428367671b42f7c9','2407024','wait',39,'adm09112754980.682000002')
20241025@080424.9413 o3t3i8fiftqpj78honnenmj0de Query : use flama_phc
20241025@080424.9455 o3t3i8fiftqpj78honnenmj0de Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20241025@080424.9648 o3t3i8fiftqpj78honnenmj0de Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2924';
20241025@080424.9966 o3t3i8fiftqpj78honnenmj0de Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2924';
20241025@080425.1950 o3t3i8fiftqpj78honnenmj0de Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2924';
20241025@080425.4990 o3t3i8fiftqpj78honnenmj0de Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2924';

20241025@133819.3496 3riu3ovo04etojlcfjpd1kqbfg Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2925';
20241025@133819.3561 3riu3ovo04etojlcfjpd1kqbfg Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2925';
20241025@133819.3588 3riu3ovo04etojlcfjpd1kqbfg Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2925';
20241025@133819.3631 3riu3ovo04etojlcfjpd1kqbfg Query : use flama_phc
20241025@133819.3635 3riu3ovo04etojlcfjpd1kqbfg Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20241025@133819.3779 3riu3ovo04etojlcfjpd1kqbfg Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.1642.00.2'
20241025@133819.3916 3riu3ovo04etojlcfjpd1kqbfg 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 = 2400725 and bi.ref ='324.1642.00.2' and bi.lordem =20000
20241025@133819.4252 3riu3ovo04etojlcfjpd1kqbfg 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 = 'cps24060756532,226000002 ' 
20241025@133819.4553 3riu3ovo04etojlcfjpd1kqbfg Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.1646.00.1'
20241025@133819.4661 3riu3ovo04etojlcfjpd1kqbfg 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 = 2400725 and bi.ref ='324.1646.00.1' and bi.lordem =10000
20241025@133819.4984 3riu3ovo04etojlcfjpd1kqbfg 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 = 'cps24060756532,500000003 ' 
20241025@133819.5288 3riu3ovo04etojlcfjpd1kqbfg Query : use flama_phc
20241025@133819.5292 3riu3ovo04etojlcfjpd1kqbfg Query : select top 1 1 valor from ts where ts.ndos = 61
20241025@133819.5368 3riu3ovo04etojlcfjpd1kqbfg Query : use flama_phc
20241025@133819.5371 3riu3ovo04etojlcfjpd1kqbfg 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')
20241025@133819.5444 3riu3ovo04etojlcfjpd1kqbfg 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
20241025@133819.5595 3riu3ovo04etojlcfjpd1kqbfg Query : use flama_phc
20241025@133819.5598 3riu3ovo04etojlcfjpd1kqbfg Query : select top 1 ~inactivo valor from fl where no = '202558' and estab = 00 order by inactivo desc
20241025@133819.5706 3riu3ovo04etojlcfjpd1kqbfg Query : use flama_phc
20241025@133819.5709 3riu3ovo04etojlcfjpd1kqbfg Query : select 1 valor from ts where ndos = 61
20241025@133819.5781 3riu3ovo04etojlcfjpd1kqbfg Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241025@133819.7671 3riu3ovo04etojlcfjpd1kqbfg Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bo' and documentnumber = 61
20241025@133819.7739 3riu3ovo04etojlcfjpd1kqbfg Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241025@133819.7757 3riu3ovo04etojlcfjpd1kqbfg Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bo2' and documentnumber = 61
20241025@133819.7767 3riu3ovo04etojlcfjpd1kqbfg Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241025@133819.7783 3riu3ovo04etojlcfjpd1kqbfg Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bo3' and documentnumber = 61
20241025@133819.7793 3riu3ovo04etojlcfjpd1kqbfg 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
20241025@133819.7902 3riu3ovo04etojlcfjpd1kqbfg Query : select top 1 bo.obrano valor from bo bo where bo.ndos = 61 and boano=2024 order by obrano desc
20241025@133819.7985 3riu3ovo04etojlcfjpd1kqbfg Query : select top 1 bo.obrano valor from bo bo where bo.ndos = 61 and boano=2024 order by obrano desc
20241025@133819.8005 3riu3ovo04etojlcfjpd1kqbfg Query : use flama_phc
20241025@133819.8013 3riu3ovo04etojlcfjpd1kqbfg Query : select top 1 no,estab,nome, morada, local,codpost,ncont,pncont,pais,inactivo,motiseimp,codmotiseimp from fl where no='202558' and estab=00
20241025@133819.8094 3riu3ovo04etojlcfjpd1kqbfg Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241025@133819.8111 3riu3ovo04etojlcfjpd1kqbfg Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bo3' and documentnumber = 61
20241025@133819.8157 3riu3ovo04etojlcfjpd1kqbfg Query : insert into bo3 (bo3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut671b916522671b913bc3',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut')
20241025@133819.8208 3riu3ovo04etojlcfjpd1kqbfg Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241025@133819.8236 3riu3ovo04etojlcfjpd1kqbfg Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bo2' and documentnumber = 61
20241025@133819.8251 3riu3ovo04etojlcfjpd1kqbfg Query : insert into bo2 (bo2stamp, tiposaft, idserie,cambio,cambiofixo,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut671b916522671b913bc3','--','bo',7.8898101096549879646 ,1,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut')
20241025@133819.8440 3riu3ovo04etojlcfjpd1kqbfg Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241025@133819.8459 3riu3ovo04etojlcfjpd1kqbfg Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bo' and documentnumber = 61
20241025@133819.8473 3riu3ovo04etojlcfjpd1kqbfg 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 ('aut671b916522671b913bc3','guia r. fornecedor','2024-10-25',61,2403224,?,?,?,?,?,?,?,?,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')
20241025@133822.2282 3riu3ovo04etojlcfjpd1kqbfg Query : use flama_phc
20241025@133822.2286 3riu3ovo04etojlcfjpd1kqbfg Query : select st.usalote valor from st where st.ref = '324.1642.00.2'
20241025@133822.2419 3riu3ovo04etojlcfjpd1kqbfg Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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'
20241025@133822.2558 3riu3ovo04etojlcfjpd1kqbfg Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241025@133822.2574 3riu3ovo04etojlcfjpd1kqbfg Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 61
20241025@133822.2590 3riu3ovo04etojlcfjpd1kqbfg Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241025@133822.2606 3riu3ovo04etojlcfjpd1kqbfg Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 61
20241025@133822.2616 3riu3ovo04etojlcfjpd1kqbfg Query : select sestamp valor from se where ref ='324.1642.00.2' and lote = 'r2400725200a'
20241025@133822.2668 3riu3ovo04etojlcfjpd1kqbfg Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241025@133822.2684 3riu3ovo04etojlcfjpd1kqbfg Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'se' and documentnumber = 0
20241025@133822.2693 3riu3ovo04etojlcfjpd1kqbfg Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241025@133822.2708 3riu3ovo04etojlcfjpd1kqbfg Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'se' and documentnumber = 0
20241025@133822.2720 3riu3ovo04etojlcfjpd1kqbfg Query : insert into se (sestamp,ref, lote, data,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut671b970526671b913e41',?,?,'20241025',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut;','aut;')
20241025@133822.3718 3riu3ovo04etojlcfjpd1kqbfg Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241025@133822.3769 3riu3ovo04etojlcfjpd1kqbfg Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241025@133822.3787 3riu3ovo04etojlcfjpd1kqbfg Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 61
20241025@133822.3801 3riu3ovo04etojlcfjpd1kqbfg Query : insert into bi2 (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut671b939998671b913e5c','aut671b916522671b913bc3',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 = 'aut671b916522671b913bc3'
20241025@133822.3963 3riu3ovo04etojlcfjpd1kqbfg Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241025@133822.3981 3riu3ovo04etojlcfjpd1kqbfg Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 61
20241025@133822.4001 3riu3ovo04etojlcfjpd1kqbfg 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 'aut671b939998671b913e5c',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut',bo.obrano, 2300, 2300*.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 ,25.982881355932,25.982881355932*200.48,25.982881355932,25.982881355932*200.48 ,0,0,'un ',' ' ,bo.marcada,1 ,25.982881355932*2300,25.982881355932*2300*200.48 ,31.276000,31.276000*200.48 ,31.276000,31.276000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,25.982881355932,25.982881355932*200.48,25.982881355932*2300,25.982881355932*2300*200.48,'cps24060756532,226000002 ',205,205*2300,205,205*2300,?,?,?,4 from bo bo where bo.bostamp = 'aut671b916522671b913bc3'
20241025@133837.2850 3riu3ovo04etojlcfjpd1kqbfg Query : use flama_phc
20241025@133837.2960 3riu3ovo04etojlcfjpd1kqbfg Query : select st.usalote valor from st where st.ref = '324.1646.00.1'
20241025@133837.3240 3riu3ovo04etojlcfjpd1kqbfg Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.1646.00.1'
20241025@133837.4630 3riu3ovo04etojlcfjpd1kqbfg Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241025@133837.4800 3riu3ovo04etojlcfjpd1kqbfg Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 61
20241025@133837.4950 3riu3ovo04etojlcfjpd1kqbfg Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241025@133837.5120 3riu3ovo04etojlcfjpd1kqbfg Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 61
20241025@133837.5290 3riu3ovo04etojlcfjpd1kqbfg Query : select sestamp valor from se where ref ='324.1646.00.1' and lote = 'r2400725100a'
20241025@133837.5470 3riu3ovo04etojlcfjpd1kqbfg Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241025@133837.5670 3riu3ovo04etojlcfjpd1kqbfg Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'se' and documentnumber = 0
20241025@133837.5800 3riu3ovo04etojlcfjpd1kqbfg Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241025@133837.6090 3riu3ovo04etojlcfjpd1kqbfg Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'se' and documentnumber = 0
20241025@133837.6260 3riu3ovo04etojlcfjpd1kqbfg Query : insert into se (sestamp,ref, lote, data,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut671b928024671b914d0e',?,?,'20241025',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut;','aut;')
20241025@133837.7030 3riu3ovo04etojlcfjpd1kqbfg Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241025@133837.7190 3riu3ovo04etojlcfjpd1kqbfg Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241025@133837.7470 3riu3ovo04etojlcfjpd1kqbfg Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 61
20241025@133837.7610 3riu3ovo04etojlcfjpd1kqbfg Query : insert into bi2 (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut671b993366671b914d11','aut671b916522671b913bc3',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 = 'aut671b916522671b913bc3'
20241025@133837.9070 3riu3ovo04etojlcfjpd1kqbfg Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241025@133837.9280 3riu3ovo04etojlcfjpd1kqbfg Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 61
20241025@133837.9570 3riu3ovo04etojlcfjpd1kqbfg 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 'aut671b993366671b914d11',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut',bo.obrano, 600, 600*.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 ,37.39,37.39*200.48,37.39,37.39*200.48 ,0,0,'un ','' ,bo.marcada,1 ,37.39*600,37.39*600*200.48 ,45.381000,45.381000*200.48 ,45.381000,45.381000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,37.39,37.39*200.48,37.39*600,37.39*600*200.48,'cps24060756532,500000003 ',295,295*600,295,295*600,?,?,?,4 from bo bo where bo.bostamp = 'aut671b916522671b913bc3'
20241025@133837.1971 3riu3ovo04etojlcfjpd1kqbfg Query : use flama_phc
20241025@133837.1976 3riu3ovo04etojlcfjpd1kqbfg Query : declare @bostamp varchar(25) = 'aut671b916522671b913bc3' ,@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 
20241025@133843.1889 3riu3ovo04etojlcfjpd1kqbfg Query : use flama_phc
20241025@133843.1893 3riu3ovo04etojlcfjpd1kqbfg Query : select 1 valor from bo where bo.bostamp = 'aut671b916522671b913bc3'
20241025@133843.1983 3riu3ovo04etojlcfjpd1kqbfg 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) = 'aut671b916522671b913bc3' 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 
