20240805@173923.2594 lgaehkclmu53uqgv20fe6hb6ef Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240805@173923.2606 lgaehkclmu53uqgv20fe6hb6ef Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66b108019566b1003b3e','aut66b105340766b1003aab' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240805@173923.2610 lgaehkclmu53uqgv20fe6hb6ef Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240805@173923.2625 lgaehkclmu53uqgv20fe6hb6ef Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240805@173923.2653 lgaehkclmu53uqgv20fe6hb6ef Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem) values ('aut66b108019566b1003b3e',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',24.000 ,'aut66b105340766b1003aab' ,0,0 ,2,23.00,20000,?,?,?,?)
20240805@173923.2914 lgaehkclmu53uqgv20fe6hb6ef Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240805@173923.2930 lgaehkclmu53uqgv20fe6hb6ef Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240805@173923.2956 lgaehkclmu53uqgv20fe6hb6ef Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240805@173923.2971 lgaehkclmu53uqgv20fe6hb6ef Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240805@173923.2979 lgaehkclmu53uqgv20fe6hb6ef Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240805@173923.2992 lgaehkclmu53uqgv20fe6hb6ef Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240805@173923.3006 lgaehkclmu53uqgv20fe6hb6ef Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240805@173923.3018 lgaehkclmu53uqgv20fe6hb6ef Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66b109131466b1003b49','aut66b105340766b1003aab' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240805@173923.3022 lgaehkclmu53uqgv20fe6hb6ef Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240805@173923.3037 lgaehkclmu53uqgv20fe6hb6ef Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240805@173923.3066 lgaehkclmu53uqgv20fe6hb6ef Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66b109131466b1003b49',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66b105340766b1003aab' ,0,0 ,2,23.00,30000,?,?,?)
20240805@173923.3307 lgaehkclmu53uqgv20fe6hb6ef Query : use flama_phc
20240805@173923.3310 lgaehkclmu53uqgv20fe6hb6ef Query : select st.usalote valor from st where st.ref = '324.5343.00.1'
20240805@173923.3330 lgaehkclmu53uqgv20fe6hb6ef Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.5343.00.1'
20240805@173923.3480 lgaehkclmu53uqgv20fe6hb6ef Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240805@173923.3496 lgaehkclmu53uqgv20fe6hb6ef Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240805@173923.3522 lgaehkclmu53uqgv20fe6hb6ef Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240805@173923.3538 lgaehkclmu53uqgv20fe6hb6ef Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240805@173923.3546 lgaehkclmu53uqgv20fe6hb6ef Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240805@173923.3559 lgaehkclmu53uqgv20fe6hb6ef Query : select sestamp valor from se where ref ='324.5343.00.1' and lote = 'r2300915100a'
20240805@173923.3572 lgaehkclmu53uqgv20fe6hb6ef Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240805@173923.3587 lgaehkclmu53uqgv20fe6hb6ef Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240805@173923.3599 lgaehkclmu53uqgv20fe6hb6ef Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66b104419966b1003b57','aut66b105340766b1003aab' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240805@173923.3603 lgaehkclmu53uqgv20fe6hb6ef Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240805@173923.3623 lgaehkclmu53uqgv20fe6hb6ef Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240805@173923.3652 lgaehkclmu53uqgv20fe6hb6ef Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem) values ('aut66b104419966b1003b57',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',36.000 ,'aut66b105340766b1003aab' ,0,0 ,2,23.00,50000,?,?,?,?)
20240805@173923.3931 lgaehkclmu53uqgv20fe6hb6ef Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240805@173923.3947 lgaehkclmu53uqgv20fe6hb6ef Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240805@173923.3974 lgaehkclmu53uqgv20fe6hb6ef Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240805@173923.3988 lgaehkclmu53uqgv20fe6hb6ef Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240805@173923.3997 lgaehkclmu53uqgv20fe6hb6ef Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240805@173923.4010 lgaehkclmu53uqgv20fe6hb6ef Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240805@173923.4024 lgaehkclmu53uqgv20fe6hb6ef Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240805@173923.4036 lgaehkclmu53uqgv20fe6hb6ef Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66b106924466b1003b61','aut66b105340766b1003aab' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240805@173923.4040 lgaehkclmu53uqgv20fe6hb6ef Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240805@173923.4055 lgaehkclmu53uqgv20fe6hb6ef Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240805@173923.4084 lgaehkclmu53uqgv20fe6hb6ef Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66b106924466b1003b61',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66b105340766b1003aab' ,0,0 ,2,23.00,60000,?,?,?)
20240805@173923.4389 lgaehkclmu53uqgv20fe6hb6ef Query : use flama_phc
20240805@173923.4395 lgaehkclmu53uqgv20fe6hb6ef Query : select st.usalote valor from st where st.ref = '324.2031.00.1'
20240805@173923.4424 lgaehkclmu53uqgv20fe6hb6ef Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.2031.00.1'
20240805@173923.4590 lgaehkclmu53uqgv20fe6hb6ef Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240805@173923.4607 lgaehkclmu53uqgv20fe6hb6ef Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240805@173923.4633 lgaehkclmu53uqgv20fe6hb6ef Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240805@173923.4648 lgaehkclmu53uqgv20fe6hb6ef Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240805@173923.4657 lgaehkclmu53uqgv20fe6hb6ef Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240805@173923.4669 lgaehkclmu53uqgv20fe6hb6ef Query : select sestamp valor from se where ref ='324.2031.00.1' and lote = 'r2100232100a'
20240805@173923.4683 lgaehkclmu53uqgv20fe6hb6ef Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240805@173923.4699 lgaehkclmu53uqgv20fe6hb6ef Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240805@173923.4711 lgaehkclmu53uqgv20fe6hb6ef Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66b101761966b1003b72','aut66b105340766b1003aab' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240805@173923.4715 lgaehkclmu53uqgv20fe6hb6ef Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240805@173923.4730 lgaehkclmu53uqgv20fe6hb6ef Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240805@173923.4760 lgaehkclmu53uqgv20fe6hb6ef Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem) values ('aut66b101761966b1003b72',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',24.000 ,'aut66b105340766b1003aab' ,0,0 ,2,23.00,80000,?,?,?,?)
20240805@173923.5030 lgaehkclmu53uqgv20fe6hb6ef Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240805@173923.5047 lgaehkclmu53uqgv20fe6hb6ef Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240805@173923.5074 lgaehkclmu53uqgv20fe6hb6ef Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240805@173923.5092 lgaehkclmu53uqgv20fe6hb6ef Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240805@173923.5101 lgaehkclmu53uqgv20fe6hb6ef Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240805@173923.5114 lgaehkclmu53uqgv20fe6hb6ef Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240805@173923.5129 lgaehkclmu53uqgv20fe6hb6ef Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240805@173923.5141 lgaehkclmu53uqgv20fe6hb6ef Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66b100192666b1003b7c','aut66b105340766b1003aab' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240805@173923.5145 lgaehkclmu53uqgv20fe6hb6ef Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240805@173923.5159 lgaehkclmu53uqgv20fe6hb6ef Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240805@173923.5188 lgaehkclmu53uqgv20fe6hb6ef Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66b100192666b1003b7c',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66b105340766b1003aab' ,0,0 ,2,23.00,90000,?,?,?)
20240805@173923.5481 lgaehkclmu53uqgv20fe6hb6ef Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut66b105340766b1003aab','2405218','wait',39,'adm09112754980.682000002')
20240805@173923.5555 lgaehkclmu53uqgv20fe6hb6ef Query : use flama_phc
20240805@173923.5558 lgaehkclmu53uqgv20fe6hb6ef Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240805@173923.5587 lgaehkclmu53uqgv20fe6hb6ef Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1393';
20240805@173923.5613 lgaehkclmu53uqgv20fe6hb6ef Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1393';
20240805@173923.5653 lgaehkclmu53uqgv20fe6hb6ef Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1393';
20240805@173923.5677 lgaehkclmu53uqgv20fe6hb6ef Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1393';
20240805@173923.6473 le3k4a2e9c7abbhbgfeeuf5ktc Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240805@173923.6484 le3k4a2e9c7abbhbgfeeuf5ktc Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240805@173923.6534 le3k4a2e9c7abbhbgfeeuf5ktc Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1394';
20240805@173923.6588 le3k4a2e9c7abbhbgfeeuf5ktc Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1394';
20240805@173923.6638 le3k4a2e9c7abbhbgfeeuf5ktc Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1394';
20240805@173923.6662 le3k4a2e9c7abbhbgfeeuf5ktc Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1394';
20240805@173923.6710 le3k4a2e9c7abbhbgfeeuf5ktc Query : use flama_phc
20240805@173923.6713 le3k4a2e9c7abbhbgfeeuf5ktc Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240805@173923.6774 le3k4a2e9c7abbhbgfeeuf5ktc Query : use flama_phc
20240805@173923.6777 le3k4a2e9c7abbhbgfeeuf5ktc Query : select no, estab,szadrsdesc from szadrs where u_coddest=5338
20240805@173923.6860 le3k4a2e9c7abbhbgfeeuf5ktc Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.5396.00.1'
20240805@173923.7026 le3k4a2e9c7abbhbgfeeuf5ktc Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.5365.00.1'
20240805@173923.7166 le3k4a2e9c7abbhbgfeeuf5ktc Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.642.00.01'
20240805@173923.7288 le3k4a2e9c7abbhbgfeeuf5ktc Query : use flama_phc
20240805@173923.7291 le3k4a2e9c7abbhbgfeeuf5ktc Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20240805@173923.7323 le3k4a2e9c7abbhbgfeeuf5ktc Query : use flama_phc
20240805@173923.7326 le3k4a2e9c7abbhbgfeeuf5ktc Query : select top 1 1 valor from td where td.ndoc = 39
20240805@173923.7355 le3k4a2e9c7abbhbgfeeuf5ktc Query : use flama_phc
20240805@173923.7358 le3k4a2e9c7abbhbgfeeuf5ktc 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')
20240805@173923.7390 le3k4a2e9c7abbhbgfeeuf5ktc 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
20240805@173923.7426 le3k4a2e9c7abbhbgfeeuf5ktc Query : use flama_phc
20240805@173923.7429 le3k4a2e9c7abbhbgfeeuf5ktc Query : select top 1 ~inactivo valor from cl where no = '102388' and estab = 0 order by inactivo desc
20240805@173923.7626 le3k4a2e9c7abbhbgfeeuf5ktc Query : use flama_phc
20240805@173923.7629 le3k4a2e9c7abbhbgfeeuf5ktc Query : select top 1 tipodoc,regrd from td where ndoc = 39
20240805@173923.7664 le3k4a2e9c7abbhbgfeeuf5ktc Query : use flama_phc
20240805@173923.7667 le3k4a2e9c7abbhbgfeeuf5ktc Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20240805@173923.7710 le3k4a2e9c7abbhbgfeeuf5ktc Query : use flama_phc
20240805@173923.7713 le3k4a2e9c7abbhbgfeeuf5ktc Query : select szadrsstamp valor from szadrs where szadrsdesc='armazÉns pomar, lda'
20240805@173923.7761 le3k4a2e9c7abbhbgfeeuf5ktc Query : use flama_phc
20240805@173923.7764 le3k4a2e9c7abbhbgfeeuf5ktc Query : select 1 valor from td where ndoc = 39
20240805@173923.7777 le3k4a2e9c7abbhbgfeeuf5ktc Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20240805@173923.7792 le3k4a2e9c7abbhbgfeeuf5ktc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240805@173923.7808 le3k4a2e9c7abbhbgfeeuf5ktc Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20240805@173923.7827 le3k4a2e9c7abbhbgfeeuf5ktc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240805@173923.7842 le3k4a2e9c7abbhbgfeeuf5ktc Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20240805@173923.7870 le3k4a2e9c7abbhbgfeeuf5ktc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240805@173923.7885 le3k4a2e9c7abbhbgfeeuf5ktc Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20240805@173923.7899 le3k4a2e9c7abbhbgfeeuf5ktc Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240805@173923.7971 le3k4a2e9c7abbhbgfeeuf5ktc Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240805@173923.7984 le3k4a2e9c7abbhbgfeeuf5ktc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240805@173923.8006 le3k4a2e9c7abbhbgfeeuf5ktc Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20240805@173923.8024 le3k4a2e9c7abbhbgfeeuf5ktc Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut66b102755866b1003bc0' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20240805@173923.8207 le3k4a2e9c7abbhbgfeeuf5ktc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240805@173923.8242 le3k4a2e9c7abbhbgfeeuf5ktc Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20240805@173923.8277 le3k4a2e9c7abbhbgfeeuf5ktc Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20240805@173923.8289 le3k4a2e9c7abbhbgfeeuf5ktc Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20240805@173923.8301 le3k4a2e9c7abbhbgfeeuf5ktc Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20240805@173923.8313 le3k4a2e9c7abbhbgfeeuf5ktc Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20240805@173923.8324 le3k4a2e9c7abbhbgfeeuf5ktc Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20240805@173923.8336 le3k4a2e9c7abbhbgfeeuf5ktc Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20240805@173923.8348 le3k4a2e9c7abbhbgfeeuf5ktc Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut66b102755866b1003bc0',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20240805@173923.8591 le3k4a2e9c7abbhbgfeeuf5ktc Query : select top 1 fno valor from wsftdata order by fno desc
20240805@173923.8610 le3k4a2e9c7abbhbgfeeuf5ktc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240805@173923.8629 le3k4a2e9c7abbhbgfeeuf5ktc Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20240805@173923.8657 le3k4a2e9c7abbhbgfeeuf5ktc Query : select 'normal' from dummy
20240805@173923.8675 le3k4a2e9c7abbhbgfeeuf5ktc Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut66b102755866b1003bc0',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',222,102388,0,'2024-08-05',39,'euro',0,0,2024 ,?,?)
20240805@173923.8987 le3k4a2e9c7abbhbgfeeuf5ktc Query : use flama_phc
20240805@173923.8991 le3k4a2e9c7abbhbgfeeuf5ktc Query : select st.usalote valor from st where st.ref = '324.5396.00.1'
20240805@173923.9016 le3k4a2e9c7abbhbgfeeuf5ktc Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.5396.00.1'
20240805@173923.9172 le3k4a2e9c7abbhbgfeeuf5ktc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240805@173923.9191 le3k4a2e9c7abbhbgfeeuf5ktc Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240805@173923.9221 le3k4a2e9c7abbhbgfeeuf5ktc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240805@173923.9237 le3k4a2e9c7abbhbgfeeuf5ktc Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240805@173923.9272 le3k4a2e9c7abbhbgfeeuf5ktc Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240805@173923.9287 le3k4a2e9c7abbhbgfeeuf5ktc Query : select sestamp valor from se where ref ='324.5396.00.1' and lote = 'r2300840100a'
20240805@173923.9309 le3k4a2e9c7abbhbgfeeuf5ktc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240805@173923.9326 le3k4a2e9c7abbhbgfeeuf5ktc Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240805@173923.9340 le3k4a2e9c7abbhbgfeeuf5ktc Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66b105560366b1003be3','aut66b102755866b1003bc0' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240805@173923.9347 le3k4a2e9c7abbhbgfeeuf5ktc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240805@173923.9364 le3k4a2e9c7abbhbgfeeuf5ktc Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240805@173923.9396 le3k4a2e9c7abbhbgfeeuf5ktc Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem) values ('aut66b105560366b1003be3',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',6.000 ,'aut66b102755866b1003bc0' ,0,0 ,2,23.00,10000,?,?,?,?)
20240805@173923.9695 le3k4a2e9c7abbhbgfeeuf5ktc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240805@173923.9712 le3k4a2e9c7abbhbgfeeuf5ktc Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240805@173923.9740 le3k4a2e9c7abbhbgfeeuf5ktc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240805@173923.9755 le3k4a2e9c7abbhbgfeeuf5ktc Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240805@173923.9763 le3k4a2e9c7abbhbgfeeuf5ktc Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240805@173923.9775 le3k4a2e9c7abbhbgfeeuf5ktc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240805@173923.9792 le3k4a2e9c7abbhbgfeeuf5ktc Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240805@173923.9804 le3k4a2e9c7abbhbgfeeuf5ktc Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66b102626966b1003bee','aut66b102755866b1003bc0' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240805@173923.9809 le3k4a2e9c7abbhbgfeeuf5ktc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240805@173923.9824 le3k4a2e9c7abbhbgfeeuf5ktc Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240805@173923.9851 le3k4a2e9c7abbhbgfeeuf5ktc Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66b102626966b1003bee',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66b102755866b1003bc0' ,0,0 ,2,23.00,20000,?,?,?)
20240805@173924.1100 le3k4a2e9c7abbhbgfeeuf5ktc Query : use flama_phc
20240805@173924.1130 le3k4a2e9c7abbhbgfeeuf5ktc Query : select st.usalote valor from st where st.ref = '324.5365.00.1'
20240805@173924.1330 le3k4a2e9c7abbhbgfeeuf5ktc Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.5365.00.1'
20240805@173924.2810 le3k4a2e9c7abbhbgfeeuf5ktc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240805@173924.2970 le3k4a2e9c7abbhbgfeeuf5ktc Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240805@173924.3230 le3k4a2e9c7abbhbgfeeuf5ktc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240805@173924.3390 le3k4a2e9c7abbhbgfeeuf5ktc Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240805@173924.3470 le3k4a2e9c7abbhbgfeeuf5ktc Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240805@173924.3600 le3k4a2e9c7abbhbgfeeuf5ktc Query : select sestamp valor from se where ref ='324.5365.00.1' and lote = 'r2300840100a'
20240805@173924.3730 le3k4a2e9c7abbhbgfeeuf5ktc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240805@173924.3870 le3k4a2e9c7abbhbgfeeuf5ktc Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240805@173924.3990 le3k4a2e9c7abbhbgfeeuf5ktc Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66b109794166b1003c09','aut66b102755866b1003bc0' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240805@173924.4030 le3k4a2e9c7abbhbgfeeuf5ktc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240805@173924.4170 le3k4a2e9c7abbhbgfeeuf5ktc Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240805@173924.4450 le3k4a2e9c7abbhbgfeeuf5ktc Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem) values ('aut66b109794166b1003c09',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',6.000 ,'aut66b102755866b1003bc0' ,0,0 ,2,23.00,40000,?,?,?,?)
20240805@173924.6960 le3k4a2e9c7abbhbgfeeuf5ktc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240805@173924.7130 le3k4a2e9c7abbhbgfeeuf5ktc Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240805@173924.7390 le3k4a2e9c7abbhbgfeeuf5ktc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240805@173924.7550 le3k4a2e9c7abbhbgfeeuf5ktc Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240805@173924.7630 le3k4a2e9c7abbhbgfeeuf5ktc Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240805@173924.7750 le3k4a2e9c7abbhbgfeeuf5ktc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240805@173924.7900 le3k4a2e9c7abbhbgfeeuf5ktc Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240805@173924.8020 le3k4a2e9c7abbhbgfeeuf5ktc Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66b109777366b1003c12','aut66b102755866b1003bc0' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240805@173924.8060 le3k4a2e9c7abbhbgfeeuf5ktc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240805@173924.8220 le3k4a2e9c7abbhbgfeeuf5ktc Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240805@173924.8510 le3k4a2e9c7abbhbgfeeuf5ktc Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66b109777366b1003c12',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66b102755866b1003bc0' ,0,0 ,2,23.00,50000,?,?,?)
20240805@173924.1104 le3k4a2e9c7abbhbgfeeuf5ktc Query : use flama_phc
20240805@173924.1107 le3k4a2e9c7abbhbgfeeuf5ktc Query : select st.usalote valor from st where st.ref = '324.642.00.01'
20240805@173924.1129 le3k4a2e9c7abbhbgfeeuf5ktc Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.642.00.01'
20240805@173924.1288 le3k4a2e9c7abbhbgfeeuf5ktc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240805@173924.1305 le3k4a2e9c7abbhbgfeeuf5ktc Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240805@173924.1332 le3k4a2e9c7abbhbgfeeuf5ktc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240805@173924.1349 le3k4a2e9c7abbhbgfeeuf5ktc Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240805@173924.1358 le3k4a2e9c7abbhbgfeeuf5ktc Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240805@173924.1370 le3k4a2e9c7abbhbgfeeuf5ktc Query : select sestamp valor from se where ref ='324.642.00.01' and lote = 'r2100892200a'
20240805@173924.1398 le3k4a2e9c7abbhbgfeeuf5ktc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240805@173924.1413 le3k4a2e9c7abbhbgfeeuf5ktc Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240805@173924.1424 le3k4a2e9c7abbhbgfeeuf5ktc Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66b100879466b1003c22','aut66b102755866b1003bc0' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240805@173924.1428 le3k4a2e9c7abbhbgfeeuf5ktc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240805@173924.1443 le3k4a2e9c7abbhbgfeeuf5ktc Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240805@173924.1472 le3k4a2e9c7abbhbgfeeuf5ktc Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem) values ('aut66b100879466b1003c22',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',2.000 ,'aut66b102755866b1003bc0' ,0,0 ,2,23.00,70000,?,?,?,?)
20240805@173924.1720 le3k4a2e9c7abbhbgfeeuf5ktc Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut66b102755866b1003bc0','2405219','wait',39,'adm09112754980.682000002')
20240805@173924.1796 le3k4a2e9c7abbhbgfeeuf5ktc Query : use flama_phc
20240805@173924.1799 le3k4a2e9c7abbhbgfeeuf5ktc Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240805@173924.1833 le3k4a2e9c7abbhbgfeeuf5ktc Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1394';
20240805@173924.1864 le3k4a2e9c7abbhbgfeeuf5ktc Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1394';
20240805@173924.1904 le3k4a2e9c7abbhbgfeeuf5ktc Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1394';
20240805@173924.1928 le3k4a2e9c7abbhbgfeeuf5ktc Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1394';
20240805@173924.2523 iqmd5t8ttkkgg0im3tsl48g8cn Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240805@173924.2535 iqmd5t8ttkkgg0im3tsl48g8cn Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240805@173924.2586 iqmd5t8ttkkgg0im3tsl48g8cn Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1395';
20240805@173924.2641 iqmd5t8ttkkgg0im3tsl48g8cn Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1395';
20240805@173924.2694 iqmd5t8ttkkgg0im3tsl48g8cn Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1395';
20240805@173924.2726 iqmd5t8ttkkgg0im3tsl48g8cn Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1395';
20240805@173924.2775 iqmd5t8ttkkgg0im3tsl48g8cn Query : use flama_phc
20240805@173924.2778 iqmd5t8ttkkgg0im3tsl48g8cn Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240805@173924.2841 iqmd5t8ttkkgg0im3tsl48g8cn Query : use flama_phc
20240805@173924.2845 iqmd5t8ttkkgg0im3tsl48g8cn Query : select no, estab,szadrsdesc from szadrs where u_coddest=410
20240805@173924.2933 iqmd5t8ttkkgg0im3tsl48g8cn Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '328.9326.00.1'
20240805@173924.3104 iqmd5t8ttkkgg0im3tsl48g8cn Query : use flama_phc
20240805@173924.3107 iqmd5t8ttkkgg0im3tsl48g8cn Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20240805@173924.3141 iqmd5t8ttkkgg0im3tsl48g8cn Query : use flama_phc
20240805@173924.3144 iqmd5t8ttkkgg0im3tsl48g8cn Query : select top 1 1 valor from td where td.ndoc = 39
20240805@173924.3177 iqmd5t8ttkkgg0im3tsl48g8cn Query : use flama_phc
20240805@173924.3179 iqmd5t8ttkkgg0im3tsl48g8cn 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')
20240805@173924.4468 iqmd5t8ttkkgg0im3tsl48g8cn 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
20240805@173924.4506 iqmd5t8ttkkgg0im3tsl48g8cn Query : use flama_phc
20240805@173924.4509 iqmd5t8ttkkgg0im3tsl48g8cn Query : select top 1 ~inactivo valor from cl where no = '102212' and estab = 0 order by inactivo desc
20240805@173924.4651 iqmd5t8ttkkgg0im3tsl48g8cn Query : use flama_phc
20240805@173924.4654 iqmd5t8ttkkgg0im3tsl48g8cn Query : select top 1 tipodoc,regrd from td where ndoc = 39
20240805@173924.4704 iqmd5t8ttkkgg0im3tsl48g8cn Query : use flama_phc
20240805@173924.4707 iqmd5t8ttkkgg0im3tsl48g8cn Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20240805@173924.4759 iqmd5t8ttkkgg0im3tsl48g8cn Query : use flama_phc
20240805@173924.4763 iqmd5t8ttkkgg0im3tsl48g8cn Query : select szadrsstamp valor from szadrs where szadrsdesc='tomarel-soc.tecnica electricidade, lda.'
20240805@173924.4807 iqmd5t8ttkkgg0im3tsl48g8cn Query : use flama_phc
20240805@173924.4810 iqmd5t8ttkkgg0im3tsl48g8cn Query : select 1 valor from td where ndoc = 39
20240805@173924.4823 iqmd5t8ttkkgg0im3tsl48g8cn Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20240805@173924.4836 iqmd5t8ttkkgg0im3tsl48g8cn Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240805@173924.4856 iqmd5t8ttkkgg0im3tsl48g8cn Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20240805@173924.4874 iqmd5t8ttkkgg0im3tsl48g8cn Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240805@173924.4889 iqmd5t8ttkkgg0im3tsl48g8cn Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20240805@173924.4919 iqmd5t8ttkkgg0im3tsl48g8cn Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240805@173924.4933 iqmd5t8ttkkgg0im3tsl48g8cn Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20240805@173924.4946 iqmd5t8ttkkgg0im3tsl48g8cn Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240805@173924.5017 iqmd5t8ttkkgg0im3tsl48g8cn Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240805@173924.5032 iqmd5t8ttkkgg0im3tsl48g8cn Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240805@173924.5054 iqmd5t8ttkkgg0im3tsl48g8cn Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20240805@173924.5070 iqmd5t8ttkkgg0im3tsl48g8cn Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut66b107067266b1003c78' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20240805@173924.5268 iqmd5t8ttkkgg0im3tsl48g8cn Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240805@173924.5287 iqmd5t8ttkkgg0im3tsl48g8cn Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20240805@173924.5323 iqmd5t8ttkkgg0im3tsl48g8cn Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20240805@173924.5335 iqmd5t8ttkkgg0im3tsl48g8cn Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20240805@173924.5348 iqmd5t8ttkkgg0im3tsl48g8cn Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20240805@173924.5360 iqmd5t8ttkkgg0im3tsl48g8cn Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20240805@173924.5372 iqmd5t8ttkkgg0im3tsl48g8cn Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20240805@173924.5384 iqmd5t8ttkkgg0im3tsl48g8cn Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20240805@173924.5395 iqmd5t8ttkkgg0im3tsl48g8cn Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut66b107067266b1003c78',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20240805@173924.5681 iqmd5t8ttkkgg0im3tsl48g8cn Query : select top 1 fno valor from wsftdata order by fno desc
20240805@173924.5701 iqmd5t8ttkkgg0im3tsl48g8cn Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240805@173924.5720 iqmd5t8ttkkgg0im3tsl48g8cn Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20240805@173924.5744 iqmd5t8ttkkgg0im3tsl48g8cn Query : select 'normal' from dummy
20240805@173924.5759 iqmd5t8ttkkgg0im3tsl48g8cn Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut66b107067266b1003c78',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',223,102212,0,'2024-08-05',39,'euro',0,0,2024 ,?,?)
20240805@173924.6081 iqmd5t8ttkkgg0im3tsl48g8cn Query : use flama_phc
20240805@173924.6084 iqmd5t8ttkkgg0im3tsl48g8cn Query : select st.usalote valor from st where st.ref = '328.9326.00.1'
20240805@173924.6107 iqmd5t8ttkkgg0im3tsl48g8cn Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '328.9326.00.1'
20240805@173924.6263 iqmd5t8ttkkgg0im3tsl48g8cn Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240805@173924.6279 iqmd5t8ttkkgg0im3tsl48g8cn Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240805@173924.6307 iqmd5t8ttkkgg0im3tsl48g8cn Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240805@173924.6321 iqmd5t8ttkkgg0im3tsl48g8cn Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240805@173924.6330 iqmd5t8ttkkgg0im3tsl48g8cn Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240805@173924.6345 iqmd5t8ttkkgg0im3tsl48g8cn Query : select sestamp valor from se where ref ='328.9326.00.1' and lote = 'r2300691100a'
20240805@173924.6359 iqmd5t8ttkkgg0im3tsl48g8cn Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240805@173924.6373 iqmd5t8ttkkgg0im3tsl48g8cn Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240805@173924.6385 iqmd5t8ttkkgg0im3tsl48g8cn Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66b100498666b1003c9b','aut66b107067266b1003c78' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240805@173924.6389 iqmd5t8ttkkgg0im3tsl48g8cn Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240805@173924.6404 iqmd5t8ttkkgg0im3tsl48g8cn Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240805@173924.6438 iqmd5t8ttkkgg0im3tsl48g8cn Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem) values ('aut66b100498666b1003c9b',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',3.000 ,'aut66b107067266b1003c78' ,0,0 ,2,23.00,10000,?,?,?,?)
20240805@173924.6702 iqmd5t8ttkkgg0im3tsl48g8cn Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240805@173924.6718 iqmd5t8ttkkgg0im3tsl48g8cn Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240805@173924.6745 iqmd5t8ttkkgg0im3tsl48g8cn Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240805@173924.6762 iqmd5t8ttkkgg0im3tsl48g8cn Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240805@173924.6771 iqmd5t8ttkkgg0im3tsl48g8cn Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240805@173924.6783 iqmd5t8ttkkgg0im3tsl48g8cn Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240805@173924.6799 iqmd5t8ttkkgg0im3tsl48g8cn Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240805@173924.6811 iqmd5t8ttkkgg0im3tsl48g8cn Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66b101816666b1003ca5','aut66b107067266b1003c78' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240805@173924.6815 iqmd5t8ttkkgg0im3tsl48g8cn Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240805@173924.6874 iqmd5t8ttkkgg0im3tsl48g8cn Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240805@173924.6904 iqmd5t8ttkkgg0im3tsl48g8cn Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66b101816666b1003ca5',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66b107067266b1003c78' ,0,0 ,2,23.00,20000,?,?,?)
20240805@173924.7170 iqmd5t8ttkkgg0im3tsl48g8cn Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut66b107067266b1003c78','2405222','wait',39,'adm09112754980.682000002')
20240805@173924.7244 iqmd5t8ttkkgg0im3tsl48g8cn Query : use flama_phc
20240805@173924.7247 iqmd5t8ttkkgg0im3tsl48g8cn Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240805@173924.7282 iqmd5t8ttkkgg0im3tsl48g8cn Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1395';
20240805@173924.7308 iqmd5t8ttkkgg0im3tsl48g8cn Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1395';
20240805@173924.7352 iqmd5t8ttkkgg0im3tsl48g8cn Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1395';
20240805@173924.7374 iqmd5t8ttkkgg0im3tsl48g8cn Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1395';
20240805@173924.7898 iqnkr1n0mfui5qiu5bcnfq1bdc Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240805@173924.7909 iqnkr1n0mfui5qiu5bcnfq1bdc Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240805@173924.7968 iqnkr1n0mfui5qiu5bcnfq1bdc Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1396';
20240805@173924.8021 iqnkr1n0mfui5qiu5bcnfq1bdc Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1396';
20240805@173924.8069 iqnkr1n0mfui5qiu5bcnfq1bdc Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1396';
20240805@173924.8091 iqnkr1n0mfui5qiu5bcnfq1bdc Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1396';
20240805@173924.8136 iqnkr1n0mfui5qiu5bcnfq1bdc Query : use flama_phc
20240805@173924.8139 iqnkr1n0mfui5qiu5bcnfq1bdc Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240805@173924.8208 iqnkr1n0mfui5qiu5bcnfq1bdc Query : use flama_phc
20240805@173924.8211 iqnkr1n0mfui5qiu5bcnfq1bdc Query : select no, estab,szadrsdesc from szadrs where u_coddest=909
20240805@173924.8293 iqnkr1n0mfui5qiu5bcnfq1bdc Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.945.00.01'
20240805@173924.8456 iqnkr1n0mfui5qiu5bcnfq1bdc Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.945.00.01'
20240805@173924.8477 iqnkr1n0mfui5qiu5bcnfq1bdc Query : use flama_phc
20240805@173924.8480 iqnkr1n0mfui5qiu5bcnfq1bdc Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20240805@173924.8513 iqnkr1n0mfui5qiu5bcnfq1bdc Query : use flama_phc
20240805@173924.8516 iqnkr1n0mfui5qiu5bcnfq1bdc Query : select top 1 1 valor from td where td.ndoc = 39
20240805@173924.8554 iqnkr1n0mfui5qiu5bcnfq1bdc Query : use flama_phc
20240805@173924.8557 iqnkr1n0mfui5qiu5bcnfq1bdc 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')
20240805@173924.8585 iqnkr1n0mfui5qiu5bcnfq1bdc 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
20240805@173924.8623 iqnkr1n0mfui5qiu5bcnfq1bdc Query : use flama_phc
20240805@173924.8626 iqnkr1n0mfui5qiu5bcnfq1bdc Query : select top 1 ~inactivo valor from cl where no = '101621' and estab = 0 order by inactivo desc
20240805@173924.8749 iqnkr1n0mfui5qiu5bcnfq1bdc Query : use flama_phc
20240805@173924.8752 iqnkr1n0mfui5qiu5bcnfq1bdc Query : select top 1 tipodoc,regrd from td where ndoc = 39
20240805@173924.8780 iqnkr1n0mfui5qiu5bcnfq1bdc Query : use flama_phc
20240805@173924.8783 iqnkr1n0mfui5qiu5bcnfq1bdc Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20240805@173924.8825 iqnkr1n0mfui5qiu5bcnfq1bdc Query : use flama_phc
20240805@173924.8828 iqnkr1n0mfui5qiu5bcnfq1bdc Query : select szadrsstamp valor from szadrs where szadrsdesc='j.o.m.,lda - ovar'
20240805@173924.9045 iqnkr1n0mfui5qiu5bcnfq1bdc Query : use flama_phc
20240805@173924.9049 iqnkr1n0mfui5qiu5bcnfq1bdc Query : select 1 valor from td where ndoc = 39
20240805@173924.9062 iqnkr1n0mfui5qiu5bcnfq1bdc Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20240805@173924.9075 iqnkr1n0mfui5qiu5bcnfq1bdc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240805@173924.9091 iqnkr1n0mfui5qiu5bcnfq1bdc Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20240805@173924.9111 iqnkr1n0mfui5qiu5bcnfq1bdc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240805@173924.9124 iqnkr1n0mfui5qiu5bcnfq1bdc Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20240805@173924.9153 iqnkr1n0mfui5qiu5bcnfq1bdc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240805@173924.9168 iqnkr1n0mfui5qiu5bcnfq1bdc Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20240805@173924.9180 iqnkr1n0mfui5qiu5bcnfq1bdc Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240805@173924.9258 iqnkr1n0mfui5qiu5bcnfq1bdc Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240805@173924.9270 iqnkr1n0mfui5qiu5bcnfq1bdc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240805@173924.9286 iqnkr1n0mfui5qiu5bcnfq1bdc Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20240805@173924.9301 iqnkr1n0mfui5qiu5bcnfq1bdc Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut66b105285266b1003ce0' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20240805@173924.9593 iqnkr1n0mfui5qiu5bcnfq1bdc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240805@173924.9616 iqnkr1n0mfui5qiu5bcnfq1bdc Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20240805@173924.9698 iqnkr1n0mfui5qiu5bcnfq1bdc Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20240805@173924.9713 iqnkr1n0mfui5qiu5bcnfq1bdc Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20240805@173924.9728 iqnkr1n0mfui5qiu5bcnfq1bdc Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20240805@173924.9742 iqnkr1n0mfui5qiu5bcnfq1bdc Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20240805@173924.9755 iqnkr1n0mfui5qiu5bcnfq1bdc Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20240805@173924.9768 iqnkr1n0mfui5qiu5bcnfq1bdc Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20240805@173924.9780 iqnkr1n0mfui5qiu5bcnfq1bdc Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut66b105285266b1003ce0',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20240805@173925.9000 iqnkr1n0mfui5qiu5bcnfq1bdc Query : select top 1 fno valor from wsftdata order by fno desc
20240805@173925.1070 iqnkr1n0mfui5qiu5bcnfq1bdc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240805@173925.1230 iqnkr1n0mfui5qiu5bcnfq1bdc Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20240805@173925.1460 iqnkr1n0mfui5qiu5bcnfq1bdc Query : select 'normal' from dummy
20240805@173925.1610 iqnkr1n0mfui5qiu5bcnfq1bdc Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut66b105285266b1003ce0',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',224,101621,0,'2024-08-05',39,'euro',0,0,2024 ,?,?)
20240805@173925.4500 iqnkr1n0mfui5qiu5bcnfq1bdc Query : use flama_phc
20240805@173925.4530 iqnkr1n0mfui5qiu5bcnfq1bdc Query : select st.usalote valor from st where st.ref = '324.945.00.01'
20240805@173925.4740 iqnkr1n0mfui5qiu5bcnfq1bdc Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.945.00.01'
20240805@173925.6210 iqnkr1n0mfui5qiu5bcnfq1bdc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240805@173925.6370 iqnkr1n0mfui5qiu5bcnfq1bdc Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240805@173925.6650 iqnkr1n0mfui5qiu5bcnfq1bdc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240805@173925.6790 iqnkr1n0mfui5qiu5bcnfq1bdc Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240805@173925.6890 iqnkr1n0mfui5qiu5bcnfq1bdc Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240805@173925.7020 iqnkr1n0mfui5qiu5bcnfq1bdc Query : select sestamp valor from se where ref ='324.945.00.01' and lote = 'r2200799100a'
20240805@173925.7160 iqnkr1n0mfui5qiu5bcnfq1bdc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240805@173925.7330 iqnkr1n0mfui5qiu5bcnfq1bdc Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240805@173925.7450 iqnkr1n0mfui5qiu5bcnfq1bdc Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66b100549166b1003d11','aut66b105285266b1003ce0' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240805@173925.7490 iqnkr1n0mfui5qiu5bcnfq1bdc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240805@173925.7640 iqnkr1n0mfui5qiu5bcnfq1bdc Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240805@173925.7940 iqnkr1n0mfui5qiu5bcnfq1bdc Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem) values ('aut66b100549166b1003d11',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',4.000 ,'aut66b105285266b1003ce0' ,0,0 ,2,23.00,10000,?,?,?,?)
20240805@173925.1066 iqnkr1n0mfui5qiu5bcnfq1bdc Query : use flama_phc
20240805@173925.1070 iqnkr1n0mfui5qiu5bcnfq1bdc Query : select st.usalote valor from st where st.ref = '324.945.00.01'
20240805@173925.1091 iqnkr1n0mfui5qiu5bcnfq1bdc Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.945.00.01'
20240805@173925.1106 iqnkr1n0mfui5qiu5bcnfq1bdc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240805@173925.1123 iqnkr1n0mfui5qiu5bcnfq1bdc Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240805@173925.1151 iqnkr1n0mfui5qiu5bcnfq1bdc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240805@173925.1166 iqnkr1n0mfui5qiu5bcnfq1bdc Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240805@173925.1175 iqnkr1n0mfui5qiu5bcnfq1bdc Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240805@173925.1188 iqnkr1n0mfui5qiu5bcnfq1bdc Query : select sestamp valor from se where ref ='324.945.00.01' and lote = 'r2200799100a'
20240805@173925.1202 iqnkr1n0mfui5qiu5bcnfq1bdc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240805@173925.1216 iqnkr1n0mfui5qiu5bcnfq1bdc Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240805@173925.1228 iqnkr1n0mfui5qiu5bcnfq1bdc Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66b109104466b1003d1d','aut66b105285266b1003ce0' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240805@173925.1233 iqnkr1n0mfui5qiu5bcnfq1bdc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240805@173925.1248 iqnkr1n0mfui5qiu5bcnfq1bdc Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240805@173925.1277 iqnkr1n0mfui5qiu5bcnfq1bdc Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem) values ('aut66b109104466b1003d1d',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',4.000 ,'aut66b105285266b1003ce0' ,0,0 ,2,23.00,20000,?,?,?,?)
20240805@173925.1545 iqnkr1n0mfui5qiu5bcnfq1bdc Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut66b105285266b1003ce0','2405238','wait',39,'adm09112754980.682000002')
20240805@173925.1619 iqnkr1n0mfui5qiu5bcnfq1bdc Query : use flama_phc
20240805@173925.1622 iqnkr1n0mfui5qiu5bcnfq1bdc Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240805@173925.1653 iqnkr1n0mfui5qiu5bcnfq1bdc Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1396';
20240805@173925.1677 iqnkr1n0mfui5qiu5bcnfq1bdc Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1396';
20240805@173925.1717 iqnkr1n0mfui5qiu5bcnfq1bdc Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1396';
20240805@173925.1777 iqnkr1n0mfui5qiu5bcnfq1bdc Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1396';
20240805@181909.8664 7nc7o808l4893csv3pbk6s8l34 Query : use flama_phc
20240805@181909.8668 7nc7o808l4893csv3pbk6s8l34 Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240805@181909.8779 7nc7o808l4893csv3pbk6s8l34 Query : use flama_phc
20240805@181909.8782 7nc7o808l4893csv3pbk6s8l34 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240805@183609.9636 sd8bvj9a7ndednd6iglrdqn8p1 Query : use flama_phc
20240805@183609.9640 sd8bvj9a7ndednd6iglrdqn8p1 Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240805@183609.9721 sd8bvj9a7ndednd6iglrdqn8p1 Query : use flama_phc
20240805@183609.9724 sd8bvj9a7ndednd6iglrdqn8p1 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240805@191910.7560 ho06pd9n0ti3cdjfrga4nm3kid Query : use flama_phc
20240805@191910.7564 ho06pd9n0ti3cdjfrga4nm3kid Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240805@191910.7691 ho06pd9n0ti3cdjfrga4nm3kid Query : use flama_phc
20240805@191910.7695 ho06pd9n0ti3cdjfrga4nm3kid Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240805@193610.9169 2oavdk84naavijccdvq0sbtb7j Query : use flama_phc
20240805@193610.9173 2oavdk84naavijccdvq0sbtb7j Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240805@193610.9270 2oavdk84naavijccdvq0sbtb7j Query : use flama_phc
20240805@193610.9273 2oavdk84naavijccdvq0sbtb7j Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240805@201918.3934 5jb6kvbstkeog263nrmvqkmnas Query : use flama_phc
20240805@201918.3938 5jb6kvbstkeog263nrmvqkmnas Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240805@201918.4705 5jb6kvbstkeog263nrmvqkmnas Query : use flama_phc
20240805@201918.4709 5jb6kvbstkeog263nrmvqkmnas Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240805@203618.1347 5el1eh1gn0evdtjs4btdvfpvoo Query : use flama_phc
20240805@203618.1351 5el1eh1gn0evdtjs4btdvfpvoo Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240805@203618.1437 5el1eh1gn0evdtjs4btdvfpvoo Query : use flama_phc
20240805@203618.1454 5el1eh1gn0evdtjs4btdvfpvoo Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240805@211909.9306 mjq8a2rc30evtbkma1seq4293p Query : use flama_phc
20240805@211909.9317 mjq8a2rc30evtbkma1seq4293p Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240805@211909.9414 mjq8a2rc30evtbkma1seq4293p Query : use flama_phc
20240805@211909.9417 mjq8a2rc30evtbkma1seq4293p Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240805@213609.6113 6bfain0b13v14a1tv2c73m3112 Query : use flama_phc
20240805@213609.6117 6bfain0b13v14a1tv2c73m3112 Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240805@213609.6215 6bfain0b13v14a1tv2c73m3112 Query : use flama_phc
20240805@213609.6219 6bfain0b13v14a1tv2c73m3112 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240805@221912.4122 6favou5s7ofp0imt9ns6mav5j8 Query : use flama_phc
20240805@221912.4128 6favou5s7ofp0imt9ns6mav5j8 Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240805@221912.4245 6favou5s7ofp0imt9ns6mav5j8 Query : use flama_phc
20240805@221912.4249 6favou5s7ofp0imt9ns6mav5j8 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240805@223612.3438 2t5r8sqaope04j9tf47nvhfn2q Query : use flama_phc
20240805@223612.3443 2t5r8sqaope04j9tf47nvhfn2q Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240805@223612.3628 2t5r8sqaope04j9tf47nvhfn2q Query : use flama_phc
20240805@223612.3634 2t5r8sqaope04j9tf47nvhfn2q Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240805@231910.7212 5rdpd3juf0479qir2jq787viar Query : use flama_phc
20240805@231910.7218 5rdpd3juf0479qir2jq787viar Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240805@231910.7357 5rdpd3juf0479qir2jq787viar Query : use flama_phc
20240805@231910.7360 5rdpd3juf0479qir2jq787viar Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240805@233610.6491 1r36m1jub1r8l0e474gq9qc2i7 Query : use flama_phc
20240805@233610.6574 1r36m1jub1r8l0e474gq9qc2i7 Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240805@233610.6845 1r36m1jub1r8l0e474gq9qc2i7 Query : use flama_phc
20240805@233610.6848 1r36m1jub1r8l0e474gq9qc2i7 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240806@071911.6684 tpl8c2rlbh415q1ak7os498uv3 Query : use flama_phc
20240806@071911.6693 tpl8c2rlbh415q1ak7os498uv3 Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240806@071911.6893 tpl8c2rlbh415q1ak7os498uv3 Query : use flama_phc
20240806@071911.6903 tpl8c2rlbh415q1ak7os498uv3 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240806@073643.7072 66t3d4vfc01e91a6pu4ckqh3l8 Query : use flama_phc
20240806@073643.7076 66t3d4vfc01e91a6pu4ckqh3l8 Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240806@073643.7172 66t3d4vfc01e91a6pu4ckqh3l8 Query : use flama_phc
20240806@073643.7176 66t3d4vfc01e91a6pu4ckqh3l8 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240806@081909.2808 vj58n7o0datgod1bnib1s6gp4n Query : use flama_phc
20240806@081909.2815 vj58n7o0datgod1bnib1s6gp4n Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240806@081909.3279 vj58n7o0datgod1bnib1s6gp4n Query : use flama_phc
20240806@081909.3284 vj58n7o0datgod1bnib1s6gp4n Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240806@083609.4057 03db7okjhnj70hifrg2rgqd8ko Query : use flama_phc
20240806@083609.4099 03db7okjhnj70hifrg2rgqd8ko Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240806@083609.4295 03db7okjhnj70hifrg2rgqd8ko Query : use flama_phc
20240806@083609.4298 03db7okjhnj70hifrg2rgqd8ko Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240806@091907.5687 27ruffartam19aofipkf6dbruk Query : use flama_phc
20240806@091907.5691 27ruffartam19aofipkf6dbruk Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240806@091907.5825 27ruffartam19aofipkf6dbruk Query : use flama_phc
20240806@091907.5829 27ruffartam19aofipkf6dbruk Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240806@093607.8543 kvvkflr09htheqb3agi660ljs4 Query : use flama_phc
20240806@093607.8550 kvvkflr09htheqb3agi660ljs4 Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240806@093607.8644 kvvkflr09htheqb3agi660ljs4 Query : use flama_phc
20240806@093607.8648 kvvkflr09htheqb3agi660ljs4 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240806@100821.6152 mn810rlj2caghjjfild2gamteo Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240806@100821.6189 mn810rlj2caghjjfild2gamteo Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240806@100821.6364 mn810rlj2caghjjfild2gamteo Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1397';
20240806@100821.6423 mn810rlj2caghjjfild2gamteo Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1397';
20240806@100821.6492 mn810rlj2caghjjfild2gamteo Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1397';
20240806@100821.6517 mn810rlj2caghjjfild2gamteo Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1397';
20240806@100821.6558 mn810rlj2caghjjfild2gamteo Query : use flama_phc
20240806@100821.6561 mn810rlj2caghjjfild2gamteo Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240806@100821.6680 mn810rlj2caghjjfild2gamteo Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.686.00.01'
20240806@100821.6815 mn810rlj2caghjjfild2gamteo 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 = 2400404 and bi.ref ='324.686.00.01' and bi.lordem =20000
20240806@100821.7209 mn810rlj2caghjjfild2gamteo 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 = 'cps24041053291,472000002 ' 
20240806@100821.7544 mn810rlj2caghjjfild2gamteo Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.686.00.01'
20240806@100821.7567 mn810rlj2caghjjfild2gamteo 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 = 2400404 and bi.ref ='324.686.00.01' and bi.lordem =20000
20240806@100821.7601 mn810rlj2caghjjfild2gamteo 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 = 'cps24041053291,472000002 ' 
20240806@100821.7673 mn810rlj2caghjjfild2gamteo Query : use flama_phc
20240806@100821.7678 mn810rlj2caghjjfild2gamteo Query : select top 1 1 valor from ts where ts.ndos = 61
20240806@100821.7808 mn810rlj2caghjjfild2gamteo Query : use flama_phc
20240806@100821.7811 mn810rlj2caghjjfild2gamteo 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')
20240806@100821.7889 mn810rlj2caghjjfild2gamteo 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
20240806@100821.8066 mn810rlj2caghjjfild2gamteo Query : use flama_phc
20240806@100821.8070 mn810rlj2caghjjfild2gamteo Query : select top 1 ~inactivo valor from fl where no = '202549' and estab = 00 order by inactivo desc
20240806@100821.8272 mn810rlj2caghjjfild2gamteo Query : use flama_phc
20240806@100821.8275 mn810rlj2caghjjfild2gamteo Query : select 1 valor from ts where ndos = 61
20240806@100821.8369 mn810rlj2caghjjfild2gamteo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240806@100821.8763 mn810rlj2caghjjfild2gamteo Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bo' and documentnumber = 61
20240806@100821.8831 mn810rlj2caghjjfild2gamteo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240806@100821.8848 mn810rlj2caghjjfild2gamteo Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bo2' and documentnumber = 61
20240806@100821.8859 mn810rlj2caghjjfild2gamteo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240806@100821.8878 mn810rlj2caghjjfild2gamteo Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bo3' and documentnumber = 61
20240806@100821.8888 mn810rlj2caghjjfild2gamteo 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
20240806@100821.9036 mn810rlj2caghjjfild2gamteo Query : select top 1 bo.obrano valor from bo bo where bo.ndos = 61 and boano=2024 order by obrano desc
20240806@100821.9145 mn810rlj2caghjjfild2gamteo Query : select top 1 bo.obrano valor from bo bo where bo.ndos = 61 and boano=2024 order by obrano desc
20240806@100821.9168 mn810rlj2caghjjfild2gamteo Query : use flama_phc
20240806@100821.9176 mn810rlj2caghjjfild2gamteo Query : select top 1 no,estab,nome, morada, local,codpost,ncont,pncont,pais,inactivo,motiseimp,codmotiseimp from fl where no='202549' and estab=00
20240806@100821.9267 mn810rlj2caghjjfild2gamteo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240806@100821.9285 mn810rlj2caghjjfild2gamteo Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bo3' and documentnumber = 61
20240806@100821.9330 mn810rlj2caghjjfild2gamteo Query : insert into bo3 (bo3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66b1e3611066b1e805df',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut')
20240806@100821.9406 mn810rlj2caghjjfild2gamteo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240806@100821.9425 mn810rlj2caghjjfild2gamteo Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bo2' and documentnumber = 61
20240806@100821.9443 mn810rlj2caghjjfild2gamteo Query : insert into bo2 (bo2stamp, tiposaft, idserie,cambio,cambiofixo,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66b1e3611066b1e805df','--','bo',7.8660092807424593967 ,1,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut')
20240806@100821.9654 mn810rlj2caghjjfild2gamteo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240806@100821.9673 mn810rlj2caghjjfild2gamteo Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bo' and documentnumber = 61
20240806@100821.9691 mn810rlj2caghjjfild2gamteo 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 ('aut66b1e3611066b1e805df','guia r. fornecedor','2024-08-06',61,2402296,?,?,?,?,?,?,?,?,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')
20240806@100822.2960 mn810rlj2caghjjfild2gamteo Query : use flama_phc
20240806@100822.3010 mn810rlj2caghjjfild2gamteo Query : select st.usalote valor from st where st.ref = '324.686.00.01'
20240806@100822.4780 mn810rlj2caghjjfild2gamteo Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 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'
20240806@100822.7450 mn810rlj2caghjjfild2gamteo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240806@100822.7660 mn810rlj2caghjjfild2gamteo Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 61
20240806@100822.7830 mn810rlj2caghjjfild2gamteo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240806@100822.7990 mn810rlj2caghjjfild2gamteo Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 61
20240806@100822.8110 mn810rlj2caghjjfild2gamteo Query : select sestamp valor from se where ref ='324.686.00.01' and lote = 'r2400404200a'
20240806@100822.8690 mn810rlj2caghjjfild2gamteo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240806@100822.8890 mn810rlj2caghjjfild2gamteo Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'se' and documentnumber = 0
20240806@100822.9070 mn810rlj2caghjjfild2gamteo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240806@100822.9270 mn810rlj2caghjjfild2gamteo Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'se' and documentnumber = 0
20240806@100822.9460 mn810rlj2caghjjfild2gamteo Query : insert into se (sestamp,ref, lote, data,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66b1e6415566b1e80616',?,?,'20240806',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut;','aut;')
20240806@100822.1611 mn810rlj2caghjjfild2gamteo Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240806@100822.1699 mn810rlj2caghjjfild2gamteo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240806@100822.1721 mn810rlj2caghjjfild2gamteo Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 61
20240806@100822.1738 mn810rlj2caghjjfild2gamteo Query : insert into bi2 (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut66b1e9693766b1e80629','aut66b1e3611066b1e805df',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 = 'aut66b1e3611066b1e805df'
20240806@100822.1934 mn810rlj2caghjjfild2gamteo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240806@100822.1954 mn810rlj2caghjjfild2gamteo Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 61
20240806@100822.1978 mn810rlj2caghjjfild2gamteo 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 'aut66b1e9693766b1e80629',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut',bo.obrano, 813, 813*.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 ,34.48,34.48*200.48,34.48,34.48*200.48 ,0,0,'un ',' ' ,bo.marcada,1 ,34.48*813,34.48*813*200.48 ,40.765000,40.765000*200.48 ,40.765000,40.765000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,34.48,34.48*200.48,34.48*813,34.48*813*200.48,'cps24041053291,472000002 ',271.22,271.22*813,271.22,271.22*813,?,?,?,4 from bo bo where bo.bostamp = 'aut66b1e3611066b1e805df'
20240806@100822.9121 mn810rlj2caghjjfild2gamteo Query : use flama_phc
20240806@100822.9133 mn810rlj2caghjjfild2gamteo Query : select st.usalote valor from st where st.ref = '324.686.00.01'
20240806@100822.9158 mn810rlj2caghjjfild2gamteo Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 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'
20240806@100822.9176 mn810rlj2caghjjfild2gamteo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240806@100822.9206 mn810rlj2caghjjfild2gamteo Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 61
20240806@100822.9221 mn810rlj2caghjjfild2gamteo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240806@100822.9239 mn810rlj2caghjjfild2gamteo Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 61
20240806@100822.9249 mn810rlj2caghjjfild2gamteo Query : select sestamp valor from se where ref ='324.686.00.01' and lote = 'r2400404200a'
20240806@100822.9266 mn810rlj2caghjjfild2gamteo Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240806@100822.9283 mn810rlj2caghjjfild2gamteo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240806@100822.9300 mn810rlj2caghjjfild2gamteo Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 61
20240806@100822.9314 mn810rlj2caghjjfild2gamteo Query : insert into bi2 (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut66b1e8289866b1e806e2','aut66b1e3611066b1e805df',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 = 'aut66b1e3611066b1e805df'
20240806@100822.9510 mn810rlj2caghjjfild2gamteo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240806@100822.9530 mn810rlj2caghjjfild2gamteo Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 61
20240806@100822.9551 mn810rlj2caghjjfild2gamteo 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 'aut66b1e8289866b1e806e2',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut',bo.obrano, 2, 2*.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 ,34.48,34.48*200.48,34.48,34.48*200.48 ,0,0,'un ',' ' ,bo.marcada,1 ,34.48*2,34.48*2*200.48 ,36.449000,36.449000*200.48 ,36.449000,36.449000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,34.48,34.48*200.48,34.48*2,34.48*2*200.48,'cps24041053291,472000002 ',271.22,271.22*2,271.22,271.22*2,?,?,?,4 from bo bo where bo.bostamp = 'aut66b1e3611066b1e805df'
20240806@100823.9400 mn810rlj2caghjjfild2gamteo Query : use flama_phc
20240806@100823.9800 mn810rlj2caghjjfild2gamteo Query : declare @bostamp varchar(25) = 'aut66b1e3611066b1e805df' ,@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 
20240806@100829.7949 mn810rlj2caghjjfild2gamteo Query : use flama_phc
20240806@100829.7989 mn810rlj2caghjjfild2gamteo Query : select 1 valor from bo where bo.bostamp = 'aut66b1e3611066b1e805df'
20240806@100829.8177 mn810rlj2caghjjfild2gamteo 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) = 'aut66b1e3611066b1e805df' 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 
20240806@100831.9698 mn810rlj2caghjjfild2gamteo Query : use flama_phc
20240806@100831.9702 mn810rlj2caghjjfild2gamteo Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240806@100832.1064 mn810rlj2caghjjfild2gamteo Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1397';
20240806@100832.1097 mn810rlj2caghjjfild2gamteo Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1397';
20240806@101909.8222 ga9o3gognet1uqrneutj3t0j4e Query : use flama_phc
20240806@101909.8227 ga9o3gognet1uqrneutj3t0j4e Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240806@101909.8427 ga9o3gognet1uqrneutj3t0j4e Query : use flama_phc
20240806@101909.8432 ga9o3gognet1uqrneutj3t0j4e Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240806@102521.4645 aofs1vh27tjnp564ihr2jbg0ft Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240806@102521.4660 aofs1vh27tjnp564ihr2jbg0ft Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240806@102521.4717 aofs1vh27tjnp564ihr2jbg0ft Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1398';
20240806@102521.4778 aofs1vh27tjnp564ihr2jbg0ft Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1398';
20240806@102521.4829 aofs1vh27tjnp564ihr2jbg0ft Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1398';
20240806@102521.4853 aofs1vh27tjnp564ihr2jbg0ft Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1398';
20240806@102521.4891 aofs1vh27tjnp564ihr2jbg0ft Query : use flama_phc
20240806@102521.4895 aofs1vh27tjnp564ihr2jbg0ft Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240806@102521.4965 aofs1vh27tjnp564ihr2jbg0ft Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '328.9306.00.1'
20240806@102521.5103 aofs1vh27tjnp564ihr2jbg0ft 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 = 2400276 and bi.ref ='328.9306.00.1' and bi.lordem =10000
20240806@102521.5477 aofs1vh27tjnp564ihr2jbg0ft 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 = 'cps24060563422,851000003 ' 
20240806@102521.5994 aofs1vh27tjnp564ihr2jbg0ft Query : use flama_phc
20240806@102521.5999 aofs1vh27tjnp564ihr2jbg0ft Query : select top 1 1 valor from ts where ts.ndos = 61
20240806@102521.6032 aofs1vh27tjnp564ihr2jbg0ft Query : use flama_phc
20240806@102521.6036 aofs1vh27tjnp564ihr2jbg0ft 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')
20240806@102521.6064 aofs1vh27tjnp564ihr2jbg0ft 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
20240806@102521.6100 aofs1vh27tjnp564ihr2jbg0ft Query : use flama_phc
20240806@102521.6104 aofs1vh27tjnp564ihr2jbg0ft Query : select top 1 ~inactivo valor from fl where no = '202356' and estab = 00 order by inactivo desc
20240806@102521.6233 aofs1vh27tjnp564ihr2jbg0ft Query : use flama_phc
20240806@102521.6236 aofs1vh27tjnp564ihr2jbg0ft Query : select 1 valor from ts where ndos = 61
20240806@102521.6250 aofs1vh27tjnp564ihr2jbg0ft Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240806@102521.6266 aofs1vh27tjnp564ihr2jbg0ft Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bo' and documentnumber = 61
20240806@102521.6276 aofs1vh27tjnp564ihr2jbg0ft Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240806@102521.6301 aofs1vh27tjnp564ihr2jbg0ft Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bo2' and documentnumber = 61
20240806@102521.6310 aofs1vh27tjnp564ihr2jbg0ft Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240806@102521.6330 aofs1vh27tjnp564ihr2jbg0ft Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bo3' and documentnumber = 61
20240806@102521.6341 aofs1vh27tjnp564ihr2jbg0ft 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
20240806@102521.6356 aofs1vh27tjnp564ihr2jbg0ft Query : select top 1 bo.obrano valor from bo bo where bo.ndos = 61 and boano=2024 order by obrano desc
20240806@102521.6376 aofs1vh27tjnp564ihr2jbg0ft Query : select top 1 bo.obrano valor from bo bo where bo.ndos = 61 and boano=2024 order by obrano desc
20240806@102521.6395 aofs1vh27tjnp564ihr2jbg0ft Query : use flama_phc
20240806@102521.6402 aofs1vh27tjnp564ihr2jbg0ft Query : select top 1 no,estab,nome, morada, local,codpost,ncont,pncont,pais,inactivo,motiseimp,codmotiseimp from fl where no='202356' and estab=00
20240806@102521.6512 aofs1vh27tjnp564ihr2jbg0ft Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240806@102521.6533 aofs1vh27tjnp564ihr2jbg0ft Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bo3' and documentnumber = 61
20240806@102521.6546 aofs1vh27tjnp564ihr2jbg0ft Query : insert into bo3 (bo3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66b1e3102866b1ec019c',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut')
20240806@102521.6557 aofs1vh27tjnp564ihr2jbg0ft Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240806@102521.6573 aofs1vh27tjnp564ihr2jbg0ft Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bo2' and documentnumber = 61
20240806@102521.6585 aofs1vh27tjnp564ihr2jbg0ft Query : insert into bo2 (bo2stamp, tiposaft, idserie,cambio,cambiofixo,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66b1e3102866b1ec019c','--','bo',1.1161721688257417467 ,1,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut')
20240806@102521.6590 aofs1vh27tjnp564ihr2jbg0ft Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240806@102521.6606 aofs1vh27tjnp564ihr2jbg0ft Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bo' and documentnumber = 61
20240806@102521.6618 aofs1vh27tjnp564ihr2jbg0ft 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 ('aut66b1e3102866b1ec019c','guia r. fornecedor','2024-08-06',61,2402297,?,?,?,?,?,?,?,?,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')
20240806@102521.8060 aofs1vh27tjnp564ihr2jbg0ft Query : use flama_phc
20240806@102521.8066 aofs1vh27tjnp564ihr2jbg0ft Query : select st.usalote valor from st where st.ref = '328.9306.00.1'
20240806@102521.8099 aofs1vh27tjnp564ihr2jbg0ft Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '328.9306.00.1'
20240806@102521.8643 aofs1vh27tjnp564ihr2jbg0ft Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240806@102521.8671 aofs1vh27tjnp564ihr2jbg0ft Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 61
20240806@102521.8686 aofs1vh27tjnp564ihr2jbg0ft Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240806@102521.8705 aofs1vh27tjnp564ihr2jbg0ft Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 61
20240806@102521.8717 aofs1vh27tjnp564ihr2jbg0ft Query : select sestamp valor from se where ref ='328.9306.00.1' and lote = 'r2400276100a'
20240806@102521.8740 aofs1vh27tjnp564ihr2jbg0ft Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240806@102521.8761 aofs1vh27tjnp564ihr2jbg0ft Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'se' and documentnumber = 0
20240806@102521.8779 aofs1vh27tjnp564ihr2jbg0ft Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240806@102521.8800 aofs1vh27tjnp564ihr2jbg0ft Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'se' and documentnumber = 0
20240806@102521.8814 aofs1vh27tjnp564ihr2jbg0ft Query : insert into se (sestamp,ref, lote, data,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66b1e7617666b1ec01d6',?,?,'20240806',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut;','aut;')
20240806@102521.8895 aofs1vh27tjnp564ihr2jbg0ft Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240806@102521.8911 aofs1vh27tjnp564ihr2jbg0ft Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240806@102521.8930 aofs1vh27tjnp564ihr2jbg0ft Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 61
20240806@102521.8946 aofs1vh27tjnp564ihr2jbg0ft Query : insert into bi2 (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut66b1e5346966b1ec01d9','aut66b1e3102866b1ec019c',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 = 'aut66b1e3102866b1ec019c'
20240806@102521.9121 aofs1vh27tjnp564ihr2jbg0ft Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240806@102521.9142 aofs1vh27tjnp564ihr2jbg0ft Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 61
20240806@102521.9168 aofs1vh27tjnp564ihr2jbg0ft 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 'aut66b1e5346966b1ec01d9',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut',bo.obrano, 200, 200*.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 ,23.93,23.93*200.48,23.93,23.93*200.48 ,0,0,'un ','' ,bo.marcada,1 ,23.93*200,23.93*200*200.48 ,25.379000,25.379000*200.48 ,25.379000,25.379000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,23.93,23.93*200.48,23.93*200,23.93*200*200.48,'cps24060563422,851000003 ',26.71,26.71*200,26.71,26.71*200,?,?,?,4 from bo bo where bo.bostamp = 'aut66b1e3102866b1ec019c'
20240806@102522.1130 aofs1vh27tjnp564ihr2jbg0ft Query : use flama_phc
20240806@102522.1190 aofs1vh27tjnp564ihr2jbg0ft Query : declare @bostamp varchar(25) = 'aut66b1e3102866b1ec019c' ,@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 
20240806@102522.2696 aofs1vh27tjnp564ihr2jbg0ft Query : use flama_phc
20240806@102522.2719 aofs1vh27tjnp564ihr2jbg0ft Query : select 1 valor from bo where bo.bostamp = 'aut66b1e3102866b1ec019c'
20240806@102522.2740 aofs1vh27tjnp564ihr2jbg0ft 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) = 'aut66b1e3102866b1ec019c' 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 
20240806@102522.4836 aofs1vh27tjnp564ihr2jbg0ft Query : use flama_phc
20240806@102522.4840 aofs1vh27tjnp564ihr2jbg0ft Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240806@102522.4896 aofs1vh27tjnp564ihr2jbg0ft Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1398';
20240806@102522.4922 aofs1vh27tjnp564ihr2jbg0ft Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1398';
20240806@103609.4389 g7r2tngq19tedsnp2tgsghd98o Query : use flama_phc
20240806@103609.4394 g7r2tngq19tedsnp2tgsghd98o Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240806@103609.4504 g7r2tngq19tedsnp2tgsghd98o Query : use flama_phc
20240806@103609.4507 g7r2tngq19tedsnp2tgsghd98o Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240806@111908.7527 pij983bhres53r32rali5rfapb Query : use flama_phc
20240806@111908.7531 pij983bhres53r32rali5rfapb Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240806@111908.8829 pij983bhres53r32rali5rfapb Query : use flama_phc
20240806@111908.8833 pij983bhres53r32rali5rfapb Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240806@113608.3041 3ca7grdvtp8iqo3clu5qrsuk2h Query : use flama_phc
20240806@113608.3047 3ca7grdvtp8iqo3clu5qrsuk2h Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240806@113608.3143 3ca7grdvtp8iqo3clu5qrsuk2h Query : use flama_phc
20240806@113608.3147 3ca7grdvtp8iqo3clu5qrsuk2h Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240806@121908.2849 al8cttv66iskbe3haa6ksr6f4n Query : use flama_phc
20240806@121908.2874 al8cttv66iskbe3haa6ksr6f4n Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240806@121908.2978 al8cttv66iskbe3haa6ksr6f4n Query : use flama_phc
20240806@121908.2983 al8cttv66iskbe3haa6ksr6f4n Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240806@123608.2377 9skdfqcs1dq9632qaljp3ht0r0 Query : use flama_phc
20240806@123608.2381 9skdfqcs1dq9632qaljp3ht0r0 Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240806@123608.2478 9skdfqcs1dq9632qaljp3ht0r0 Query : use flama_phc
20240806@123608.2483 9skdfqcs1dq9632qaljp3ht0r0 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240806@131912.6119 5miuih5421neit1ht11ckdq8fo Query : use flama_phc
20240806@131912.6123 5miuih5421neit1ht11ckdq8fo Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240806@131912.6213 5miuih5421neit1ht11ckdq8fo Query : use flama_phc
20240806@131912.6216 5miuih5421neit1ht11ckdq8fo Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240806@133612.8894 728mcned4tjscegju2o3n00lep Query : use flama_phc
20240806@133612.8899 728mcned4tjscegju2o3n00lep Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240806@133612.9000 728mcned4tjscegju2o3n00lep Query : use flama_phc
20240806@133612.9003 728mcned4tjscegju2o3n00lep Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240806@141909.6907 vecoo3v2srkt2u6sotk7vou022 Query : use flama_phc
20240806@141909.6911 vecoo3v2srkt2u6sotk7vou022 Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240806@141909.6999 vecoo3v2srkt2u6sotk7vou022 Query : use flama_phc
20240806@141909.7002 vecoo3v2srkt2u6sotk7vou022 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240806@143609.6897 7j3nnsgqvhti45i353m7002p3r Query : use flama_phc
20240806@143609.6902 7j3nnsgqvhti45i353m7002p3r Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240806@143609.7007 7j3nnsgqvhti45i353m7002p3r Query : use flama_phc
20240806@143609.7011 7j3nnsgqvhti45i353m7002p3r Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240806@151912.2542 ju0qh3qo97s0qr449arjki20ee Query : use flama_phc
20240806@151912.2546 ju0qh3qo97s0qr449arjki20ee Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240806@151912.2662 ju0qh3qo97s0qr449arjki20ee Query : use flama_phc
20240806@151912.2665 ju0qh3qo97s0qr449arjki20ee Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240806@152702.1815 kviocgapfmo3cke89as5jk65ci Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240806@152702.1835 kviocgapfmo3cke89as5jk65ci Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240806@152702.1945 kviocgapfmo3cke89as5jk65ci Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1399';
20240806@152702.2004 kviocgapfmo3cke89as5jk65ci Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1399';
20240806@152702.2058 kviocgapfmo3cke89as5jk65ci Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1399';
20240806@152702.2082 kviocgapfmo3cke89as5jk65ci Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1399';
20240806@152702.2117 kviocgapfmo3cke89as5jk65ci Query : use flama_phc
20240806@152702.2120 kviocgapfmo3cke89as5jk65ci Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240806@152702.2190 kviocgapfmo3cke89as5jk65ci Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '328.9316.00.1'
20240806@152702.2321 kviocgapfmo3cke89as5jk65ci 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 = 2400092 and bi.ref ='328.9316.00.1' and bi.lordem =110000
20240806@152702.2648 kviocgapfmo3cke89as5jk65ci 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 = 'cps24012644794,794000008 ' 
20240806@152702.2939 kviocgapfmo3cke89as5jk65ci Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '328.9005.00.1'
20240806@152702.3043 kviocgapfmo3cke89as5jk65ci 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 = 2400092 and bi.ref ='328.9005.00.1' and bi.lordem =60000
20240806@152702.3425 kviocgapfmo3cke89as5jk65ci 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 = 'cps24022253000,202000009 ' 
20240806@152702.3910 kviocgapfmo3cke89as5jk65ci Query : use flama_phc
20240806@152702.3914 kviocgapfmo3cke89as5jk65ci Query : select top 1 1 valor from ts where ts.ndos = 61
20240806@152702.3950 kviocgapfmo3cke89as5jk65ci Query : use flama_phc
20240806@152702.3953 kviocgapfmo3cke89as5jk65ci 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')
20240806@152702.4000 kviocgapfmo3cke89as5jk65ci 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
20240806@152702.4044 kviocgapfmo3cke89as5jk65ci Query : use flama_phc
20240806@152702.4047 kviocgapfmo3cke89as5jk65ci Query : select top 1 ~inactivo valor from fl where no = '202356' and estab = 00 order by inactivo desc
20240806@152702.4099 kviocgapfmo3cke89as5jk65ci Query : use flama_phc
20240806@152702.4102 kviocgapfmo3cke89as5jk65ci Query : select 1 valor from ts where ndos = 61
20240806@152702.4119 kviocgapfmo3cke89as5jk65ci Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240806@152702.4141 kviocgapfmo3cke89as5jk65ci Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bo' and documentnumber = 61
20240806@152702.4179 kviocgapfmo3cke89as5jk65ci Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240806@152702.4194 kviocgapfmo3cke89as5jk65ci Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bo2' and documentnumber = 61
20240806@152702.4202 kviocgapfmo3cke89as5jk65ci Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240806@152702.4215 kviocgapfmo3cke89as5jk65ci Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bo3' and documentnumber = 61
20240806@152702.4224 kviocgapfmo3cke89as5jk65ci 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
20240806@152702.4245 kviocgapfmo3cke89as5jk65ci Query : select top 1 bo.obrano valor from bo bo where bo.ndos = 61 and boano=2024 order by obrano desc
20240806@152702.4271 kviocgapfmo3cke89as5jk65ci Query : select top 1 bo.obrano valor from bo bo where bo.ndos = 61 and boano=2024 order by obrano desc
20240806@152702.4289 kviocgapfmo3cke89as5jk65ci Query : use flama_phc
20240806@152702.4295 kviocgapfmo3cke89as5jk65ci Query : select top 1 no,estab,nome, morada, local,codpost,ncont,pncont,pais,inactivo,motiseimp,codmotiseimp from fl where no='202356' and estab=00
20240806@152702.4319 kviocgapfmo3cke89as5jk65ci Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240806@152702.4333 kviocgapfmo3cke89as5jk65ci Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bo3' and documentnumber = 61
20240806@152702.4351 kviocgapfmo3cke89as5jk65ci Query : insert into bo3 (bo3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66b234735666b232b668',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut')
20240806@152702.4356 kviocgapfmo3cke89as5jk65ci Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240806@152702.4369 kviocgapfmo3cke89as5jk65ci Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bo2' and documentnumber = 61
20240806@152702.4380 kviocgapfmo3cke89as5jk65ci Query : insert into bo2 (bo2stamp, tiposaft, idserie,cambio,cambiofixo,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66b234735666b232b668','--','bo',1.0945064197011155546 ,1,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut')
20240806@152702.4397 kviocgapfmo3cke89as5jk65ci Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240806@152702.4413 kviocgapfmo3cke89as5jk65ci Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bo' and documentnumber = 61
20240806@152702.4425 kviocgapfmo3cke89as5jk65ci 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 ('aut66b234735666b232b668','guia r. fornecedor','2024-08-06',61,2402298,?,?,?,?,?,?,?,?,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')
20240806@152702.4959 kviocgapfmo3cke89as5jk65ci Query : use flama_phc
20240806@152702.4962 kviocgapfmo3cke89as5jk65ci Query : select st.usalote valor from st where st.ref = '328.9316.00.1'
20240806@152702.5000 kviocgapfmo3cke89as5jk65ci Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '328.9316.00.1'
20240806@152702.5142 kviocgapfmo3cke89as5jk65ci Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240806@152702.5158 kviocgapfmo3cke89as5jk65ci Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 61
20240806@152702.5170 kviocgapfmo3cke89as5jk65ci Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240806@152702.5184 kviocgapfmo3cke89as5jk65ci Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 61
20240806@152702.5192 kviocgapfmo3cke89as5jk65ci Query : select sestamp valor from se where ref ='328.9316.00.1' and lote = 'r2400092110a'
20240806@152702.5213 kviocgapfmo3cke89as5jk65ci Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240806@152702.5227 kviocgapfmo3cke89as5jk65ci Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'se' and documentnumber = 0
20240806@152702.5236 kviocgapfmo3cke89as5jk65ci Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240806@152702.5250 kviocgapfmo3cke89as5jk65ci Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'se' and documentnumber = 0
20240806@152702.5261 kviocgapfmo3cke89as5jk65ci Query : insert into se (sestamp,ref, lote, data,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66b239821066b232b67f',?,?,'20240806',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut;','aut;')
20240806@152702.6256 kviocgapfmo3cke89as5jk65ci Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240806@152702.6277 kviocgapfmo3cke89as5jk65ci Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240806@152702.6297 kviocgapfmo3cke89as5jk65ci Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 61
20240806@152702.6308 kviocgapfmo3cke89as5jk65ci Query : insert into bi2 (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut66b232546966b232b699','aut66b234735666b232b668',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 = 'aut66b234735666b232b668'
20240806@152702.7506 kviocgapfmo3cke89as5jk65ci Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240806@152702.7539 kviocgapfmo3cke89as5jk65ci Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 61
20240806@152702.7557 kviocgapfmo3cke89as5jk65ci 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 'aut66b232546966b232b699',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut',bo.obrano, 200, 200*.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 ,27.720257692308,27.720257692308*200.48,27.720257692308,27.720257692308*200.48 ,0,0,'un ',' ' ,bo.marcada,1 ,27.720257692308*200,27.720257692308*200*200.48 ,29.241000,29.241000*200.48 ,29.241000,29.241000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,27.720257692308,27.720257692308*200.48,27.720257692308*200,27.720257692308*200*200.48,'cps24012644794,794000008 ',30.34,30.34*200,30.34,30.34*200,?,?,?,4 from bo bo where bo.bostamp = 'aut66b234735666b232b668'
20240806@152703.3087 kviocgapfmo3cke89as5jk65ci Query : use flama_phc
20240806@152703.3091 kviocgapfmo3cke89as5jk65ci Query : select st.usalote valor from st where st.ref = '328.9005.00.1'
20240806@152703.3113 kviocgapfmo3cke89as5jk65ci Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '328.9005.00.1'
20240806@152703.3253 kviocgapfmo3cke89as5jk65ci Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240806@152703.3269 kviocgapfmo3cke89as5jk65ci Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 61
20240806@152703.3282 kviocgapfmo3cke89as5jk65ci Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240806@152703.3297 kviocgapfmo3cke89as5jk65ci Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 61
20240806@152703.3313 kviocgapfmo3cke89as5jk65ci Query : select sestamp valor from se where ref ='328.9005.00.1' and lote = 'r2400092600a'
20240806@152703.3325 kviocgapfmo3cke89as5jk65ci Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240806@152703.3340 kviocgapfmo3cke89as5jk65ci Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'se' and documentnumber = 0
20240806@152703.3350 kviocgapfmo3cke89as5jk65ci Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240806@152703.3365 kviocgapfmo3cke89as5jk65ci Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'se' and documentnumber = 0
20240806@152703.3377 kviocgapfmo3cke89as5jk65ci Query : insert into se (sestamp,ref, lote, data,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66b231608066b232b751',?,?,'20240806',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut;','aut;')
20240806@152703.3438 kviocgapfmo3cke89as5jk65ci Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240806@152703.5408 kviocgapfmo3cke89as5jk65ci Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240806@152703.5428 kviocgapfmo3cke89as5jk65ci Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 61
20240806@152703.5440 kviocgapfmo3cke89as5jk65ci Query : insert into bi2 (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut66b230900366b232b784','aut66b234735666b232b668',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 = 'aut66b234735666b232b668'
20240806@152703.5608 kviocgapfmo3cke89as5jk65ci Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240806@152703.5625 kviocgapfmo3cke89as5jk65ci Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 61
20240806@152703.5641 kviocgapfmo3cke89as5jk65ci 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 'aut66b230900366b232b784',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut',bo.obrano, 200, 200*.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 ,47.51,47.51*200.48,47.51,47.51*200.48 ,0,0,'un',' ' ,bo.marcada,1 ,47.51*200,47.51*200*200.48 ,62.908000,62.908000*200.48 ,62.908000,62.908000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,47.51,47.51*200.48,47.51*200,47.51*200*200.48,'cps24022253000,202000009 ',52,52*200,52,52*200,?,?,?,4 from bo bo where bo.bostamp = 'aut66b234735666b232b668'
20240806@152703.6805 kviocgapfmo3cke89as5jk65ci Query : use flama_phc
20240806@152703.6809 kviocgapfmo3cke89as5jk65ci Query : declare @bostamp varchar(25) = 'aut66b234735666b232b668' ,@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 
20240806@152711.1849 kviocgapfmo3cke89as5jk65ci Query : use flama_phc
20240806@152711.1853 kviocgapfmo3cke89as5jk65ci Query : select 1 valor from bo where bo.bostamp = 'aut66b234735666b232b668'
20240806@152711.1877 kviocgapfmo3cke89as5jk65ci 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) = 'aut66b234735666b232b668' 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 
20240806@152711.3846 kviocgapfmo3cke89as5jk65ci Query : use flama_phc
20240806@152711.3849 kviocgapfmo3cke89as5jk65ci Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240806@152711.3907 kviocgapfmo3cke89as5jk65ci Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1399';
20240806@152711.3933 kviocgapfmo3cke89as5jk65ci Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1399';
20240806@153612.4687 0t3u1l1lnnrmi2acmbjghrttr3 Query : use flama_phc
20240806@153612.4693 0t3u1l1lnnrmi2acmbjghrttr3 Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240806@153612.4825 0t3u1l1lnnrmi2acmbjghrttr3 Query : use flama_phc
20240806@153612.4829 0t3u1l1lnnrmi2acmbjghrttr3 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240806@161911.6676 94hg07f0tabu8j8hocileec3jm Query : use flama_phc
20240806@161911.6680 94hg07f0tabu8j8hocileec3jm Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240806@161911.6771 94hg07f0tabu8j8hocileec3jm Query : use flama_phc
20240806@161911.6775 94hg07f0tabu8j8hocileec3jm Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240806@163611.8453 2huoi0ir1du3po1of777c2du89 Query : use flama_phc
20240806@163611.8457 2huoi0ir1du3po1of777c2du89 Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240806@163611.8549 2huoi0ir1du3po1of777c2du89 Query : use flama_phc
20240806@163611.8552 2huoi0ir1du3po1of777c2du89 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240806@165724.8543 ioon3gj5avcqpnfn92900fmurn Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240806@165724.8558 ioon3gj5avcqpnfn92900fmurn Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240806@165724.8623 ioon3gj5avcqpnfn92900fmurn Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1400';
20240806@165724.8685 ioon3gj5avcqpnfn92900fmurn Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1400';
20240806@165724.8765 ioon3gj5avcqpnfn92900fmurn Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1400';
20240806@165724.8804 ioon3gj5avcqpnfn92900fmurn Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1400';
20240806@165724.8866 ioon3gj5avcqpnfn92900fmurn Query : use flama_phc
20240806@165724.8870 ioon3gj5avcqpnfn92900fmurn Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240806@165724.8971 ioon3gj5avcqpnfn92900fmurn Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.1847.00.1'
20240806@165724.9096 ioon3gj5avcqpnfn92900fmurn 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 = 2400401 and bi.ref ='324.1847.00.1' and bi.lordem =15000
20240806@165724.9459 ioon3gj5avcqpnfn92900fmurn Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.1847.00.1'
20240806@165724.9485 ioon3gj5avcqpnfn92900fmurn 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 = 2400401 and bi.ref ='324.1847.00.1' and bi.lordem =2
20240806@165724.9795 ioon3gj5avcqpnfn92900fmurn Query : use flama_phc
20240806@165724.9798 ioon3gj5avcqpnfn92900fmurn Query : select top 1 1 valor from ts where ts.ndos = 61
20240806@165724.9845 ioon3gj5avcqpnfn92900fmurn Query : use flama_phc
20240806@165724.9848 ioon3gj5avcqpnfn92900fmurn 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')
20240806@165724.9889 ioon3gj5avcqpnfn92900fmurn 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
20240806@165724.9934 ioon3gj5avcqpnfn92900fmurn Query : use flama_phc
20240806@165724.9937 ioon3gj5avcqpnfn92900fmurn Query : select top 1 ~inactivo valor from fl where no = '202241' and estab = 00 order by inactivo desc
20240806@165725.5500 ioon3gj5avcqpnfn92900fmurn Query : use flama_phc
20240806@165725.5800 ioon3gj5avcqpnfn92900fmurn Query : select 1 valor from ts where ndos = 61
20240806@165725.7900 ioon3gj5avcqpnfn92900fmurn Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240806@165725.1020 ioon3gj5avcqpnfn92900fmurn Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bo' and documentnumber = 61
20240806@165725.1390 ioon3gj5avcqpnfn92900fmurn Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240806@165725.1550 ioon3gj5avcqpnfn92900fmurn Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bo2' and documentnumber = 61
20240806@165725.1640 ioon3gj5avcqpnfn92900fmurn Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240806@165725.1800 ioon3gj5avcqpnfn92900fmurn Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bo3' and documentnumber = 61
20240806@165725.1890 ioon3gj5avcqpnfn92900fmurn 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
20240806@165725.2110 ioon3gj5avcqpnfn92900fmurn Query : select top 1 bo.obrano valor from bo bo where bo.ndos = 61 and boano=2024 order by obrano desc
20240806@165725.2360 ioon3gj5avcqpnfn92900fmurn Query : select top 1 bo.obrano valor from bo bo where bo.ndos = 61 and boano=2024 order by obrano desc
20240806@165725.2540 ioon3gj5avcqpnfn92900fmurn Query : use flama_phc
20240806@165725.2600 ioon3gj5avcqpnfn92900fmurn Query : select top 1 no,estab,nome, morada, local,codpost,ncont,pncont,pais,inactivo,motiseimp,codmotiseimp from fl where no='202241' and estab=00
20240806@165725.3480 ioon3gj5avcqpnfn92900fmurn Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240806@165725.3650 ioon3gj5avcqpnfn92900fmurn Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bo3' and documentnumber = 61
20240806@165725.3840 ioon3gj5avcqpnfn92900fmurn Query : insert into bo3 (bo3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66b245570666b247e506',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut')
20240806@165725.3880 ioon3gj5avcqpnfn92900fmurn Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240806@165725.4040 ioon3gj5avcqpnfn92900fmurn Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bo2' and documentnumber = 61
20240806@165725.4160 ioon3gj5avcqpnfn92900fmurn Query : insert into bo2 (bo2stamp, tiposaft, idserie,cambio,cambiofixo,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66b245570666b247e506','--','bo',0 ,0,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut')
20240806@165725.6110 ioon3gj5avcqpnfn92900fmurn Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240806@165725.6270 ioon3gj5avcqpnfn92900fmurn Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bo' and documentnumber = 61
20240806@165725.6410 ioon3gj5avcqpnfn92900fmurn 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 ('aut66b245570666b247e506','guia r. fornecedor','2024-08-06',61,2402300,?,?,?,?,?,?,?,?,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')
20240806@165725.1083 ioon3gj5avcqpnfn92900fmurn Query : use flama_phc
20240806@165725.1086 ioon3gj5avcqpnfn92900fmurn Query : select st.usalote valor from st where st.ref = '324.1847.00.1'
20240806@165725.1120 ioon3gj5avcqpnfn92900fmurn Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.1847.00.1'
20240806@165725.1275 ioon3gj5avcqpnfn92900fmurn Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240806@165725.1291 ioon3gj5avcqpnfn92900fmurn Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 61
20240806@165725.1306 ioon3gj5avcqpnfn92900fmurn Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240806@165725.1321 ioon3gj5avcqpnfn92900fmurn Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 61
20240806@165725.1330 ioon3gj5avcqpnfn92900fmurn Query : select sestamp valor from se where ref ='324.1847.00.1' and lote = 'r2400401100a'
20240806@165725.1352 ioon3gj5avcqpnfn92900fmurn Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240806@165725.1368 ioon3gj5avcqpnfn92900fmurn Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'se' and documentnumber = 0
20240806@165725.1379 ioon3gj5avcqpnfn92900fmurn Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240806@165725.1394 ioon3gj5avcqpnfn92900fmurn Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'se' and documentnumber = 0
20240806@165725.1409 ioon3gj5avcqpnfn92900fmurn Query : insert into se (sestamp,ref, lote, data,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66b248462266b247e521',?,?,'20240806',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut;','aut;')
20240806@165725.1476 ioon3gj5avcqpnfn92900fmurn Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240806@165725.1497 ioon3gj5avcqpnfn92900fmurn Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240806@165725.1513 ioon3gj5avcqpnfn92900fmurn Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 61
20240806@165725.1525 ioon3gj5avcqpnfn92900fmurn Query : insert into bi2 (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut66b242260666b247e524','aut66b245570666b247e506',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 = 'aut66b245570666b247e506'
20240806@165725.1697 ioon3gj5avcqpnfn92900fmurn Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240806@165725.1715 ioon3gj5avcqpnfn92900fmurn Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 61
20240806@165725.1732 ioon3gj5avcqpnfn92900fmurn 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,eslvu,slvu,esltt,sltt,vumoeda,ttmoeda,slvumoeda,slttmoeda,lote,armazem,obistamp ,stipo) select 'aut66b242260666b247e524',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut',bo.obrano, 1327, 1327*.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 ,0,0*200.48,0,0*200.48 ,0,0,'un ','' ,bo.marcada,1 ,0*1327,0*1327*200.48 ,27.020000,27.020000*200.48 ,27.020000,27.020000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0*200.48,0*1327,0*1327*200.48,0,0*1327,0,0*1327,?,?,?,4 from bo bo where bo.bostamp = 'aut66b245570666b247e506'
20240806@165725.2049 ioon3gj5avcqpnfn92900fmurn Query : use flama_phc
20240806@165725.2052 ioon3gj5avcqpnfn92900fmurn Query : select st.usalote valor from st where st.ref = '324.1847.00.1'
20240806@165725.2107 ioon3gj5avcqpnfn92900fmurn Query : use flama_phc
20240806@165725.2110 ioon3gj5avcqpnfn92900fmurn Query : select top 1 errorresult result ,errornumber errornumber ,descriptionpt description ,isnull(descriptionen,'') descriptionen ,isnull(descriptionfr,'') descriptionfr from wserrorcodes where errornumber = -110
20240806@165725.2203 ioon3gj5avcqpnfn92900fmurn Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1400';
20240806@165725.2228 ioon3gj5avcqpnfn92900fmurn Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1400';
20240806@171912.5312 qfd11a1e11o18vfhjfib1mh8cf Query : use flama_phc
20240806@171912.5319 qfd11a1e11o18vfhjfib1mh8cf Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240806@171912.5408 qfd11a1e11o18vfhjfib1mh8cf Query : use flama_phc
20240806@171912.5412 qfd11a1e11o18vfhjfib1mh8cf Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240806@172802.8391 bg19fschtmb2gq0ud4hbc5mtjo Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240806@172802.8403 bg19fschtmb2gq0ud4hbc5mtjo Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240806@172802.8452 bg19fschtmb2gq0ud4hbc5mtjo Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1401';
20240806@172802.8521 bg19fschtmb2gq0ud4hbc5mtjo Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1401';
20240806@172802.8566 bg19fschtmb2gq0ud4hbc5mtjo Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1401';
20240806@172802.8589 bg19fschtmb2gq0ud4hbc5mtjo Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1401';
20240806@172802.8632 bg19fschtmb2gq0ud4hbc5mtjo Query : use flama_phc
20240806@172802.8635 bg19fschtmb2gq0ud4hbc5mtjo Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240806@172802.8707 bg19fschtmb2gq0ud4hbc5mtjo Query : use flama_phc
20240806@172802.8710 bg19fschtmb2gq0ud4hbc5mtjo Query : select no, estab,szadrsdesc from szadrs where u_coddest=4804
20240806@172802.8788 bg19fschtmb2gq0ud4hbc5mtjo Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '304.422.00.07'
20240806@172802.8939 bg19fschtmb2gq0ud4hbc5mtjo Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '304.422.00.07'
20240806@172802.8959 bg19fschtmb2gq0ud4hbc5mtjo 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'
20240806@172802.9096 bg19fschtmb2gq0ud4hbc5mtjo Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.4521.00.1'
20240806@172802.9225 bg19fschtmb2gq0ud4hbc5mtjo Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.4960.00.1'
20240806@172802.9366 bg19fschtmb2gq0ud4hbc5mtjo Query : use flama_phc
20240806@172802.9369 bg19fschtmb2gq0ud4hbc5mtjo Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20240806@172802.9556 bg19fschtmb2gq0ud4hbc5mtjo Query : use flama_phc
20240806@172802.9560 bg19fschtmb2gq0ud4hbc5mtjo Query : select top 1 1 valor from td where td.ndoc = 39
20240806@172803.7230 bg19fschtmb2gq0ud4hbc5mtjo Query : use flama_phc
20240806@172803.7270 bg19fschtmb2gq0ud4hbc5mtjo 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')
20240806@172803.7620 bg19fschtmb2gq0ud4hbc5mtjo 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
20240806@172803.9010 bg19fschtmb2gq0ud4hbc5mtjo Query : use flama_phc
20240806@172803.9040 bg19fschtmb2gq0ud4hbc5mtjo Query : select top 1 ~inactivo valor from cl where no = '101900' and estab = 0 order by inactivo desc
20240806@172803.1021 bg19fschtmb2gq0ud4hbc5mtjo Query : use flama_phc
20240806@172803.1024 bg19fschtmb2gq0ud4hbc5mtjo Query : select top 1 tipodoc,regrd from td where ndoc = 39
20240806@172803.1105 bg19fschtmb2gq0ud4hbc5mtjo Query : use flama_phc
20240806@172803.1108 bg19fschtmb2gq0ud4hbc5mtjo Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20240806@172803.1174 bg19fschtmb2gq0ud4hbc5mtjo Query : use flama_phc
20240806@172803.1177 bg19fschtmb2gq0ud4hbc5mtjo Query : select szadrsstamp valor from szadrs where szadrsdesc='101900 - pd - alfena n/p'
20240806@172803.1227 bg19fschtmb2gq0ud4hbc5mtjo Query : use flama_phc
20240806@172803.1229 bg19fschtmb2gq0ud4hbc5mtjo Query : select 1 valor from td where ndoc = 39
20240806@172803.1290 bg19fschtmb2gq0ud4hbc5mtjo Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20240806@172803.1346 bg19fschtmb2gq0ud4hbc5mtjo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240806@172803.1362 bg19fschtmb2gq0ud4hbc5mtjo Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20240806@172803.1384 bg19fschtmb2gq0ud4hbc5mtjo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240806@172803.1400 bg19fschtmb2gq0ud4hbc5mtjo Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20240806@172803.1445 bg19fschtmb2gq0ud4hbc5mtjo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240806@172803.1460 bg19fschtmb2gq0ud4hbc5mtjo Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20240806@172803.1474 bg19fschtmb2gq0ud4hbc5mtjo Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240806@172803.1660 bg19fschtmb2gq0ud4hbc5mtjo Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240806@172803.1755 bg19fschtmb2gq0ud4hbc5mtjo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240806@172803.1771 bg19fschtmb2gq0ud4hbc5mtjo Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20240806@172803.1788 bg19fschtmb2gq0ud4hbc5mtjo Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut66b247319266b24f1324' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20240806@172803.2095 bg19fschtmb2gq0ud4hbc5mtjo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240806@172803.2112 bg19fschtmb2gq0ud4hbc5mtjo Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20240806@172803.2151 bg19fschtmb2gq0ud4hbc5mtjo Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20240806@172803.2244 bg19fschtmb2gq0ud4hbc5mtjo Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20240806@172803.2318 bg19fschtmb2gq0ud4hbc5mtjo Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20240806@172803.2413 bg19fschtmb2gq0ud4hbc5mtjo Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20240806@172803.2490 bg19fschtmb2gq0ud4hbc5mtjo Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20240806@172803.2562 bg19fschtmb2gq0ud4hbc5mtjo Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20240806@172803.2633 bg19fschtmb2gq0ud4hbc5mtjo Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut66b247319266b24f1324',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20240806@172803.5008 bg19fschtmb2gq0ud4hbc5mtjo Query : select top 1 fno valor from wsftdata order by fno desc
20240806@172803.5099 bg19fschtmb2gq0ud4hbc5mtjo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240806@172803.5116 bg19fschtmb2gq0ud4hbc5mtjo Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20240806@172803.5144 bg19fschtmb2gq0ud4hbc5mtjo Query : select 'normal' from dummy
20240806@172803.5191 bg19fschtmb2gq0ud4hbc5mtjo Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut66b247319266b24f1324',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',225,101900,0,'2024-08-06',39,'euro',0,0,2024 ,?,?)
20240806@172803.5721 bg19fschtmb2gq0ud4hbc5mtjo Query : use flama_phc
20240806@172803.5725 bg19fschtmb2gq0ud4hbc5mtjo Query : select st.usalote valor from st where st.ref = '304.422.00.07'
20240806@172803.5750 bg19fschtmb2gq0ud4hbc5mtjo Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '304.422.00.07'
20240806@172803.5898 bg19fschtmb2gq0ud4hbc5mtjo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240806@172803.5914 bg19fschtmb2gq0ud4hbc5mtjo Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240806@172803.5945 bg19fschtmb2gq0ud4hbc5mtjo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240806@172803.5960 bg19fschtmb2gq0ud4hbc5mtjo Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240806@172803.5969 bg19fschtmb2gq0ud4hbc5mtjo Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240806@172803.5982 bg19fschtmb2gq0ud4hbc5mtjo Query : select sestamp valor from se where ref ='304.422.00.07' and lote = '230572'
20240806@172803.6009 bg19fschtmb2gq0ud4hbc5mtjo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240806@172803.6024 bg19fschtmb2gq0ud4hbc5mtjo Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240806@172803.6037 bg19fschtmb2gq0ud4hbc5mtjo Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66b240115266b24f1392','aut66b247319266b24f1324' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240806@172803.6103 bg19fschtmb2gq0ud4hbc5mtjo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240806@172803.6119 bg19fschtmb2gq0ud4hbc5mtjo Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240806@172803.6150 bg19fschtmb2gq0ud4hbc5mtjo Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem) values ('aut66b240115266b24f1392',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',4.000 ,'aut66b247319266b24f1324' ,0,0 ,2,23.00,10000,?,?,?,?)
20240806@172803.6558 bg19fschtmb2gq0ud4hbc5mtjo Query : use flama_phc
20240806@172803.6561 bg19fschtmb2gq0ud4hbc5mtjo Query : select st.usalote valor from st where st.ref = '304.422.00.07'
20240806@172803.6583 bg19fschtmb2gq0ud4hbc5mtjo Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '304.422.00.07'
20240806@172803.6597 bg19fschtmb2gq0ud4hbc5mtjo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240806@172803.6614 bg19fschtmb2gq0ud4hbc5mtjo Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240806@172803.6641 bg19fschtmb2gq0ud4hbc5mtjo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240806@172803.6656 bg19fschtmb2gq0ud4hbc5mtjo Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240806@172803.6665 bg19fschtmb2gq0ud4hbc5mtjo Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240806@172803.6678 bg19fschtmb2gq0ud4hbc5mtjo Query : select sestamp valor from se where ref ='304.422.00.07' and lote = '240647'
20240806@172803.6704 bg19fschtmb2gq0ud4hbc5mtjo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240806@172803.6718 bg19fschtmb2gq0ud4hbc5mtjo Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240806@172803.6731 bg19fschtmb2gq0ud4hbc5mtjo Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66b247560366b24f13a3','aut66b247319266b24f1324' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240806@172803.6735 bg19fschtmb2gq0ud4hbc5mtjo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240806@172803.6750 bg19fschtmb2gq0ud4hbc5mtjo Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240806@172803.6779 bg19fschtmb2gq0ud4hbc5mtjo Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem) values ('aut66b247560366b24f13a3',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',4.000 ,'aut66b247319266b24f1324' ,0,0 ,2,23.00,20000,?,?,?,?)
20240806@172803.7022 bg19fschtmb2gq0ud4hbc5mtjo Query : use flama_phc
20240806@172803.7025 bg19fschtmb2gq0ud4hbc5mtjo Query : select st.usalote valor from st where st.ref = '304.421.00.04'
20240806@172803.7045 bg19fschtmb2gq0ud4hbc5mtjo Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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'
20240806@172803.7184 bg19fschtmb2gq0ud4hbc5mtjo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240806@172803.7199 bg19fschtmb2gq0ud4hbc5mtjo Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240806@172803.7227 bg19fschtmb2gq0ud4hbc5mtjo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240806@172803.7248 bg19fschtmb2gq0ud4hbc5mtjo Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240806@172803.7257 bg19fschtmb2gq0ud4hbc5mtjo Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240806@172803.7288 bg19fschtmb2gq0ud4hbc5mtjo Query : select sestamp valor from se where ref ='304.421.00.04' and lote = '240896'
20240806@172803.7308 bg19fschtmb2gq0ud4hbc5mtjo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240806@172803.7325 bg19fschtmb2gq0ud4hbc5mtjo Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240806@172803.7336 bg19fschtmb2gq0ud4hbc5mtjo Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66b241749066b24f13b2','aut66b247319266b24f1324' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240806@172803.7340 bg19fschtmb2gq0ud4hbc5mtjo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240806@172803.7355 bg19fschtmb2gq0ud4hbc5mtjo Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240806@172803.7383 bg19fschtmb2gq0ud4hbc5mtjo Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem) values ('aut66b241749066b24f13b2',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',4.000 ,'aut66b247319266b24f1324' ,0,0 ,2,23.00,30000,?,?,?,?)
20240806@172803.7653 bg19fschtmb2gq0ud4hbc5mtjo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240806@172803.7669 bg19fschtmb2gq0ud4hbc5mtjo Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240806@172803.7696 bg19fschtmb2gq0ud4hbc5mtjo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240806@172803.7712 bg19fschtmb2gq0ud4hbc5mtjo Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240806@172803.7721 bg19fschtmb2gq0ud4hbc5mtjo Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240806@172803.7734 bg19fschtmb2gq0ud4hbc5mtjo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240806@172803.7750 bg19fschtmb2gq0ud4hbc5mtjo Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240806@172803.7765 bg19fschtmb2gq0ud4hbc5mtjo Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66b243356766b24f13bc','aut66b247319266b24f1324' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240806@172803.7769 bg19fschtmb2gq0ud4hbc5mtjo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240806@172803.7784 bg19fschtmb2gq0ud4hbc5mtjo Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240806@172803.7812 bg19fschtmb2gq0ud4hbc5mtjo Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66b243356766b24f13bc',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66b247319266b24f1324' ,0,0 ,2,23.00,40000,?,?,?)
20240806@172803.8260 bg19fschtmb2gq0ud4hbc5mtjo Query : use flama_phc
20240806@172803.8493 bg19fschtmb2gq0ud4hbc5mtjo Query : select st.usalote valor from st where st.ref = '324.4521.00.1'
20240806@172803.8646 bg19fschtmb2gq0ud4hbc5mtjo Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 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'
20240806@172803.8788 bg19fschtmb2gq0ud4hbc5mtjo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240806@172803.8803 bg19fschtmb2gq0ud4hbc5mtjo Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240806@172803.8830 bg19fschtmb2gq0ud4hbc5mtjo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240806@172803.8845 bg19fschtmb2gq0ud4hbc5mtjo Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240806@172803.8853 bg19fschtmb2gq0ud4hbc5mtjo Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240806@172803.8865 bg19fschtmb2gq0ud4hbc5mtjo Query : select sestamp valor from se where ref ='324.4521.00.1' and lote = 'r2400052200a'
20240806@172803.8879 bg19fschtmb2gq0ud4hbc5mtjo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240806@172803.8909 bg19fschtmb2gq0ud4hbc5mtjo Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240806@172803.8920 bg19fschtmb2gq0ud4hbc5mtjo Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66b245034766b24f13d8','aut66b247319266b24f1324' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240806@172803.8924 bg19fschtmb2gq0ud4hbc5mtjo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240806@172803.8939 bg19fschtmb2gq0ud4hbc5mtjo Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240806@172803.8967 bg19fschtmb2gq0ud4hbc5mtjo Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem) values ('aut66b245034766b24f13d8',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',4.000 ,'aut66b247319266b24f1324' ,0,0 ,2,23.00,60000,?,?,?,?)
20240806@172803.9954 bg19fschtmb2gq0ud4hbc5mtjo Query : use flama_phc
20240806@172804.3500 bg19fschtmb2gq0ud4hbc5mtjo Query : select st.usalote valor from st where st.ref = '324.4960.00.1'
20240806@172804.3530 bg19fschtmb2gq0ud4hbc5mtjo Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 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'
20240806@172804.4960 bg19fschtmb2gq0ud4hbc5mtjo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240806@172804.5120 bg19fschtmb2gq0ud4hbc5mtjo Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240806@172804.5380 bg19fschtmb2gq0ud4hbc5mtjo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240806@172804.5520 bg19fschtmb2gq0ud4hbc5mtjo Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240806@172804.5600 bg19fschtmb2gq0ud4hbc5mtjo Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240806@172804.5720 bg19fschtmb2gq0ud4hbc5mtjo Query : select sestamp valor from se where ref ='324.4960.00.1' and lote = 'r2100754100a'
20240806@172804.5990 bg19fschtmb2gq0ud4hbc5mtjo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240806@172804.6130 bg19fschtmb2gq0ud4hbc5mtjo Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240806@172804.6260 bg19fschtmb2gq0ud4hbc5mtjo Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66b245541266b24f140e','aut66b247319266b24f1324' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240806@172804.6300 bg19fschtmb2gq0ud4hbc5mtjo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240806@172804.6450 bg19fschtmb2gq0ud4hbc5mtjo Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240806@172804.6860 bg19fschtmb2gq0ud4hbc5mtjo Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem) values ('aut66b245541266b24f140e',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',24.000 ,'aut66b247319266b24f1324' ,0,0 ,2,23.00,70000,?,?,?,?)
20240806@172804.9500 bg19fschtmb2gq0ud4hbc5mtjo Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut66b247319266b24f1324','2405220','wait',39,'adm09112754980.682000002')
20240806@172804.1045 bg19fschtmb2gq0ud4hbc5mtjo Query : use flama_phc
20240806@172804.1049 bg19fschtmb2gq0ud4hbc5mtjo Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240806@172804.1084 bg19fschtmb2gq0ud4hbc5mtjo Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1401';
20240806@172804.1108 bg19fschtmb2gq0ud4hbc5mtjo Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1401';
20240806@172804.1143 bg19fschtmb2gq0ud4hbc5mtjo Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1401';
20240806@172804.1167 bg19fschtmb2gq0ud4hbc5mtjo Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1401';
20240806@172804.1913 rfud4cm00nhnhkat0nkq3ep7vo Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240806@172804.1924 rfud4cm00nhnhkat0nkq3ep7vo Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240806@172804.1972 rfud4cm00nhnhkat0nkq3ep7vo Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1402';
20240806@172804.2022 rfud4cm00nhnhkat0nkq3ep7vo Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1402';
20240806@172804.2086 rfud4cm00nhnhkat0nkq3ep7vo Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1402';
20240806@172804.2112 rfud4cm00nhnhkat0nkq3ep7vo Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1402';
20240806@172804.2169 rfud4cm00nhnhkat0nkq3ep7vo Query : use flama_phc
20240806@172804.2174 rfud4cm00nhnhkat0nkq3ep7vo Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240806@172804.2239 rfud4cm00nhnhkat0nkq3ep7vo Query : use flama_phc
20240806@172804.2242 rfud4cm00nhnhkat0nkq3ep7vo Query : select no, estab,szadrsdesc from szadrs where u_coddest=2459
20240806@172804.2321 rfud4cm00nhnhkat0nkq3ep7vo Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '327.8253.00.1'
20240806@172804.2484 rfud4cm00nhnhkat0nkq3ep7vo Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '327.8253.00.1'
20240806@172804.2504 rfud4cm00nhnhkat0nkq3ep7vo Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '327.8253.00.1'
20240806@172804.2523 rfud4cm00nhnhkat0nkq3ep7vo Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '327.8253.00.1'
20240806@172804.2542 rfud4cm00nhnhkat0nkq3ep7vo Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '327.8261.00.1'
20240806@172804.2670 rfud4cm00nhnhkat0nkq3ep7vo Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '327.8261.00.1'
20240806@172804.2689 rfud4cm00nhnhkat0nkq3ep7vo Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '327.8261.00.1'
20240806@172804.2711 rfud4cm00nhnhkat0nkq3ep7vo Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '327.8261.00.1'
20240806@172804.2731 rfud4cm00nhnhkat0nkq3ep7vo Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1803.00.1'
20240806@172804.2858 rfud4cm00nhnhkat0nkq3ep7vo Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1803.00.1'
20240806@172804.2880 rfud4cm00nhnhkat0nkq3ep7vo Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1803.00.1'
20240806@172804.2900 rfud4cm00nhnhkat0nkq3ep7vo Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1805.00.1'
20240806@172804.3027 rfud4cm00nhnhkat0nkq3ep7vo Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1805.00.1'
20240806@172804.3048 rfud4cm00nhnhkat0nkq3ep7vo Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1805.00.1'
20240806@172804.3071 rfud4cm00nhnhkat0nkq3ep7vo Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1805.00.1'
20240806@172804.3092 rfud4cm00nhnhkat0nkq3ep7vo Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1805.00.1'
20240806@172804.3118 rfud4cm00nhnhkat0nkq3ep7vo 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'
20240806@172804.3267 rfud4cm00nhnhkat0nkq3ep7vo 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'
20240806@172804.3287 rfud4cm00nhnhkat0nkq3ep7vo 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'
20240806@172804.3306 rfud4cm00nhnhkat0nkq3ep7vo 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'
20240806@172804.3324 rfud4cm00nhnhkat0nkq3ep7vo 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'
20240806@172804.3344 rfud4cm00nhnhkat0nkq3ep7vo 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'
20240806@172804.3363 rfud4cm00nhnhkat0nkq3ep7vo 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'
20240806@172804.3383 rfud4cm00nhnhkat0nkq3ep7vo 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'
20240806@172804.3401 rfud4cm00nhnhkat0nkq3ep7vo 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'
20240806@172804.3419 rfud4cm00nhnhkat0nkq3ep7vo 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'
20240806@172804.3442 rfud4cm00nhnhkat0nkq3ep7vo 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'
20240806@172804.3464 rfud4cm00nhnhkat0nkq3ep7vo 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'
20240806@172804.3483 rfud4cm00nhnhkat0nkq3ep7vo 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'
20240806@172804.3501 rfud4cm00nhnhkat0nkq3ep7vo 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'
20240806@172804.3519 rfud4cm00nhnhkat0nkq3ep7vo 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'
20240806@172804.3539 rfud4cm00nhnhkat0nkq3ep7vo Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1831.00.2'
20240806@172804.3688 rfud4cm00nhnhkat0nkq3ep7vo Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1831.00.2'
20240806@172804.3707 rfud4cm00nhnhkat0nkq3ep7vo Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1831.00.2'
20240806@172804.3725 rfud4cm00nhnhkat0nkq3ep7vo Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1837.00.1'
20240806@172804.3867 rfud4cm00nhnhkat0nkq3ep7vo Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1837.00.1'
20240806@172804.3886 rfud4cm00nhnhkat0nkq3ep7vo Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1837.00.1'
20240806@172804.3906 rfud4cm00nhnhkat0nkq3ep7vo Query : use flama_phc
20240806@172804.3909 rfud4cm00nhnhkat0nkq3ep7vo Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20240806@172804.3953 rfud4cm00nhnhkat0nkq3ep7vo Query : use flama_phc
20240806@172804.3956 rfud4cm00nhnhkat0nkq3ep7vo Query : select top 1 1 valor from td where td.ndoc = 39
20240806@172804.3984 rfud4cm00nhnhkat0nkq3ep7vo Query : use flama_phc
20240806@172804.3987 rfud4cm00nhnhkat0nkq3ep7vo 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')
20240806@172804.4016 rfud4cm00nhnhkat0nkq3ep7vo 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
20240806@172804.4050 rfud4cm00nhnhkat0nkq3ep7vo Query : use flama_phc
20240806@172804.4053 rfud4cm00nhnhkat0nkq3ep7vo Query : select top 1 ~inactivo valor from cl where no = '200500' and estab = 0 order by inactivo desc
20240806@172804.6098 rfud4cm00nhnhkat0nkq3ep7vo Query : use flama_phc
20240806@172804.6102 rfud4cm00nhnhkat0nkq3ep7vo Query : select top 1 tipodoc,regrd from td where ndoc = 39
20240806@172804.6141 rfud4cm00nhnhkat0nkq3ep7vo Query : use flama_phc
20240806@172804.6144 rfud4cm00nhnhkat0nkq3ep7vo Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20240806@172804.6185 rfud4cm00nhnhkat0nkq3ep7vo Query : use flama_phc
20240806@172804.6188 rfud4cm00nhnhkat0nkq3ep7vo Query : select szadrsstamp valor from szadrs where szadrsdesc='eldisser, s.a.'
20240806@172804.6235 rfud4cm00nhnhkat0nkq3ep7vo Query : use flama_phc
20240806@172804.6238 rfud4cm00nhnhkat0nkq3ep7vo Query : select 1 valor from td where ndoc = 39
20240806@172804.6250 rfud4cm00nhnhkat0nkq3ep7vo Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20240806@172804.6264 rfud4cm00nhnhkat0nkq3ep7vo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240806@172804.6281 rfud4cm00nhnhkat0nkq3ep7vo Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20240806@172804.6301 rfud4cm00nhnhkat0nkq3ep7vo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240806@172804.6316 rfud4cm00nhnhkat0nkq3ep7vo Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20240806@172804.6346 rfud4cm00nhnhkat0nkq3ep7vo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240806@172804.6361 rfud4cm00nhnhkat0nkq3ep7vo Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20240806@172804.6374 rfud4cm00nhnhkat0nkq3ep7vo Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240806@172804.6446 rfud4cm00nhnhkat0nkq3ep7vo Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240806@172804.6459 rfud4cm00nhnhkat0nkq3ep7vo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240806@172804.6680 rfud4cm00nhnhkat0nkq3ep7vo Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20240806@172804.6696 rfud4cm00nhnhkat0nkq3ep7vo Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut66b244383066b24f149b' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20240806@172804.6872 rfud4cm00nhnhkat0nkq3ep7vo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240806@172804.6889 rfud4cm00nhnhkat0nkq3ep7vo Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20240806@172804.6927 rfud4cm00nhnhkat0nkq3ep7vo Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20240806@172804.6940 rfud4cm00nhnhkat0nkq3ep7vo Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20240806@172804.6952 rfud4cm00nhnhkat0nkq3ep7vo Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20240806@172804.6963 rfud4cm00nhnhkat0nkq3ep7vo Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20240806@172804.6976 rfud4cm00nhnhkat0nkq3ep7vo Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20240806@172804.6988 rfud4cm00nhnhkat0nkq3ep7vo Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20240806@172804.7000 rfud4cm00nhnhkat0nkq3ep7vo Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut66b244383066b24f149b',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20240806@172804.7267 rfud4cm00nhnhkat0nkq3ep7vo Query : select top 1 fno valor from wsftdata order by fno desc
20240806@172804.7285 rfud4cm00nhnhkat0nkq3ep7vo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240806@172804.7301 rfud4cm00nhnhkat0nkq3ep7vo Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20240806@172804.7326 rfud4cm00nhnhkat0nkq3ep7vo Query : select 'normal' from dummy
20240806@172804.7346 rfud4cm00nhnhkat0nkq3ep7vo Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut66b244383066b24f149b',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',226,200500,0,'2024-08-06',39,'euro',0,0,2024 ,?,?)
20240806@172804.7650 rfud4cm00nhnhkat0nkq3ep7vo Query : use flama_phc
20240806@172804.7653 rfud4cm00nhnhkat0nkq3ep7vo Query : select st.usalote valor from st where st.ref = '327.8253.00.1'
20240806@172804.7676 rfud4cm00nhnhkat0nkq3ep7vo Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '327.8253.00.1'
20240806@172804.7816 rfud4cm00nhnhkat0nkq3ep7vo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240806@172804.7833 rfud4cm00nhnhkat0nkq3ep7vo Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240806@172804.7861 rfud4cm00nhnhkat0nkq3ep7vo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240806@172804.7875 rfud4cm00nhnhkat0nkq3ep7vo Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240806@172804.7884 rfud4cm00nhnhkat0nkq3ep7vo Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240806@172804.7896 rfud4cm00nhnhkat0nkq3ep7vo Query : select sestamp valor from se where ref ='327.8253.00.1' and lote = 'r2400072300a'
20240806@172804.7911 rfud4cm00nhnhkat0nkq3ep7vo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240806@172804.7926 rfud4cm00nhnhkat0nkq3ep7vo Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240806@172804.7939 rfud4cm00nhnhkat0nkq3ep7vo Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66b247551466b24f14c1','aut66b244383066b24f149b' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240806@172804.7943 rfud4cm00nhnhkat0nkq3ep7vo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240806@172804.7958 rfud4cm00nhnhkat0nkq3ep7vo Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240806@172804.7988 rfud4cm00nhnhkat0nkq3ep7vo Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem) values ('aut66b247551466b24f14c1',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',4.000 ,'aut66b244383066b24f149b' ,0,0 ,2,23.00,10000,?,?,?,?)
20240806@172804.8252 rfud4cm00nhnhkat0nkq3ep7vo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240806@172804.8269 rfud4cm00nhnhkat0nkq3ep7vo Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240806@172804.8297 rfud4cm00nhnhkat0nkq3ep7vo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240806@172804.8314 rfud4cm00nhnhkat0nkq3ep7vo Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240806@172804.8323 rfud4cm00nhnhkat0nkq3ep7vo Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240806@172804.8336 rfud4cm00nhnhkat0nkq3ep7vo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240806@172804.8363 rfud4cm00nhnhkat0nkq3ep7vo Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240806@172804.8375 rfud4cm00nhnhkat0nkq3ep7vo Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66b245891466b24f14cb','aut66b244383066b24f149b' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240806@172804.8380 rfud4cm00nhnhkat0nkq3ep7vo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240806@172804.8394 rfud4cm00nhnhkat0nkq3ep7vo Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240806@172804.8426 rfud4cm00nhnhkat0nkq3ep7vo Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66b245891466b24f14cb',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66b244383066b24f149b' ,0,0 ,2,23.00,20000,?,?,?)
20240806@172804.8815 rfud4cm00nhnhkat0nkq3ep7vo Query : use flama_phc
20240806@172804.8819 rfud4cm00nhnhkat0nkq3ep7vo Query : select st.usalote valor from st where st.ref = '327.8253.00.1'
20240806@172804.8845 rfud4cm00nhnhkat0nkq3ep7vo Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '327.8253.00.1'
20240806@172804.8860 rfud4cm00nhnhkat0nkq3ep7vo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240806@172804.8876 rfud4cm00nhnhkat0nkq3ep7vo Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240806@172804.8903 rfud4cm00nhnhkat0nkq3ep7vo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240806@172804.8918 rfud4cm00nhnhkat0nkq3ep7vo Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240806@172804.8926 rfud4cm00nhnhkat0nkq3ep7vo Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240806@172804.8938 rfud4cm00nhnhkat0nkq3ep7vo Query : select sestamp valor from se where ref ='327.8253.00.1' and lote = 'r2400072300a'
20240806@172804.8952 rfud4cm00nhnhkat0nkq3ep7vo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240806@172804.8966 rfud4cm00nhnhkat0nkq3ep7vo Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240806@172804.8979 rfud4cm00nhnhkat0nkq3ep7vo Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66b249744266b24f14da','aut66b244383066b24f149b' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240806@172804.8983 rfud4cm00nhnhkat0nkq3ep7vo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240806@172804.8997 rfud4cm00nhnhkat0nkq3ep7vo Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240806@172804.9026 rfud4cm00nhnhkat0nkq3ep7vo Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem) values ('aut66b249744266b24f14da',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',4.000 ,'aut66b244383066b24f149b' ,0,0 ,2,23.00,40000,?,?,?,?)
20240806@172804.9286 rfud4cm00nhnhkat0nkq3ep7vo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240806@172804.9301 rfud4cm00nhnhkat0nkq3ep7vo Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240806@172804.9331 rfud4cm00nhnhkat0nkq3ep7vo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240806@172804.9347 rfud4cm00nhnhkat0nkq3ep7vo Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240806@172804.9356 rfud4cm00nhnhkat0nkq3ep7vo Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240806@172804.9369 rfud4cm00nhnhkat0nkq3ep7vo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240806@172804.9384 rfud4cm00nhnhkat0nkq3ep7vo Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240806@172804.9397 rfud4cm00nhnhkat0nkq3ep7vo Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66b246675766b24f14e4','aut66b244383066b24f149b' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240806@172804.9402 rfud4cm00nhnhkat0nkq3ep7vo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240806@172804.9418 rfud4cm00nhnhkat0nkq3ep7vo Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240806@172804.9448 rfud4cm00nhnhkat0nkq3ep7vo Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66b246675766b24f14e4',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66b244383066b24f149b' ,0,0 ,2,23.00,50000,?,?,?)
20240806@172804.9705 rfud4cm00nhnhkat0nkq3ep7vo Query : use flama_phc
20240806@172804.9708 rfud4cm00nhnhkat0nkq3ep7vo Query : select st.usalote valor from st where st.ref = '327.8253.00.1'
20240806@172804.9728 rfud4cm00nhnhkat0nkq3ep7vo Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '327.8253.00.1'
20240806@172804.9741 rfud4cm00nhnhkat0nkq3ep7vo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240806@172804.9757 rfud4cm00nhnhkat0nkq3ep7vo Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240806@172804.9785 rfud4cm00nhnhkat0nkq3ep7vo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240806@172804.9800 rfud4cm00nhnhkat0nkq3ep7vo Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240806@172804.9808 rfud4cm00nhnhkat0nkq3ep7vo Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240806@172804.9821 rfud4cm00nhnhkat0nkq3ep7vo Query : select sestamp valor from se where ref ='327.8253.00.1' and lote = 'r2400072300a'
20240806@172804.9833 rfud4cm00nhnhkat0nkq3ep7vo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240806@172804.9847 rfud4cm00nhnhkat0nkq3ep7vo Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240806@172804.9860 rfud4cm00nhnhkat0nkq3ep7vo Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66b245570866b24f14f0','aut66b244383066b24f149b' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240806@172804.9864 rfud4cm00nhnhkat0nkq3ep7vo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240806@172804.9878 rfud4cm00nhnhkat0nkq3ep7vo Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240806@172804.9906 rfud4cm00nhnhkat0nkq3ep7vo Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem) values ('aut66b245570866b24f14f0',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',4.000 ,'aut66b244383066b24f149b' ,0,0 ,2,23.00,70000,?,?,?,?)
20240806@172805.1710 rfud4cm00nhnhkat0nkq3ep7vo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240806@172805.1870 rfud4cm00nhnhkat0nkq3ep7vo Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240806@172805.2140 rfud4cm00nhnhkat0nkq3ep7vo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240806@172805.2290 rfud4cm00nhnhkat0nkq3ep7vo Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240806@172805.2380 rfud4cm00nhnhkat0nkq3ep7vo Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240806@172805.2510 rfud4cm00nhnhkat0nkq3ep7vo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240806@172805.2660 rfud4cm00nhnhkat0nkq3ep7vo Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240806@172805.2790 rfud4cm00nhnhkat0nkq3ep7vo Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66b248356766b24f1506','aut66b244383066b24f149b' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240806@172805.2830 rfud4cm00nhnhkat0nkq3ep7vo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240806@172805.2980 rfud4cm00nhnhkat0nkq3ep7vo Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240806@172805.3260 rfud4cm00nhnhkat0nkq3ep7vo Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66b248356766b24f1506',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66b244383066b24f149b' ,0,0 ,2,23.00,80000,?,?,?)
20240806@172805.1018 rfud4cm00nhnhkat0nkq3ep7vo Query : use flama_phc
20240806@172805.1141 rfud4cm00nhnhkat0nkq3ep7vo Query : select st.usalote valor from st where st.ref = '327.8253.00.1'
20240806@172805.1620 rfud4cm00nhnhkat0nkq3ep7vo Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '327.8253.00.1'
20240806@172805.1635 rfud4cm00nhnhkat0nkq3ep7vo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240806@172805.1651 rfud4cm00nhnhkat0nkq3ep7vo Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240806@172805.1679 rfud4cm00nhnhkat0nkq3ep7vo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240806@172805.1694 rfud4cm00nhnhkat0nkq3ep7vo Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240806@172805.1703 rfud4cm00nhnhkat0nkq3ep7vo Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240806@172805.1716 rfud4cm00nhnhkat0nkq3ep7vo Query : select sestamp valor from se where ref ='327.8253.00.1' and lote = 'r2400072300a'
20240806@172805.1729 rfud4cm00nhnhkat0nkq3ep7vo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240806@172805.1744 rfud4cm00nhnhkat0nkq3ep7vo Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240806@172805.1757 rfud4cm00nhnhkat0nkq3ep7vo Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66b246000866b24f152a','aut66b244383066b24f149b' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240806@172805.1761 rfud4cm00nhnhkat0nkq3ep7vo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240806@172805.1776 rfud4cm00nhnhkat0nkq3ep7vo Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240806@172805.1806 rfud4cm00nhnhkat0nkq3ep7vo Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem) values ('aut66b246000866b24f152a',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',3.000 ,'aut66b244383066b24f149b' ,0,0 ,2,23.00,100000,?,?,?,?)
20240806@172805.2064 rfud4cm00nhnhkat0nkq3ep7vo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240806@172805.2081 rfud4cm00nhnhkat0nkq3ep7vo Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240806@172805.2108 rfud4cm00nhnhkat0nkq3ep7vo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240806@172805.2123 rfud4cm00nhnhkat0nkq3ep7vo Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240806@172805.2136 rfud4cm00nhnhkat0nkq3ep7vo Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240806@172805.2150 rfud4cm00nhnhkat0nkq3ep7vo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240806@172805.2165 rfud4cm00nhnhkat0nkq3ep7vo Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240806@172805.2180 rfud4cm00nhnhkat0nkq3ep7vo Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66b247699766b24f1534','aut66b244383066b24f149b' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240806@172805.2184 rfud4cm00nhnhkat0nkq3ep7vo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240806@172805.2199 rfud4cm00nhnhkat0nkq3ep7vo Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240806@172805.2228 rfud4cm00nhnhkat0nkq3ep7vo Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66b247699766b24f1534',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66b244383066b24f149b' ,0,0 ,2,23.00,110000,?,?,?)
20240806@172805.2472 rfud4cm00nhnhkat0nkq3ep7vo Query : use flama_phc
20240806@172805.2475 rfud4cm00nhnhkat0nkq3ep7vo Query : select st.usalote valor from st where st.ref = '327.8261.00.1'
20240806@172805.2497 rfud4cm00nhnhkat0nkq3ep7vo Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '327.8261.00.1'
20240806@172805.2639 rfud4cm00nhnhkat0nkq3ep7vo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240806@172805.2655 rfud4cm00nhnhkat0nkq3ep7vo Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240806@172805.2683 rfud4cm00nhnhkat0nkq3ep7vo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240806@172805.2697 rfud4cm00nhnhkat0nkq3ep7vo Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240806@172805.2706 rfud4cm00nhnhkat0nkq3ep7vo Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240806@172805.2719 rfud4cm00nhnhkat0nkq3ep7vo Query : select sestamp valor from se where ref ='327.8261.00.1' and lote = 'r2400078200a'
20240806@172805.2733 rfud4cm00nhnhkat0nkq3ep7vo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240806@172805.2748 rfud4cm00nhnhkat0nkq3ep7vo Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240806@172805.2759 rfud4cm00nhnhkat0nkq3ep7vo Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66b244725966b24f1542','aut66b244383066b24f149b' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240806@172805.2763 rfud4cm00nhnhkat0nkq3ep7vo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240806@172805.2780 rfud4cm00nhnhkat0nkq3ep7vo Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240806@172805.2810 rfud4cm00nhnhkat0nkq3ep7vo Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem) values ('aut66b244725966b24f1542',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',4.000 ,'aut66b244383066b24f149b' ,0,0 ,2,23.00,130000,?,?,?,?)
20240806@172805.3400 rfud4cm00nhnhkat0nkq3ep7vo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240806@172805.3418 rfud4cm00nhnhkat0nkq3ep7vo Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240806@172805.3449 rfud4cm00nhnhkat0nkq3ep7vo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240806@172805.3464 rfud4cm00nhnhkat0nkq3ep7vo Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240806@172805.3473 rfud4cm00nhnhkat0nkq3ep7vo Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240806@172805.3486 rfud4cm00nhnhkat0nkq3ep7vo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240806@172805.3501 rfud4cm00nhnhkat0nkq3ep7vo Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240806@172805.3513 rfud4cm00nhnhkat0nkq3ep7vo Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66b248411166b24f1555','aut66b244383066b24f149b' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240806@172805.3517 rfud4cm00nhnhkat0nkq3ep7vo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240806@172805.3532 rfud4cm00nhnhkat0nkq3ep7vo Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240806@172805.3560 rfud4cm00nhnhkat0nkq3ep7vo Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66b248411166b24f1555',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66b244383066b24f149b' ,0,0 ,2,23.00,140000,?,?,?)
20240806@172805.3821 rfud4cm00nhnhkat0nkq3ep7vo Query : use flama_phc
20240806@172805.3824 rfud4cm00nhnhkat0nkq3ep7vo Query : select st.usalote valor from st where st.ref = '327.8261.00.1'
20240806@172805.4086 rfud4cm00nhnhkat0nkq3ep7vo Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '327.8261.00.1'
20240806@172805.4102 rfud4cm00nhnhkat0nkq3ep7vo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240806@172805.4120 rfud4cm00nhnhkat0nkq3ep7vo Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240806@172805.4147 rfud4cm00nhnhkat0nkq3ep7vo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240806@172805.4163 rfud4cm00nhnhkat0nkq3ep7vo Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240806@172805.4172 rfud4cm00nhnhkat0nkq3ep7vo Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240806@172805.4186 rfud4cm00nhnhkat0nkq3ep7vo Query : select sestamp valor from se where ref ='327.8261.00.1' and lote = 'r2400078200a'
20240806@172805.4199 rfud4cm00nhnhkat0nkq3ep7vo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240806@172805.4215 rfud4cm00nhnhkat0nkq3ep7vo Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240806@172805.4228 rfud4cm00nhnhkat0nkq3ep7vo Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66b248079466b24f1566','aut66b244383066b24f149b' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240806@172805.4232 rfud4cm00nhnhkat0nkq3ep7vo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240806@172805.4247 rfud4cm00nhnhkat0nkq3ep7vo Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240806@172805.4278 rfud4cm00nhnhkat0nkq3ep7vo Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem) values ('aut66b248079466b24f1566',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',4.000 ,'aut66b244383066b24f149b' ,0,0 ,2,23.00,160000,?,?,?,?)
20240806@172805.4543 rfud4cm00nhnhkat0nkq3ep7vo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240806@172805.4560 rfud4cm00nhnhkat0nkq3ep7vo Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240806@172805.4587 rfud4cm00nhnhkat0nkq3ep7vo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240806@172805.4602 rfud4cm00nhnhkat0nkq3ep7vo Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240806@172805.4611 rfud4cm00nhnhkat0nkq3ep7vo Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240806@172805.4623 rfud4cm00nhnhkat0nkq3ep7vo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240806@172805.4639 rfud4cm00nhnhkat0nkq3ep7vo Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240806@172805.4650 rfud4cm00nhnhkat0nkq3ep7vo Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66b243505066b24f1570','aut66b244383066b24f149b' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240806@172805.4654 rfud4cm00nhnhkat0nkq3ep7vo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240806@172805.4670 rfud4cm00nhnhkat0nkq3ep7vo Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240806@172805.4703 rfud4cm00nhnhkat0nkq3ep7vo Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66b243505066b24f1570',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66b244383066b24f149b' ,0,0 ,2,23.00,170000,?,?,?)
20240806@172805.4979 rfud4cm00nhnhkat0nkq3ep7vo Query : use flama_phc
20240806@172805.4982 rfud4cm00nhnhkat0nkq3ep7vo Query : select st.usalote valor from st where st.ref = '327.8261.00.1'
20240806@172805.5002 rfud4cm00nhnhkat0nkq3ep7vo Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '327.8261.00.1'
20240806@172805.5017 rfud4cm00nhnhkat0nkq3ep7vo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240806@172805.5033 rfud4cm00nhnhkat0nkq3ep7vo Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240806@172805.5060 rfud4cm00nhnhkat0nkq3ep7vo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240806@172805.5075 rfud4cm00nhnhkat0nkq3ep7vo Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240806@172805.5084 rfud4cm00nhnhkat0nkq3ep7vo Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240806@172805.5096 rfud4cm00nhnhkat0nkq3ep7vo Query : select sestamp valor from se where ref ='327.8261.00.1' and lote = 'r2400078200a'
20240806@172805.5110 rfud4cm00nhnhkat0nkq3ep7vo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240806@172805.5125 rfud4cm00nhnhkat0nkq3ep7vo Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240806@172805.5139 rfud4cm00nhnhkat0nkq3ep7vo Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66b244698066b24f157c','aut66b244383066b24f149b' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240806@172805.5143 rfud4cm00nhnhkat0nkq3ep7vo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240806@172805.5157 rfud4cm00nhnhkat0nkq3ep7vo Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240806@172805.5188 rfud4cm00nhnhkat0nkq3ep7vo Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem) values ('aut66b244698066b24f157c',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',1.000 ,'aut66b244383066b24f149b' ,0,0 ,2,23.00,190000,?,?,?,?)
20240806@172805.5431 rfud4cm00nhnhkat0nkq3ep7vo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240806@172805.5447 rfud4cm00nhnhkat0nkq3ep7vo Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240806@172805.5474 rfud4cm00nhnhkat0nkq3ep7vo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240806@172805.5490 rfud4cm00nhnhkat0nkq3ep7vo Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240806@172805.5499 rfud4cm00nhnhkat0nkq3ep7vo Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240806@172805.5511 rfud4cm00nhnhkat0nkq3ep7vo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240806@172805.5526 rfud4cm00nhnhkat0nkq3ep7vo Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240806@172805.5538 rfud4cm00nhnhkat0nkq3ep7vo Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66b249680666b24f1586','aut66b244383066b24f149b' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240806@172805.5542 rfud4cm00nhnhkat0nkq3ep7vo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240806@172805.5557 rfud4cm00nhnhkat0nkq3ep7vo Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240806@172805.5587 rfud4cm00nhnhkat0nkq3ep7vo Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66b249680666b24f1586',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66b244383066b24f149b' ,0,0 ,2,23.00,200000,?,?,?)
20240806@172805.5817 rfud4cm00nhnhkat0nkq3ep7vo Query : use flama_phc
20240806@172805.5820 rfud4cm00nhnhkat0nkq3ep7vo Query : select st.usalote valor from st where st.ref = '327.8261.00.1'
20240806@172805.5840 rfud4cm00nhnhkat0nkq3ep7vo Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '327.8261.00.1'
20240806@172805.5854 rfud4cm00nhnhkat0nkq3ep7vo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240806@172805.5869 rfud4cm00nhnhkat0nkq3ep7vo Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240806@172805.5897 rfud4cm00nhnhkat0nkq3ep7vo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240806@172805.5912 rfud4cm00nhnhkat0nkq3ep7vo Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240806@172805.5921 rfud4cm00nhnhkat0nkq3ep7vo Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240806@172805.5935 rfud4cm00nhnhkat0nkq3ep7vo Query : select sestamp valor from se where ref ='327.8261.00.1' and lote = 'r2400078200a'
20240806@172805.5949 rfud4cm00nhnhkat0nkq3ep7vo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240806@172805.5964 rfud4cm00nhnhkat0nkq3ep7vo Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240806@172805.5976 rfud4cm00nhnhkat0nkq3ep7vo Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66b244876566b24f1591','aut66b244383066b24f149b' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240806@172805.5980 rfud4cm00nhnhkat0nkq3ep7vo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240806@172805.5996 rfud4cm00nhnhkat0nkq3ep7vo Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240806@172805.6026 rfud4cm00nhnhkat0nkq3ep7vo Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem) values ('aut66b244876566b24f1591',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',1.000 ,'aut66b244383066b24f149b' ,0,0 ,2,23.00,220000,?,?,?,?)
20240806@172805.6271 rfud4cm00nhnhkat0nkq3ep7vo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240806@172805.6287 rfud4cm00nhnhkat0nkq3ep7vo Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240806@172805.6314 rfud4cm00nhnhkat0nkq3ep7vo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240806@172805.6329 rfud4cm00nhnhkat0nkq3ep7vo Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240806@172805.6338 rfud4cm00nhnhkat0nkq3ep7vo Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240806@172805.6350 rfud4cm00nhnhkat0nkq3ep7vo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240806@172805.6366 rfud4cm00nhnhkat0nkq3ep7vo Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240806@172805.6378 rfud4cm00nhnhkat0nkq3ep7vo Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66b248279966b24f159b','aut66b244383066b24f149b' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240806@172805.6382 rfud4cm00nhnhkat0nkq3ep7vo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240806@172805.6398 rfud4cm00nhnhkat0nkq3ep7vo Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240806@172805.6427 rfud4cm00nhnhkat0nkq3ep7vo Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66b248279966b24f159b',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66b244383066b24f149b' ,0,0 ,2,23.00,230000,?,?,?)
20240806@172805.6676 rfud4cm00nhnhkat0nkq3ep7vo Query : use flama_phc
20240806@172805.6680 rfud4cm00nhnhkat0nkq3ep7vo Query : select st.usalote valor from st where st.ref = '324.1803.00.1'
20240806@172805.6700 rfud4cm00nhnhkat0nkq3ep7vo Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.1803.00.1'
20240806@172805.6844 rfud4cm00nhnhkat0nkq3ep7vo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240806@172805.6860 rfud4cm00nhnhkat0nkq3ep7vo Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240806@172805.6890 rfud4cm00nhnhkat0nkq3ep7vo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240806@172805.6909 rfud4cm00nhnhkat0nkq3ep7vo Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240806@172805.6920 rfud4cm00nhnhkat0nkq3ep7vo Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240806@172805.6936 rfud4cm00nhnhkat0nkq3ep7vo Query : select sestamp valor from se where ref ='324.1803.00.1' and lote = 'r2301207200a'
20240806@172805.6952 rfud4cm00nhnhkat0nkq3ep7vo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240806@172805.6970 rfud4cm00nhnhkat0nkq3ep7vo Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240806@172805.6983 rfud4cm00nhnhkat0nkq3ep7vo Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66b245058766b24f15a9','aut66b244383066b24f149b' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240806@172805.6987 rfud4cm00nhnhkat0nkq3ep7vo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240806@172805.7003 rfud4cm00nhnhkat0nkq3ep7vo Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240806@172805.7037 rfud4cm00nhnhkat0nkq3ep7vo Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem) values ('aut66b245058766b24f15a9',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',10.000 ,'aut66b244383066b24f149b' ,0,0 ,2,23.00,250000,?,?,?,?)
20240806@172805.7315 rfud4cm00nhnhkat0nkq3ep7vo Query : use flama_phc
20240806@172805.7319 rfud4cm00nhnhkat0nkq3ep7vo Query : select st.usalote valor from st where st.ref = '324.1803.00.1'
20240806@172805.7339 rfud4cm00nhnhkat0nkq3ep7vo Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.1803.00.1'
20240806@172805.7354 rfud4cm00nhnhkat0nkq3ep7vo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240806@172805.7376 rfud4cm00nhnhkat0nkq3ep7vo Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240806@172805.7402 rfud4cm00nhnhkat0nkq3ep7vo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240806@172805.7419 rfud4cm00nhnhkat0nkq3ep7vo Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240806@172805.7428 rfud4cm00nhnhkat0nkq3ep7vo Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240806@172805.7441 rfud4cm00nhnhkat0nkq3ep7vo Query : select sestamp valor from se where ref ='324.1803.00.1' and lote = 'r2301274200a'
20240806@172805.7454 rfud4cm00nhnhkat0nkq3ep7vo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240806@172805.7470 rfud4cm00nhnhkat0nkq3ep7vo Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240806@172805.7483 rfud4cm00nhnhkat0nkq3ep7vo Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66b247364966b24f15b6','aut66b244383066b24f149b' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240806@172805.7487 rfud4cm00nhnhkat0nkq3ep7vo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240806@172805.7502 rfud4cm00nhnhkat0nkq3ep7vo Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240806@172805.7530 rfud4cm00nhnhkat0nkq3ep7vo Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem) values ('aut66b247364966b24f15b6',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',20.000 ,'aut66b244383066b24f149b' ,0,0 ,2,23.00,260000,?,?,?,?)
20240806@172805.7788 rfud4cm00nhnhkat0nkq3ep7vo Query : use flama_phc
20240806@172805.7791 rfud4cm00nhnhkat0nkq3ep7vo Query : select st.usalote valor from st where st.ref = '324.1803.00.1'
20240806@172805.7811 rfud4cm00nhnhkat0nkq3ep7vo Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.1803.00.1'
20240806@172805.7828 rfud4cm00nhnhkat0nkq3ep7vo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240806@172805.7845 rfud4cm00nhnhkat0nkq3ep7vo Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240806@172805.7901 rfud4cm00nhnhkat0nkq3ep7vo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240806@172805.7917 rfud4cm00nhnhkat0nkq3ep7vo Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240806@172805.7929 rfud4cm00nhnhkat0nkq3ep7vo Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240806@172805.7941 rfud4cm00nhnhkat0nkq3ep7vo Query : select sestamp valor from se where ref ='324.1803.00.1' and lote = 'r2301274200a'
20240806@172805.7953 rfud4cm00nhnhkat0nkq3ep7vo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240806@172805.8010 rfud4cm00nhnhkat0nkq3ep7vo Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240806@172805.8022 rfud4cm00nhnhkat0nkq3ep7vo Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66b243603866b24f15c2','aut66b244383066b24f149b' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240806@172805.8027 rfud4cm00nhnhkat0nkq3ep7vo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240806@172805.8044 rfud4cm00nhnhkat0nkq3ep7vo Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240806@172805.8077 rfud4cm00nhnhkat0nkq3ep7vo Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem) values ('aut66b243603866b24f15c2',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',20.000 ,'aut66b244383066b24f149b' ,0,0 ,2,23.00,270000,?,?,?,?)
20240806@172805.8333 rfud4cm00nhnhkat0nkq3ep7vo Query : use flama_phc
20240806@172805.8336 rfud4cm00nhnhkat0nkq3ep7vo Query : select st.usalote valor from st where st.ref = '324.1805.00.1'
20240806@172805.8358 rfud4cm00nhnhkat0nkq3ep7vo Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.1805.00.1'
20240806@172805.8498 rfud4cm00nhnhkat0nkq3ep7vo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240806@172805.8515 rfud4cm00nhnhkat0nkq3ep7vo Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240806@172805.8543 rfud4cm00nhnhkat0nkq3ep7vo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240806@172805.8558 rfud4cm00nhnhkat0nkq3ep7vo Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240806@172805.8566 rfud4cm00nhnhkat0nkq3ep7vo Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240806@172805.8579 rfud4cm00nhnhkat0nkq3ep7vo Query : select sestamp valor from se where ref ='324.1805.00.1' and lote = 'r2400290200a'
20240806@172805.8592 rfud4cm00nhnhkat0nkq3ep7vo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240806@172805.8607 rfud4cm00nhnhkat0nkq3ep7vo Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240806@172805.8620 rfud4cm00nhnhkat0nkq3ep7vo Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66b245121666b24f15d1','aut66b244383066b24f149b' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240806@172805.8624 rfud4cm00nhnhkat0nkq3ep7vo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240806@172805.8641 rfud4cm00nhnhkat0nkq3ep7vo Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240806@172805.8687 rfud4cm00nhnhkat0nkq3ep7vo Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem) values ('aut66b245121666b24f15d1',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',4.000 ,'aut66b244383066b24f149b' ,0,0 ,2,23.00,280000,?,?,?,?)
20240806@172805.9059 rfud4cm00nhnhkat0nkq3ep7vo Query : use flama_phc
20240806@172805.9064 rfud4cm00nhnhkat0nkq3ep7vo Query : select st.usalote valor from st where st.ref = '324.1805.00.1'
20240806@172805.9085 rfud4cm00nhnhkat0nkq3ep7vo Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.1805.00.1'
20240806@172805.9102 rfud4cm00nhnhkat0nkq3ep7vo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240806@172805.9123 rfud4cm00nhnhkat0nkq3ep7vo Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240806@172805.9153 rfud4cm00nhnhkat0nkq3ep7vo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240806@172805.9169 rfud4cm00nhnhkat0nkq3ep7vo Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240806@172805.9178 rfud4cm00nhnhkat0nkq3ep7vo Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240806@172805.9190 rfud4cm00nhnhkat0nkq3ep7vo Query : select sestamp valor from se where ref ='324.1805.00.1' and lote = 'r2300831200a'
20240806@172805.9212 rfud4cm00nhnhkat0nkq3ep7vo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240806@172805.9228 rfud4cm00nhnhkat0nkq3ep7vo Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240806@172805.9240 rfud4cm00nhnhkat0nkq3ep7vo Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66b243127066b24f15e0','aut66b244383066b24f149b' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240806@172805.9244 rfud4cm00nhnhkat0nkq3ep7vo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240806@172805.9259 rfud4cm00nhnhkat0nkq3ep7vo Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240806@172805.9291 rfud4cm00nhnhkat0nkq3ep7vo Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem) values ('aut66b243127066b24f15e0',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',4.000 ,'aut66b244383066b24f149b' ,0,0 ,2,23.00,290000,?,?,?,?)
20240806@172806.1029 rfud4cm00nhnhkat0nkq3ep7vo Query : use flama_phc
20240806@172806.1070 rfud4cm00nhnhkat0nkq3ep7vo Query : select st.usalote valor from st where st.ref = '324.1805.00.1'
20240806@172806.1360 rfud4cm00nhnhkat0nkq3ep7vo Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.1805.00.1'
20240806@172806.1375 rfud4cm00nhnhkat0nkq3ep7vo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240806@172806.1392 rfud4cm00nhnhkat0nkq3ep7vo Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240806@172806.1418 rfud4cm00nhnhkat0nkq3ep7vo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240806@172806.1434 rfud4cm00nhnhkat0nkq3ep7vo Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240806@172806.1443 rfud4cm00nhnhkat0nkq3ep7vo Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240806@172806.1456 rfud4cm00nhnhkat0nkq3ep7vo Query : select sestamp valor from se where ref ='324.1805.00.1' and lote = 'r2400290200a'
20240806@172806.1470 rfud4cm00nhnhkat0nkq3ep7vo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240806@172806.1487 rfud4cm00nhnhkat0nkq3ep7vo Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240806@172806.1499 rfud4cm00nhnhkat0nkq3ep7vo Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66b249785666b24f1623','aut66b244383066b24f149b' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240806@172806.1503 rfud4cm00nhnhkat0nkq3ep7vo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240806@172806.1519 rfud4cm00nhnhkat0nkq3ep7vo Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240806@172806.1549 rfud4cm00nhnhkat0nkq3ep7vo Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem) values ('aut66b249785666b24f1623',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',14.000 ,'aut66b244383066b24f149b' ,0,0 ,2,23.00,300000,?,?,?,?)
20240806@172806.1942 rfud4cm00nhnhkat0nkq3ep7vo Query : use flama_phc
20240806@172806.1945 rfud4cm00nhnhkat0nkq3ep7vo Query : select st.usalote valor from st where st.ref = '324.1805.00.1'
20240806@172806.1965 rfud4cm00nhnhkat0nkq3ep7vo Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.1805.00.1'
20240806@172806.1980 rfud4cm00nhnhkat0nkq3ep7vo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240806@172806.1996 rfud4cm00nhnhkat0nkq3ep7vo Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240806@172806.2023 rfud4cm00nhnhkat0nkq3ep7vo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240806@172806.2039 rfud4cm00nhnhkat0nkq3ep7vo Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240806@172806.2048 rfud4cm00nhnhkat0nkq3ep7vo Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240806@172806.2061 rfud4cm00nhnhkat0nkq3ep7vo Query : select sestamp valor from se where ref ='324.1805.00.1' and lote = 'r2400290200a'
20240806@172806.2074 rfud4cm00nhnhkat0nkq3ep7vo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240806@172806.2090 rfud4cm00nhnhkat0nkq3ep7vo Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240806@172806.2102 rfud4cm00nhnhkat0nkq3ep7vo Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66b247569066b24f1632','aut66b244383066b24f149b' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240806@172806.2106 rfud4cm00nhnhkat0nkq3ep7vo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240806@172806.2121 rfud4cm00nhnhkat0nkq3ep7vo Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240806@172806.2156 rfud4cm00nhnhkat0nkq3ep7vo Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem) values ('aut66b247569066b24f1632',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',14.000 ,'aut66b244383066b24f149b' ,0,0 ,2,23.00,310000,?,?,?,?)
20240806@172806.3386 rfud4cm00nhnhkat0nkq3ep7vo Query : use flama_phc
20240806@172806.3392 rfud4cm00nhnhkat0nkq3ep7vo Query : select st.usalote valor from st where st.ref = '324.1805.00.1'
20240806@172806.3414 rfud4cm00nhnhkat0nkq3ep7vo Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.1805.00.1'
20240806@172806.3431 rfud4cm00nhnhkat0nkq3ep7vo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240806@172806.3448 rfud4cm00nhnhkat0nkq3ep7vo Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240806@172806.3474 rfud4cm00nhnhkat0nkq3ep7vo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240806@172806.3491 rfud4cm00nhnhkat0nkq3ep7vo Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240806@172806.3499 rfud4cm00nhnhkat0nkq3ep7vo Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240806@172806.3512 rfud4cm00nhnhkat0nkq3ep7vo Query : select sestamp valor from se where ref ='324.1805.00.1' and lote = 'r2400290200a'
20240806@172806.3525 rfud4cm00nhnhkat0nkq3ep7vo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240806@172806.3540 rfud4cm00nhnhkat0nkq3ep7vo Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240806@172806.3553 rfud4cm00nhnhkat0nkq3ep7vo Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66b241739866b24f1656','aut66b244383066b24f149b' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240806@172806.3558 rfud4cm00nhnhkat0nkq3ep7vo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240806@172806.3572 rfud4cm00nhnhkat0nkq3ep7vo Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240806@172806.3602 rfud4cm00nhnhkat0nkq3ep7vo Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem) values ('aut66b241739866b24f1656',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',14.000 ,'aut66b244383066b24f149b' ,0,0 ,2,23.00,320000,?,?,?,?)
20240806@172806.3851 rfud4cm00nhnhkat0nkq3ep7vo Query : use flama_phc
20240806@172806.3854 rfud4cm00nhnhkat0nkq3ep7vo Query : select st.usalote valor from st where st.ref = '324.1824.00.1'
20240806@172806.3874 rfud4cm00nhnhkat0nkq3ep7vo Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 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'
20240806@172806.4017 rfud4cm00nhnhkat0nkq3ep7vo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240806@172806.4037 rfud4cm00nhnhkat0nkq3ep7vo Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240806@172806.4068 rfud4cm00nhnhkat0nkq3ep7vo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240806@172806.4083 rfud4cm00nhnhkat0nkq3ep7vo Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240806@172806.4093 rfud4cm00nhnhkat0nkq3ep7vo Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240806@172806.4105 rfud4cm00nhnhkat0nkq3ep7vo Query : select sestamp valor from se where ref ='324.1824.00.1' and lote = 'r2301210200a'
20240806@172806.4118 rfud4cm00nhnhkat0nkq3ep7vo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240806@172806.4136 rfud4cm00nhnhkat0nkq3ep7vo Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240806@172806.4149 rfud4cm00nhnhkat0nkq3ep7vo Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66b248733666b24f1664','aut66b244383066b24f149b' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240806@172806.4153 rfud4cm00nhnhkat0nkq3ep7vo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240806@172806.4168 rfud4cm00nhnhkat0nkq3ep7vo Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240806@172806.4200 rfud4cm00nhnhkat0nkq3ep7vo Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem) values ('aut66b248733666b24f1664',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',20.000 ,'aut66b244383066b24f149b' ,0,0 ,2,23.00,330000,?,?,?,?)
20240806@172806.4459 rfud4cm00nhnhkat0nkq3ep7vo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240806@172806.4476 rfud4cm00nhnhkat0nkq3ep7vo Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240806@172806.4503 rfud4cm00nhnhkat0nkq3ep7vo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240806@172806.4518 rfud4cm00nhnhkat0nkq3ep7vo Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240806@172806.4527 rfud4cm00nhnhkat0nkq3ep7vo Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240806@172806.4539 rfud4cm00nhnhkat0nkq3ep7vo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240806@172806.4554 rfud4cm00nhnhkat0nkq3ep7vo Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240806@172806.4566 rfud4cm00nhnhkat0nkq3ep7vo Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66b248655266b24f166e','aut66b244383066b24f149b' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240806@172806.4570 rfud4cm00nhnhkat0nkq3ep7vo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240806@172806.4586 rfud4cm00nhnhkat0nkq3ep7vo Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240806@172806.4616 rfud4cm00nhnhkat0nkq3ep7vo Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66b248655266b24f166e',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66b244383066b24f149b' ,0,0 ,2,23.00,340000,?,?,?)
20240806@172806.4856 rfud4cm00nhnhkat0nkq3ep7vo Query : use flama_phc
20240806@172806.4859 rfud4cm00nhnhkat0nkq3ep7vo Query : select st.usalote valor from st where st.ref = '324.1824.00.1'
20240806@172806.4879 rfud4cm00nhnhkat0nkq3ep7vo Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 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'
20240806@172806.4895 rfud4cm00nhnhkat0nkq3ep7vo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240806@172806.4911 rfud4cm00nhnhkat0nkq3ep7vo Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240806@172806.4940 rfud4cm00nhnhkat0nkq3ep7vo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240806@172806.4955 rfud4cm00nhnhkat0nkq3ep7vo Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240806@172806.4963 rfud4cm00nhnhkat0nkq3ep7vo Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240806@172806.4976 rfud4cm00nhnhkat0nkq3ep7vo Query : select sestamp valor from se where ref ='324.1824.00.1' and lote = 'r2301210200a'
20240806@172806.4989 rfud4cm00nhnhkat0nkq3ep7vo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240806@172806.5004 rfud4cm00nhnhkat0nkq3ep7vo Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240806@172806.5016 rfud4cm00nhnhkat0nkq3ep7vo Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66b243117566b24f1679','aut66b244383066b24f149b' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240806@172806.5020 rfud4cm00nhnhkat0nkq3ep7vo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240806@172806.5035 rfud4cm00nhnhkat0nkq3ep7vo Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240806@172806.5066 rfud4cm00nhnhkat0nkq3ep7vo Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem) values ('aut66b243117566b24f1679',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',20.000 ,'aut66b244383066b24f149b' ,0,0 ,2,23.00,360000,?,?,?,?)
20240806@172806.5308 rfud4cm00nhnhkat0nkq3ep7vo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240806@172806.5323 rfud4cm00nhnhkat0nkq3ep7vo Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240806@172806.5349 rfud4cm00nhnhkat0nkq3ep7vo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240806@172806.5363 rfud4cm00nhnhkat0nkq3ep7vo Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240806@172806.5373 rfud4cm00nhnhkat0nkq3ep7vo Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240806@172806.5385 rfud4cm00nhnhkat0nkq3ep7vo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240806@172806.5400 rfud4cm00nhnhkat0nkq3ep7vo Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240806@172806.5411 rfud4cm00nhnhkat0nkq3ep7vo Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66b242591066b24f1683','aut66b244383066b24f149b' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240806@172806.5416 rfud4cm00nhnhkat0nkq3ep7vo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240806@172806.5431 rfud4cm00nhnhkat0nkq3ep7vo Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240806@172806.5458 rfud4cm00nhnhkat0nkq3ep7vo Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66b242591066b24f1683',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66b244383066b24f149b' ,0,0 ,2,23.00,370000,?,?,?)
20240806@172806.5714 rfud4cm00nhnhkat0nkq3ep7vo Query : use flama_phc
20240806@172806.5718 rfud4cm00nhnhkat0nkq3ep7vo Query : select st.usalote valor from st where st.ref = '324.1824.00.1'
20240806@172806.5736 rfud4cm00nhnhkat0nkq3ep7vo Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 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'
20240806@172806.5750 rfud4cm00nhnhkat0nkq3ep7vo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240806@172806.5766 rfud4cm00nhnhkat0nkq3ep7vo Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240806@172806.5792 rfud4cm00nhnhkat0nkq3ep7vo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240806@172806.5806 rfud4cm00nhnhkat0nkq3ep7vo Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240806@172806.5815 rfud4cm00nhnhkat0nkq3ep7vo Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240806@172806.5827 rfud4cm00nhnhkat0nkq3ep7vo Query : select sestamp valor from se where ref ='324.1824.00.1' and lote = 'r2301210200a'
20240806@172806.5840 rfud4cm00nhnhkat0nkq3ep7vo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240806@172806.5855 rfud4cm00nhnhkat0nkq3ep7vo Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240806@172806.5866 rfud4cm00nhnhkat0nkq3ep7vo Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66b247830466b24f168e','aut66b244383066b24f149b' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240806@172806.5870 rfud4cm00nhnhkat0nkq3ep7vo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240806@172806.5886 rfud4cm00nhnhkat0nkq3ep7vo Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240806@172806.5914 rfud4cm00nhnhkat0nkq3ep7vo Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem) values ('aut66b247830466b24f168e',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',20.000 ,'aut66b244383066b24f149b' ,0,0 ,2,23.00,390000,?,?,?,?)
20240806@172806.6174 rfud4cm00nhnhkat0nkq3ep7vo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240806@172806.6202 rfud4cm00nhnhkat0nkq3ep7vo Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240806@172806.6229 rfud4cm00nhnhkat0nkq3ep7vo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240806@172806.6244 rfud4cm00nhnhkat0nkq3ep7vo Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240806@172806.6252 rfud4cm00nhnhkat0nkq3ep7vo Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240806@172806.6265 rfud4cm00nhnhkat0nkq3ep7vo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240806@172806.6281 rfud4cm00nhnhkat0nkq3ep7vo Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240806@172806.6292 rfud4cm00nhnhkat0nkq3ep7vo Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66b243915966b24f1698','aut66b244383066b24f149b' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240806@172806.6296 rfud4cm00nhnhkat0nkq3ep7vo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240806@172806.6311 rfud4cm00nhnhkat0nkq3ep7vo Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240806@172806.6342 rfud4cm00nhnhkat0nkq3ep7vo Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66b243915966b24f1698',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66b244383066b24f149b' ,0,0 ,2,23.00,400000,?,?,?)
20240806@172806.6588 rfud4cm00nhnhkat0nkq3ep7vo Query : use flama_phc
20240806@172806.6591 rfud4cm00nhnhkat0nkq3ep7vo Query : select st.usalote valor from st where st.ref = '324.1824.00.1'
20240806@172806.6611 rfud4cm00nhnhkat0nkq3ep7vo Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 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'
20240806@172806.6626 rfud4cm00nhnhkat0nkq3ep7vo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240806@172806.6643 rfud4cm00nhnhkat0nkq3ep7vo Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240806@172806.6670 rfud4cm00nhnhkat0nkq3ep7vo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240806@172806.6685 rfud4cm00nhnhkat0nkq3ep7vo Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240806@172806.6695 rfud4cm00nhnhkat0nkq3ep7vo Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240806@172806.6708 rfud4cm00nhnhkat0nkq3ep7vo Query : select sestamp valor from se where ref ='324.1824.00.1' and lote = 'r2301210200a'
20240806@172806.6721 rfud4cm00nhnhkat0nkq3ep7vo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240806@172806.6737 rfud4cm00nhnhkat0nkq3ep7vo Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240806@172806.6749 rfud4cm00nhnhkat0nkq3ep7vo Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66b245012966b24f16a4','aut66b244383066b24f149b' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240806@172806.6753 rfud4cm00nhnhkat0nkq3ep7vo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240806@172806.6768 rfud4cm00nhnhkat0nkq3ep7vo Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240806@172806.6797 rfud4cm00nhnhkat0nkq3ep7vo Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem) values ('aut66b245012966b24f16a4',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',20.000 ,'aut66b244383066b24f149b' ,0,0 ,2,23.00,420000,?,?,?,?)
20240806@172806.7036 rfud4cm00nhnhkat0nkq3ep7vo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240806@172806.7054 rfud4cm00nhnhkat0nkq3ep7vo Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240806@172806.7082 rfud4cm00nhnhkat0nkq3ep7vo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240806@172806.7097 rfud4cm00nhnhkat0nkq3ep7vo Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240806@172806.7106 rfud4cm00nhnhkat0nkq3ep7vo Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240806@172806.7118 rfud4cm00nhnhkat0nkq3ep7vo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240806@172806.7134 rfud4cm00nhnhkat0nkq3ep7vo Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240806@172806.7146 rfud4cm00nhnhkat0nkq3ep7vo Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66b244307766b24f16ad','aut66b244383066b24f149b' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240806@172806.7149 rfud4cm00nhnhkat0nkq3ep7vo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240806@172806.7165 rfud4cm00nhnhkat0nkq3ep7vo Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240806@172806.7199 rfud4cm00nhnhkat0nkq3ep7vo Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66b244307766b24f16ad',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66b244383066b24f149b' ,0,0 ,2,23.00,430000,?,?,?)
20240806@172806.7749 rfud4cm00nhnhkat0nkq3ep7vo Query : use flama_phc
20240806@172806.8449 rfud4cm00nhnhkat0nkq3ep7vo Query : select st.usalote valor from st where st.ref = '324.1824.00.1'
20240806@172806.8510 rfud4cm00nhnhkat0nkq3ep7vo Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 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'
20240806@172806.8532 rfud4cm00nhnhkat0nkq3ep7vo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240806@172806.8549 rfud4cm00nhnhkat0nkq3ep7vo Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240806@172806.8576 rfud4cm00nhnhkat0nkq3ep7vo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240806@172806.8591 rfud4cm00nhnhkat0nkq3ep7vo Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240806@172806.8600 rfud4cm00nhnhkat0nkq3ep7vo Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240806@172806.8613 rfud4cm00nhnhkat0nkq3ep7vo Query : select sestamp valor from se where ref ='324.1824.00.1' and lote = 'r2301210200a'
20240806@172806.8626 rfud4cm00nhnhkat0nkq3ep7vo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240806@172806.8641 rfud4cm00nhnhkat0nkq3ep7vo Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240806@172806.8653 rfud4cm00nhnhkat0nkq3ep7vo Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66b244117266b24f16d2','aut66b244383066b24f149b' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240806@172806.8657 rfud4cm00nhnhkat0nkq3ep7vo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240806@172806.8672 rfud4cm00nhnhkat0nkq3ep7vo Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240806@172806.8704 rfud4cm00nhnhkat0nkq3ep7vo Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem) values ('aut66b244117266b24f16d2',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',20.000 ,'aut66b244383066b24f149b' ,0,0 ,2,23.00,450000,?,?,?,?)
20240806@172806.8966 rfud4cm00nhnhkat0nkq3ep7vo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240806@172806.8984 rfud4cm00nhnhkat0nkq3ep7vo Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240806@172806.9013 rfud4cm00nhnhkat0nkq3ep7vo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240806@172806.9031 rfud4cm00nhnhkat0nkq3ep7vo Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240806@172806.9040 rfud4cm00nhnhkat0nkq3ep7vo Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240806@172806.9054 rfud4cm00nhnhkat0nkq3ep7vo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240806@172806.9360 rfud4cm00nhnhkat0nkq3ep7vo Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240806@172806.9375 rfud4cm00nhnhkat0nkq3ep7vo Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66b244822466b24f16dd','aut66b244383066b24f149b' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240806@172806.9380 rfud4cm00nhnhkat0nkq3ep7vo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240806@172806.9396 rfud4cm00nhnhkat0nkq3ep7vo Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240806@172806.9425 rfud4cm00nhnhkat0nkq3ep7vo Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66b244822466b24f16dd',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66b244383066b24f149b' ,0,0 ,2,23.00,460000,?,?,?)
20240806@172806.9677 rfud4cm00nhnhkat0nkq3ep7vo Query : use flama_phc
20240806@172806.9681 rfud4cm00nhnhkat0nkq3ep7vo Query : select st.usalote valor from st where st.ref = '324.1824.00.1'
20240806@172806.9701 rfud4cm00nhnhkat0nkq3ep7vo Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 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'
20240806@172806.9715 rfud4cm00nhnhkat0nkq3ep7vo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240806@172806.9732 rfud4cm00nhnhkat0nkq3ep7vo Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240806@172806.9764 rfud4cm00nhnhkat0nkq3ep7vo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240806@172806.9780 rfud4cm00nhnhkat0nkq3ep7vo Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240806@172806.9790 rfud4cm00nhnhkat0nkq3ep7vo Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240806@172806.9803 rfud4cm00nhnhkat0nkq3ep7vo Query : select sestamp valor from se where ref ='324.1824.00.1' and lote = 'r2301210200a'
20240806@172806.9818 rfud4cm00nhnhkat0nkq3ep7vo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240806@172806.9835 rfud4cm00nhnhkat0nkq3ep7vo Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240806@172806.9847 rfud4cm00nhnhkat0nkq3ep7vo Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66b249939766b24f16ef','aut66b244383066b24f149b' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240806@172806.9851 rfud4cm00nhnhkat0nkq3ep7vo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240806@172806.9866 rfud4cm00nhnhkat0nkq3ep7vo Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240806@172806.9896 rfud4cm00nhnhkat0nkq3ep7vo Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem) values ('aut66b249939766b24f16ef',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',20.000 ,'aut66b244383066b24f149b' ,0,0 ,2,23.00,480000,?,?,?,?)
20240806@172807.1570 rfud4cm00nhnhkat0nkq3ep7vo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240806@172807.1770 rfud4cm00nhnhkat0nkq3ep7vo Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240806@172807.2060 rfud4cm00nhnhkat0nkq3ep7vo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240806@172807.2230 rfud4cm00nhnhkat0nkq3ep7vo Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240806@172807.2340 rfud4cm00nhnhkat0nkq3ep7vo Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240806@172807.2480 rfud4cm00nhnhkat0nkq3ep7vo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240806@172807.2650 rfud4cm00nhnhkat0nkq3ep7vo Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240806@172807.2790 rfud4cm00nhnhkat0nkq3ep7vo Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66b246768766b24f1706','aut66b244383066b24f149b' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240806@172807.2840 rfud4cm00nhnhkat0nkq3ep7vo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240806@172807.3000 rfud4cm00nhnhkat0nkq3ep7vo Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240806@172807.3330 rfud4cm00nhnhkat0nkq3ep7vo Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66b246768766b24f1706',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66b244383066b24f149b' ,0,0 ,2,23.00,490000,?,?,?)
20240806@172807.5990 rfud4cm00nhnhkat0nkq3ep7vo Query : use flama_phc
20240806@172807.6020 rfud4cm00nhnhkat0nkq3ep7vo Query : select st.usalote valor from st where st.ref = '324.1824.00.1'
20240806@172807.6240 rfud4cm00nhnhkat0nkq3ep7vo Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 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'
20240806@172807.6380 rfud4cm00nhnhkat0nkq3ep7vo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240806@172807.6550 rfud4cm00nhnhkat0nkq3ep7vo Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240806@172807.6800 rfud4cm00nhnhkat0nkq3ep7vo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240806@172807.6940 rfud4cm00nhnhkat0nkq3ep7vo Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240806@172807.7030 rfud4cm00nhnhkat0nkq3ep7vo Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240806@172807.7160 rfud4cm00nhnhkat0nkq3ep7vo Query : select sestamp valor from se where ref ='324.1824.00.1' and lote = 'r2301210200a'
20240806@172807.7280 rfud4cm00nhnhkat0nkq3ep7vo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240806@172807.7440 rfud4cm00nhnhkat0nkq3ep7vo Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240806@172807.7550 rfud4cm00nhnhkat0nkq3ep7vo Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66b245857066b24f1711','aut66b244383066b24f149b' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240806@172807.7600 rfud4cm00nhnhkat0nkq3ep7vo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240806@172807.7760 rfud4cm00nhnhkat0nkq3ep7vo Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240806@172807.8050 rfud4cm00nhnhkat0nkq3ep7vo Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem) values ('aut66b245857066b24f1711',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',20.000 ,'aut66b244383066b24f149b' ,0,0 ,2,23.00,510000,?,?,?,?)
20240806@172807.1072 rfud4cm00nhnhkat0nkq3ep7vo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240806@172807.1088 rfud4cm00nhnhkat0nkq3ep7vo Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240806@172807.1114 rfud4cm00nhnhkat0nkq3ep7vo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240806@172807.1129 rfud4cm00nhnhkat0nkq3ep7vo Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240806@172807.1137 rfud4cm00nhnhkat0nkq3ep7vo Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240806@172807.1150 rfud4cm00nhnhkat0nkq3ep7vo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240806@172807.1165 rfud4cm00nhnhkat0nkq3ep7vo Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240806@172807.1177 rfud4cm00nhnhkat0nkq3ep7vo Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66b245178266b24f171c','aut66b244383066b24f149b' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240806@172807.1191 rfud4cm00nhnhkat0nkq3ep7vo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240806@172807.1206 rfud4cm00nhnhkat0nkq3ep7vo Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240806@172807.1251 rfud4cm00nhnhkat0nkq3ep7vo Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66b245178266b24f171c',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66b244383066b24f149b' ,0,0 ,2,23.00,520000,?,?,?)
20240806@172807.1502 rfud4cm00nhnhkat0nkq3ep7vo Query : use flama_phc
20240806@172807.1505 rfud4cm00nhnhkat0nkq3ep7vo Query : select st.usalote valor from st where st.ref = '324.1824.00.1'
20240806@172807.1525 rfud4cm00nhnhkat0nkq3ep7vo Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 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'
20240806@172807.1540 rfud4cm00nhnhkat0nkq3ep7vo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240806@172807.1557 rfud4cm00nhnhkat0nkq3ep7vo Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240806@172807.1584 rfud4cm00nhnhkat0nkq3ep7vo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240806@172807.1599 rfud4cm00nhnhkat0nkq3ep7vo Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240806@172807.1608 rfud4cm00nhnhkat0nkq3ep7vo Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240806@172807.1620 rfud4cm00nhnhkat0nkq3ep7vo Query : select sestamp valor from se where ref ='324.1824.00.1' and lote = 'r2301210200a'
20240806@172807.1633 rfud4cm00nhnhkat0nkq3ep7vo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240806@172807.1648 rfud4cm00nhnhkat0nkq3ep7vo Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240806@172807.1659 rfud4cm00nhnhkat0nkq3ep7vo Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66b245286666b24f1727','aut66b244383066b24f149b' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240806@172807.1664 rfud4cm00nhnhkat0nkq3ep7vo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240806@172807.1679 rfud4cm00nhnhkat0nkq3ep7vo Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240806@172807.1708 rfud4cm00nhnhkat0nkq3ep7vo Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem) values ('aut66b245286666b24f1727',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',20.000 ,'aut66b244383066b24f149b' ,0,0 ,2,23.00,540000,?,?,?,?)
20240806@172807.1968 rfud4cm00nhnhkat0nkq3ep7vo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240806@172807.1984 rfud4cm00nhnhkat0nkq3ep7vo Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240806@172807.2011 rfud4cm00nhnhkat0nkq3ep7vo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240806@172807.2026 rfud4cm00nhnhkat0nkq3ep7vo Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240806@172807.2035 rfud4cm00nhnhkat0nkq3ep7vo Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240806@172807.2049 rfud4cm00nhnhkat0nkq3ep7vo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240806@172807.2064 rfud4cm00nhnhkat0nkq3ep7vo Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240806@172807.2076 rfud4cm00nhnhkat0nkq3ep7vo Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66b240063366b24f1732','aut66b244383066b24f149b' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240806@172807.2080 rfud4cm00nhnhkat0nkq3ep7vo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240806@172807.2095 rfud4cm00nhnhkat0nkq3ep7vo Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240806@172807.2124 rfud4cm00nhnhkat0nkq3ep7vo Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66b240063366b24f1732',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66b244383066b24f149b' ,0,0 ,2,23.00,550000,?,?,?)
20240806@172807.2713 rfud4cm00nhnhkat0nkq3ep7vo Query : use flama_phc
20240806@172807.2755 rfud4cm00nhnhkat0nkq3ep7vo Query : select st.usalote valor from st where st.ref = '324.1824.00.1'
20240806@172807.3354 rfud4cm00nhnhkat0nkq3ep7vo Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 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'
20240806@172807.3369 rfud4cm00nhnhkat0nkq3ep7vo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240806@172807.3386 rfud4cm00nhnhkat0nkq3ep7vo Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240806@172807.3413 rfud4cm00nhnhkat0nkq3ep7vo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240806@172807.3432 rfud4cm00nhnhkat0nkq3ep7vo Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240806@172807.3441 rfud4cm00nhnhkat0nkq3ep7vo Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240806@172807.3453 rfud4cm00nhnhkat0nkq3ep7vo Query : select sestamp valor from se where ref ='324.1824.00.1' and lote = 'r2301210200a'
20240806@172807.3466 rfud4cm00nhnhkat0nkq3ep7vo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240806@172807.3486 rfud4cm00nhnhkat0nkq3ep7vo Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240806@172807.3498 rfud4cm00nhnhkat0nkq3ep7vo Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66b245445966b24f1754','aut66b244383066b24f149b' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240806@172807.3503 rfud4cm00nhnhkat0nkq3ep7vo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240806@172807.3518 rfud4cm00nhnhkat0nkq3ep7vo Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240806@172807.3548 rfud4cm00nhnhkat0nkq3ep7vo Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem) values ('aut66b245445966b24f1754',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',20.000 ,'aut66b244383066b24f149b' ,0,0 ,2,23.00,570000,?,?,?,?)
20240806@172807.3808 rfud4cm00nhnhkat0nkq3ep7vo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240806@172807.3825 rfud4cm00nhnhkat0nkq3ep7vo Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240806@172807.3853 rfud4cm00nhnhkat0nkq3ep7vo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240806@172807.3868 rfud4cm00nhnhkat0nkq3ep7vo Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240806@172807.3877 rfud4cm00nhnhkat0nkq3ep7vo Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240806@172807.3891 rfud4cm00nhnhkat0nkq3ep7vo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240806@172807.3907 rfud4cm00nhnhkat0nkq3ep7vo Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240806@172807.3920 rfud4cm00nhnhkat0nkq3ep7vo Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66b242890666b24f175f','aut66b244383066b24f149b' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240806@172807.3924 rfud4cm00nhnhkat0nkq3ep7vo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240806@172807.3940 rfud4cm00nhnhkat0nkq3ep7vo Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240806@172807.3972 rfud4cm00nhnhkat0nkq3ep7vo Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66b242890666b24f175f',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66b244383066b24f149b' ,0,0 ,2,23.00,580000,?,?,?)
20240806@172807.4225 rfud4cm00nhnhkat0nkq3ep7vo Query : use flama_phc
20240806@172807.4228 rfud4cm00nhnhkat0nkq3ep7vo Query : select st.usalote valor from st where st.ref = '324.1824.00.1'
20240806@172807.4248 rfud4cm00nhnhkat0nkq3ep7vo Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 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'
20240806@172807.4262 rfud4cm00nhnhkat0nkq3ep7vo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240806@172807.4278 rfud4cm00nhnhkat0nkq3ep7vo Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240806@172807.4305 rfud4cm00nhnhkat0nkq3ep7vo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240806@172807.4325 rfud4cm00nhnhkat0nkq3ep7vo Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240806@172807.4335 rfud4cm00nhnhkat0nkq3ep7vo Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240806@172807.4349 rfud4cm00nhnhkat0nkq3ep7vo Query : select sestamp valor from se where ref ='324.1824.00.1' and lote = 'r2301210200a'
20240806@172807.4363 rfud4cm00nhnhkat0nkq3ep7vo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240806@172807.4379 rfud4cm00nhnhkat0nkq3ep7vo Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240806@172807.4392 rfud4cm00nhnhkat0nkq3ep7vo Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66b246408266b24f176a','aut66b244383066b24f149b' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240806@172807.4396 rfud4cm00nhnhkat0nkq3ep7vo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240806@172807.4411 rfud4cm00nhnhkat0nkq3ep7vo Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240806@172807.4442 rfud4cm00nhnhkat0nkq3ep7vo Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem) values ('aut66b246408266b24f176a',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',20.000 ,'aut66b244383066b24f149b' ,0,0 ,2,23.00,600000,?,?,?,?)
20240806@172807.4694 rfud4cm00nhnhkat0nkq3ep7vo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240806@172807.4710 rfud4cm00nhnhkat0nkq3ep7vo Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240806@172807.4738 rfud4cm00nhnhkat0nkq3ep7vo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240806@172807.4753 rfud4cm00nhnhkat0nkq3ep7vo Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240806@172807.4762 rfud4cm00nhnhkat0nkq3ep7vo Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240806@172807.4775 rfud4cm00nhnhkat0nkq3ep7vo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240806@172807.4790 rfud4cm00nhnhkat0nkq3ep7vo Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240806@172807.4802 rfud4cm00nhnhkat0nkq3ep7vo Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66b244128766b24f1774','aut66b244383066b24f149b' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240806@172807.4806 rfud4cm00nhnhkat0nkq3ep7vo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240806@172807.6683 rfud4cm00nhnhkat0nkq3ep7vo Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240806@172807.6803 rfud4cm00nhnhkat0nkq3ep7vo Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66b244128766b24f1774',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66b244383066b24f149b' ,0,0 ,2,23.00,610000,?,?,?)
20240806@172807.7051 rfud4cm00nhnhkat0nkq3ep7vo Query : use flama_phc
20240806@172807.7054 rfud4cm00nhnhkat0nkq3ep7vo Query : select st.usalote valor from st where st.ref = '324.1824.00.1'
20240806@172807.7074 rfud4cm00nhnhkat0nkq3ep7vo Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 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'
20240806@172807.7088 rfud4cm00nhnhkat0nkq3ep7vo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240806@172807.7104 rfud4cm00nhnhkat0nkq3ep7vo Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240806@172807.7130 rfud4cm00nhnhkat0nkq3ep7vo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240806@172807.7145 rfud4cm00nhnhkat0nkq3ep7vo Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240806@172807.7154 rfud4cm00nhnhkat0nkq3ep7vo Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240806@172807.7166 rfud4cm00nhnhkat0nkq3ep7vo Query : select sestamp valor from se where ref ='324.1824.00.1' and lote = 'r2301210200a'
20240806@172807.7181 rfud4cm00nhnhkat0nkq3ep7vo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240806@172807.7196 rfud4cm00nhnhkat0nkq3ep7vo Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240806@172807.7207 rfud4cm00nhnhkat0nkq3ep7vo Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66b245337666b24f17af','aut66b244383066b24f149b' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240806@172807.7211 rfud4cm00nhnhkat0nkq3ep7vo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240806@172807.7445 rfud4cm00nhnhkat0nkq3ep7vo Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240806@172807.7478 rfud4cm00nhnhkat0nkq3ep7vo Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem) values ('aut66b245337666b24f17af',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',20.000 ,'aut66b244383066b24f149b' ,0,0 ,2,23.00,630000,?,?,?,?)
20240806@172807.7740 rfud4cm00nhnhkat0nkq3ep7vo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240806@172807.7758 rfud4cm00nhnhkat0nkq3ep7vo Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240806@172807.7789 rfud4cm00nhnhkat0nkq3ep7vo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240806@172807.7805 rfud4cm00nhnhkat0nkq3ep7vo Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240806@172807.7815 rfud4cm00nhnhkat0nkq3ep7vo Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240806@172807.7829 rfud4cm00nhnhkat0nkq3ep7vo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240806@172807.7844 rfud4cm00nhnhkat0nkq3ep7vo Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240806@172807.7856 rfud4cm00nhnhkat0nkq3ep7vo Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66b242673066b24f17bf','aut66b244383066b24f149b' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240806@172807.7861 rfud4cm00nhnhkat0nkq3ep7vo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240806@172807.7876 rfud4cm00nhnhkat0nkq3ep7vo Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240806@172807.7907 rfud4cm00nhnhkat0nkq3ep7vo Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66b242673066b24f17bf',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66b244383066b24f149b' ,0,0 ,2,23.00,640000,?,?,?)
20240806@172807.8181 rfud4cm00nhnhkat0nkq3ep7vo Query : use flama_phc
20240806@172807.8185 rfud4cm00nhnhkat0nkq3ep7vo Query : select st.usalote valor from st where st.ref = '324.1824.00.1'
20240806@172807.8210 rfud4cm00nhnhkat0nkq3ep7vo Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 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'
20240806@172807.8226 rfud4cm00nhnhkat0nkq3ep7vo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240806@172807.8244 rfud4cm00nhnhkat0nkq3ep7vo Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240806@172807.8274 rfud4cm00nhnhkat0nkq3ep7vo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240806@172807.8289 rfud4cm00nhnhkat0nkq3ep7vo Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240806@172807.8298 rfud4cm00nhnhkat0nkq3ep7vo Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240806@172807.8311 rfud4cm00nhnhkat0nkq3ep7vo Query : select sestamp valor from se where ref ='324.1824.00.1' and lote = 'r2301210200a'
20240806@172807.8326 rfud4cm00nhnhkat0nkq3ep7vo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240806@172807.8341 rfud4cm00nhnhkat0nkq3ep7vo Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240806@172807.8353 rfud4cm00nhnhkat0nkq3ep7vo Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66b241881366b24f17cb','aut66b244383066b24f149b' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240806@172807.8358 rfud4cm00nhnhkat0nkq3ep7vo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240806@172807.8373 rfud4cm00nhnhkat0nkq3ep7vo Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240806@172807.8402 rfud4cm00nhnhkat0nkq3ep7vo Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem) values ('aut66b241881366b24f17cb',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',20.000 ,'aut66b244383066b24f149b' ,0,0 ,2,23.00,660000,?,?,?,?)
20240806@172807.8672 rfud4cm00nhnhkat0nkq3ep7vo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240806@172807.8692 rfud4cm00nhnhkat0nkq3ep7vo Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240806@172807.8718 rfud4cm00nhnhkat0nkq3ep7vo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240806@172807.8735 rfud4cm00nhnhkat0nkq3ep7vo Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240806@172807.8744 rfud4cm00nhnhkat0nkq3ep7vo Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240806@172807.8756 rfud4cm00nhnhkat0nkq3ep7vo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240806@172807.8773 rfud4cm00nhnhkat0nkq3ep7vo Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240806@172807.8784 rfud4cm00nhnhkat0nkq3ep7vo Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66b245403266b24f17d5','aut66b244383066b24f149b' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240806@172807.8788 rfud4cm00nhnhkat0nkq3ep7vo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240806@172807.8803 rfud4cm00nhnhkat0nkq3ep7vo Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240806@172807.8839 rfud4cm00nhnhkat0nkq3ep7vo Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66b245403266b24f17d5',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66b244383066b24f149b' ,0,0 ,2,23.00,670000,?,?,?)
20240806@172807.9106 rfud4cm00nhnhkat0nkq3ep7vo Query : use flama_phc
20240806@172807.9109 rfud4cm00nhnhkat0nkq3ep7vo Query : select st.usalote valor from st where st.ref = '324.1824.00.1'
20240806@172807.9129 rfud4cm00nhnhkat0nkq3ep7vo Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 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'
20240806@172807.9144 rfud4cm00nhnhkat0nkq3ep7vo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240806@172807.9160 rfud4cm00nhnhkat0nkq3ep7vo Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240806@172807.9190 rfud4cm00nhnhkat0nkq3ep7vo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240806@172807.9204 rfud4cm00nhnhkat0nkq3ep7vo Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240806@172807.9218 rfud4cm00nhnhkat0nkq3ep7vo Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240806@172807.9233 rfud4cm00nhnhkat0nkq3ep7vo Query : select sestamp valor from se where ref ='324.1824.00.1' and lote = 'r2301210200a'
20240806@172807.9245 rfud4cm00nhnhkat0nkq3ep7vo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240806@172807.9266 rfud4cm00nhnhkat0nkq3ep7vo Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240806@172807.9279 rfud4cm00nhnhkat0nkq3ep7vo Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66b240480766b24f17e1','aut66b244383066b24f149b' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240806@172807.9283 rfud4cm00nhnhkat0nkq3ep7vo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240806@172807.9297 rfud4cm00nhnhkat0nkq3ep7vo Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240806@172807.9451 rfud4cm00nhnhkat0nkq3ep7vo Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem) values ('aut66b240480766b24f17e1',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',20.000 ,'aut66b244383066b24f149b' ,0,0 ,2,23.00,690000,?,?,?,?)
20240806@172807.9750 rfud4cm00nhnhkat0nkq3ep7vo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240806@172807.9766 rfud4cm00nhnhkat0nkq3ep7vo Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240806@172807.9803 rfud4cm00nhnhkat0nkq3ep7vo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240806@172807.9822 rfud4cm00nhnhkat0nkq3ep7vo Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240806@172807.9833 rfud4cm00nhnhkat0nkq3ep7vo Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240806@172807.9848 rfud4cm00nhnhkat0nkq3ep7vo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240806@172807.9866 rfud4cm00nhnhkat0nkq3ep7vo Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240806@172807.9988 rfud4cm00nhnhkat0nkq3ep7vo Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66b242821166b24f17f0','aut66b244383066b24f149b' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240806@172807.9993 rfud4cm00nhnhkat0nkq3ep7vo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240806@172808.1200 rfud4cm00nhnhkat0nkq3ep7vo Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240806@172808.6000 rfud4cm00nhnhkat0nkq3ep7vo Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66b242821166b24f17f0',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66b244383066b24f149b' ,0,0 ,2,23.00,700000,?,?,?)
20240806@172808.3370 rfud4cm00nhnhkat0nkq3ep7vo Query : use flama_phc
20240806@172808.3410 rfud4cm00nhnhkat0nkq3ep7vo Query : select st.usalote valor from st where st.ref = '324.1824.00.1'
20240806@172808.3640 rfud4cm00nhnhkat0nkq3ep7vo Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 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'
20240806@172808.3810 rfud4cm00nhnhkat0nkq3ep7vo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240806@172808.3990 rfud4cm00nhnhkat0nkq3ep7vo Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240806@172808.4300 rfud4cm00nhnhkat0nkq3ep7vo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240806@172808.4460 rfud4cm00nhnhkat0nkq3ep7vo Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240806@172808.4550 rfud4cm00nhnhkat0nkq3ep7vo Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240806@172808.4680 rfud4cm00nhnhkat0nkq3ep7vo Query : select sestamp valor from se where ref ='324.1824.00.1' and lote = 'r2301210200a'
20240806@172808.4800 rfud4cm00nhnhkat0nkq3ep7vo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240806@172808.4960 rfud4cm00nhnhkat0nkq3ep7vo Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240806@172808.5080 rfud4cm00nhnhkat0nkq3ep7vo Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66b248477966b24f180b','aut66b244383066b24f149b' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240806@172808.5120 rfud4cm00nhnhkat0nkq3ep7vo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240806@172808.5270 rfud4cm00nhnhkat0nkq3ep7vo Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240806@172808.5570 rfud4cm00nhnhkat0nkq3ep7vo Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem) values ('aut66b248477966b24f180b',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',20.000 ,'aut66b244383066b24f149b' ,0,0 ,2,23.00,720000,?,?,?,?)
20240806@172808.8370 rfud4cm00nhnhkat0nkq3ep7vo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240806@172808.8540 rfud4cm00nhnhkat0nkq3ep7vo Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240806@172808.8820 rfud4cm00nhnhkat0nkq3ep7vo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240806@172808.8980 rfud4cm00nhnhkat0nkq3ep7vo Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240806@172808.9070 rfud4cm00nhnhkat0nkq3ep7vo Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240806@172808.9190 rfud4cm00nhnhkat0nkq3ep7vo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240806@172808.9360 rfud4cm00nhnhkat0nkq3ep7vo Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240806@172808.9480 rfud4cm00nhnhkat0nkq3ep7vo Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66b243536566b24f1816','aut66b244383066b24f149b' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240806@172808.9520 rfud4cm00nhnhkat0nkq3ep7vo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240806@172808.9660 rfud4cm00nhnhkat0nkq3ep7vo Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240806@172808.9960 rfud4cm00nhnhkat0nkq3ep7vo Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66b243536566b24f1816',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66b244383066b24f149b' ,0,0 ,2,23.00,730000,?,?,?)
20240806@172808.1252 rfud4cm00nhnhkat0nkq3ep7vo Query : use flama_phc
20240806@172808.1255 rfud4cm00nhnhkat0nkq3ep7vo Query : select st.usalote valor from st where st.ref = '324.1824.00.1'
20240806@172808.1274 rfud4cm00nhnhkat0nkq3ep7vo Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 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'
20240806@172808.1288 rfud4cm00nhnhkat0nkq3ep7vo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240806@172808.1305 rfud4cm00nhnhkat0nkq3ep7vo Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240806@172808.1332 rfud4cm00nhnhkat0nkq3ep7vo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240806@172808.1347 rfud4cm00nhnhkat0nkq3ep7vo Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240806@172808.1357 rfud4cm00nhnhkat0nkq3ep7vo Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240806@172808.1369 rfud4cm00nhnhkat0nkq3ep7vo Query : select sestamp valor from se where ref ='324.1824.00.1' and lote = 'r2301210200a'
20240806@172808.1382 rfud4cm00nhnhkat0nkq3ep7vo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240806@172808.1397 rfud4cm00nhnhkat0nkq3ep7vo Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240806@172808.1409 rfud4cm00nhnhkat0nkq3ep7vo Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66b243722066b24f1821','aut66b244383066b24f149b' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240806@172808.1413 rfud4cm00nhnhkat0nkq3ep7vo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240806@172808.1428 rfud4cm00nhnhkat0nkq3ep7vo Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240806@172808.1457 rfud4cm00nhnhkat0nkq3ep7vo Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem) values ('aut66b243722066b24f1821',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',20.000 ,'aut66b244383066b24f149b' ,0,0 ,2,23.00,750000,?,?,?,?)
20240806@172808.1702 rfud4cm00nhnhkat0nkq3ep7vo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240806@172808.1717 rfud4cm00nhnhkat0nkq3ep7vo Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240806@172808.1744 rfud4cm00nhnhkat0nkq3ep7vo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240806@172808.1759 rfud4cm00nhnhkat0nkq3ep7vo Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240806@172808.1768 rfud4cm00nhnhkat0nkq3ep7vo Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240806@172808.1781 rfud4cm00nhnhkat0nkq3ep7vo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240806@172808.1796 rfud4cm00nhnhkat0nkq3ep7vo Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240806@172808.1808 rfud4cm00nhnhkat0nkq3ep7vo Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66b242880666b24f182b','aut66b244383066b24f149b' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240806@172808.1820 rfud4cm00nhnhkat0nkq3ep7vo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240806@172808.1837 rfud4cm00nhnhkat0nkq3ep7vo Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240806@172808.1870 rfud4cm00nhnhkat0nkq3ep7vo Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66b242880666b24f182b',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66b244383066b24f149b' ,0,0 ,2,23.00,760000,?,?,?)
20240806@172808.2129 rfud4cm00nhnhkat0nkq3ep7vo Query : use flama_phc
20240806@172808.2132 rfud4cm00nhnhkat0nkq3ep7vo Query : select st.usalote valor from st where st.ref = '324.1831.00.2'
20240806@172808.2153 rfud4cm00nhnhkat0nkq3ep7vo Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.1831.00.2'
20240806@172808.2296 rfud4cm00nhnhkat0nkq3ep7vo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240806@172808.2312 rfud4cm00nhnhkat0nkq3ep7vo Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240806@172808.2338 rfud4cm00nhnhkat0nkq3ep7vo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240806@172808.2354 rfud4cm00nhnhkat0nkq3ep7vo Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240806@172808.2364 rfud4cm00nhnhkat0nkq3ep7vo Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240806@172808.2376 rfud4cm00nhnhkat0nkq3ep7vo Query : select sestamp valor from se where ref ='324.1831.00.2' and lote = 'r2301271200a'
20240806@172808.2389 rfud4cm00nhnhkat0nkq3ep7vo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240806@172808.2404 rfud4cm00nhnhkat0nkq3ep7vo Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240806@172808.2416 rfud4cm00nhnhkat0nkq3ep7vo Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66b247643666b24f183a','aut66b244383066b24f149b' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240806@172808.2420 rfud4cm00nhnhkat0nkq3ep7vo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240806@172808.2434 rfud4cm00nhnhkat0nkq3ep7vo Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240806@172808.2462 rfud4cm00nhnhkat0nkq3ep7vo Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem) values ('aut66b247643666b24f183a',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',8.000 ,'aut66b244383066b24f149b' ,0,0 ,2,23.00,780000,?,?,?,?)
20240806@172808.2747 rfud4cm00nhnhkat0nkq3ep7vo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240806@172808.2762 rfud4cm00nhnhkat0nkq3ep7vo Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240806@172808.2789 rfud4cm00nhnhkat0nkq3ep7vo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240806@172808.2805 rfud4cm00nhnhkat0nkq3ep7vo Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240806@172808.2813 rfud4cm00nhnhkat0nkq3ep7vo Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240806@172808.2826 rfud4cm00nhnhkat0nkq3ep7vo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240806@172808.2840 rfud4cm00nhnhkat0nkq3ep7vo Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240806@172808.2852 rfud4cm00nhnhkat0nkq3ep7vo Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66b240008666b24f1845','aut66b244383066b24f149b' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240806@172808.2856 rfud4cm00nhnhkat0nkq3ep7vo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240806@172808.2870 rfud4cm00nhnhkat0nkq3ep7vo Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240806@172808.2899 rfud4cm00nhnhkat0nkq3ep7vo Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66b240008666b24f1845',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66b244383066b24f149b' ,0,0 ,2,23.00,790000,?,?,?)
20240806@172808.3135 rfud4cm00nhnhkat0nkq3ep7vo Query : use flama_phc
20240806@172808.3138 rfud4cm00nhnhkat0nkq3ep7vo Query : select st.usalote valor from st where st.ref = '324.1831.00.2'
20240806@172808.3156 rfud4cm00nhnhkat0nkq3ep7vo Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.1831.00.2'
20240806@172808.3171 rfud4cm00nhnhkat0nkq3ep7vo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240806@172808.3187 rfud4cm00nhnhkat0nkq3ep7vo Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240806@172808.3213 rfud4cm00nhnhkat0nkq3ep7vo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240806@172808.3228 rfud4cm00nhnhkat0nkq3ep7vo Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240806@172808.3236 rfud4cm00nhnhkat0nkq3ep7vo Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240806@172808.3248 rfud4cm00nhnhkat0nkq3ep7vo Query : select sestamp valor from se where ref ='324.1831.00.2' and lote = 'r2301271200a'
20240806@172808.3261 rfud4cm00nhnhkat0nkq3ep7vo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240806@172808.3275 rfud4cm00nhnhkat0nkq3ep7vo Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240806@172808.3286 rfud4cm00nhnhkat0nkq3ep7vo Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66b246729966b24f184f','aut66b244383066b24f149b' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240806@172808.3290 rfud4cm00nhnhkat0nkq3ep7vo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240806@172808.3305 rfud4cm00nhnhkat0nkq3ep7vo Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240806@172808.3376 rfud4cm00nhnhkat0nkq3ep7vo Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem) values ('aut66b246729966b24f184f',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',2.000 ,'aut66b244383066b24f149b' ,0,0 ,2,23.00,810000,?,?,?,?)
20240806@172808.4462 rfud4cm00nhnhkat0nkq3ep7vo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240806@172808.4481 rfud4cm00nhnhkat0nkq3ep7vo Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240806@172808.4507 rfud4cm00nhnhkat0nkq3ep7vo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240806@172808.4523 rfud4cm00nhnhkat0nkq3ep7vo Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240806@172808.4531 rfud4cm00nhnhkat0nkq3ep7vo Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240806@172808.4544 rfud4cm00nhnhkat0nkq3ep7vo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240806@172808.4558 rfud4cm00nhnhkat0nkq3ep7vo Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240806@172808.4570 rfud4cm00nhnhkat0nkq3ep7vo Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66b243409766b24f186e','aut66b244383066b24f149b' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240806@172808.4574 rfud4cm00nhnhkat0nkq3ep7vo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240806@172808.4588 rfud4cm00nhnhkat0nkq3ep7vo Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240806@172808.4618 rfud4cm00nhnhkat0nkq3ep7vo Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66b243409766b24f186e',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66b244383066b24f149b' ,0,0 ,2,23.00,820000,?,?,?)
20240806@172808.4874 rfud4cm00nhnhkat0nkq3ep7vo Query : use flama_phc
20240806@172808.4878 rfud4cm00nhnhkat0nkq3ep7vo Query : select st.usalote valor from st where st.ref = '324.1831.00.2'
20240806@172808.4897 rfud4cm00nhnhkat0nkq3ep7vo Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.1831.00.2'
20240806@172808.4910 rfud4cm00nhnhkat0nkq3ep7vo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240806@172808.5119 rfud4cm00nhnhkat0nkq3ep7vo Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240806@172808.5144 rfud4cm00nhnhkat0nkq3ep7vo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240806@172808.5160 rfud4cm00nhnhkat0nkq3ep7vo Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240806@172808.5169 rfud4cm00nhnhkat0nkq3ep7vo Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240806@172808.5181 rfud4cm00nhnhkat0nkq3ep7vo Query : select sestamp valor from se where ref ='324.1831.00.2' and lote = 'r2301271200a'
20240806@172808.5194 rfud4cm00nhnhkat0nkq3ep7vo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240806@172808.5209 rfud4cm00nhnhkat0nkq3ep7vo Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240806@172808.5221 rfud4cm00nhnhkat0nkq3ep7vo Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66b240423666b24f187e','aut66b244383066b24f149b' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240806@172808.5225 rfud4cm00nhnhkat0nkq3ep7vo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240806@172808.5241 rfud4cm00nhnhkat0nkq3ep7vo Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240806@172808.5270 rfud4cm00nhnhkat0nkq3ep7vo Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem) values ('aut66b240423666b24f187e',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',20.000 ,'aut66b244383066b24f149b' ,0,0 ,2,23.00,840000,?,?,?,?)
20240806@172808.6577 rfud4cm00nhnhkat0nkq3ep7vo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240806@172808.6593 rfud4cm00nhnhkat0nkq3ep7vo Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240806@172808.6619 rfud4cm00nhnhkat0nkq3ep7vo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240806@172808.6636 rfud4cm00nhnhkat0nkq3ep7vo Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240806@172808.6645 rfud4cm00nhnhkat0nkq3ep7vo Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240806@172808.6658 rfud4cm00nhnhkat0nkq3ep7vo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240806@172808.6673 rfud4cm00nhnhkat0nkq3ep7vo Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240806@172808.6685 rfud4cm00nhnhkat0nkq3ep7vo Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66b242733566b24f18a2','aut66b244383066b24f149b' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240806@172808.6689 rfud4cm00nhnhkat0nkq3ep7vo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240806@172808.6705 rfud4cm00nhnhkat0nkq3ep7vo Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240806@172808.6737 rfud4cm00nhnhkat0nkq3ep7vo Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66b242733566b24f18a2',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66b244383066b24f149b' ,0,0 ,2,23.00,850000,?,?,?)
20240806@172808.7022 rfud4cm00nhnhkat0nkq3ep7vo Query : use flama_phc
20240806@172808.7025 rfud4cm00nhnhkat0nkq3ep7vo Query : select st.usalote valor from st where st.ref = '324.1837.00.1'
20240806@172808.7047 rfud4cm00nhnhkat0nkq3ep7vo Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.1837.00.1'
20240806@172808.7189 rfud4cm00nhnhkat0nkq3ep7vo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240806@172808.7205 rfud4cm00nhnhkat0nkq3ep7vo Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240806@172808.7241 rfud4cm00nhnhkat0nkq3ep7vo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240806@172808.7256 rfud4cm00nhnhkat0nkq3ep7vo Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240806@172808.7265 rfud4cm00nhnhkat0nkq3ep7vo Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240806@172808.7277 rfud4cm00nhnhkat0nkq3ep7vo Query : select sestamp valor from se where ref ='324.1837.00.1' and lote = 'r2301207300a'
20240806@172808.7290 rfud4cm00nhnhkat0nkq3ep7vo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240806@172808.7305 rfud4cm00nhnhkat0nkq3ep7vo Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240806@172808.7317 rfud4cm00nhnhkat0nkq3ep7vo Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66b243329366b24f18b1','aut66b244383066b24f149b' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240806@172808.7321 rfud4cm00nhnhkat0nkq3ep7vo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240806@172808.7336 rfud4cm00nhnhkat0nkq3ep7vo Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240806@172808.7366 rfud4cm00nhnhkat0nkq3ep7vo Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem) values ('aut66b243329366b24f18b1',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',2.000 ,'aut66b244383066b24f149b' ,0,0 ,2,23.00,870000,?,?,?,?)
20240806@172808.7629 rfud4cm00nhnhkat0nkq3ep7vo Query : use flama_phc
20240806@172808.7632 rfud4cm00nhnhkat0nkq3ep7vo Query : select st.usalote valor from st where st.ref = '324.1837.00.1'
20240806@172808.7653 rfud4cm00nhnhkat0nkq3ep7vo Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.1837.00.1'
20240806@172808.7668 rfud4cm00nhnhkat0nkq3ep7vo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240806@172808.7685 rfud4cm00nhnhkat0nkq3ep7vo Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240806@172808.7714 rfud4cm00nhnhkat0nkq3ep7vo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240806@172808.7731 rfud4cm00nhnhkat0nkq3ep7vo Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240806@172808.7741 rfud4cm00nhnhkat0nkq3ep7vo Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240806@172808.7752 rfud4cm00nhnhkat0nkq3ep7vo Query : select sestamp valor from se where ref ='324.1837.00.1' and lote = 'r2300658200a'
20240806@172808.7821 rfud4cm00nhnhkat0nkq3ep7vo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240806@172808.7837 rfud4cm00nhnhkat0nkq3ep7vo Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240806@172808.7848 rfud4cm00nhnhkat0nkq3ep7vo Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66b249621566b24f18be','aut66b244383066b24f149b' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240806@172808.7853 rfud4cm00nhnhkat0nkq3ep7vo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240806@172808.7875 rfud4cm00nhnhkat0nkq3ep7vo Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240806@172808.7904 rfud4cm00nhnhkat0nkq3ep7vo Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem) values ('aut66b249621566b24f18be',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',14.000 ,'aut66b244383066b24f149b' ,0,0 ,2,23.00,880000,?,?,?,?)
20240806@172808.8178 rfud4cm00nhnhkat0nkq3ep7vo Query : use flama_phc
20240806@172808.8182 rfud4cm00nhnhkat0nkq3ep7vo Query : select st.usalote valor from st where st.ref = '324.1837.00.1'
20240806@172808.8201 rfud4cm00nhnhkat0nkq3ep7vo Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.1837.00.1'
20240806@172808.8215 rfud4cm00nhnhkat0nkq3ep7vo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240806@172808.8232 rfud4cm00nhnhkat0nkq3ep7vo Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240806@172808.8257 rfud4cm00nhnhkat0nkq3ep7vo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240806@172808.8273 rfud4cm00nhnhkat0nkq3ep7vo Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240806@172808.8282 rfud4cm00nhnhkat0nkq3ep7vo Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240806@172808.8293 rfud4cm00nhnhkat0nkq3ep7vo Query : select sestamp valor from se where ref ='324.1837.00.1' and lote = 'r2300658200a'
20240806@172808.8306 rfud4cm00nhnhkat0nkq3ep7vo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240806@172808.8323 rfud4cm00nhnhkat0nkq3ep7vo Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240806@172808.8335 rfud4cm00nhnhkat0nkq3ep7vo Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66b246970066b24f18ca','aut66b244383066b24f149b' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240806@172808.8339 rfud4cm00nhnhkat0nkq3ep7vo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240806@172808.8353 rfud4cm00nhnhkat0nkq3ep7vo Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240806@172808.8383 rfud4cm00nhnhkat0nkq3ep7vo Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem) values ('aut66b246970066b24f18ca',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',14.000 ,'aut66b244383066b24f149b' ,0,0 ,2,23.00,890000,?,?,?,?)
20240806@172808.8663 rfud4cm00nhnhkat0nkq3ep7vo Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut66b244383066b24f149b','2405221','wait',39,'adm09112754980.682000002')
20240806@172808.8751 rfud4cm00nhnhkat0nkq3ep7vo Query : use flama_phc
20240806@172808.8754 rfud4cm00nhnhkat0nkq3ep7vo Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240806@172808.8788 rfud4cm00nhnhkat0nkq3ep7vo Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1402';
20240806@172808.8828 rfud4cm00nhnhkat0nkq3ep7vo Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1402';
20240806@172808.8947 rfud4cm00nhnhkat0nkq3ep7vo Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1402';
20240806@172808.8994 rfud4cm00nhnhkat0nkq3ep7vo Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1402';
20240806@172808.9560 qu2rjflpkugv91efdfecs98l7m Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240806@172808.9578 qu2rjflpkugv91efdfecs98l7m Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240806@172808.9630 qu2rjflpkugv91efdfecs98l7m Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1403';
20240806@172808.9690 qu2rjflpkugv91efdfecs98l7m Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1403';
20240806@172808.9773 qu2rjflpkugv91efdfecs98l7m Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1403';
20240806@172808.9800 qu2rjflpkugv91efdfecs98l7m Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1403';
20240806@172808.9864 qu2rjflpkugv91efdfecs98l7m Query : use flama_phc
20240806@172808.9867 qu2rjflpkugv91efdfecs98l7m Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240806@172809.1210 qu2rjflpkugv91efdfecs98l7m Query : use flama_phc
20240806@172809.1620 qu2rjflpkugv91efdfecs98l7m Query : select no, estab,szadrsdesc from szadrs where u_coddest=4790
20240806@172809.4470 qu2rjflpkugv91efdfecs98l7m Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.958.00.01'
20240806@172809.6180 qu2rjflpkugv91efdfecs98l7m Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.958.00.01'
20240806@172809.6390 qu2rjflpkugv91efdfecs98l7m Query : use flama_phc
20240806@172809.6430 qu2rjflpkugv91efdfecs98l7m Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20240806@172809.6820 qu2rjflpkugv91efdfecs98l7m Query : use flama_phc
20240806@172809.6860 qu2rjflpkugv91efdfecs98l7m Query : select top 1 1 valor from td where td.ndoc = 39
20240806@172809.7240 qu2rjflpkugv91efdfecs98l7m Query : use flama_phc
20240806@172809.7270 qu2rjflpkugv91efdfecs98l7m 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')
20240806@172809.7560 qu2rjflpkugv91efdfecs98l7m 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
20240806@172809.7950 qu2rjflpkugv91efdfecs98l7m Query : use flama_phc
20240806@172809.7980 qu2rjflpkugv91efdfecs98l7m Query : select top 1 ~inactivo valor from cl where no = '199510' and estab = 0 order by inactivo desc
20240806@172809.9800 qu2rjflpkugv91efdfecs98l7m Query : use flama_phc
20240806@172809.9830 qu2rjflpkugv91efdfecs98l7m Query : select top 1 tipodoc,regrd from td where ndoc = 39
20240806@172809.1019 qu2rjflpkugv91efdfecs98l7m Query : use flama_phc
20240806@172809.1022 qu2rjflpkugv91efdfecs98l7m Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20240806@172809.1072 qu2rjflpkugv91efdfecs98l7m Query : use flama_phc
20240806@172809.1076 qu2rjflpkugv91efdfecs98l7m Query : select szadrsstamp valor from szadrs where szadrsdesc='199510 - cdnogueira regedoura'
20240806@172809.1131 qu2rjflpkugv91efdfecs98l7m Query : use flama_phc
20240806@172809.1133 qu2rjflpkugv91efdfecs98l7m Query : select 1 valor from td where ndoc = 39
20240806@172809.1147 qu2rjflpkugv91efdfecs98l7m Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20240806@172809.1163 qu2rjflpkugv91efdfecs98l7m Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240806@172809.1180 qu2rjflpkugv91efdfecs98l7m Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20240806@172809.1200 qu2rjflpkugv91efdfecs98l7m Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240806@172809.1216 qu2rjflpkugv91efdfecs98l7m Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20240806@172809.1245 qu2rjflpkugv91efdfecs98l7m Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
